wxWidgets and internationalization

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
Stefan
Experienced Solver
Experienced Solver
Posts: 57
Joined: Mon Feb 28, 2005 10:17 pm

wxWidgets and internationalization

Post by Stefan » Fri Mar 04, 2005 4:33 pm

Is there a TODO on this topic?
I am working with wxWizard and the labels like next, back, etc. are hard coded in english. And the pointers to the buttons are private to derivation from wxWizard wouldn't help to change them. I have to change the wxWizard code itself (for german labels). Not a good way...
What do you think (maybe there is a work around)?

User avatar
Ryan Norton
Moderator
Moderator
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Re: wxWidgets and internationalization

Post by Ryan Norton » Fri Mar 04, 2005 10:13 pm

Stefan wrote:Is there a TODO on this topic?
I am working with wxWizard and the labels like next, back, etc. are hard coded in english. And the pointers to the buttons are private to derivation from wxWizard wouldn't help to change them. I have to change the wxWizard code itself (for german labels). Not a good way...
What do you think (maybe there is a work around)?
Not really a TODO - IIRC the way translations work is that you edit the .po files.

Anyway, just use _(s) instead of wxT(s) and it will translate the string to the locale you set if the string exists in the .po.

(Not 100% sure but I think that's how it works...)
[Mostly retired moderator, still check in to clean up some stuff]

Stefan
Experienced Solver
Experienced Solver
Posts: 57
Joined: Mon Feb 28, 2005 10:17 pm

Post by Stefan » Sat Mar 05, 2005 7:50 am

Hm, the .po's are looking pretty scary. And there are lots of them. Is there a source for further reading on this topic?

vdell
Moderator
Moderator
Posts: 536
Joined: Fri Jan 07, 2005 3:44 pm
Location: Finland
Contact:

Post by vdell » Sat Mar 05, 2005 9:28 am

You should probably take a look at poedit.
Visual C++ 9.0 / Windows XP Pro SP3 / wxWidgets 2.9.0 (SVN) | Colligere

Post Reply