Changes between Version 13 and Version 14 of DeveloperGuidelines/Internationalisation
- Timestamp:
- 05/24/10 06:54:44 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Internationalisation
v13 v14 1 1 = Internationalisation = 2 The original language of the Sahana Eden user interface, source code labels and comments, and the Wiki pages is '''English (international)'''. No contributions can be accepted without being at least translated to english. If you need help to translate your contents to english, please contact the [http://translate.hfoss.eu /"Sahana Localization team"].2 The original language of the Sahana Eden user interface, source code labels and comments, and the Wiki pages is '''English (international)'''. No contributions can be accepted without being at least translated to english. If you need help to translate your contents to english, please contact the [http://translate.hfoss.eu "Sahana Localization team"]. 3 3 4 4 However, translation to other languages is highly appreciated - please contact the Localization team for advice. … … 14 14 All Labels should be explicitly Internationalised: 15 15 {{{ 16 db.table.field.label = T('Field')16 table.field.label = T("Field") 17 17 }}} 18 18 … … 21 21 {{{ 22 22 module_field_type_opts = { 23 1:T( 'Option1'),24 2:T( 'Option2'),25 3:T( 'Option3')23 1:T("Option1"), 24 2:T("Option2"), 25 3:T("Option3") 26 26 } 27 opt_module_field_type = SQLTable(None, 'opt_module_field_type',28 db.Field('field_type', 'integer', notnull=True,27 opt_module_field_type = SQLTable(None, "opt_module_field_type", 28 Field("field_type", "integer', notnull=True, 29 29 requires = IS_IN_SET(module_field_type_opts), 30 30 default = 1, 31 31 represent = lambda opt: opt and module_field_type_opts[opt])) 32 32 33 db.define_table(table,33 table = db.define_table(tablename, 34 34 opt_module_field_type, 35 35 ... … … 43 43 44 44 == Pootle/translate toolkit and web2py dictionaries == 45 * [http:// translate.sahana.lk"Sahana Pootle server"] as online facility for collaboration, translation refinement and workflow control45 * [http://pootle.hfoss.eu "Sahana Pootle server"] as online facility for collaboration, translation refinement and workflow control 46 46 * web2py translation dictionaries can be converted into PO files and vice versa, e.g. using: 47 47 * [http://pub.nursix.org/translate/web2py2po.tar.gz "web2py2po"] scripts (part of the [http://translate.sourceforge.net/wiki/toolkit/py2web2po "Translate Toolkit"]) … … 49 49 == Wiki pages translation == 50 50 * translated pages with ISO 639-2 language code extension (original english page = no extension), e.g. 51 * '''original page:''' trac.sahanapy.org/wiki/BluePrintInternationalisation52 * '''german translation:''' trac.sahanapy.org/wiki/BluePrintInternationalisation'''/de'''51 * '''original page:''' eden.sahanafoundation.org/wiki/BluePrintInternationalisation 52 * '''german translation:''' eden.sahanafoundation.org/wiki/BluePrintInternationalisation'''/de''' 53 53 54 54 * insert ![[TranslatedPages]] macro to display a list of available translations of a page (at best at bottom of page)