cldr — Unicode Common Locale Data Repository for Python

Autor des Moduls: 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:

    special

    a list of Special

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    path

    string

    source

    string

class cldr.Any
  • XXX child of YYY element
class cldr.Cp
  • XXX child of YYY element

  • the class has the following attributes:

    special

    a list of Special

    hex

    string

class cldr.Default
  • XXX child of YYY element

  • the class has the following attributes:

    special

    a list of Special

    alt

    string

    choice

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

    type

    string

class cldr.Empty
  • XXX child of YYY element
class cldr.Fallback
  • XXX child of YYY element

  • the class has the following attributes:

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

class cldr.Generation
  • XXX child of YYY element

  • the class has the following attributes:

    date

    e.g. '$Date: 2012-10-15 11:02:42 -0700 (Mon, 15 Oct 2012) $'

class cldr.Identity
  • XXX child of YYY element

  • the class has the following attributes:

    generation

    an instance of Generation

    language

    an instance of Language

    script

    an instance of Script

    special

    a list of Special

    territory

    an instance of Territory

    variant

    an instance of Variant

    version

    an instance of Version

class cldr.LDMLBase
  • XXX child of YYY element
class cldr.Language
  • XXX child of YYY element

  • the class has the following attributes:

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

    type

    BCP 47 subtag values marked as type language, e.g. 'en' (English) or 'gmh' (Middle High German)

class cldr.Languages
  • XXX child of YYY element

  • the class has the following attributes:

    language

    dictionary of Language, keyed by type=

    special

    a list of Special

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

    standard

    string

    validSublocales

    string

class cldr.LocaleDisplayNames
  • XXX child of YYY element

  • the class has the following attributes:

    codePatterns

    an instance of Codepatterns

    keys

    an instance of Keys

    languages

    an instance of Languages

    localeDisplayPattern

    an instance of Localedisplaypattern

    measurementSystemNames

    an instance of Measurementsystemnames

    scripts

    an instance of Scripts

    special

    a list of Special

    territories

    an instance of Territories

    transformNames

    an instance of Transformnames

    types

    an instance of Types

    variants

    an instance of Variants

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

class cldr.LocaleDisplayPattern
  • XXX child of YYY element

  • the class has the following attributes:

    localeKeyTypePattern

    a list of Localekeytypepattern

    localePattern

    a list of Localepattern

    localeSeparator

    a list of Localeseparator

    special

    a list of Special

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    reference

    string

class cldr.Numbers
  • XXX child of YYY element

  • the class has the following attributes:

    currencies

    an instance of Currencies

    currencyFormats

    dictionary of Currencyformats, keyed by numberSystem=

    decimalFormats

    dictionary of Decimalformats, keyed by numberSystem=

    defaultNumberingSystem

    a list of Defaultnumberingsystem

    otherNumberingSystems

    a list of Othernumberingsystems

    percentFormats

    dictionary of Percentformats, keyed by numberSystem=

    scientificFormats

    dictionary of Scientificformats, keyed by numberSystem=

    special

    a list of Special

    symbols

    dictionary of Symbols, keyed by numberSystem=

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:

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

    type

    BCP 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:

    currencyDecimal

    an instance of Currencydecimal

    currencyGroup

    an instance of Currencygroup

    decimal

    an instance of Decimal

    exponential

    an instance of Exponential

    group

    an instance of Group

    infinity

    an instance of Infinity

    list

    an instance of List

    minusSign

    an instance of Minussign

    nan

    an instance of Nan

    nativeZeroDigit

    an instance of Nativezerodigit

    patternDigit

    an instance of Patterndigit

    perMille

    an instance of Permille

    percentSign

    an instance of Percentsign

    plusSign

    an instance of Plussign

    special

    a list of Special

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    numberSystem

    string

    references

    string

    standard

    string

    validSubLocales

    string

class cldr.Territories
  • XXX child of YYY element

  • the class has the following attributes:

    special

    a list of Special

    territory

    dictionary of Territory, keyed by type=

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

    standard

    string

    validSublocales

    string

class cldr.Territory
  • XXX child of YYY element

  • the class has the following attributes:

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

    type

    a 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:

    alt

    string

    draft

    One of the values 'approved', 'contributed', 'provisional', 'unconfirmed'.

    references

    string

    type

    a 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:

    cldrVersion

    string

    number

    e.g. '$Revision: 7847 $'