Display date in locale format
Add GetLocale(), GetDateFormat() and FormatDate()
This commit is contained in:
@@ -147,6 +147,7 @@ bool wxUI::SetLanguage(QString language)
|
||||
}
|
||||
|
||||
_language = SupportedLanguages::languages[i].language;
|
||||
_curLanguage = SupportedLanguages::languages[i];
|
||||
|
||||
_locale = new QLocale(SupportedLanguages::languages[i].language);
|
||||
QLocale::setDefault(*_locale);
|
||||
@@ -331,3 +332,8 @@ void wxUI::NeedReload()
|
||||
{
|
||||
_needReload = true;
|
||||
}
|
||||
|
||||
QString wxUI::GetDateFormat()
|
||||
{
|
||||
return _curLanguage.dateFormat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user