diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-06-21 13:40:45 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-06-21 13:40:45 +0200 |
commit | 8927bb8f063e88546fd9cf2ce595902d2ea63bb6 (patch) | |
tree | e51c801b65e6e9ac44e76e31736040da659f58ec /src/qt | |
parent | ad73447dc2bd04120c4eb7f5757613ad35a35cf5 (diff) | |
download | bitcoin-8927bb8f063e88546fd9cf2ce595902d2ea63bb6.tar.xz |
refactor: Fix style in `initTranslations()` function
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoin.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 654fb5bc4f..4fea1c1f12 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -145,20 +145,24 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans const QString translation_path{QLibraryInfo::path(QLibraryInfo::TranslationsPath)}; #endif // Load e.g. qt_de.qm - if (qtTranslatorBase.load("qt_" + lang, translation_path)) + if (qtTranslatorBase.load("qt_" + lang, translation_path)) { QApplication::installTranslator(&qtTranslatorBase); + } // Load e.g. qt_de_DE.qm - if (qtTranslator.load("qt_" + lang_territory, translation_path)) + if (qtTranslator.load("qt_" + lang_territory, translation_path)) { QApplication::installTranslator(&qtTranslator); + } // Load e.g. bitcoin_de.qm (shortcut "de" needs to be defined in bitcoin.qrc) - if (translatorBase.load(lang, ":/translations/")) + if (translatorBase.load(lang, ":/translations/")) { QApplication::installTranslator(&translatorBase); + } // Load e.g. bitcoin_de_DE.qm (shortcut "de_DE" needs to be defined in bitcoin.qrc) - if (translator.load(lang_territory, ":/translations/")) + if (translator.load(lang_territory, ":/translations/")) { QApplication::installTranslator(&translator); + } } static bool InitSettings() |