Modulemd.TranslationEntry¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The description of this module stream translated into the language specified by locale. |
||
r/w/co |
The locale for this translation entry. It must correspond to the format specified by libc locale names. This field may only be set on object construction and is immutable afterwards. |
||
r/w |
The summary of this module stream translated into the language specified by locale. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Modulemd.TranslationEntry(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(locale)¶
- Parameters:
locale (
str
) – The locale for this translation entry. It must correspond to the format specified by libc locale names.- Returns:
A newly-allocated
Modulemd.TranslationEntry
object. This object must be freed withGObject.Object.unref
().- Return type:
New in version 2.0.
- copy()¶
- Returns:
The copied
Modulemd.TranslationEntry
object.- Return type:
Create a copy of this
Modulemd.TranslationEntry
object.New in version 2.0.
- get_description()¶
- Returns:
The description of this module stream translated into the language specified by locale.
- Return type:
Get the description of this translation entry.
New in version 2.0.
- get_locale()¶
- Returns:
The locale of this translation entry. This is a pointer to the internal memory location and must not be freed.
- Return type:
Get the locale of this translation entry.
New in version 2.0.
- get_profiles()¶
- Returns:
An ordered #GStrv list of profiles for which descriptions have been translated for this locale.
- Return type:
[
str
]
Get a list of profiles that have descriptions.
New in version 2.0.
- get_summary()¶
- Returns:
The summary of this module stream translated into the language specified by locale.
- Return type:
Get the summary of this translation entry.
New in version 2.0.
- set_description(description)¶
- Parameters:
description (
str
orNone
) – The description of this module stream translated into the language specified by locale.
New in version 2.0.
- set_profile_description(profile_name, profile_description)¶
- Parameters:
Adds a profile name translation.
New in version 2.0.
Property Details¶
- Modulemd.TranslationEntry.props.description¶
-
The description of this module stream translated into the language specified by locale.
- Modulemd.TranslationEntry.props.locale¶
- Name:
locale
- Type:
- Default Value:
'__LOCALE_UNSET__'
- Flags:
The locale for this translation entry. It must correspond to the format specified by libc locale names. This field may only be set on object construction and is immutable afterwards.