mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
refactor: Fix style in initTranslations()
function
This commit is contained in:
parent
ad73447dc2
commit
8927bb8f06
1 changed files with 8 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue