| Top |
| const gchar * | as_translation_kind_to_string () |
| AsTranslationKind | as_translation_kind_from_string () |
| AsTranslation * | as_translation_new () |
| AsTranslationKind | as_translation_get_kind () |
| void | as_translation_set_kind () |
| const gchar * | as_translation_get_id () |
| void | as_translation_set_id () |
| const gchar * | as_translation_get_source_locale () |
| void | as_translation_set_source_locale () |
| #define | AS_TYPE_TRANSLATION |
| struct | AsTranslationClass |
| enum | AsTranslationKind |
| AsTranslation |
Describes the translation domain and translation system used by the upstream component. See the specification for more information on the corresponding XML tag.
See also: AsComponent
const gchar *
as_translation_kind_to_string (AsTranslationKind kind);
Converts the enumerated value to a text representation.
AsTranslationKind
as_translation_kind_from_string (const gchar *kind_str);
Converts the text representation to an enumerated value.
AsTranslationKind
as_translation_get_kind (AsTranslation *tr);
The translation system type.
void as_translation_set_kind (AsTranslation *tr,AsTranslationKind kind);
Set the translation system type.
const gchar *
as_translation_get_id (AsTranslation *tr);
The ID (e.g. Gettext translation domain) of this translation.
void as_translation_set_id (AsTranslation *tr,const gchar *id);
Set the ID (e.g. Gettext domain) of this translation.
const gchar *
as_translation_get_source_locale (AsTranslation *tr);
The locale of the source strings for this component. If this has not been
explicitly specified, en_US will be returned.
Since: 0.14.6
void as_translation_set_source_locale (AsTranslation *tr,const gchar *locale);
Set the locale of the source strings for this component. In gettext, this is
referred to as the C locale. It’s almost always en_US, but for some
components it may not be.
tr |
a AsTranslation instance. |
|
locale |
The POSIX locale that the source strings are in, or |
[nullable] |
Since: 0.14.6