Re: [gnome-user-share] Don't use localized realm string when starting httpd



Hello Tomas,

Tomas Bzatek pushed:
> commit 1a2aff08c16c87fcae10563acd9485624a5e262d
> Author: Tomas Bzatek <tbzatek redhat com>
> Date:   Mon Feb 22 14:26:06 2010 +0100
> 
>     Don't use localized realm string when starting httpd
> 
>  src/http.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> ---
> diff --git a/src/http.c b/src/http.c
> index 367394a..3367d2a 100644
> --- a/src/http.c
> +++ b/src/http.c
> @@ -369,7 +369,7 @@ spawn_httpd (int port, pid_t *pid_out)
>  	free5 = env[i++] = g_strdup_printf ("XDG_PUBLICSHARE_DIR=%s", public_dir);
>  	free6 = env[i++] = g_strdup_printf ("XDG_CONFIG_HOME=%s", g_get_user_config_dir ());
>  	free7 = env[i++] = g_strdup_printf ("GUS_SHARE_NAME=%s", get_share_name ());
> -	free8 = env[i++] = g_strdup_printf ("GUS_LOGIN_LABEL=%s", _("Please log in as the user guest"));
> +	free8 = env[i++] = g_strdup_printf ("GUS_LOGIN_LABEL=%s", "Please log in as the user guest");
>  	free9 = env[i++] = g_strdup_printf ("HTTP_MODULES_PATH=%s",get_httpd_modules_path ());
>  	env[i++] = "LANG=C";
>  	env[i] = NULL;

Is there a technical reason why that string can't be translated ?

If so it may be useful to add a comment, to prevent future persons
looking at this code to bring back the gettext call.


Cheers,
        Frederic


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