Date picker l10n for profile and planner

- set application-wide locale from preferences
- use custom date format for display

Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sergey Starosek 2014-07-16 20:35:22 +04:00 committed by Dirk Hohndel
parent 0dd40b7a51
commit 14cc59898a
4 changed files with 9 additions and 0 deletions

View file

@ -108,6 +108,11 @@ QLocale getLocale()
return loc;
}
QString getDateFormat()
{
return dateFormat;
}
void init_ui(void)
{
// tell Qt to use system proxies
@ -135,6 +140,7 @@ void init_ui(void)
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
QLocale loc;
QString uiLang = uiLanguage(&loc);
QLocale::setDefault(loc);
// we don't have translations for English - if we don't check for this
// Qt will proceed to load the second language in preference order - not what we want