Changes between Version 8 and Version 9 of DeveloperGuidelines/Internationalisation
- Timestamp:
- 08/07/09 18:37:11 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Internationalisation
v8 v9 5 5 6 6 == Web2py localization engine == 7 * T() function performs dictionary lookups (similar to GNU/gettext _()), see [http:// mdp.cti.depaul.edu/examples/global/vars/T here] for example7 * T() function performs dictionary lookups (similar to GNU/gettext _()), see [http://web2py.com/examples/global/vars/T here] for example 8 8 * the dictionaries are located in the languages subfolder of the application 9 9 * dictionaries can be translated using the web2py web interface (RAD mode) 10 10 * suggest increasing the timeout from the default 10 minutes: {{{python web2py.py --timeout=120 ...}}} 11 12 All Labels should be explicitly Internationalised: 13 {{{ 14 db.table.field.label = T('Field') 15 }}} 16 11 17 12 18 To make dropdown options localisable, use this pattern: