Home | Trees | Indices | Help |
|
---|
|
This module stores information and functionality that relates to plurals.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Unicode |
|
||
|
|||
|
|||
|
|
|||
languages =
Dictionary of language data. |
|||
_fixed_names =
|
|||
expansion_factors =
Source to target string length expansion factors. |
|||
iso639 =
ISO 639 language codes |
|||
iso3166 =
ISO 3166 country codes |
|||
langcode_re = re.compile(r'^
|
|||
variant_re = re.compile(r'^
|
|||
dialect_name_re = re.compile(r'
|
Imports: unicodedata, StringElem, gettext, locale, re, os
|
This attempts to simplify the given language code by ignoring country codes, for example. |
Identify and replace some unsightly names present in iso-codes. If the name is present in _fixed_names we assume it is untranslated and we replace it with a more usable rendering. |
Return a unicode string in its normalized form
|
Ensures that the string is in unicode.
|
|
languagesDictionary of language data. The language code is the dictionary key (which may contain country codes and modifiers). The value is a tuple: (Full name in English from iso-codes, nplurals, plural equation). Note that the English names should not be used in user facing places - it should always be passed through the function returned from tr_lang(), or at least passed through _fix_language_name().
|
_fixed_names
|
expansion_factorsSource to target string length expansion factors.
|
langcode_re
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Mar 3 16:35:55 2010 | http://epydoc.sourceforge.net |