bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Bug#162699: gettext: support for extracting translations from differ


From: Bruno Haible
Subject: Re: Bug#162699: gettext: support for extracting translations from different languages would be nice (fwd)
Date: Mon, 30 Sep 2002 15:17:49 +0200 (CEST)

Andrew Suffield <address@hidden> writes:

> [Where else can stuff like this go? There don't seem to be *any*
> mailing lists for gettext]

You can write to bug-gnu-gettext at gnu.org.

> I have a need to acquire the translations of messages from multiple
> different locales. One approach to this is to call setlocale() or
> setenv() a lot... but this is unnecessarily inconvinient, especially
> when you don't want to disturb the current locale (so you have to
> query it, store, change, gettext(), and restore the locale).

That's the right way to do.

Starting with glibc 2.3 there will be a thread-safe way to do the same
thing: 'uselocale()' is used to change the locale of the current
thread only.

> Plus, setlocale() and setenv() have undesireable side-effects.

You don't need setenv if you pass the locale name as argument to
setlocale().

> All that is needed
> (for my purposes) is an extension to the API, adding a new function
> (plus associated wrappers) that can take a direct parameter for
> categoryvalue instead of calling guess_category_value().

This won't work - gettext() also needs access to the LC_CTYPE facet of
the locale.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]