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

Re: [virt-tools-list] [PATCH 2/2] Don't attempt to translate ""



ack, will push your patches.

On Sun, Mar 4, 2012 at 9:00 PM, Christophe Fergeau <cfergeau redhat com> wrote:
> The empty string has a magic meaning for gettext, it's used to
> store a translation header with all kind of information about the
> po file. This is not something we want to use as a window title, so
> change to _("") to "" when we want an empty string.
> ---
>  src/virt-viewer-window.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
> index 708678a..e2f5425 100644
> --- a/src/virt-viewer-window.c
> +++ b/src/virt-viewer-window.c
> @@ -896,9 +896,9 @@ virt_viewer_window_update_title(VirtViewerWindow *self)
>          */
>         title = g_strdup_printf(_("%s%s%s - %s"),
>                                 /* translators: <ungrab empty> */
> -                                ungrab ? ungrab : _(""),
> +                                ungrab ? ungrab : "",
>                                 /* translators: <space> */
> -                                ungrab && priv->subtitle ? _(" ") : _(""),
> +                                ungrab && priv->subtitle ? _(" ") : "",
>                                 priv->subtitle,
>                                 g_get_application_name());
>
> --
> 1.7.7.6
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list redhat com
> https://www.redhat.com/mailman/listinfo/virt-tools-list



-- 
Marc-André Lureau


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