|
From: Frans S. <fra...@gm...> - 2008-12-12 16:33:02
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:494...@ya..." type="cite">
<pre wrap="">Hi Frans,
Frans Schreuder ha scritto:
</pre>
<blockquote type="cite">
<pre wrap="">You have changed all the menu items lixe "&New" and "&Open" into
wxID_NEW etcetera.
</pre>
</blockquote>
<pre wrap=""><!---->Yes, since those IDs correspond to 'stock items' wxWidgets will automatically
choose the correct native accelerator, label, etc.
</pre>
</blockquote>
Well, they are not... :( And also the one who has made the Arabic
version didn't see the translated string, neither did he in Windows.<br>
<blockquote cite="mid:494...@ya..." type="cite">
<pre wrap=""></pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap=""><!---->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.
</pre>
</blockquote>
At the moment we use strings like _("new") for the toolbar buttons, and
wxID_NEW with a wxEmtyString for the caption. I think I will just put
the strings in the formbuilder project, and we are done...<br>
<blockquote cite="mid:494...@ya..." type="cite">
<pre wrap="">
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
</pre>
</blockquote>
It's either <br>
$export LANG=nl_NL.UTF-8 <br>
or<br>
$LC_ALL=nl_NL.UTF-8 usbpicprog<br>
<br>
<br>
<blockquote cite="mid:494...@ya..." type="cite">
<pre wrap="">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
</pre>
</blockquote>
</body>
</html>
|