Part of lp.services.worlddata.interfaces.language View In Hierarchy
Known implementations: canonical.launchpad.tests.test_helpers.DummyLanguageSet, lp.services.worlddata.model.language.LanguageSet
The standard get method will return only the visible languages. If you want to access all languages known to Launchpad, use the getAllLanguages method.
Method | getAllLanguages | Return a result set of all ILanguages from Launchpad. |
Method | getDefaultLanguages | An API wrapper for common_languages |
Attribute | common_languages | An iterator over languages that are not hidden. |
Method | __iter__ | Returns an iterator over all languages. |
Method | __getitem__ | Return the language with the given code. |
Method | get | Return the language with the given id. |
Method | getLanguageByCode | Return the language with the given code or None. |
Method | keys | Return an iterator over the language codes. |
Method | canonicalise_language_code | Convert a language code to standard xx_YY form. |
Method | codes_to_languages | Convert a list of ISO language codes to language objects. |
Method | createLanguage | Return a new created language. |
Method | search | Return a result set of ILanguage that match the search. |
If there is no language with the give code, raise NotFoundError exception.
Unrecognised language codes are ignored.
Parameters | code | ISO 639 language code. |
englishname | English name for the new language. | |
nativename | Native language name. | |
pluralforms | Number of plural forms. | |
pluralexpression | Plural form expression. | |
visible | Whether this language should be showed by default. | |
direction | Text direction, either 'left to right' or 'right to left'. |