Merge lp:~dpm/reminders-app/update-translations-after-cleanup into lp:reminders-app

Proposed by David Planella
Status: Merged
Approved by: Michael Zanetti
Approved revision: 41
Merged at revision: 40
Proposed branch: lp:~dpm/reminders-app/update-translations-after-cleanup
Merge into: lp:reminders-app
Prerequisite: lp:~mzanetti/reminders-app/cleanup
Diff against target: 232 lines (+25/-37)
9 files modified
CMakeLists.txt (+1/-1)
po/CMakeLists.txt (+1/-1)
po/com.ubuntu.reminders.pot (+11/-23)
src/app/qml/components/NotebooksDelegate.qml (+1/-1)
src/app/qml/ui/NotePage.qml (+3/-3)
src/app/qml/ui/NotebooksPage.qml (+3/-3)
src/app/qml/ui/NotesPage.qml (+2/-2)
src/app/qml/ui/RemindersPage.qml (+2/-2)
src/app/qml/ui/SearchNotesPage.qml (+1/-1)
To merge this branch: bzr merge lp:~dpm/reminders-app/update-translations-after-cleanup
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Michael Zanetti (community) Approve
Review via email: mp+203487@code.launchpad.net

Commit message

Update and fix translatable messages

Description of the change

We want to ensure translations are in shape for contribution. This MP:

- Updates the .pot file to expose the new translatable strings in Launchpad
- Makes a few more strings translatable
- Makes the cmake rule to update the .pot file work (run it with `make com.ubuntu.reminders.pot`)
- Fixes a plural string
- Capitalizes some of the actions to make them consistent with the rest of the UI

I believe fixing the translations' cmake rule might need another iteration, but at least now the .pot file can be built manually.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:41
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~dpm/reminders-app/update-translations-after-cleanup/+merge/203487/+edit-commit-message

http://91.189.93.70:8080/job/reminders-app-ci/83/
Executed test runs:
    SUCCESS: http://91.189.93.70:8080/job/generic-mediumtests-trusty/841
    SUCCESS: http://91.189.93.70:8080/job/reminders-app-saucy-amd64-ci/83
    SUCCESS: http://91.189.93.70:8080/job/reminders-app-trusty-amd64-ci/83

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/reminders-app-ci/83/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote :

