Re: gettext implementation for glib
- From: Vlad Harchev <hvv hippo ru>
- To: Alex Larsson <alexl redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: gettext implementation for glib
- Date: Sat, 4 Aug 2001 00:36:29 +0500 (SAMST)
On Fri, 3 Aug 2001, Alex Larsson wrote:
> On 3 Aug 2001, Owen Taylor wrote:
>
> > gtkrc.c has:
> >
> > #ifdef G_OS_WIN32
> > locale = g_win32_getlocale ();
> > #else
> > locale = setlocale (LC_CTYPE, NULL);
> > #endif
> >
> > and gtkimmulticontext.c has:
> >
> > #ifdef HAVE_LC_MESSAGES
> > locale = setlocale (LC_MESSAGES, NULL);
> > #else
> > locale = setlocale (LC_CTYPE, NULL);
> > #endif
> >
> > So we seem to have some missed opportunity for portability functions,
> > but you should be able to do something along these lines.
>
> Would you object to a g_get_locale() function?
If that function will be added - it should accept an argument telling the
"category" of locale programmer needs to know about - similar to LC_MESSAGES,
LC_DATE, LC_NUMERIC, LC_CTYPE - otherwise ability to set different locales
for differrent categories would be lost (and it's extremely useful!).
Best regards,
-Vlad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]