Version 8 (modified by 14 years ago) ( diff ) | ,
---|
Localisation
Translation to other languages is highly appreciated - please contact the Sahana Localization team for advice.
Translating Eden to a new language
Create language file:
You can then either edit this in the Web2Py admin UI or else convert to a .po file for use in standard PO file tools such as Virtaal:
- web2py2po scripts (part of the Translate Toolkit)
For UTF-8, beware of the encoding - needs to be 'without BOM' or 'ANSI as UTF-8'
You can -also- try a new method, using a beta tool, which translates any file (including the web2py languages files) using the Google Translate API:
- Go to Auto-Translator, download, uncompress the .tar.gz archive
- Inside the uncompressed directory, execute the application with:
- ./autotranslate.py (parameters) or
- python autotranslate.py (parameters)
(The parameters are: filename, origin language and destination language)
Example: ./autotranslate.py /home/johndoe/web2py/applications/eden/languages/es.py en es
Wait (you'll see an advance status) and DONE. Just refine the translations (inside web2py or just open with a text editor)
Please provide any bug report or problem to the main list
Pootle/translate toolkit
- Sahana Pootle server is available as on online facility for collaboration, translation refinement and workflow control
Wiki pages translation
- translated pages with ISO 639-2 language code extension (original english page = no extension), e.g.
- original page: eden.sahanafoundation.org/wiki/BluePrintInternationalisation
- german translation: eden.sahanafoundation.org/wiki/BluePrintInternationalisation/de
- insert [[TranslatedPages]] macro to display a list of available translations of a page (at best at bottom of page)
See Also
Attachments (2)
- web2py2po.diff (1.1 KB ) - added by 14 years ago.
-
translate.cmd
(5.1 KB
) - added by 14 years ago.
Windows script to manage updates to translations
Download all attachments as: .zip