summaryrefslogtreecommitdiff
path: root/qmake/generators/symbian/symbiancommon.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-12-07 15:08:50 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-12-07 16:13:51 +0200
commit258bc6752b2896846ce757ffd8f71de16028a27b (patch)
tree3b126de9150e05d16a3514f3d4bd19a3de66a537 /qmake/generators/symbian/symbiancommon.cpp
parentd766d10bd57f131750e4ff522849e8648d2e3331 (diff)
downloadqt4-tools-258bc6752b2896846ce757ffd8f71de16028a27b.tar.gz
Symbian: Fix language mappings for localize_deployment
Some Qt language codes now map to two Symbian language codes. Also added the missing en_in mapping. Task-number: ou1cimx1#947060 Reviewed-by: Pasi Pentikainen
Diffstat (limited to 'qmake/generators/symbian/symbiancommon.cpp')
-rw-r--r--qmake/generators/symbian/symbiancommon.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/qmake/generators/symbian/symbiancommon.cpp b/qmake/generators/symbian/symbiancommon.cpp
index c79bad244a..e2dec40c15 100644
--- a/qmake/generators/symbian/symbiancommon.cpp
+++ b/qmake/generators/symbian/symbiancommon.cpp
@@ -864,12 +864,17 @@ void SymbianCommonGenerator::fillQt2SymbianLocalizationList(SymbianLocalizationL
QStringList symbianLanguages = generator->project->values("SYMBIAN_MATCHED_LANGUAGES");
foreach (QString qtCode, symbianLanguages) {
- SymbianLocalization newLoc;
QString symbianCodeVariable = symbianCodePrefix + qtCode;
- newLoc.symbianLanguageCode = generator->project->first(symbianCodeVariable);
- if (!newLoc.symbianLanguageCode.isEmpty()) {
- newLoc.qtLanguageCode = qtCode;
- symbianLocalizationList->append(newLoc);
+ QStringList symbianCodes = generator->project->values(symbianCodeVariable);
+ // Some languages have more than one Symbian code, so they get more than one
+ // entry in symbianLocalizationList.
+ foreach (QString symbianCode, symbianCodes) {
+ SymbianLocalization newLoc;
+ newLoc.symbianLanguageCode = symbianCode;
+ if (!newLoc.symbianLanguageCode.isEmpty()) {
+ newLoc.qtLanguageCode = qtCode;
+ symbianLocalizationList->append(newLoc);
+ }
}
}
}