Add internationalization support to QML app templates

Bug #1379689 reported by David Planella
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu
Fix Released
Critical
Benjamin Zeller
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In order to make it easy for developers to internationalize their apps, we should add full i18n support in the templates. This should include:

- Ensure all strings are wrapped in i18n.tr() calls
- Add the required CMake rules to extract translatable messages and build translations (see [1])
- (Optional) add a README.translations file explaining some concepts about managing translations (see [1])

Adding the CMake rules is relatively trivial. The following MP should help with an example of what's needed. An alternative would be to create a .cmake module that all applications can reuse.

This document [2] illustrates the translation workflow.

[1] https://code.launchpad.net/~dpm/libqtelegram/i18n/+merge/236284
[2] https://docs.google.com/a/canonical.com/document/d/12fEDKGVlNAkeXQyNXUM8JcekYwfvN7brRG5m5a0a4Dk/edit#heading=h.vbkzlk3ri2wg

Related branches

David Planella (dpm)
description: updated
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → zbenjamin (zeller-benjamin)
David Planella (dpm)
description: updated
David Planella (dpm)
description: updated
Changed in qtcreator-plugin-ubuntu:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.1.1+14.10.20141017-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.1.1+14.10.20141017-0ubuntu1) utopic; urgency=low

  [ Pete Woods ]
  * Add translation support to scope templates

  [ Benjamin Zeller ]
  * Fix bug lp:1363857 "Use click-review from click-reviewers-tools".
    Fix bug lp:1379689 "Add internationalization support to QML app
    templates". Fix bug lp:1361936 "error information box is not
    updated". Fix bug lp:1368521 "After choosing "Create emulator",
    nothing happens. after that" Fix bug lp:1371807 "multi user problem
    writing to /tmp/sdk.log" (LP: #1361936, #1363857, #1368521,
    #1371807, #1379689)

  [ Ubuntu daily release ]
  * New rebuild forced
 -- Ubuntu daily release <email address hidden> Fri, 17 Oct 2014 10:16:41 +0000

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Fix Released
Changed in qtcreator-plugin-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.