how_to
29 lines
| 908 B
| text/plain
|
TextLexer
r1225 | ########################## | ||
# to create new language # | |||
########################## | |||
r547 | |||
r1225 | #this needs to be done on source codes, preferable default/stable branches | ||
r2577 | python setup.py extract_messages <- get messages from project | ||
python setup.py init_catalog -l pl <- create a language directory for <pl> lang | |||
#edit the new po file with poedit or any other editor | |||
msgfmt -f -c <updated_file.po> <- check format and errors | |||
r3690 | python setup.py compile_catalog -l pl <- create translation files | ||
r1225 | |||
############# | |||
# to update # | |||
############# | |||
r2577 | python setup.py extract_messages <- get messages from project | ||
r3690 | python setup.py update_catalog -l pl<- to update the translations | ||
r2577 | #edit the new updated po file with poedit | ||
msgfmt -f -c <updated_file.po> <- check format and errors | |||
r3690 | python setup.py compile_catalog -l pl <- create translation files | ||
r1225 | |||
################### | |||
# change language # | |||
################### | |||
r2577 | `lang=pl` | ||
r1225 | |||
in the .ini file |