[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tell gettext that LANG has changed
Is there an official and portable way of telling gettext that LANG may
have changed?
I just added a setenv command to mutt so that I can change LANG while
it's running. It seems that this works, except where the argument to
gettext is a literal.
The cunning macro optimisation in libintl.h does seem to flush the
cache when you change to a new language, but you continue getting the
previous translation if you change back to a language you used
earlier, apparently. (Perhaps this is a bug; I don't know.)
(bindtextdomain (PACKAGE, LOCALEDIR), textdomain (PACKAGE)) seems not
to help.
Edmund
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/