The one thing i dont like about wxWidgets, is that i have to distribute .mo catalog files if i want my app in any language other than english, this might be normal in linux (i dunno anything about linux), but one of the few good things about msw is its resource system. To be honest, i nearly gave up on wxWidgets because of this (i need 1 .exe file only apps). So i came up with this solution, (needless to say, it only works for MSW) it requires you to ADD this code to the intl.h and intl.cpp files of you wxWidgets sources, and (yes, im affraid so) recompile the whole library. Idid this myself and everything compiles fine in VS.NET 2003, and my apps work fine.
THIS ASSUMES YOU ARE USING wxWidgets 2.62 for MSW!
Instructions:
1.- open the file intl.h under $(WXDIR)\include\wx, and add this code, BE CAREFULL TO ADD IT IN THE PROPER PLACE!
----- near the start where it sais global decls
Code: Select all
// ---------------------------------------------------------------------------
// wx_LANGCAT_RESOURCE_TYPE: type of resource
// wxLocale::AddCatalogFromRc() will look for in the apps module.
// if you use this feature, make shure you specify this type of
// resource for catalogs in your app
Hier Kommt die Sonne...