Localize .loc and .pkg content based on TRANSLATIONS
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Tue, 9 Nov 2010 14:39:20 +0000 (16:39 +0200)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>
Fri, 12 Nov 2010 08:38:36 +0000 (10:38 +0200)
commit16575f7aef840b6aae0dc767468ab713fbcfd7a6
treeb217b8e866bad40d2140180adc8c635aca4e68b2
parent924be25253471ababfcf560a6ca098543838c0aa
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
20 files changed:
demos/symbianpkgrules.pri
doc/src/development/qmake-manual.qdoc
examples/symbianpkgrules.pri
mkspecs/common/symbian/appCaptionForTranslation.cpp [new file with mode: 0644]
mkspecs/common/symbian/packageNameForTranslation.cpp [new file with mode: 0644]
mkspecs/common/symbian/symbian.conf
mkspecs/features/default_post.prf
mkspecs/features/symbian/default_post.prf
mkspecs/features/symbian/localize_deployment.prf [new file with mode: 0644]
mkspecs/features/symbian/qt.prf
mkspecs/features/symbian/sis_targets.prf
qmake/generators/symbian/symbian_makefile.h
qmake/generators/symbian/symbiancommon.cpp
qmake/generators/symbian/symbiancommon.h
qmake/generators/symbian/symmake.cpp
qmake/generators/symbian/symmake.h
qmake/generators/symbian/symmake_abld.cpp
qmake/generators/symbian/symmake_sbsv2.cpp
src/s60installs/s60installs.pro
tools/linguist/lupdate/main.cpp