Top | ![]() |
![]() |
![]() |
![]() |
Modulemd.TranslationEntryModulemd.TranslationEntry — Contains the translated strings of a module stream for a specific locale. |
char * | description | Read / Write |
char * | locale | Read / Write / Construct Only |
char * | summary | Read / Write |
ModulemdTranslationEntry *
modulemd_translation_entry_new (const gchar *locale
);
locale |
The locale for this translation entry. It must correspond to the format specified by libc locale names. |
[not nullable] |
A newly-allocated ModulemdTranslationEntry
object. This object must be freed with g_object_unref()
.
[transfer full]
Since: 2.0
ModulemdTranslationEntry *
modulemd_translation_entry_copy (ModulemdTranslationEntry *self
);
Create a copy of this ModulemdTranslationEntry object.
Since: 2.0
const gchar *
modulemd_translation_entry_get_locale (ModulemdTranslationEntry *self
);
Get the locale of this translation entry.
The locale of this translation entry. This is a pointer to the internal memory location and must not be freed.
[transfer none]
Since: 2.0
void modulemd_translation_entry_set_summary (ModulemdTranslationEntry *self
,const gchar *summary
);
self |
This ModulemdTranslationEntry object. |
|
summary |
The summary of this module translated appropriately for this locale. |
[nullable] |
Since: 2.0
const gchar *
modulemd_translation_entry_get_summary
(ModulemdTranslationEntry *self
);
Get the summary of this translation entry.
The summary of this module stream translated into the language specified by locale.
[transfer none]
Since: 2.0
void modulemd_translation_entry_set_description (ModulemdTranslationEntry *self
,const char *description
);
self |
This ModulemdTranslationEntry object. |
|
description |
The description of this module stream translated into the language specified by locale. |
[nullable] |
Since: 2.0
const gchar *
modulemd_translation_entry_get_description
(ModulemdTranslationEntry *self
);
Get the description of this translation entry.
The description of this module stream translated into the language specified by locale.
[transfer none]
Since: 2.0
GStrv
modulemd_translation_entry_get_profiles_as_strv
(ModulemdTranslationEntry *self
);
Get a list of profiles that have descriptions.
[rename-to modulemd_translation_entry_get_profiles]
An ordered GStrv list of profiles for which descriptions have been translated for this locale.
[transfer full]
Since: 2.0
void modulemd_translation_entry_set_profile_description (ModulemdTranslationEntry *self
,const gchar *profile_name
,const gchar *profile_description
);
Adds a profile name translation.
self |
This ModulemdTranslationEntry object. |
|
profile_name |
The name of the profile. |
|
profile_description |
The translated description of the profile. |
[nullable] |
Since: 2.0
const gchar * modulemd_translation_entry_get_profile_description (ModulemdTranslationEntry *self
,const gchar *profile_name
);
“description”
property “description” char *
The description of this module stream translated into the language specified by locale.
Owner: ModulemdTranslationEntry
Flags: Read / Write
Default value: "__LOCALE_UNSET__"
“locale”
property “locale” char *
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.
Owner: ModulemdTranslationEntry
Flags: Read / Write / Construct Only
Default value: "__LOCALE_UNSET__"