diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-09-30 11:01:37 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2011-09-30 11:52:33 (GMT) |
commit | b4fb55db3939219e976d53c32b42bf28acaa41b1 (patch) | |
tree | ee090bcbabc687834001120559d5e097168aaa5c /mkspecs/common/symbian/symbian.conf | |
parent | 6570a4612ebf128a140c0ed66ac83bfaf9670b44 (diff) | |
download | Qt-b4fb55db3939219e976d53c32b42bf28acaa41b1.zip Qt-b4fb55db3939219e976d53c32b42bf28acaa41b1.tar.gz Qt-b4fb55db3939219e976d53c32b42bf28acaa41b1.tar.bz2 |
Symbian: Parse ts filenames case-insensitively for localize_deployment
A lot of platform applications have all-lowercase translation files
due to file naming policies. This makes no difference for runtime
translation, so removed unnecessary case sensitivity when parsing ts
filenames for localization deployment.
Task-number: QT-5305
Reviewed-by: Sami Merila
Diffstat (limited to 'mkspecs/common/symbian/symbian.conf')
-rw-r--r-- | mkspecs/common/symbian/symbian.conf | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mkspecs/common/symbian/symbian.conf b/mkspecs/common/symbian/symbian.conf index 61a6228..c50dc77 100644 --- a/mkspecs/common/symbian/symbian.conf +++ b/mkspecs/common/symbian/symbian.conf @@ -151,11 +151,11 @@ SYMBIAN_SUPPORTED_LANGUAGES = \ mr mo mn nb pl pt pa ro ru sr \ si sk sl so es sw sv tl ta te \ th bo ti tr tk uk ur vi cy zu \ - nn eu zh gl fa st en_US fr_BE \ - pt_BR en_CA fr_CA el_CY tr_CY \ - en_TW en_HK en_CN en_JP en_TH \ - sv_FI zh_HK es_419 en_ZA fr_CH \ - de_CH it_CH zh_TW + nn eu zh gl fa st en_us fr_be \ + pt_br en_ca fr_ca el_cy tr_cy \ + en_tw en_hk en_cn en_jp en_th \ + sv_fi zh_hk es_419 en_za fr_ch \ + de_ch it_ch zh_tw # These directories must match what configure uses for QT_INSTALL_PLUGINS and QT_INSTALL_IMPORTS QT_PLUGINS_BASE_DIR = /resource/qt$${QT_LIBINFIX}/plugins @@ -251,7 +251,8 @@ defineTest(matchSymbianLanguages) { # Cannot parse .ts file for language here, so detect it from filename. # Allow two and three character language and country codes. for(translation, TRANSLATIONS) { - language = $$replace(translation, "^(.*/)?[^/]+_(([^_]{2,3}_)?[^_]{2,3})\\.ts$", \\2) + low_translation = $$lower($$translation) + language = $$replace(low_translation, "^(.*/)?[^/]+_(([^_]{2,3}_)?[^_]{2,3})\\.ts$", \\2) !contains(HANDLED_LANGUAGES, $$language) { HANDLED_LANGUAGES += $$language # Make sure translation path is absolute or shadow builds will not work |