[Spice-devel] [PATCH spice-gtk] spice-option: translate entries
Frediano Ziglio
fziglio at redhat.com
Thu Apr 18 07:43:23 UTC 2019
>
> 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>
> ---
> src/spice-option.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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-devel
mailing list