lgtm

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-01-28 08:43:55 +0000
3+++ CMakeLists.txt 2014-01-28 08:43:55 +0000
4@@ -44,7 +44,7 @@
5
6 file(GLOB_RECURSE I18N_SRC_FILES
7 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
8- rc/**.qml desktop/**.desktop.in)
9+ src/app/qml/*.qml *.desktop.in)
10 list(SORT I18N_SRC_FILES)
11
12
13
14=== modified file 'po/CMakeLists.txt'
15--- po/CMakeLists.txt 2014-01-19 13:59:12 +0000
16+++ po/CMakeLists.txt 2014-01-28 08:43:55 +0000
17@@ -11,7 +11,7 @@
18 --from-code=UTF-8
19 --c++ --qt --add-comments=TRANSLATORS
20 --keyword=tr --keyword=tr:1,2
21- --package-name='${PROJECT}'
22+ --package-name='${PROJECT}'
23 --copyright-holder='Canonical Ltd.'
24 ${I18N_SRC_FILES})
25
26
27=== modified file 'po/com.ubuntu.reminders.pot'
28--- po/com.ubuntu.reminders.pot 2014-01-24 17:41:21 +0000
29+++ po/com.ubuntu.reminders.pot 2014-01-28 08:43:55 +0000
30@@ -1,6 +1,6 @@
31-# reminders-app translation.
32+# Translations for the Reminders app
33 # Copyright (C) 2014 Canonical Ltd.
34-# This file is distributed under the same license as the reminders-app package.
35+# This file is distributed under the same license as the reminders package.
36 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
37 #
38 #, fuzzy
39@@ -8,7 +8,7 @@
40 msgstr ""
41 "Project-Id-Version: \n"
42 "Report-Msgid-Bugs-To: \n"
43-"POT-Creation-Date: 2014-01-24 13:10+0100\n"
44+"POT-Creation-Date: 2014-01-28 09:36+0100\n"
45 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
46 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
47 "Language-Team: LANGUAGE <LL@li.org>\n"
48@@ -25,38 +25,22 @@
49 msgstr[0] ""
50 msgstr[1] ""
51
52-#: src/app/qml/reminders-app.qml:71
53+#: src/app/qml/reminders.qml:83
54 msgid "Notes"
55 msgstr ""
56
57-#: src/app/qml/reminders-app.qml:78
58+#: src/app/qml/reminders.qml:90
59 msgid "Notebooks"
60 msgstr ""
61
62-#: src/app/qml/reminders-app.qml:85
63+#: src/app/qml/reminders.qml:97
64 msgid "Reminders"
65 msgstr ""
66
67-#: src/app/qml/ui/EditNotePage.qml:31 src/app/qml/ui/NotebooksPage.qml:134
68-msgid "Save"
69-msgstr ""
70-
71-#: src/app/qml/ui/EditNotePage.qml:34 src/app/qml/ui/EditNotePage.qml:74
72+#: src/app/qml/ui/EditNotePage.qml:83 src/app/qml/ui/EditNotePage.qml:95
73 msgid "Untitled"
74 msgstr ""
75
76-#: src/app/qml/ui/EditNotePage.qml:53
77-msgid "Attach"
78-msgstr ""
79-
80-#: src/app/qml/ui/EditNotePage.qml:57
81-msgid "Shot"
82-msgstr ""
83-
84-#: src/app/qml/ui/EditNotePage.qml:86
85-msgid "Notebook"
86-msgstr ""
87-
88 #: src/app/qml/ui/NotePage.qml:36
89 msgid "Delete"
90 msgstr ""
91@@ -86,6 +70,10 @@
92 msgid "Cancel"
93 msgstr ""
94
95+#: src/app/qml/ui/NotebooksPage.qml:134
96+msgid "Save"
97+msgstr ""
98+
99 #: src/app/qml/ui/NotesPage.qml:49
100 msgid "Add note"
101 msgstr ""
102
103=== modified file 'src/app/qml/components/NotebooksDelegate.qml'
104--- src/app/qml/components/NotebooksDelegate.qml 2014-01-28 08:43:55 +0000
105+++ src/app/qml/components/NotebooksDelegate.qml 2014-01-28 08:43:55 +0000
106@@ -55,6 +55,6 @@
107 Label {
108 id: resourceImage
109 anchors { top: parent.top; right: parent.right; bottom: parent.bottom; topMargin: units.gu(1); rightMargin: units.gu(2) }
110- text: i18n.tr("%1 notes").arg(root.noteCount)
111+ text: i18n.tr("%1 note", "%1 notes", root.noteCount).arg(root.noteCount)
112 }
113 }
114
115=== modified file 'src/app/qml/ui/NotePage.qml'
116--- src/app/qml/ui/NotePage.qml 2014-01-28 08:43:55 +0000
117+++ src/app/qml/ui/NotePage.qml 2014-01-28 08:43:55 +0000
118@@ -33,7 +33,7 @@
119
120 tools: ToolbarItems {
121 ToolbarButton {
122- text: "delete"
123+ text: i18n.tr("Delete")
124 iconName: "delete"
125 onTriggered: {
126 NotesStore.deleteNote(note.guid);
127@@ -42,7 +42,7 @@
128 }
129 ToolbarSpacer {}
130 ToolbarButton {
131- text: note.reminder ? "reminder (set)" : "reminder"
132+ text: note.reminder ? "Reminder (set)" : "Reminder"
133 iconName: "alarm-clock"
134 onTriggered: {
135 note.reminder = !note.reminder
136@@ -50,7 +50,7 @@
137 }
138 }
139 ToolbarButton {
140- text: "edit"
141+ text: i18n.tr("Edit")
142 iconName: "edit"
143 onTriggered: {
144 pagestack.pop()
145
146=== modified file 'src/app/qml/ui/NotebooksPage.qml'
147--- src/app/qml/ui/NotebooksPage.qml 2014-01-28 08:43:55 +0000
148+++ src/app/qml/ui/NotebooksPage.qml 2014-01-28 08:43:55 +0000
149@@ -33,7 +33,7 @@
150
151 tools: ToolbarItems {
152 ToolbarButton {
153- text: "search"
154+ text: i18n.tr("Search")
155 iconName: "search"
156 onTriggered: {
157 pagestack.push(Qt.resolvedUrl("SearchNotesPage.qml"))
158@@ -43,7 +43,7 @@
159 ToolbarSpacer { }
160
161 ToolbarButton {
162- text: "add notebook"
163+ text: i18n.tr("Add notebook")
164 iconName: "add"
165 onTriggered: {
166 contentColumn.newNotebook = true;
167@@ -101,7 +101,7 @@
168 delegate: NotebooksDelegate {
169 name: model.name
170 noteCount: model.noteCount
171- shareStatus: model.publised ? i18n.tr("shared") : i18n.tr("private")
172+ shareStatus: model.publised ? i18n.tr("Shared") : i18n.tr("Private")
173
174 onClicked: {
175 pagestack.push(Qt.resolvedUrl("NotesPage.qml"), {title: name, filter: guid});
176
177=== modified file 'src/app/qml/ui/NotesPage.qml'
178--- src/app/qml/ui/NotesPage.qml 2014-01-28 08:43:55 +0000
179+++ src/app/qml/ui/NotesPage.qml 2014-01-28 08:43:55 +0000
180@@ -36,7 +36,7 @@
181 // Just for testing
182 tools: ToolbarItems {
183 ToolbarButton {
184- text: "search"
185+ text: i18n.tr("Search")
186 iconName: "search"
187 onTriggered: {
188 pagestack.push(Qt.resolvedUrl("SearchNotesPage.qml"))
189@@ -46,7 +46,7 @@
190 ToolbarSpacer { }
191
192 ToolbarButton {
193- text: "add note"
194+ text: i18n.tr("Add note")
195 iconName: "add"
196 onTriggered: {
197 NotesStore.createNote("Untitled");
198
199=== modified file 'src/app/qml/ui/RemindersPage.qml'
200--- src/app/qml/ui/RemindersPage.qml 2014-01-28 08:43:55 +0000
201+++ src/app/qml/ui/RemindersPage.qml 2014-01-28 08:43:55 +0000
202@@ -27,7 +27,7 @@
203
204 tools: ToolbarItems {
205 ToolbarButton {
206- text: "search"
207+ text: i18n.tr("Search")
208 iconName: "search"
209 onTriggered: {
210 pagestack.push(Qt.resolvedUrl("SearchNotesPage.qml"))
211@@ -37,7 +37,7 @@
212 ToolbarSpacer { }
213
214 ToolbarButton {
215- text: "add"
216+ text: i18n.tr("Add reminder")
217 iconName: "add"
218 onTriggered: {
219 }
220
221=== modified file 'src/app/qml/ui/SearchNotesPage.qml'
222--- src/app/qml/ui/SearchNotesPage.qml 2014-01-28 08:43:55 +0000
223+++ src/app/qml/ui/SearchNotesPage.qml 2014-01-28 08:43:55 +0000
224@@ -49,7 +49,7 @@
225 Button {
226 id: searchButton
227 height: searchField.height
228- text: "search"
229+ text: i18n.tr("Search")
230 onClicked: {
231 NotesStore.findNotes(searchField.text + "*")
232 }

Subscribers

People subscribed via source and target branches