473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

wxPython i18n question

Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?

Thanks in advance for any hints!

--
mailto: logan@phreaker(NoSpam).net

Jul 18 '05 #1
4 1937
Logan <lo***@phreaker.nospam> writes:
Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?


That should certainly be possible. In standard wxPython builds, you
are restricted to characters of the "host" encoding (I'm not sure what
that encoding is). There are separate "Unicode" builds of wxPython,
where you can use Unicode strings throughout.

Regards,
Martin
Jul 18 '05 #2
Logan <lo***@phreaker.nospam> pisze:
Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?


Yes, look at article on i18n at wxPython Wiki.

--
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zg***@chrome.pl http://zgoda.jogger.pl/
Jul 18 '05 #3
On Mon, 24 Nov 2003 22:51:14 +0000, Jarek Zgoda wrote:
Logan <lo***@phreaker.nospam> pisze:
Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?


Yes, look at article on i18n at wxPython Wiki.


You mean to use GNU gettext? I thought, this will only provide
i18n for the parts of the application which I wrote myself (e.g.
buttons, menus), but *not* for predefined wxPython widgets like
file dialogs etc. !?

--
mailto: logan@phreaker(NoSpam).net

Jul 18 '05 #4
Logan <lo***@phreaker.nospam> pisze:
Is it possible to tell the wxPython widgets (e.g. file dialogs)
to use another language (instead of English)?


Yes, look at article on i18n at wxPython Wiki.


You mean to use GNU gettext? I thought, this will only provide
i18n for the parts of the application which I wrote myself (e.g.
buttons, menus), but *not* for predefined wxPython widgets like
file dialogs etc. !?


You should not only set usual locale by locale.setlocale() call, but
also use wxLocale. Check wxWindows documentation on wxLocale.

--
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zg***@chrome.pl http://zgoda.jogger.pl/
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: j_mckitrick | last post by:
Just thought I'd play devil's advocate... I tried wxPython briefly, and it had some nice features. It has a huge list of dependencies. I don't like the fonts (but I'd love to know how to get...
15
by: Grant Edwards | last post by:
Can anybody recommend a good book on wxPython? Are there any books on wxPython? I've been trying to learn wxPython and/or wax for a few weeks, and I'm just not getting it. wxWindows seems...
10
by: Albretch | last post by:
.. Can you define the Character Set for particular tables instead of databases? . Which DBMSs would let you do that? . How do you store in a DBMS i18n'ed users' from input, coming over the web...
0
by: Laszlo Zsolt Nagy | last post by:
Hello, I wonder if there is a standard for making i18n in Python projects. I have several Python projects that are internationalized. I also have Python packages with i18n. But it is still not...
3
by: fyleow | last post by:
I just spent hours trying to figure out why even after I set my SQL table attributes to UTF-8 only garbage kept adding into the database. Apparently you need to execute "SET NAMES 'utf8'" before...
6
by: d.lidell | last post by:
Hi, I recently started coding with Python and I've been trying for the past hour or so to determine why, every time I "import wx" (or compile another piece of code that imports wx), Python can...
2
by: Norman Diamond | last post by:
My C# code is I18N'ed by appropriately naming and editing .resx files. At execution time, it works. My C++ code is somewhat I18N'ed. When I put UI code in C++ I use .rc files. When I link to a...
1
by: Steven W. Orr | last post by:
python-2.3.5 wx-2.6 I just bought the wxPython In Action book and I see that all the examples say to import wx All of our pre-existing code was horribly doing a from wxPython import * I...
0
by: gooli | last post by:
The best thing I've found until now is XRCed. It has it's quirks and pitfalls, but it fits the bill. Personally I prefer the previous version (the one that comes with wxPython 2.8.6) and don't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.