On 6/25/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> (xp,wx2.8.4,mingw)
>
> - Current cvs gives internal compiler error for wx_bind.cpp at line 493
> with gcc-3.4.5. It compiles with un-official gcc-4.1.2.

What is the code for this? I think the line numbers have changed as I
did some updates last night.

> - I'm trying to use wxLocale but didn't succeded. Is something like as
> following working for you?
>
> require"wx"
> loc = wx.wxLocale(wx.wxLANGUAGE_TURKISH)
> loc.AddCatalogLookupPathPrefix("f:/a_c/dsuye/locale")
> print("AddCatalog:", loc:AddCatalog("wxstd"))
> print("IsOk:", loc:IsOk())
> print("CanonicalName:", loc:GetCanonicalName())
> print("Locale:", loc:GetLocale())
> print("Translation:", loc:GetString("&About")) --not translated!

I haven't used wxLocale at all. I have seen messages on wx-users about
translating menu items and the use of &, (I don't remember the
outcome) did you try it without it?

There's also the problem that Lua is not unicode and uses only char*
not w_char* so wxLua always translates wxStrings (wxChars) back to
ANSI 8-bit char*. So, even if wxLocale sucessfully translates a string
it may get mangled when returned to Lua.

Please let me know if you get it work and if there is some simple test
that might be useful to add to samples/unittest.wx.lua.

Regards,
    John Labenski

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to