From: Francesco M. <f18...@ya...> - 2008-12-12 16:27:26
|
Hi Frans, Frans Schreuder ha scritto: > You have changed all the menu items lixe "&New" and "&Open" into > wxID_NEW etcetera. Yes, since those IDs correspond to 'stock items' wxWidgets will automatically choose the correct native accelerator, label, etc. >I guess they should be translated by the system, but > they are not... Do you have any idea how to make them translate > themselves? Do I need to install special locales for wxWidgets or > something? Yes, exactly. wxWidgets has its own locales in wxWidgets/locale and there are all stock item labels translated in lots of languages... AFAIK the wx translations should get loaded automatically... I'll look why they aren't. Btw how do you test locales != english? I rememeber I managed to do it in one of my past projects but now if I try: frm@ubuntu:~/work/usbpicprog/upp_wx$ export LANG=nl_NL frm@ubuntu:~/work/usbpicprog/upp_wx$ src/usbpicprog I get: (process:10965): Gdk-WARNING **: locale not supported by C library (usbpicprog:10965): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. [Debug] 17:26:38: ../src/common/intl.cpp(2576): assert "IsOk()" failed in AddCatalog(): must initialize catalog first Trace/breakpoint trap Francesco -- |