summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-02-23 22:25:11 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-02-23 22:25:11 -0500
commit913e10fe3bc62685933c082f1eaeb3a72a1d6f39 (patch)
tree744f41076eaaf51300d2a49d0a30925074f8d6fa
parentb0b38c106deaa77d7bcbd4ecb7de6b41c07a9d22 (diff)
downloadgtk+-913e10fe3bc62685933c082f1eaeb3a72a1d6f39.tar.gz
Fix the previous commit
The C_() macro only takes string literals. Use g_dpgettext2() instead
-rw-r--r--gtk/gtkimmulticontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c
index 6422abe6fa..5ffb7e9223 100644
--- a/gtk/gtkimmulticontext.c
+++ b/gtk/gtkimmulticontext.c
@@ -634,7 +634,7 @@ gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context,
* GTK+. Input method may have a name in the GTK+
* message catalog.
*/
- translated_name = C_("input method menu", contexts[i]->context_name);
+ translated_name = g_dpgettext2 (GETTEXT_PACKAGE, "input method menu", contexts[i]->context_name);
}
else
{
@@ -646,7 +646,7 @@ gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context,
g_warning ("Input method %s should not use GTK's translation domain %s",
contexts[i]->context_id, GETTEXT_PACKAGE);
/* Try translating the name in GTK+'s domain */
- translated_name = _(contexts[i]->context_name);
+ translated_name = g_dpgettext2 (GETTEXT_PACKAGE, "input method menu", contexts[i]->context_name);
}
}
else if (contexts[i]->domain_dirname && contexts[i]->domain_dirname[0])