Merge lp:~nik90/reminders-app/add-translation-support into lp:reminders-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: David Planella
Approved revision: 5
Merged at revision: 3
Proposed branch: lp:~nik90/reminders-app/add-translation-support
Merge into: lp:reminders-app
Diff against target: 76 lines (+66/-0)
2 files modified
README.translations (+36/-0)
po/reminders-app.pot (+30/-0)
To merge this branch: bzr merge lp:~nik90/reminders-app/add-translation-support
Reviewer Review Type Date Requested Status
David Planella Approve
Review via email: mp+196021@code.launchpad.net

Commit message

This commit adds,
- Translation support by adding folder po, a pot file
- A readme file for developers to update the pot file when more UI strings are added in the future.

Description of the change

This MP adds,
- Translation support by adding folder po, a pot file
- A readme file for developers to update the pot file when more UI strings are added in the future.

To post a comment you must log in.
5. By Nekhelesh Ramananthan

reverted accidental manifest.json file change

Revision history for this message
David Planella (dpm) wrote :

Nice and easy to review, LGTM!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'README.translations'
2--- README.translations 1970-01-01 00:00:00 +0000
3+++ README.translations 2013-11-20 21:56:55 +0000
4@@ -0,0 +1,36 @@
5+# Updating translations
6+
7+Translations for the Reminders app happen in [Launchpad Translations][] and
8+are automatically committed daily on the trunk branch in the po/ folder.
9+
10+They are then built and installed as part of the package build, so that
11+developers don't really need to worry about them.
12+
13+However, there is one task that needs to be taken care of: exposing new
14+translatable messages to translators. So whenever you add new translatable
15+messages in the code, make sure to follow these steps:
16+
17+ 1. Change directory to the po/ folder: `cd po`
18+ 2. Update the translations template: `qmake && make pot`
19+ 3. Commit the generated .pot file: `bzr commit -m"Updated translation template"`
20+ 4. Push the branch and send a merge proposal as usual
21+
22+And that's it, once the branch lands Launchpad should take care of all the rest!
23+
24+# Behind the scenes
25+
26+Behind the scenes, whenever the po/*.pot file (also known as translations template)
27+is committed to trunk Launchpad reads it and updates the translatable strings
28+exposed in the web UI. This will enable translators to work on the new strings.
29+The translations template contains all translatable strings that have been
30+extracted from the source code files.
31+
32+Launchpad will then store translations in its database and will commit them daily
33+in the form of textual po/*.po files to trunk. The PO files are also usually
34+referred to as the translations files. You'll find a translation file for each
35+language the app has got at least a translated message available for.
36+
37+Translations for core apps follow the standard [gettext format].
38+
39+ [Launchpad Translations]: https://translations.launchpad.net/reminders-app
40+ [gettext format]: https://www.gnu.org/software/gettext/
41
42=== added directory 'po'
43=== added file 'po/reminders-app.pot'
44--- po/reminders-app.pot 1970-01-01 00:00:00 +0000
45+++ po/reminders-app.pot 2013-11-20 21:56:55 +0000
46@@ -0,0 +1,30 @@
47+# Reminders App Translations
48+# Copyright (C) 2013 Canonical Ltd.
49+# This file is distributed under the same license as the PACKAGE package.
50+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
51+#
52+#, fuzzy
53+msgid ""
54+msgstr ""
55+"Project-Id-Version: reminders-app\n"
56+"Report-Msgid-Bugs-To: \n"
57+"POT-Creation-Date: 2013-11-20 22:52+0100\n"
58+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
59+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
60+"Language-Team: LANGUAGE <LL@li.org>\n"
61+"Language: \n"
62+"MIME-Version: 1.0\n"
63+"Content-Type: text/plain; charset=CHARSET\n"
64+"Content-Transfer-Encoding: 8bit\n"
65+
66+#: reminders-app.qml:38
67+msgid "Notes"
68+msgstr ""
69+
70+#: reminders-app.qml:45
71+msgid "Notebook"
72+msgstr ""
73+
74+#: reminders-app.qml:52
75+msgid "Reminders"
76+msgstr ""

Subscribers

People subscribed via source and target branches