diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-11-09 14:39:20 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-11-12 08:38:36 (GMT) |
commit | 16575f7aef840b6aae0dc767468ab713fbcfd7a6 (patch) | |
tree | b217b8e866bad40d2140180adc8c635aca4e68b2 /demos | |
parent | 924be25253471ababfcf560a6ca098543838c0aa (diff) | |
download | Qt-16575f7aef840b6aae0dc767468ab713fbcfd7a6.zip Qt-16575f7aef840b6aae0dc767468ab713fbcfd7a6.tar.gz Qt-16575f7aef840b6aae0dc767468ab713fbcfd7a6.tar.bz2 |
Localize .loc and .pkg content based on TRANSLATIONS
If developer specifies "CONFIG += localize_deployment" in .pro file,
the generated .loc and .pkg will now use translatable strings from
.ts files defined in TRANSLATIONS. The .ts files must have an
underscore and Qt language code at the end of the filename body
to be compatible with deployment localization. E.g. myapp_en.ts.
Running lupdate will generate these entries into .ts files:
- Application short caption
- Application long caption
- Package name
- Smart installer package name
Task-number: QTBUG-13917
Reviewed-by: Oswald Buddenhagen
Reviewed-by: Janne Anttila
Reviewed-by: axis
Diffstat (limited to 'demos')
-rw-r--r-- | demos/symbianpkgrules.pri | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/symbianpkgrules.pri b/demos/symbianpkgrules.pri index c9cc492..ef6dfd8 100644 --- a/demos/symbianpkgrules.pri +++ b/demos/symbianpkgrules.pri @@ -2,12 +2,13 @@ RSS_RULES ="group_name=\"QtDemos\";" +nokiaVendor = "Nokia, Qt" vendorinfo = \ "; Localised Vendor name" \ - "%{\"Nokia, Qt\"}" \ + "%{$$addLanguageDependentPkgItem(nokiaVendor)}" \ " " \ "; Unique Vendor name" \ - ":\"Nokia, Qt\"" \ + ":\"$$nokiaVendor\"" \ " " demos_deployment.pkg_prerules += vendorinfo |