5 | | However, translation to other languages is highly appreciated - please contact the Localization team for advice. |
6 | | |
7 | | == Web2py localization engine == |
8 | | * T() function performs dictionary lookups (similar to GNU/gettext _()), see [http://mdp.cti.depaul.edu/examples/global/vars/T here] for example |
9 | | * the dictionaries are located in the languages subfolder of the application |
10 | | * dictionaries can be translated using the web2py web interface (RAD mode) |
11 | | * suggest increasing the timeout from the default 10 minutes: {{{python web2py.py --timeout=120 ...}}} |
| 5 | Production Options are defined within DeveloperGuidelinesInternationalisation |
13 | | * Date fields: http://groups.google.com/group/web2py/msg/4a42f83c0989fedd |
14 | | |
15 | | * To select a language via UI (instead of browser options): http://groups.google.com/group/web2py/browse_thread/thread/dda7575120864104 |
16 | | |
17 | | * NB We still need a Right-to-Left UI solution |
18 | | |
19 | | == Pootle/translate toolkit and web2py dictionaries == |
20 | | * [http://translate.sahana.lk "Sahana Pootle server"] as online facility for collaboration, translation refinement and workflow control |
21 | | * web2py translation dictionaries can be converted into PO files and vice versa, e.g. using: |
22 | | * [http://pub.nursix.org/translate/web2py2po.tar.gz "web2py2po"] scripts (part of the [http://translate.sourceforge.net/wiki/toolkit/py2web2po "Translate Toolkit"]) |
23 | | |
24 | | == Wiki pages translation == |
25 | | * translated pages with ISO 639-2 language code extension (original english page = no extension), e.g. |
26 | | * '''original page:''' trac.sahanapy.org/wiki/BluePrintInternationalisation |
27 | | * '''german translation:''' trac.sahanapy.org/wiki/BluePrintInternationalisation'''/de''' |
28 | | |
29 | | * insert ![[TranslatedPages]] macro to display a list of available translations of a page (at best at bottom of page) |
| 7 | == Right-to-Left UI == |
| 8 | This should be possible with a new CSS file, as has been done with SahanaPHP |