gapplication: Make sure --help output is translated
authorChristophe Fergeau <cfergeau@redhat.com>
Wed, 3 Jun 2015 09:30:43 +0000 (11:30 +0200)
committerChristophe Fergeau <cfergeau@redhat.com>
Tue, 9 Jun 2015 11:47:41 +0000 (13:47 +0200)
commitf45ceb838dae8f96b9bf646998a26a954a6fbf3d
treea682ba4d658e21193f5fff7eec4e540ba2634c40
parent6cd1f8b40ff66509eedfce9c3c46cbef799a7ffe
gapplication: Make sure --help output is translated

Currently, applications using g_application_add_main_option_entries()
won't get translated entries in --help output. We need to call
g_option_group_set_translation_domain() with a NULL domain to ensure that the
default application gettext domain (ie the one passed to the
textdomain() call) will be used for the main entries passed by the
application.

If we want to allow more flexibility on which gettext domain should be
used for these entries, new API will be needed.

https://bugzilla.gnome.org/show_bug.cgi?id=750322
gio/gapplication.c