By default Sahana Eden displays all information in US English. However, the system is fully internationalized, which means that all text elements of the user interface can be displayed in any language, including right-to-left languages.
The process of "localizing" Sahana Eden (adapting it to specific language and locale) involves translating the text elements of the user interface into whatever language is needed.
Many translations are already available for Sahana Eden, although they may not be complete or not up-to-date. These include:
If you need to update an existing translation, either because it is incomplete or to add customized strings specific to your installation, then you need to update a text file in the languages folder (e.g. languages/de.py for the German translation). This file contains a Python dictionary to map the original US English strings to their translated counterparts.
There are 2 approaches that you can take to generate an empty language file for translation:
cd web2py python web2py.py -S eden -R applications/eden/static/scripts/tools/languages.py
There are 3 approaches you can take to do the translations:
Note: Inform all translators to not translate the variables within strings (e.g. %(name)s), but just move around the surrounding text to ensure that the word order makes sense.
http://127.0.0.1:8000/admin/default/design/eden#languages
web2py2po -i language.py -o language.po po2csv -i language.po -o language.csv
Tip: Excel has a nasty habit of corrupting strings with quotation marks or other special characters, so avoid this if possible & be prepared to clean-up if not.
This can be done via the Web2Py admin interface:
http://127.0.0.1:8000/admin/default/design/eden#languages
Create a new file using the ISO 639-1 Code of the Language plus ".py" as the filename. If it is a national variation of a language, eg. New Zealand English, add a suffix to the language code: "en_nz.py".
The same process then applies as for updating an existing language.
Pootle is a web-based tool to manage translations by a group of translators which includes the ability to have alternate suggestions reviewed before being selected.
There is a Sahana instance at http://pootle.sahanafoundation.org which is available for you to manage the translation for your language.
To use Pootle you need to convert the .py version of your translation to/from the PO format, which can be done using web2py2po from the Translate Toolkit.
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.