Commit 531430c6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

use dgettext() instead of gettext() and try to obtain the translation

2005-06-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.c: use dgettext() instead of
	gettext() and try to obtain the translation domain from the type.
	Fixes i18n of tooltips on property widgets (bug #307756).

	* libgimpconfig/gimpcolorconfig.c: set a translation domain.
parent 1197ce72
2005-06-26 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppropwidgets.c: use dgettext() instead of
gettext() and try to obtain the translation domain from the type.
Fixes i18n of tooltips on property widgets (bug #307756).
* libgimpconfig/gimpcolorconfig.c: set a translation domain.
2005-06-26 Sven Neumann <sven@gimp.org>
* modules/cdisplay_lcms.c: added tooltips with more information on
......
......@@ -132,6 +132,9 @@ gimp_color_config_get_type (void)
g_type_add_interface_static (config_type,
GIMP_TYPE_CONFIG, &config_iface_info);
gimp_type_set_translation_domain (config_type,
GETTEXT_PACKAGE "-libgimp");
}
return config_type;
......
......@@ -1144,7 +1144,8 @@ gimp_prop_scale_entry_new (GObject *config,
param_spec, &value, &lower, &upper, G_STRFUNC))
return NULL;
tooltip = gettext (g_param_spec_get_blurb (param_spec));
tooltip = dgettext (gimp_type_get_translation_domain (G_OBJECT_TYPE (config)),
g_param_spec_get_blurb (param_spec));
if (! restrict_scale)
{
......@@ -1225,7 +1226,8 @@ gimp_prop_opacity_entry_new (GObject *config,
g_object_get (config, property_name, &value, NULL);
tooltip = gettext (g_param_spec_get_blurb (param_spec));
tooltip = dgettext (gimp_type_get_translation_domain (G_OBJECT_TYPE (config)),
g_param_spec_get_blurb (param_spec));
value *= 100.0;
lower = G_PARAM_SPEC_DOUBLE (param_spec)->minimum * 100.0;
......@@ -3511,7 +3513,12 @@ set_param_spec (GObject *object,
const gchar *blurb = g_param_spec_get_blurb (param_spec);
if (blurb)
gimp_help_set_help_data (widget, gettext (blurb), NULL);
{
const gchar *domain;
domain = gimp_type_get_translation_domain (param_spec->owner_type);
gimp_help_set_help_data (widget, dgettext (domain, blurb), NULL);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment