Top |
Modulemd.TranslationEntryModulemd.TranslationEntry — Contains the translated strings for a particular module stream. |
ModulemdTranslationEntry *
modulemd_translation_entry_new (const gchar *locale
);
locale |
The locale for this translation. It must correspond to the format specified by libc locale names. |
[transfer none][not nullable] |
Since: 1.6
ModulemdTranslationEntry *
modulemd_translation_entry_copy (ModulemdTranslationEntry *self
);
Since: 1.6
void modulemd_translation_entry_set_locale (ModulemdTranslationEntry *self
,const gchar *locale
);
This function sets the locale for this translation. It must correspond to the format specified by libc locale names.
Since: 1.6
gchar *
modulemd_translation_entry_get_locale (ModulemdTranslationEntry *self
);
Get the locale of this entry.
A string describing the locale of this entry,
corresponding to libc locale names.
This string must be freed with g_free()
.
Since: 1.6
const gchar *
modulemd_translation_entry_peek_locale
(ModulemdTranslationEntry *self
);
Peek at the locale of this entry.
[skip]
A string describing the locale of this entry, corresponding to libc locale names. This string must not be modified or freed.
Since: 1.6
void modulemd_translation_entry_set_summary (ModulemdTranslationEntry *self
,const gchar *summary
);
This function sets the translation of the summary of this module.
Since: 1.6
gchar *
modulemd_translation_entry_get_summary
(ModulemdTranslationEntry *self
);
Get the summary of this entry.
A translation of the summary of the module
appropriate to the locale. This string must be freed with g_free()
.
Since: 1.6
const gchar *
modulemd_translation_entry_peek_summary
(ModulemdTranslationEntry *self
);
Peek at the summary of this entry.
[skip]
A translation of the summary of the module appropriate to the locale. This string must not be modified or freed.
Since: 1.6
void modulemd_translation_entry_set_description (ModulemdTranslationEntry *self
,const gchar *description
);
This function sets the translation of the description of this module.
Since: 1.6
gchar *
modulemd_translation_entry_get_description
(ModulemdTranslationEntry *self
);
Get the description of this entry.
A translation of the module description,
appropriate to the locale. This string must be freed with g_free()
.
Since: 1.6
const gchar *
modulemd_translation_entry_peek_description
(ModulemdTranslationEntry *self
);
Peek at the description of this entry.
[skip]
A translation of the module description, appropriate to the locale. This string must not be modified or freed.
Since: 1.6
void modulemd_translation_entry_set_profile_description (ModulemdTranslationEntry *self
,const gchar *profile_name
,const gchar *profile_description
);
profile_name |
The name of the stream profile. |
[transfer none][not nullable] |
profile_description |
A translation of the profile description appropriate to the locale. If set to NULL, this will remove the profile description from this ModulemdTranslationEntry. |
[transfer none][nullable] |
Since: 1.6
gchar * modulemd_translation_entry_get_profile_description (ModulemdTranslationEntry *self
,const gchar *profile_name
);
The translated description of the requested
profile. This string must be freed with g_free()
.
Since: 1.6
const gchar * modulemd_translation_entry_peek_profile_description (ModulemdTranslationEntry *self
,const gchar *profile_name
);
[skip]
The translated description of the requested profile. This string must not be modified or freed.
Since: 1.6
GHashTable *
modulemd_translation_entry_get_all_profile_descriptions
(ModulemdTranslationEntry *self
);
The complete set of
profile descriptions, indexed by profile name. This must be freed with
g_hash_table_unref()
.
[transfer container][element-type utf8 utf8]
Since: 1.6