[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to mimic which language?
From: |
Joshua N Pritikin |
Subject: |
Re: how to mimic which language? |
Date: |
Tue, 19 Feb 2002 06:42:39 +0530 |
User-agent: |
Mutt/1.3.25i |
On Mon, Feb 18, 2002 at 05:44:55PM +0100, Bruno Haible wrote:
> 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.
OK
> 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.
i am using gettext for 90% of my messages. The other 10% need more
flexibility than gettext offers.
Thanks.
--
Victory to the Divine Mother!! after all,
http://sahajayoga.org http://why-compete.org