Re: [PATCH spice-gtk] spice-option: translate entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> 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@xxxxxxxxxx>

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

> ---
>  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;
>  }

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]