summaryrefslogtreecommitdiffstats
path: root/src/plugins/audio
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-03-09 11:34:25 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-03-09 13:52:56 (GMT)
commitd4250d9e1d4ed23e0cf41e6ce35d9dda6323455c (patch)
tree35f25380afa3adeddf9aceff0da470b39fec623d /src/plugins/audio
parent796b084fbaaeeacbb6af7b3a2d132b5900c3db62 (diff)
downloadQt-d4250d9e1d4ed23e0cf41e6ce35d9dda6323455c.zip
Qt-d4250d9e1d4ed23e0cf41e6ce35d9dda6323455c.tar.gz
Qt-d4250d9e1d4ed23e0cf41e6ce35d9dda6323455c.tar.bz2
Implement language fallback logic for localize_deployment
When querying system locale it does return both language and country, so sometimes users want to have both in their .ts file names (e.g. myapp_zh_CN.ts). This is bit problematic in Symbian, where there are separate language codes for only very few language + country combinations. Until now, the unsupported combinations were simply dropped from deployment localization. More proper way to handle these unknown language + country combinations is to fall back to using the plain language code for them instead of dropping them altogether. This is somewhat analogous to how QTranslator::load() loads .ts files if it can't find the file for specified language + country combination. E.g. User defines: TRANSLATIONS += myapp_zh_CN.ts myapp_zh_HK.ts myapp_zh_TW.ts There are separate Symbian language codes for HongKong Chinese (zh_HK = 30) and Taiwanese Chinese (zh_TW = 29), but rest of the world is expected to use just Chinese (zh = 31). This means "zh_CN" mapping is not provided as it would be same as plain "zh". With this fix, qmake will now automatically generate a fallback mapping from "zh_CN" to "31" for deployment localization purposes, and is able to read application captions and pkg names from myapp_zh_CN.ts. If there are multiple TRANSLATIONS defined that would result in same Symbian language code, only the first one is used. Task-number: QTBUG-17927 Reviewed-by: Oswald Buddenhagen
Diffstat (limited to 'src/plugins/audio')
0 files changed, 0 insertions, 0 deletions