That´s exactly what I am tallking about all the time. I need to find where it is done.ONEEYEMAN wrote:Hi,
Can you do that or you have trouble finding where it is being done?
Thank you.
Internationalisation Topic is solved
-
- Filthy Rich wx Solver
- Posts: 201
- Joined: Wed Mar 29, 2017 9:52 am
Re: Internationalisation
-
- Part Of The Furniture
- Posts: 7481
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
Re: Internationalisation
Hi,
Run the samplpe thru the debugger and see where it is initialized.
Thank you.
Run the samplpe thru the debugger and see where it is initialized.
Thank you.
-
- Filthy Rich wx Solver
- Posts: 201
- Joined: Wed Mar 29, 2017 9:52 am
Re: Internationalisation
Sory, but this makes everything even more complicated, have no idea about that debugger stuff. I din´t even have the debug version ofwxWidgets.ONEEYEMAN wrote:Hi,
Run the samplpe thru the debugger and see where it is initialized.
Thank you.
-
- Part Of The Furniture
- Posts: 7481
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
Re: Internationalisation
Hi,
This is a complete failure on your side.
Especially if you just starting - always start with the debug build.
Now you will have to waste extra time and create a debug build of the library.
Thank you.
This is a complete failure on your side.
Especially if you just starting - always start with the debug build.
Now you will have to waste extra time and create a debug build of the library.
Thank you.
-
- Filthy Rich wx Solver
- Posts: 201
- Joined: Wed Mar 29, 2017 9:52 am
Re: Internationalisation
Not going to create that debug stuff, as it´s complete useles for me. It´s easier to write my own translation frameworck, then that anoing and complicated debug stuff.ONEEYEMAN wrote:Hi,
This is a complete failure on your side.
Especially if you just starting - always start with the debug build.
Now you will have to waste extra time and create a debug build of the library.
Thank you.
I know, that writing own translation frameworck is really not easy, but wanted to show the complexity of that debug stuff.
-
- Part Of The Furniture
- Posts: 7481
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
Re: Internationalisation
Hi,
Out of curiosity - is you program build in Debug or Release mode?
Thank you.
Out of curiosity - is you program build in Debug or Release mode?
Thank you.
-
- Filthy Rich wx Solver
- Posts: 201
- Joined: Wed Mar 29, 2017 9:52 am
Re: Internationalisation
Release, what else. Always using Release only.ONEEYEMAN wrote:Hi,
Out of curiosity - is you program build in Debug or Release mode?
Thank you.
-
- Filthy Rich wx Solver
- Posts: 201
- Joined: Wed Mar 29, 2017 9:52 am
Re: Internationalisation
After hours of reading documentation and triing diferent stuff, looks like I finaly solve the problem:
lng is the int value of the language. This code I use at the begining of MyApp::OnInit().
Code: Select all
wxTranslations *t=new wxTranslations();
t->SetLanguage(lng);
wxLocale::AddCatalogLookupPathPrefix(".");
t->AddCatalog("translations");
wxTranslations::Set(t);