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

Subscribers

People subscribed via source and target branches