Changeset - d86bd885b9fc
[Not reviewed]
default
0 1 0
Andrew Shadura - 11 years ago 2014-11-20 09:53:54
andrew@shadura.me
Update i18n howto: we now use Hosted Weblate.
1 file changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/i18n/how_to
Show inline comments
 
##########################
 
# to create new language #
 
##########################
 

	
 
Translations are available on transifex under::
 
Translations are available on Hosted Weblate under::
 

	
 
    https://www.transifex.com/projects/p/Kallithea/
 
    https://hosted.weblate.org/projects/kallithea/kallithea/
 

	
 
Preferred method is to register on transifex and request new language translation.
 
Preferred method is to register on Weblate and request new language translation.
 

	
 
manual creation of new language
 
+++++++++++++++++++++++++++++++
 
 
 
Dowload sources of Kallithea. Run::
 

	
 
    python setup.py develop
 

	
 
To prepare the enviroment
 

	
 

	
 
Make sure all translation strings are extracted by running::
 

	
 
    python setup.py extract_messages
 

	
 
Create new language by executing following command::
 
    python setup.py init_catalog -l <new_language_code>
 

	
 
This creates a new language under directory kallithea/i18n/<new_language_code>
 
Be sure to update transifex mapping under .tx/config for new language
 

	
 
Edit the new PO file located in LC_MESSAGES directory with poedit or your
 
favorite PO files editor. Do translations and at the end verify the translation
 
file for any errors. This can be done by executing::
 

	
 
    msgfmt -f -c kallithea/i18n/<new_language_code>/LC_MESSAGES/<updated_file.po>
 

	
 
finally compile the translations::
 

	
 
    python setup.py compile_catalog -l <new_language_code>
 

	
 
##########################
0 comments (0 inline, 0 general)