Re: gtkmm-list Digest, Vol 62, Issue 12



gtkmm-list-request gnome org a écrit :
Send gtkmm-list mailing list submissions to
	gtkmm-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.gnome.org/mailman/listinfo/gtkmm-list
or, via email, send a message with subject or body 'help' to
	gtkmm-list-request gnome org

You can reach the person managing the list at
	gtkmm-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtkmm-list digest..."


Today's Topics:

   1. Force english locale on Win32 (???? ????????)
   2. Re: Force english locale on Win32 (Alexander Shaduri)
   3. Re[2]: Force english locale on Win32 (???? ????????)


----------------------------------------------------------------------

Message: 1
Date: Sun, 07 Jun 2009 14:10:47 +0400
From: ???? ???????? <kitovyj mail ru>
Subject: Force english locale on Win32
To: gtkmm-list gnome org
Message-ID: <E1MDFKx-0007UA-00 kitovyj-mail-ru f222 mail ru>
Content-Type: text/plain; charset=koi8-r

Hi All.

I use gtkmm for my GUI app on Win32 XP platform. Native locale for my system is russian. Problem is I cant force gtkmm to speak english! I have searched various forums, but nothing helps. I tried to sel locale at program startup using these functions:

putenv("LANG=en_US.UTF8");
putenv("LANGUAGE=en_US"); putenv("LC_ALL=en_US");
setlocale(LC_ALL, "C");

But gtkmm still print russian text on the standard dialog buttons etcetera.
Please help to force english locale to gtkmm.
Regards,
Alex Ivanenko














------------------------------

Message: 2
Date: Sun, 7 Jun 2009 14:29:40 +0400
From: Alexander Shaduri <ashaduri gmail com>
Subject: Re: Force english locale on Win32
To: ???? ???????? <kitovyj mail ru>
Cc: gtkmm-list gnome org
Message-ID: <20090607142940 7980cdd1 linux localdomain>
Content-Type: text/plain; charset=UTF-8

On Sun, 07 Jun 2009 14:10:47 +0400
???? ???????? <kitovyj mail ru> wrote:

I use gtkmm for my GUI app on Win32 XP platform. Native locale for my system is russian. Problem is I cant force gtkmm to speak english! I have searched various forums, but nothing helps. I tried to sel locale at program startup using these functions:

putenv("LANG=en_US.UTF8");
putenv("LANGUAGE=en_US"); putenv("LC_ALL=en_US");
setlocale(LC_ALL, "C");

But gtkmm still print russian text on the standard dialog buttons etcetera.
Please help to force english locale to gtkmm.

Try passing false as a set_locale parameter to Gtk::Main(), see
http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Main.html

AFAIK, the LANG variables don't have any effect in win32.

Alexander


------------------------------

Message: 3
Date: Sun, 07 Jun 2009 14:39:06 +0400
From: ???? ???????? <kitovyj mail ru>
Subject: Re[2]: Force english locale on Win32
To: gtkmm-list gnome org
Message-ID: <E1MDFmM-0003yF-00 kitovyj-mail-ru f238 mail ru>
Content-Type: text/plain; charset=koi8-r

Try passing false as a set_locale parameter to Gtk::Main(),

It does not help... :(
Hi Alex,

The solution I found for Win32 is the following:
Glib::setenv("LANGUAGE", m_locale, true);
Glib::setenv("LANG", m_locale, true);
Glib::setenv("LC_ALL", m_locale, true);
Glib::setenv("LC_MESSAGES", m_locale, true);
where std::string m_locale is the locale.

See all details in method
Sudokukimm::reinit_window()
in my project Sudokuki, in this file:
src/gtkmm/sudokukimm.cc

Websites:
https://sourceforge.net/project/platformdownload.php?group_id=180199&sel_platform=16804
http://sudokuki.sourceforge.net/

Hope this helps.
Sylvain.



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