Wrong directory used for translation for new projects when app name was changed

Bug #1480771 reported by XiaoGuo, Liu
6
This bug affects 1 person
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_TRANSLATION_SOURCES+= \
    $$files(app/*.qml,true) \
    $$files(app/*.js,true)

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_TRANSLATION_SOURCES+= \
- $$files(app/*.qml,true) \
- $$files(app/*.js,true)
+ $$files(testquickqt/*.qml,true) \
+ $$files(testquickqt/*.js,true)

 # 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

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
Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

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.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Benjamin Zeller (zeller-benjamin)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.5.0+15.10.20150902-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.5.0+15.10.20150902-0ubuntu1) wily; urgency=medium

  [ Benjamin Zeller ]
  * Fixes Bug lp:1488085 "Navigating in the Add Security Policies window
    is broken with keyboard" Fixes Bug lp:1489344 "Install on device is
    broken" Fixes Bug lp:1489567 "Ubuntu gallery can not be openend"
    Catch "permission denied" error if opening syslog is not allowed Fix
    Bug lp:1480771 "Wrong directory used for translation" Fix Bug
    lp:1443351 ".desktop file is not translated for qmake based
    projects" Fix Bug lp:1479581 "Debug helper is disabled by default"
    Fix Bug lp:1481325 "fix i18n integration in qmake template" (LP:
    #1489344, #1480771, #1481325, #1488085, #1443351, #1479581,
    #1489567)

 -- CI Train Bot <email address hidden> Wed, 02 Sep 2015 15:32:19 +0000

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.