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

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

Re: how to mimic which language?


From: Bruno Haible
Subject: Re: how to mimic which language?
Date: Mon, 18 Feb 2002 17:44:55 +0100 (CET)

Joshua N Pritikin writes:
> i need to do some translation lookups outside of gettext.  Even so, i want to
> preserve the configuration mechanism as much as possible.  For example:
> 
>   LC_ALL=en_US.utf8 LANGUAGE=mr ./redael
> 
> In this case, en_US.utf8 is the locale but text is rendered in Marathi (mr)
> if available.  Is there a library call to mimic this logic?

Not directly. It's probably best if you copy the function
guess_category_value from dcigettext.c.

Another possibility is to use gettext() instead of bypassing it. This
way, your translators can use the fancy tools (KBabel, Emacs po-mode,
...) to localize your program.

Bruno



reply via email to

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