** Summary changed:

- 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 changed:

- "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 changed:

- Currently, there is no localization support for the "QtQuick App for QML
- UI" template. There is no "po" localization folder generated during the
- compilation. This is important to make an app international.
+ 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1480771

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1480771/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to