[gtk+/gtk-2-24] Set translation domain for parameter_string in gtk_init_with_args
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Set translation domain for parameter_string in gtk_init_with_args
- Date: Sun, 3 Sep 2017 13:46:47 +0000 (UTC)
commit c12dd8f0b9205e442e878659cccbd9b7d6df38ca
Author: Ingo Brückl <ib wupperonline de>
Date: Thu Jul 20 11:27:29 2017 +0200
Set translation domain for parameter_string in gtk_init_with_args
This was requested in bug 554926.
Backport of original commit e3bd926c1ef83027c756488ba19f4353930fc6db by
Gabor Kelemen, kelemeng at gnome dot hu, applied to GTK+ 2.90.5 on Tue,
10 Aug 2010 04:13:22 +0000 (UTC).
https://bugzilla.gnome.org/show_bug.cgi?id=785165
gtk/gtkmain.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 4fb791d..8c331a7 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -876,7 +876,7 @@ gtk_get_option_group (gboolean open_default_display)
* of #GOptionEntry<!-- -->s describing the options of your program
* @translation_domain: a translation domain to use for translating
* the <option>--help</option> output for the options in @entries
- * with gettext(), or %NULL
+ * and the @parameter_string with gettext(), or %NULL
* @error: a return location for errors
*
* This function does the same work as gtk_init_check().
@@ -915,6 +915,8 @@ gtk_init_with_args (int *argc,
context = g_option_context_new (parameter_string);
g_option_context_add_group (context, gtk_group);
+ g_option_context_set_translation_domain (context, translation_domain);
+
if (entries)
g_option_context_add_main_entries (context, entries, translation_domain);
retval = g_option_context_parse (context, argc, argv, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]