Gspell.Language¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gspell.Language¶
- classmethod get_available()¶
- Returns:
the list of available languages, sorted with
Gspell.Language.compare
().- Return type:
- classmethod get_default()¶
- Returns:
the default
Gspell.Language
, orNone
if no dictionaries are available.- Return type:
Finds the best available language based on the current locale.
- classmethod lookup(language_code)¶
- Parameters:
language_code (
str
) – a language code.- Returns:
a
Gspell.Language
corresponding to language_code, orNone
if not found.- Return type:
- compare(language_b)¶
- Parameters:
language_b (
Gspell.Language
) – anotherGspell.Language
.- Returns:
an integer less than, equal to, or greater than zero, if self is <, == or > than language_b.
- Return type:
Compares alphabetically two languages by their name, as returned by
Gspell.Language.get_name
().
- copy()¶
- Returns:
a copy of lang.
- Return type:
Used by language bindings.
- free()¶
Used by language bindings.