diff options
| author | J Ross Nicoll <[email protected]> | 2015-09-07 18:44:59 +0100 |
|---|---|---|
| committer | J Ross Nicoll <[email protected]> | 2015-09-08 22:07:34 +0100 |
| commit | 8cc0d8165fbc2eef1f11206152f90334bbbf44bb (patch) | |
| tree | 21da25fe25d0591c7ecdbfb4f64275c0d1f304e6 /src/qt/bitcoin.cpp | |
| parent | qt: use QChar(0x03BC) for mu symbol (diff) | |
| download | archived-discoin-1.10-beta-2.tar.xz archived-discoin-1.10-beta-2.zip | |
qt: Replace thin spaces with locale-specific number formattingv1.10-beta-2
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 7887a31b6..adfcf3eb1 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -121,6 +121,9 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans // 1) System default language QString lang_territory = GetLangTerritory(); + // Set default locale for amount and date formatting according to the selected language + QLocale::setDefault(QLocale(lang_territory)); + // Convert to "de" only by truncating "_DE" QString lang = lang_territory; lang.truncate(lang_territory.lastIndexOf('_')); |