Hi,
It seems, that wxLocale does not search in standart message catalogs on Linux.
Fragment of my code:
default_locale = locale.getdefaultlocale()[0]
L = wxLocale()
L.Init(default_locale, bConvertEncoding=true)
res = L.AddCatalog('wxmm')
_ = wxGetTranslation
can't find wxmm.mo in /usr/share/locale/<lang>/LC_MESSAGES/, but it is there.
Even if I say
L.Init('ru', bConvertEncoding=true)
and wxmm.mo is in /usr/share/locale/ru/LC_MESSAGES/
result is the same, i.e. 'res' is FALSE
code that works is:
default_locale = locale.getdefaultlocale()[0]
language_definition = default_locale[:2]
L = wxLocale()
L.Init(default_locale, bConvertEncoding=true)
wxLocale_AddCatalogLookupPathPrefix('/usr/share/locale/' + language_definition)
L.AddCatalog('wxmm')
_ = wxGetTranslation
but I want to know where is my mistake if it presents and why it can't find *.mo files as explaned above (first fragment)?
Thanks,
Aleksej Kolga