On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote:
> Since it compiled with gcc-4.1.2 I tried to find my other -translation-
> problem first. After -all day- compiling with different configurations,
> a few minutes ago I found the reason! (Why it is always the last one you
> look for?)
>
> loc = wx.wxLocale(wx.wxLANGUAGE_TURKISH)
>
> print(loc:GetString("&About")) --not translated
> print(loc:GetString("&About", "wxstd")) --translated
>
> print(wx.wxGetTranslation("&About")) --not translated
> print(wx.wxGetTranslation("&About", "wxstd")) --translated
>
>
> Do you know a quick solution? :)
You're doing better than I... why doesn't this work at all? Note, I
just added the Init() function so I could get the return value, which
is false, but it seemed to have set it anyway, but then doesn't
translate it...
========= code =============
wx.wxLocale.AddCatalogLookupPathPrefix("c:\\labenski\\wx\\wxWidgets\\wxWidgets-2.8.4\\locale\\")
print(wx.wxLocale.IsAvailable(wx.wxLANGUAGE_TURKISH))
loc = wx.wxLocale()
print(loc:Init(wx.wxLANGUAGE_TURKISH))
print(loc:IsOk())
print(loc:GetSysName())
print(loc:GetLanguage(), wx.wxLANGUAGE_TURKISH)
print(loc:GetString("&About")) --not translated
print(loc:GetString("&About", "wxstd")) --translated
print(wx.wxGetTranslation("&About")) --not translated
print(wx.wxGetTranslation("&About", "wxstd")) --translated
========= output =============
true
false
true
Turkish_Turkey.1254
210 210
&About
&About
&About
&About
================
There is something called wxstd.po that is loaded by default if you
use this wxLocale constructor, see wxWidgets/include/wx/intl.h
wxLocale(const wxChar *szName, //
name (for messages)
const wxChar *szShort = (const wxChar *) NULL, //
dir prefix (for msg files)
const wxChar *szLocale = (const wxChar *) NULL, //
locale (for setlocale)
bool bLoadDefault = true, //
preload wxstd.mo?
bool bConvertEncoding = false) //
convert Win<->Unix if necessary?
Dunno,
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