Re: gettext implementation for glib



Hi,

Alex Larsson <alexl redhat com> writes:

> +static const char *
> +get_locale (void)
> +{
> +  const char *locale;
> +  
> +  locale = g_getenv ("LANG");
> +  if (locale)
> +    return locale;
> +
> +  return "en_US";
             ^^^^^ 
I'm not sure, but shouldn't that return "C" ?!

I'd also very much welcome a gettext implementation that allows
an application to unbind textdomains. Gimp for example binds 
to a number of plug-in textdomains only to set up its menus and
it would be nice if we could unbind them after the creation of
the menu structure.


Salut, Sven




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