Don't modify strings returned from gettext().

2005-06-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
	Don't modify strings returned from gettext().
This commit is contained in:
Matthias Clasen
2005-06-11 02:27:19 +00:00
committed by Matthias Clasen
parent 5a01db227e
commit fb023e8c09
4 changed files with 22 additions and 2 deletions

View File

@ -597,12 +597,17 @@ _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *klass,
else
{
gchar msg[128];
gchar *str;
strcpy (msg, "keyboard label|");
g_strlcat (msg, tmp, 128);
tmp = g_strip_context (msg, dgettext (GETTEXT_PACKAGE, msg));
substitute_underscores (tmp);
str = dgettext (GETTEXT_PACKAGE, msg);
if (str == msg)
substitute_underscores (tmp);
else
tmp = str;
}
g_string_append (gstring, tmp);
}