I have add the following
setenv("LANG", "ar", TRUE);
setenv ("LANGUAGE", "ar", TRUE);
The program is in english , and Ar.po exist on po folder
But the language didn't change even if I restart the program 10 times
> Date: Mon, 1 Aug 2011 19:05:49 +0200
> Subject: Re: How I can change the translation from the program?
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>
> 2011/8/1 MysteriousMan . <[email protected]>:
> >
> > Hi there
> >
> > I have done translate my program for two languages (EN , AR) .
> > And I have add button to switch between those languages
> > How I can implement this ? (change the language from the program)
>
> In Inkscape this is done by storing a preference in a file, and on the
> next start of the program the setting from the preferences is used to
> set the LANGUAGE environmental variable before any calls to gettext
> are made:
>
> setenv("LANGUAGE", ui_lang, TRUE);
>
> Regards, Krzysztof
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list