AppStreamGlib.Translation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStreamGlib.Translation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod kind_from_string(kind)[source]¶
- Parameters:
kind (
str
) – the string.- Returns:
a
AppStreamGlib.TranslationKind
, orAppStreamGlib.TranslationKind.UNKNOWN
for unknown.- Return type:
Converts the text representation to an enumerated value.
New in version 0.5.8.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.TranslationKind
) – theAppStreamGlib.TranslationKind
.- Returns:
string version of kind
- Return type:
Converts the enumerated value to an text representation.
New in version 0.5.8.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Translation
.New in version 0.5.8.
- get_id()[source]¶
- Returns:
ID, e.g. “foobar-1.0.2”
- Return type:
Gets the ID for this translation.
New in version 0.5.8.
- set_id(id)[source]¶
- Parameters:
id (
str
) – the URL.
Sets the ID for this translation.
New in version 0.5.8.
- set_kind(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.TranslationKind
) – theAppStreamGlib.TranslationKind
, e.g. %AS_TRANSLATION_KIND_THUMBNAIL.
Sets the translation kind.
New in version 0.5.8.