AppStream.Translation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Translation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Translation
.
- get_kind()¶
- Returns:
an enum of type
AppStream.TranslationKind
- Return type:
The translation system type.
- get_source_locale()¶
- Returns:
The locale of the source strings for this component.
- Return type:
The locale of the source strings for this component. If this has not been explicitly specified,
en_US
will be returned.New in version 0.14.6.
- set_id(id)¶
- Parameters:
id (
str
) – The ID of this translation.
Set the ID (e.g. Gettext domain) of this translation.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.TranslationKind
) – the newAppStream.TranslationKind
Set the translation system type.
- set_source_locale(locale)¶
- Parameters:
locale (
str
orNone
) – The POSIX locale that the source strings are in, orNone
if unknown or default.
Set the locale of the source strings for this component. In gettext, this is referred to as the
C
locale. It’s almost alwaysen_US
, but for some components it may not be.New in version 0.14.6.