Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4

====== Translations ======

To contribute to translations online please go to [[https://hosted.weblate.org/projects/zim/master/]]. Here you can collaborate with others to translate zim into your native language.

If you rather use offline tools like [[http://www.poedit.net/|poedit]] you can either check out the source repository for zim (see [[Contribute]]) and submit changes as a pull request.

===== Testing translations =====
Zim using the [[http://www.gnu.org/software/gettext/|GNU gettext]] tool chain for translations. The source package contains a "''zim.pot''" file which is the template. The directory "''po/''" contains translations, which are named "''po/language.po''" or "''po/language_COUNTRY.po''" where "''language''" and "''COUNTRY''" are the respective language and country codes for the locale.

To compile a new translation run:

'''
$ ./setup.py build_trans
'''

This will compile .mo files for all translations and put them in the directory "''locale''".
Now run zim from the source directory using:

'''
$ LANGUAGE=language_COUNTRY ./zim.py
'''

or:

'''
$ LANG=language_COUNTRY ./zim.py
'''
