[Spice-commits] src/spice-option.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 18 07:43:42 UTC 2019
src/spice-option.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 2a5d68ed32ff82344e0dfa040b00ccacbccf1275
Author: Jakub Janků <jjanku at redhat.com>
Date: Thu Apr 18 00:16:48 2019 +0200
spice-option: translate entries
Translation strings for spice options are already present
in the respective PO files.
g_option_group_set_translation_domain() call needs to be made,
so that the strings marked with N_() actually get translated at runtime.
Signed-off-by: Jakub Janků <jjanku at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/src/spice-option.c b/src/spice-option.c
index 7df093d..c2b059e 100644
--- a/src/spice-option.c
+++ b/src/spice-option.c
@@ -207,6 +207,7 @@ GOptionGroup* spice_get_option_group(void)
grp = g_option_group_new("spice", _("Spice Options:"), _("Show Spice Options"), NULL, NULL);
g_option_group_add_entries(grp, entries);
+ g_option_group_set_translation_domain(grp, GETTEXT_PACKAGE);
return grp;
}
More information about the Spice-commits
mailing list