Problem with translation

This forum is reserved for everything you want to talk about. It could be about programming, opinions, open source programs, development in general, or just cool stuff to share!
Post Reply
drone
In need of some credit
In need of some credit
Posts: 4
Joined: Sat Oct 04, 2008 10:06 pm

Problem with translation

Post by drone »

Hey. I have a problem.
I need to translate text in common dialogs.
For example, wxTextEntryDialog.
Button "Cancel" must be translated to my language.
I see \wxWidgets-2.8.7\samples\internat\gcc_mswu.
My own strings translated ok.
But text on buttons on wxTextEntryDialog - no =((

Help me please.
Tnx.


P.S. I need translate to russian.
wxWidgets-2.8.7\locale\ru.po is.
User avatar
T-Rex
Moderator
Moderator
Posts: 1248
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

There is $(WXWIN)/locale where you can find PO-files for different languages. You have to link ru.po to your message catalog and then all string constants declared in wxWidgets's source code will be translated. You can also read http://wxwidgets.info/wxTranslation. Maybe it will simplify your task.
drone
In need of some credit
In need of some credit
Posts: 4
Joined: Sat Oct 04, 2008 10:06 pm

Post by drone »

T-Rex wrote: You have to link ru.po to your message catalog and then all string constants declared in wxWidgets's source code will be translated.
Sorry, but i do not understand how to do it =/
I can translate my strings, but not wxWidgets internal strings.
I learn source file in $(wxwin)/samples and ur link.
Please tale me, how to do it in detail.
Sorry, i'm newbie in wx yet.

Tnx.
User avatar
T-Rex
Moderator
Moderator
Posts: 1248
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

I can translate my strings, but not wxWidgets internal strings.
I understand.
You can take a look at wxLocale::AddCatalog and open both your .mo file and that .mo file which you create from $(WXWIN)/locale/ru.po

If you speak Russian then we could talk via ICQ: 173365784
Post Reply