[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to mimic which language?
From: |
Joshua N Pritikin |
Subject: |
how to mimic which language? |
Date: |
Sat, 16 Feb 2002 10:33:11 +0530 |
User-agent: |
Mutt/1.3.25i |
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?
g_warning ("locale=%s", setlocale (LC_MESSAGES, NULL));
This returns only "locale=en_US.utf8", ignoring the GNU extension "LANGUAGE".
Is
there another library call to iterate through the possible locales from most
specific to most general? Or do i need to cut & paste the logic from
dcigettext.c?
--
Victory to the Divine Mother!! after all,
http://sahajayoga.org http://why-compete.org
- how to mimic which language?,
Joshua N Pritikin <=