Top |
Modulemd.TranslationEntryModulemd.TranslationEntry — Contains the translated strings of a module stream for a specific locale. |
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. This
object must be freed with g_object_unref()
.
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.
Since: 2.0
void modulemd_translation_entry_set_summary (ModulemdTranslationEntry *self
,const gchar *summary
);
self |
||
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.
Since: 2.0
void modulemd_translation_entry_set_description (ModulemdTranslationEntry *self
,const char *description
);
self |
||
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.
Since: 2.0
gchar **
modulemd_translation_entry_get_profiles_as_strv
(ModulemdTranslationEntry *self
);
Get a list of profiles that have descriptions.
[rename-to modulemd_translation_entry_get_profiles]
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 ModuleTranslationEntry |
|
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
);