wxTranslations::FindCatalog =>
Why do we have this function as private member?
I do want to avoid wxTranslations::FindCatalog call every time during
wxTranslations::GetTranslatedString.
wxTranslations::FindCatalog -> does iteration through all the catalogs
(~100 language files).
Expected (my specific) usage:
wxTranslationsImpl *trans = wxTranslations::Get();
m_pMsgCat = trans->FindCatalog("my_domain")
do call only once during every dll or app initialization.
and during translation just simply do call:
wxString MyGetTranslatedStringFunc(origString, n)
return pMsgCat ->GetString(origString, n);
with out all the wxTranslations::GetTranslatedString logic.
How to retrieve the wxMsgCatalog object by the domain name?
Tomas
|