-
Notifications
You must be signed in to change notification settings - Fork 8
languagefile
You can create a language-file so all message can be displayed in your own language. At present this involves some manual work, but we are working on a better solution.
Inside the tvgrabpyAPI/texts directory you'll find the current text files. For every language:
- a script
create_texts_**.py
- the actual file containing a pickeled dict
tv_grab_text.**
To create your own file
- copy
create_texts_en.py
replacingen
with your own language short. For instancede
for german. - Inside that script replace the
lang
andlanguage
variables to show your own language. E.g.de
andDeutsch
. - Inside the
load_texts
function you find thetexts
dict. Replace all the texts to show your own language, where: - you should keep the '%' (%s, %d, etc) markers in place as they get replaced by things like the name of a file
- if there is an EOL '\n' at the end, leave it also in place, but also do not add your own.
- however in some situations you can spread the text over multiple lines
- keep any indentations at the start
- run this new created script to create the language file for your own use
- send us this new created script and we probably include it with the language file in the package.
- check regularly if you need to update the script, update the version and send us the updated version.
There are a few special categories:
- In texts[u'config][u'help'] you should check that the output on the --help option does not excede a width of 80. Else use spaces and newlines to layout.
- In texts[u'config][u'confighelp'] there are several groups followed by empty lines. If empty they are not printed, but you can use them if you need more space. e.g. 1 - 10, 11 - 16, 21 - 39, 41 - 52, 61 - 67, 71 - 77, 81 - 87, 91 - 139, ...
The Options
add_hd_id
add-ttvdb-title
always_use_json
cache
capabilities
cattrans
clean_cache
clear_cache
clear_ttvdb
compat
config_file
configure
days
desc_length
description
disable_detail_source
disable_source
disable_ttvdb
fast
global_timeout
group_active_channels
help
legacy_xmltvids
language
log_level
logos
long_descr
mark_HD
mail_log
mail_log_address
mailport
mailserver
match_log_level
max_overlap
max_simultaneous_fetches
nocattrans
nologos
offset
output_file
output_tz
output-windows-codeset
overlap_strategy
prefered_description
preferredmethod
prime_source
quiet
ratingstyle
save_options
show-detail-sources
show-logo-sources
show-sources
slow
slowdays
ttvdb_lookup_level as of 1.0.5
use-only-cache
utc
use_split_episodes
verbose
version
xmltvid_alias