gimpbasetypes

gimpbasetypes —

Synopsis




void        gimp_type_set_translation_domain
                                            (GType type,
                                             const gchar *domain);
const gchar* gimp_type_get_translation_domain
                                            (GType type);

Description

Details

gimp_type_set_translation_domain ()

void        gimp_type_set_translation_domain
                                            (GType type,
                                             const gchar *domain);

This function attaches a constant string as a gettext translation domain identifier to a GType. The only purpose of this function is to use it when registering a GTypeEnum with translatable value names.

type : a GType
domain : a constant string that identifies a translation domain or NULL

Since GIMP 2.2


gimp_type_get_translation_domain ()

const gchar* gimp_type_get_translation_domain
                                            (GType type);

Retrieves the gettext translation domain identifier that has been previously set using gimp_type_set_translation_domain(). You should not need to use this function directly, use gimp_enum_get_value() or gimp_enum_value_get_name() instead.

type : a GType
Returns : the translation domain associated with type or NULL if no domain was set

Since GIMP 2.2