Hello,
I'm working on a german computer and use wxdatetime to get the month name.
The problem is I
wxdatetime and monthame language Topic is solved
All my application messages are in english since some colleages are from UK and US. For the german ones I set in OnInit() a translation catalog
You mean I could temporarily set the locale to english ?
I wouldn like to recall all the code above after that ... isnt there a possibility to set the locale just and only for the wxdatetime ?
Code: Select all
...
int syslang = wxLocale::GetSystemLanguage();
switch ( syslang )
{
case wxLANGUAGE_GERMAN:
m_locale.Init(wxLANGUAGE_GERMAN);
m_locale.AddCatalog(wxT("de_catalog.mo"));
break;
default:
;
}
...
You mean I could temporarily set the locale to english ?
I wouldn like to recall all the code above after that ... isnt there a possibility to set the locale just and only for the wxdatetime ?
well ... I solved the problem now with
Code: Select all
...
monthname=dt.GetMonthName(dt.GetCurrentMonth());
monthname.Replace("Januar","January");
monthname.Replace("Februar","February");
monthname.Replace("M