Changes between Version 13 and Version 14 of DeveloperGuidelines/Internationalisation


Ignore:
Timestamp:
05/24/10 06:54:44 (14 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Internationalisation

    v13 v14  
    11= 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"].
     2The 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"].
    33
    44However, translation to other languages is highly appreciated - please contact the Localization team for advice.
     
    1414All Labels should be explicitly Internationalised:
    1515{{{
    16 db.table.field.label = T('Field')
     16table.field.label = T("Field")
    1717}}}
    1818
     
    2121{{{
    2222module_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")
    2626    }
    27 opt_module_field_type = SQLTable(None, 'opt_module_field_type',
    28                     db.Field('field_type', 'integer', notnull=True,
     27opt_module_field_type = SQLTable(None, "opt_module_field_type",
     28                    Field("field_type", "integer', notnull=True,
    2929                    requires = IS_IN_SET(module_field_type_opts),
    3030                    default = 1,
    3131                    represent = lambda opt: opt and module_field_type_opts[opt]))
    3232
    33 db.define_table(table,
     33table = db.define_table(tablename,
    3434               opt_module_field_type,
    3535               ...
     
    4343
    4444== Pootle/translate toolkit and web2py dictionaries ==
    45  * [http://translate.sahana.lk "Sahana Pootle server"] as online facility for collaboration, translation refinement and workflow control
     45 * [http://pootle.hfoss.eu "Sahana Pootle server"] as online facility for collaboration, translation refinement and workflow control
    4646 * web2py translation dictionaries can be converted into PO files and vice versa, e.g. using:
    4747   * [http://pub.nursix.org/translate/web2py2po.tar.gz "web2py2po"] scripts (part of the [http://translate.sourceforge.net/wiki/toolkit/py2web2po "Translate Toolkit"])
     
    4949== Wiki pages translation ==
    5050 * translated pages with ISO 639-2 language code extension (original english page = no extension), e.g.
    51    * '''original page:''' trac.sahanapy.org/wiki/BluePrintInternationalisation
    52    * '''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'''
    5353
    5454 * insert ![[TranslatedPages]] macro to display a list of available translations of a page (at best at bottom of page)