Wrong directory used for translation for new projects when app name was changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
High
|
Benjamin Zeller |
Bug Description
I use our SDK "QtQuick app with QML UI" to generate a template application. However, when I build my app, it does not generate the "po" folder to produce the right files for localization.
The sample code is at:
bzr branch lp:~liu-xiao-guo/debiantrial/testquickqt
# specify the source files that should be included into
# the translation file, from those files a translation
# template is created in po/template.pot, to create a
# translation copy the template to e.g. de.po and edit the sources
UBUNTU_
$$files(
$$files(
The correct one should be:
=== modified file 'testquickqt.pro'
--- testquickqt.pro 2015-08-03 06:51:39 +0000
+++ testquickqt.pro 2015-08-03 06:55:32 +0000
@@ -21,8 +21,8 @@
# template is created in po/template.pot, to create a
# translation copy the template to e.g. de.po and edit the sources
UBUNTU_
- $$files(
- $$files(
+ $$files(
+ $$files(
# specifies all translations files and makes sure they are
# compiled and installed into the right place in the click package
I tested it on vivid!
Best regards,
XiaoGuo
Related branches
- Zoltan Balogh: Approve
-
Diff: 409 lines (+122/-42)12 files modifiedshare/qtcreator/templates/wizards/ubuntu/backend-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/appName/appName.pro (+9/-3)
share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/projectName.pro (+6/-5)
share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/appName/appName.pro (+9/-2)
share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/projectName.pro (+7/-6)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/appName/appName.pro (+9/-3)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/projectName.pro (+7/-6)
share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py (+8/-3)
src/ubuntu/ubuntupackagestep.cpp (+1/-1)
ubuntu-click-tools.prf (+63/-10)
- PS Jenkins bot: Approve (continuous-integration)
- Zoltan Balogh: Approve
-
Diff: 525 lines (+160/-47)16 files modifiedshare/qtcreator/templates/wizards/ubuntu/backend-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/appName/appName.pro (+9/-3)
share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/projectName.pro (+6/-5)
share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/appName/appName.pro (+9/-2)
share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/projectName.pro (+7/-6)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/appName/appName.pro (+9/-3)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/projectName.pro (+7/-6)
share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py (+8/-3)
share/qtcreator/ubuntu/scripts/qtc_launch_gallery (+16/-2)
src/ubuntu/ubuntupackagestep.cpp (+1/-1)
src/ubuntu/ubuntupackagingmodel.cpp (+2/-2)
src/ubuntu/ubuntusecuritypolicypickerdialog.cpp (+7/-1)
src/ubuntu/ubuntusecuritypolicypickerdialog.ui (+13/-0)
ubuntu-click-tools.prf (+63/-10)
summary: |
- No support for localization for the "QtQuick App for QML UI" template + "QtQuick App for QML UI" template does not include the correct path for + generating "po" folder |
summary: |
- "QtQuick App for QML UI" template does not include the correct path for - generating "po" folder + Wrong directory used for translation for new projects when app name was + changed |
description: | updated |
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
status: | Triaged → In Progress |
The problem here is that the subdirectory is not correctly changed from "app" to "hookname" which was selected by the developer when creating the project in the first place.