Internationalization, converting Command Line Parser
Erdem U. Altinyurt
eua at dsl.ttnet.net.tr
Thu Jan 25 06:49:03 PST 2007
My strings are converted to my language.
GUI mode works with my locale strings but CLI.
bool DivFixppApp::OnInit(){
if ( !my_locale.Init(wxLANGUAGE_TURKISH, wxLOCALE_CONV_ENCODING) )
{
wxLogError(_T("This language is not supported by the system."));
return false;
}
wxLocale::AddCatalogLookupPathPrefix(_("."));
my_locale.AddCatalog(wxT("internat"));
if(argc!=1) //If there is an argument
if (!wxApp::OnInit())
return false;
SetVendorName(_T("Death Knight"));
SetAppName(_T("DivFix++"));
DivFixpp* frame = new DivFixpp( my_locale );
SetTopWindow(frame);
frame->Show(true);
return true;
}
Vadim Zeitlin wrote:
> On Thu, 25 Jan 2007 06:34:19 +0200 "Erdem U. Altinyurt" <eua at dsl.ttnet.net.tr> wrote:
>
> EUA> I am implemented my program to internationalization.
> EUA> But command line interface help strings not converted.
>
> Either you don't use wxWidgets catalog or the strings might not be
> translated in your language (please check locale/tr.po).
>
> EUA> and one more question. Is there any way to link .mo file to program?
>
> Currently it isn't. There was a patch allowing to load message catalogs
> from wxFileSystem (you should be able to find it in SF patch tracker) but
> it couldn't be applied because it broke loading them from files. If someone
> has time to correct this, it would be nice to add this possibility to wx.
>
> Regards,
> VZ
>
>
More information about the wx-users
mailing list