Hi,

John Labenski wrote:
> 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.
> 

wxLuaBindEvent* wxLuaGetEventList_wx(size_t &count)
{
     static wxLuaBindEvent eventList[] =
     {
         { "wxEVT_ACTIVATE", &wxEVT_ACTIVATE, 
&s_wxluatag_wxActivateEvent },
......
         { 0, 0, 0 },
     };                      //<--- DIES HERE!
     count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1;
     return eventList;
}



>> - 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?
> 

I choosed "&About" hoping there exists a translation everywhere :) Yes, 
I tried with other strings.

> 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.
> 

But, I have to get this mangled string, don't I?

> 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.
> 

Of course..


> Regards,
>     John Labenski
> 

--
Regards,
Hakki Dogusan

-------------------------------------------------------------------------
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