Commit 70ec5ca9 authored by Claudio Valerio's avatar Claudio Valerio

Removed quick dirty fix and fixed issue SANKORE-187

parent 2d35e74b
......@@ -185,6 +185,12 @@ macx {
TRANSLATION_fr.path = "$$RESOURCES_DIR/fr.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_fr
}
exists(resources/i18n/sankore_fr_CH.qm) {
TRANSLATION_fr.files = resources/i18n/sankore_fr_CH.qm \
resources/i18n/Localizable.strings
TRANSLATION_fr.path = "$$RESOURCES_DIR/fr.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_fr_CH
}
exists(resources/i18n/sankore_de.qm) {
TRANSLATION_de.files = resources/i18n/sankore_de.qm \
resources/i18n/Localizable.strings
......@@ -331,6 +337,7 @@ RESOURCES += resources/sankore.qrc
TRANSLATIONS = resources/i18n/sankore_en.ts \
resources/i18n/sankore_en_UK.ts \
resources/i18n/sankore_fr.ts \
resources/i18n/sankore_fr_CH.ts \
resources/i18n/sankore_de.ts \
resources/i18n/sankore_nl.ts \
resources/i18n/sankore_es.ts \
......
......@@ -62,9 +62,7 @@ void UBPlatformUtils::fadeDisplayIn()
QString UBPlatformUtils::preferredTranslation()
{
QString localPreferredLanguage = preferredLanguage();
if (localPreferredLanguage == "fr_CH") {
localPreferredLanguage = "fr";
}
QString qmPath = applicationResourcesDirectory() + "/" + "i18n" + "/" + QString("sankore_") + localPreferredLanguage + ".qm";
qDebug() << "Looking for translation:" << qmPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment