mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0dd40b7a51
commit
14cc59898a
4 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue