Re: gettext



On Tuesday 21 February 2006 10:57, Volosatov Alexander wrote:
> Sorry, this is not by gtkmm, but maybe somebody help.
> I use gettext for i18n.
>
> 1. how i can change language of program while
> program is running?
> 2. Program language != local lang.
> and local lang == progr. lang only when i do:
> bind_textdomain_codeset("default", "ru_RU");
> Why?

You question 2 is not intelligible, but in answer to question 1 you would 
normally set the locale programmatically with setlocale().  gettext will use 
the locale so set.  (Note that LANGUAGE has highest priority, then LC_ALL, 
and lastly LANG.)

Chris




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