Changes between Version 22 and Version 23 of UserGuidelines/Localisation
- Timestamp:
- 12/19/10 19:27:08 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserGuidelines/Localisation
v22 v23 14 14 Sahana Eden can be translated in the following ways: 15 15 ==== A. Using Pootle ==== 16 ''Preferred'' 17 Convert to a .po file for use in Pootle: 16 ''Preferred method'' 17 18 [http://pootle.sahanafoundation.org Sahana Pootle Server] is available as on online tool for collaboration, translation refinement and workflow control. 19 * [UserGuidelinesLocalisationPootle Pootle User Guidelines] 20 21 Convert to a .po file for use in Pootle (or other PO file tools such as [http://translate.sourceforge.net/wiki/virtaal/index Virtaal]): 18 22 * "web2py2po" scripts (part of the [http://translate.sourceforge.net/wiki/toolkit/py2web2po "Translate Toolkit"]) 19 23 * Use 1.8.1+ (or this [http://eden.sahanafoundation.org/attachment/wiki/UserGuidelinesLocalisation/web2py2po.diff patch] for 1.8.0) 20 * [http://pootle.sahanafoundation.org Sahana Pootle Server] is available as on online tool for collaboration, translation refinement and workflow control. See the [UserGuidelinesLocalisationPootle Pootle User Guidelines] for instructions.21 24 22 25 For UTF-8, beware of the encoding - needs to be 'without BOM' or 'ANSI as UTF-8'.[[BR]] 23 26 - this is both within the {{{languages/}}} file & also with any UTF-8 direct in customised Views.[[BR]] 24 27 25 You can also use standard PO file tools such as [http://translate.sourceforge.net/wiki/virtaal/index Virtaal].[[BR]]26 27 28 {{{ 28 29 web2py2po -i zh-tw.py -o zh-tw.po 29 30 30 # Use Pootle &/or Virtaal to translate 31 # Use Pootle &/or Virtaal to translate, then: 31 32 32 33 po2web2py -i zh-tw.po -o zh-tw.py 33 34 }}} 34 35 36 NB The .py output looks wrong, with raw UTF-8 binary characters, however it works fine if you let Web2Py process it: 37 * copy into 'languages' folder 38 * run Eden with this language: http://127.0.0.1:8000/eden/default/index?_language=xx 35 39 ==== B. Using Auto-Translator ==== 36 40 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: