cldr — Unicode Common Locale Data Repository for Python¶
Module author: Martin v. Löwis <martin@v.loewis.de>
The cldr module supplies classes for localizing data. The focus of the
implementation is on efficient extraction of the iCLDR XML file for output
formatting and manipulation. For related functionality, see also the
datetime module.
The cldr module exports the following LDML base classes:
- class cldr.Alias¶
XXX child of YYY element
the class has the following attributes:
speciala list of
Specialaltstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.pathstring
sourcestring
- class cldr.Any¶
XXX child of YYY element
- class cldr.Cp¶
XXX child of YYY element
the class has the following attributes:
speciala list of
Specialhexstring
- class cldr.Default¶
XXX child of YYY element
the class has the following attributes:
speciala list of
Specialaltstring
choicestring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.referencesstring
typestring
- class cldr.Empty¶
XXX child of YYY element
- class cldr.Fallback¶
XXX child of YYY element
the class has the following attributes:
altstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.referencesstring
- class cldr.Generation¶
XXX child of YYY element
the class has the following attributes:
datee.g.
'$Date: 2012-10-15 11:02:42 -0700 (Mon, 15 Oct 2012) $'
- class cldr.Identity¶
- class cldr.LDMLBase¶
XXX child of YYY element
- class cldr.Language¶
XXX child of YYY element
the class has the following attributes:
altstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.referencesstring
typeBCP 47 subtag values marked as type language, e.g.
'en'(English) or'gmh'(Middle High German)
- class cldr.Languages¶
- class cldr.LocaleDisplayNames¶
XXX child of YYY element
the class has the following attributes:
codePatternsan instance of
Codepatternskeysan instance of
Keyslanguagesan instance of
LanguageslocaleDisplayPatternan instance of
LocaledisplaypatternmeasurementSystemNamesan instance of
Measurementsystemnamesscriptsan instance of
Scriptsspeciala list of
Specialterritoriesan instance of
TerritoriestransformNamesan instance of
Transformnamestypesan instance of
Typesvariantsan instance of
VariantsdraftOne of the values
'approved','contributed','provisional','unconfirmed'.
- class cldr.LocaleDisplayPattern¶
XXX child of YYY element
the class has the following attributes:
localeKeyTypePatterna list of
LocalekeytypepatternlocalePatterna list of
LocalepatternlocaleSeparatora list of
Localeseparatorspeciala list of
Specialaltstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.referencestring
- class cldr.Numbers¶
XXX child of YYY element
the class has the following attributes:
currenciesan instance of
CurrenciescurrencyFormatsdictionary of
Currencyformats, keyed bynumberSystem=decimalFormatsdictionary of
Decimalformats, keyed bynumberSystem=defaultNumberingSystema list of
DefaultnumberingsystemotherNumberingSystemsa list of
OthernumberingsystemspercentFormatsdictionary of
Percentformats, keyed bynumberSystem=scientificFormatsdictionary of
Scientificformats, keyed bynumberSystem=speciala list of
Specialsymbolsdictionary of
Symbols, keyed bynumberSystem=
- class cldr.PCDATA¶
XXX child of YYY element
- class cldr.PresumedEmpty¶
XXX child of YYY element
- class cldr.Script¶
XXX child of YYY element
the class has the following attributes:
altstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.referencesstring
typeBCP 47 subtag values marked as type script, e.g. Arab (Arabic) or Cyrl (Cyrillic)
- class cldr.Special¶
XXX child of YYY element
- class cldr.Symbols¶
XXX child of YYY element
the class has the following attributes:
currencyDecimalan instance of
CurrencydecimalcurrencyGroupan instance of
Currencygroupdecimalan instance of
Decimalexponentialan instance of
Exponentialgroupan instance of
Groupinfinityan instance of
Infinitylistan instance of
ListminusSignan instance of
Minussignnanan instance of
NannativeZeroDigitan instance of
NativezerodigitpatternDigitan instance of
PatterndigitperMillean instance of
PermillepercentSignan instance of
PercentsignplusSignan instance of
Plussignspeciala list of
Specialaltstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.numberSystemstring
referencesstring
standardstring
validSubLocalesstring
- class cldr.Territories¶
- class cldr.Territory¶
XXX child of YYY element
the class has the following attributes:
altstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.referencesstring
typea BCP 47 subtag value of type region, e.g. GB or DE
- class cldr.Variant¶
XXX child of YYY element
the class has the following attributes:
altstring
draftOne of the values
'approved','contributed','provisional','unconfirmed'.referencesstring
typea BCP 47 subtag of type variant, e.g.
'1901'(Traditional German Orthography)
- class cldr.Version¶
XXX child of YYY element
the class has the following attributes:
cldrVersionstring
numbere.g.
'$Revision: 7847 $'