Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 2 and Version 3 of Internationalization


Ignore:
Timestamp:
11/17/05 07:47:14 (9 years ago)
Author:
dan.jacob@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Internationalization

    v2 v3  
    11=== To internationalize your application, you have to make sure of the following steps: === 
    22 
    3 * That you mark your text strings using the _() function. 
    4 * That you have create message catalogs in the right directory structure for all your text strings and supported languages. 
    5 * That any date or number strings are formatted using the turbogears.i18n formatting functions. 
     31 That you mark your text strings using the _() function. 
     4 
     52 That you have create message catalogs in the right directory structure for all your text strings and supported languages. 
     6 
     73 That any date or number strings are formatted using the turbogears.i18n formatting functions. 
    68 
    79'''1. Mark your text strings with _()''' 
     
    5254            LC_MESSAGES/ 
    5355                messages.po 
     56 
    5457                messages.mo 
    5558        de/ 
    5659            LC_MESSAGES/ 
    5760                messages.po 
     61 
    5862                messages.mo 
    5963 
     
    7680The default locale function, _get_locale, can be overriden by your own locale using the config setting "i18n.getLocale". This default function finds the locale setting in the following order: 
    7781 
    78 * By looking for a session value. By default this is "locale", but can be changed in the config setting "i18n.sessionKey". 
    79 * By looking in the HTTP Accept-Language header for the most preferred language. 
    80 * By using the default locale (config setting "i18n.defaultLocale", by default "en"). 
     821 By looking for a session value. By default this is "locale", but can be changed in the config setting "i18n.sessionKey". 
     83 
     842 By looking in the HTTP Accept-Language header for the most preferred language. 
     85 
     863 By using the default locale (config setting "i18n.defaultLocale", by default "en"). 
    8187 
    8288