Load new Qt translations, new flags.
This commit is contained in:
parent
f9bff2e758
commit
c6a6013273
@ -1 +1 @@
|
||||
Subproject commit ae7084718c41afc01919779e58cd449e0eebd401
|
||||
Subproject commit 4a01edaec7d67d3b2ae81aeea2a3c876216fbab8
|
BIN
resources/graphics/misc/flags/es.png
Executable file
BIN
resources/graphics/misc/flags/es.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.8 KiB |
@ -40,6 +40,7 @@
|
||||
<file>graphics/misc/flags/de.png</file>
|
||||
<file>graphics/misc/flags/en.png</file>
|
||||
<file>graphics/misc/flags/en_GB.png</file>
|
||||
<file>graphics/misc/flags/es.png</file>
|
||||
<file>graphics/misc/flags/fr.png</file>
|
||||
<file>graphics/misc/flags/he.png</file>
|
||||
<file>graphics/misc/flags/id.png</file>
|
||||
@ -1555,5 +1556,25 @@
|
||||
<file>localizations/rssguard_zh.qm</file>
|
||||
<file>desktop/rssguard.desktop</file>
|
||||
<file>desktop/rssguard.desktop.autostart</file>
|
||||
<file>localizations/qt_bg.qm</file>
|
||||
<file>localizations/qt_ca.qm</file>
|
||||
<file>localizations/qt_cs.qm</file>
|
||||
<file>localizations/qt_da.qm</file>
|
||||
<file>localizations/qt_de.qm</file>
|
||||
<file>localizations/qt_en.qm</file>
|
||||
<file>localizations/qt_es.qm</file>
|
||||
<file>localizations/qt_fi.qm</file>
|
||||
<file>localizations/qt_fr.qm</file>
|
||||
<file>localizations/qt_gd.qm</file>
|
||||
<file>localizations/qt_he.qm</file>
|
||||
<file>localizations/qt_hu.qm</file>
|
||||
<file>localizations/qt_it.qm</file>
|
||||
<file>localizations/qt_ja.qm</file>
|
||||
<file>localizations/qt_ko.qm</file>
|
||||
<file>localizations/qt_lv.qm</file>
|
||||
<file>localizations/qt_pl.qm</file>
|
||||
<file>localizations/qt_ru.qm</file>
|
||||
<file>localizations/qt_sk.qm</file>
|
||||
<file>localizations/qt_uk.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@ -35,6 +35,7 @@ QString Localization::desiredLanguage() const {
|
||||
}
|
||||
|
||||
void Localization::loadActiveLanguage() {
|
||||
QTranslator* qt_translator = new QTranslator(qApp);
|
||||
QTranslator* app_translator = new QTranslator(qApp);
|
||||
QString desired_localization = desiredLanguage();
|
||||
|
||||
@ -56,6 +57,14 @@ void Localization::loadActiveLanguage() {
|
||||
desired_localization = DEFAULT_LOCALE;
|
||||
}
|
||||
|
||||
if (qt_translator->load(QLocale(desired_localization), "qt", QSL("_"), APP_LANG_PATH)) {
|
||||
Application::installTranslator(qt_translator);
|
||||
qDebug("Qt localization '%s' loaded successfully.", qPrintable(desired_localization));
|
||||
}
|
||||
else {
|
||||
qWarning("Qt localization '%s' was not loaded.", qPrintable(desired_localization));
|
||||
}
|
||||
|
||||
m_loadedLanguage = desired_localization;
|
||||
m_loadedLocale = QLocale(desired_localization);
|
||||
QLocale::setDefault(m_loadedLocale);
|
||||
|
Loading…
x
Reference in New Issue
Block a user