[email protected] a écrit :
Send gtkmm-list mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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: ???? ???????? <[email protected]>
Subject: Force english locale on Win32
To: [email protected]
Message-ID: <[email protected]>
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 <[email protected]>
Subject: Re: Force english locale on Win32
To: ???? ???????? <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
On Sun, 07 Jun 2009 14:10:47 +0400
???? ???????? <[email protected]> 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: ???? ???????? <[email protected]>
Subject: Re[2]: Force english locale on Win32
To: [email protected]
Message-ID: <[email protected]>
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.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list