Merge lp:~dpm/reminders-app/desktop-i18n into lp:reminders-app

Proposed by David Planella
Status: Merged
Approved by: Michael Zanetti
Approved revision: 260
Merged at revision: 258
Proposed branch: lp:~dpm/reminders-app/desktop-i18n
Merge into: lp:reminders-app
Diff against target: 488 lines (+131/-117)
7 files modified
.bzrignore (+2/-0)
CMakeLists.txt (+10/-2)
README.translations (+3/-4)
com.ubuntu.reminders.desktop.in.in (+2/-3)
debian/control (+1/-0)
po/CMakeLists.txt (+13/-9)
po/com.ubuntu.reminders.pot (+100/-99)
To merge this branch: bzr merge lp:~dpm/reminders-app/desktop-i18n
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+236244@code.launchpad.net

Commit message

Added .desktop file internationalization

Description of the change

Added .desktop file internationalization

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2014-01-30 13:45:37 +0000
3+++ .bzrignore 2014-09-28 09:12:09 +0000
4@@ -11,3 +11,5 @@
5 obj-*/
6 reminders-app.qmlproject.user
7 reminders-app.pro.user
8+*.desktop.in
9+*.desktop.in.in.h
10
11=== modified file 'CMakeLists.txt'
12--- CMakeLists.txt 2014-09-08 15:39:00 +0000
13+++ CMakeLists.txt 2014-09-28 09:12:09 +0000
14@@ -1,5 +1,7 @@
15 project(com.ubuntu.reminders C CXX)
16 cmake_minimum_required(VERSION 2.8.9)
17+find_program(INTLTOOL_MERGE intltool-merge)
18+find_program(INTLTOOL_EXTRACT intltool-extract)
19
20 set(CMAKE_AUTOMOC ON)
21 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra -fPIC")
22@@ -72,7 +74,8 @@
23
24 file(GLOB_RECURSE I18N_SRC_FILES
25 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
26- src/app/qml/*.qml *.desktop.in)
27+ *.qml *.js *.cpp *.h)
28+list(APPEND I18N_SRC_FILES ${DESKTOP_FILE}.in.in.h)
29 list(SORT I18N_SRC_FILES)
30
31 file(GLOB SRC_FILES
32@@ -80,7 +83,12 @@
33 *.qml *.js *.png *.js)
34 install(FILES ${SRC_FILES} DESTINATION ${DATA_DIR})
35
36-configure_file(${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE})
37+configure_file(${DESKTOP_FILE}.in.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}.in)
38+
39+add_custom_target(${DESKTOP_FILE} ALL
40+ COMMENT "Merging translations into ${DESKTOP_FILE}"
41+ COMMAND LC_ALL=C ${INTLTOOL_MERGE} -d -u ${CMAKE_SOURCE_DIR}/po ${DESKTOP_FILE}.in ${DESKTOP_FILE} > /dev/null
42+)
43 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} DESTINATION ${DESKTOP_DIR})
44
45 configure_file(${APPLICATION_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_FILE})
46
47=== modified file 'README.translations'
48--- README.translations 2013-11-20 21:47:27 +0000
49+++ README.translations 2014-09-28 09:12:09 +0000
50@@ -10,10 +10,9 @@
51 translatable messages to translators. So whenever you add new translatable
52 messages in the code, make sure to follow these steps:
53
54- 1. Change directory to the po/ folder: `cd po`
55- 2. Update the translations template: `qmake && make pot`
56- 3. Commit the generated .pot file: `bzr commit -m"Updated translation template"`
57- 4. Push the branch and send a merge proposal as usual
58+ 1. Run click-buddy retaining the build directory:
59+ `click-buddy --dir . --no-clean`
60+ 2. Commit and push the branch and send a merge proposal as usual
61
62 And that's it, once the branch lands Launchpad should take care of all the rest!
63
64
65=== renamed file 'com.ubuntu.reminders.desktop.in' => 'com.ubuntu.reminders.desktop.in.in'
66--- com.ubuntu.reminders.desktop.in 2014-07-21 14:47:58 +0000
67+++ com.ubuntu.reminders.desktop.in.in 2014-09-28 09:12:09 +0000
68@@ -1,10 +1,9 @@
69 [Desktop Entry]
70-Name=Reminders
71-Comment=Ubuntu Reminders app, powered by Evernote
72+_Name=Reminders
73+_Comment=Ubuntu Reminders app, powered by Evernote
74 Exec=@EXEC@
75 Icon=@ICON@
76 Terminal=false
77 Type=Application
78 X-Ubuntu-Touch=true
79-X-Ubuntu-Gettext-Domain=@PROJECT_NAME@
80 X-Ubuntu-Default-Department-ID=accessories
81
82=== modified file 'debian/control'
83--- debian/control 2014-09-09 16:27:03 +0000
84+++ debian/control 2014-09-28 09:12:09 +0000
85@@ -5,6 +5,7 @@
86 debhelper (>= 9),
87 dh-exec,
88 gettext,
89+ intltool,
90 libboost-dev,
91 libssl-dev,
92 python3-all,
93
94=== modified file 'po/CMakeLists.txt'
95--- po/CMakeLists.txt 2014-01-28 08:31:37 +0000
96+++ po/CMakeLists.txt 2014-09-28 09:12:09 +0000
97@@ -5,15 +5,19 @@
98 set(POT_FILE ${DOMAIN}.pot)
99 file(GLOB PO_FILES *.po)
100
101-add_custom_target(${POT_FILE}
102- COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} -o ${POT_FILE}
103- -D ${CMAKE_SOURCE_DIR}
104- --from-code=UTF-8
105- --c++ --qt --add-comments=TRANSLATORS
106- --keyword=tr --keyword=tr:1,2
107- --package-name='${PROJECT}'
108- --copyright-holder='Canonical Ltd.'
109- ${I18N_SRC_FILES})
110+add_custom_target(${POT_FILE} ALL
111+ COMMENT "Generating translation template"
112+ COMMAND ${INTLTOOL_EXTRACT} --update --type=gettext/ini
113+ --srcdir=${CMAKE_SOURCE_DIR} ${DESKTOP_FILE}.in.in
114+ COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} -o ${POT_FILE}
115+ --from-code=UTF-8
116+ --c++ --qt --add-comments=TRANSLATORS
117+ --keyword=tr --keyword=tr:1,2 --keyword=N_
118+ --package-name='${PROJECT}'
119+ --copyright-holder='Canonical Ltd.'
120+ -D ${CMAKE_SOURCE_DIR} ${I18N_SRC_FILES}
121+ -D ${CMAKE_CURRENT_BINARY_DIR} ${DESKTOP_FILE}.in.in.h
122+ COMMAND ${CMAKE_COMMAND} -E copy ${POT_FILE} ${CMAKE_CURRENT_SOURCE_DIR})
123
124 foreach(PO_FILE ${PO_FILES})
125 get_filename_component(LANG ${PO_FILE} NAME_WE)
126
127=== modified file 'po/com.ubuntu.reminders.pot'
128--- po/com.ubuntu.reminders.pot 2014-08-29 12:56:52 +0000
129+++ po/com.ubuntu.reminders.pot 2014-09-28 09:12:09 +0000
130@@ -1,14 +1,14 @@
131-# reminders-app translations
132-# Copyright (C) 2014 Canonical Ltd.
133-# This file is distributed under the same license as the reminders-app package.
134+# SOME DESCRIPTIVE TITLE.
135+# Copyright (C) YEAR Canonical Ltd.
136+# This file is distributed under the same license as the PACKAGE package.
137 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
138 #
139 #, fuzzy
140 msgid ""
141 msgstr ""
142-"Project-Id-Version: com.ubuntu.reminders\n"
143+"Project-Id-Version: \n"
144 "Report-Msgid-Bugs-To: \n"
145-"POT-Creation-Date: 2014-08-29 14:53+0200\n"
146+"POT-Creation-Date: 2014-09-28 11:05+0200\n"
147 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
148 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
149 "Language-Team: LANGUAGE <LL@li.org>\n"
150@@ -17,243 +17,244 @@
151 "Content-Type: text/plain; charset=CHARSET\n"
152 "Content-Transfer-Encoding: 8bit\n"
153
154-#: ../src/app/qml/reminders.qml:205
155-msgid "Notes"
156-msgstr ""
157-
158-#: ../src/app/qml/reminders.qml:234
159-msgid "Notebooks"
160-msgstr ""
161-
162-#: ../src/app/qml/reminders.qml:262
163-#: ../.build/com.ubuntu.reminders.desktop.js:1
164+#: com.ubuntu.reminders.desktop.in.in.h:1 src/app/qml/reminders.qml:266
165 msgid "Reminders"
166 msgstr ""
167
168-#: ../src/app/qml/reminders.qml:282
169-msgid ""
170-"No note selected.\n"
171-"Select a note to see it in detail."
172-msgstr ""
173-
174-#: ../src/app/qml/reminders.qml:319
175-msgid "No account available"
176-msgstr ""
177-
178-#: ../src/app/qml/reminders.qml:320
179-msgid "Please configure and authorize an Evernote account in System Settings"
180-msgstr ""
181-
182-#: ../src/app/qml/reminders.qml:340
183-#: ../src/app/qml/ui/AccountSelectorPage.qml:63
184-msgid "Add account"
185-msgstr ""
186-
187-#: ../src/app/qml/components/NotebooksDelegate.qml:68
188+#: com.ubuntu.reminders.desktop.in.in.h:2
189+msgid "Ubuntu Reminders app, powered by Evernote"
190+msgstr ""
191+
192+#: src/app/qml/components/NotebooksDelegate.qml:98
193 #, qt-format
194 msgid "Last edited %1"
195 msgstr ""
196
197-#: ../src/app/qml/components/NotebooksDelegate.qml:75
198+#: src/app/qml/components/NotebooksDelegate.qml:105
199 msgid "Shared"
200 msgstr ""
201
202-#: ../src/app/qml/components/NotebooksDelegate.qml:75
203+#: src/app/qml/components/NotebooksDelegate.qml:105
204 msgid "Private"
205 msgstr ""
206
207-#: ../src/app/qml/components/PulldownListView.qml:40
208+#: src/app/qml/components/PulldownListView.qml:40
209 msgid "Release to refresh"
210 msgstr ""
211
212-#: ../src/app/qml/components/PulldownListView.qml:40
213+#: src/app/qml/components/PulldownListView.qml:40
214 msgid "Pull down to refresh"
215 msgstr ""
216
217-#: ../src/app/qml/components/RemindersDelegate.qml:50
218-#: ../src/app/qml/ui/SetReminderView.qml:55
219+#: src/app/qml/components/RemindersDelegate.qml:50
220+#: src/app/qml/ui/SetReminderView.qml:55
221 msgid "Clear reminder"
222 msgstr ""
223
224-#: ../src/app/qml/components/RemindersDelegate.qml:50
225+#: src/app/qml/components/RemindersDelegate.qml:50
226 msgid "Mark as done"
227 msgstr ""
228
229-#: ../src/app/qml/ui/AccountSelectorPage.qml:29
230+#: src/app/qml/reminders.qml:205
231+msgid "Notes"
232+msgstr ""
233+
234+#: src/app/qml/reminders.qml:236
235+msgid "Notebooks"
236+msgstr ""
237+
238+#: src/app/qml/reminders.qml:286
239+msgid ""
240+"No note selected.\n"
241+"Select a note to see it in detail."
242+msgstr ""
243+
244+#: src/app/qml/reminders.qml:323
245+msgid "No account available"
246+msgstr ""
247+
248+#: src/app/qml/reminders.qml:324
249+msgid "Please configure and authorize an Evernote account in System Settings"
250+msgstr ""
251+
252+#: src/app/qml/reminders.qml:344 src/app/qml/ui/AccountSelectorPage.qml:63
253+msgid "Add account"
254+msgstr ""
255+
256+#: src/app/qml/ui/AccountSelectorPage.qml:29
257 msgid "Select Evernote account"
258 msgstr ""
259
260-#: ../src/app/qml/ui/EditNoteView.qml:98
261-#: ../src/app/qml/ui/EditNoteView.qml:110 ../src/app/qml/ui/NotesPage.qml:48
262+#: src/app/qml/ui/EditNoteView.qml:100 src/app/qml/ui/EditNoteView.qml:112
263+#: src/app/qml/ui/NotesPage.qml:70
264 msgid "Untitled"
265 msgstr ""
266
267-#: ../src/app/qml/ui/NotePage.qml:34 ../src/app/qml/ui/NotesPage.qml:112
268+#: src/app/qml/ui/NotePage.qml:34 src/app/qml/ui/NotesPage.qml:134
269 msgid "Edit"
270 msgstr ""
271
272-#: ../src/app/qml/ui/NotePage.qml:43 ../src/app/qml/ui/NotesPage.qml:96
273+#: src/app/qml/ui/NotePage.qml:43 src/app/qml/ui/NotesPage.qml:118
274 msgid "Edit reminder"
275 msgstr ""
276
277-#: ../src/app/qml/ui/NotePage.qml:43 ../src/app/qml/ui/NotesPage.qml:96
278-#: ../src/app/qml/ui/SetReminderView.qml:66
279+#: src/app/qml/ui/NotePage.qml:43 src/app/qml/ui/NotesPage.qml:118
280+#: src/app/qml/ui/SetReminderView.qml:66
281 msgid "Set reminder"
282 msgstr ""
283
284-#: ../src/app/qml/ui/NotePage.qml:57 ../src/app/qml/ui/NotesPage.qml:86
285+#: src/app/qml/ui/NotePage.qml:57 src/app/qml/ui/NotesPage.qml:108
286 msgid "Delete"
287 msgstr ""
288
289-#: ../src/app/qml/ui/NotebooksPage.qml:41
290+#: src/app/qml/ui/NotebooksPage.qml:43
291 msgid "Add notebook"
292 msgstr ""
293
294-#: ../src/app/qml/ui/NotebooksPage.qml:51 ../src/app/qml/ui/NotesPage.qml:55
295-#: ../src/app/qml/ui/RemindersPage.qml:34
296-#: ../src/app/qml/ui/SearchNotesPage.qml:58
297+#: src/app/qml/ui/NotebooksPage.qml:53 src/app/qml/ui/NotesPage.qml:77
298+#: src/app/qml/ui/RemindersPage.qml:34 src/app/qml/ui/SearchNotesPage.qml:58
299 msgid "Search"
300 msgstr ""
301
302-#: ../src/app/qml/ui/NotebooksPage.qml:61 ../src/app/qml/ui/NotesPage.qml:65
303+#: src/app/qml/ui/NotebooksPage.qml:63 src/app/qml/ui/NotesPage.qml:87
304 msgid "Refresh"
305 msgstr ""
306
307-#: ../src/app/qml/ui/NotebooksPage.qml:71 ../src/app/qml/ui/NotesPage.qml:75
308-#: ../src/app/qml/ui/RemindersPage.qml:44
309+#: src/app/qml/ui/NotebooksPage.qml:73 src/app/qml/ui/NotesPage.qml:97
310+#: src/app/qml/ui/RemindersPage.qml:44
311 msgid "Accounts"
312 msgstr ""
313
314-#: ../src/app/qml/ui/NotebooksPage.qml:173
315+#: src/app/qml/ui/NotebooksPage.qml:175
316 msgid "Cancel"
317 msgstr ""
318
319-#: ../src/app/qml/ui/NotebooksPage.qml:182
320+#: src/app/qml/ui/NotebooksPage.qml:184
321 msgid "Save"
322 msgstr ""
323
324-#: ../src/app/qml/ui/NotesPage.qml:45
325+#: src/app/qml/ui/NotesPage.qml:39 src/app/qml/ui/NotesPage.qml:67
326 msgid "Add note"
327 msgstr ""
328
329-#: ../src/app/qml/ui/NotesPage.qml:185
330+#: src/app/qml/ui/NotesPage.qml:207
331 msgid ""
332 "No notes available. You can create new notes using the \"Add note\" button."
333 msgstr ""
334
335-#: ../src/app/qml/ui/RemindersPage.qml:108
336+#: src/app/qml/ui/RemindersPage.qml:108
337 msgid ""
338 "No reminders available. You can create new reminders by setting a reminder "
339 "when viewing a note."
340 msgstr ""
341
342-#: ../src/app/qml/ui/SearchNotesPage.qml:30
343+#: src/app/qml/ui/SearchNotesPage.qml:30
344 msgid "Search notes"
345 msgstr ""
346
347-#: ../src/app/qml/ui/SetReminderView.qml:36
348+#: src/app/qml/ui/SetReminderView.qml:36
349 msgid "Select date and time for the reminder:"
350 msgstr ""
351
352-#: ../src/plugin/Evernote/note.cpp:82 ../src/plugin/Evernote/note.cpp:240
353+#: src/plugin/Evernote/jobs/evernotejob.cpp:91
354+msgid "Authentication expired."
355+msgstr ""
356+
357+#: src/plugin/Evernote/jobs/evernotejob.cpp:95
358+msgid "Limit exceeded."
359+msgstr ""
360+
361+#: src/plugin/Evernote/jobs/evernotejob.cpp:99
362+msgid "Rate limit exceeded."
363+msgstr ""
364+
365+#: src/plugin/Evernote/jobs/evernotejob.cpp:103
366+msgid "Quota exceeded."
367+msgstr ""
368+
369+#: src/plugin/Evernote/note.cpp:82 src/plugin/Evernote/note.cpp:247
370 msgid "Today"
371 msgstr ""
372
373-#: ../src/plugin/Evernote/note.cpp:85
374+#: src/plugin/Evernote/note.cpp:85
375 msgid "Yesterday"
376 msgstr ""
377
378-#: ../src/plugin/Evernote/note.cpp:88
379+#: src/plugin/Evernote/note.cpp:88
380 msgid "Last week"
381 msgstr ""
382
383-#: ../src/plugin/Evernote/note.cpp:91
384+#: src/plugin/Evernote/note.cpp:91
385 msgid "Two weeks ago"
386 msgstr ""
387
388 #. TRANSLATORS: the first argument refers to a month name and the second to a year
389-#: ../src/plugin/Evernote/note.cpp:95
390+#: src/plugin/Evernote/note.cpp:95
391 #, qt-format
392 msgid "%1 %2"
393 msgstr ""
394
395-#: ../src/plugin/Evernote/note.cpp:228
396+#: src/plugin/Evernote/note.cpp:235
397 msgid "Done"
398 msgstr ""
399
400-#: ../src/plugin/Evernote/note.cpp:234
401+#: src/plugin/Evernote/note.cpp:241
402 msgid "No date"
403 msgstr ""
404
405-#: ../src/plugin/Evernote/note.cpp:237
406+#: src/plugin/Evernote/note.cpp:244
407 msgid "Overdue"
408 msgstr ""
409
410-#: ../src/plugin/Evernote/note.cpp:243
411+#: src/plugin/Evernote/note.cpp:250
412 msgid "Tomorrow"
413 msgstr ""
414
415-#: ../src/plugin/Evernote/note.cpp:246
416+#: src/plugin/Evernote/note.cpp:253
417 msgid "Next week"
418 msgstr ""
419
420-#: ../src/plugin/Evernote/note.cpp:249
421+#: src/plugin/Evernote/note.cpp:256
422 msgid "In two weeks"
423 msgstr ""
424
425-#: ../src/plugin/Evernote/note.cpp:251
426+#: src/plugin/Evernote/note.cpp:258
427 msgid "Later"
428 msgstr ""
429
430 #. TRANSLATORS: this is part of a longer string - "Last updated: today"
431-#: ../src/plugin/Evernote/notebook.cpp:100
432+#: src/plugin/Evernote/notebook.cpp:100
433 msgid "today"
434 msgstr ""
435
436 #. TRANSLATORS: this is part of a longer string - "Last updated: yesterday"
437-#: ../src/plugin/Evernote/notebook.cpp:104
438+#: src/plugin/Evernote/notebook.cpp:104
439 msgid "yesterday"
440 msgstr ""
441
442 #. TRANSLATORS: this is part of a longer string - "Last updated: last week"
443-#: ../src/plugin/Evernote/notebook.cpp:108
444+#: src/plugin/Evernote/notebook.cpp:108
445 msgid "last week"
446 msgstr ""
447
448 #. TRANSLATORS: this is part of a longer string - "Last updated: two weeks ago"
449-#: ../src/plugin/Evernote/notebook.cpp:112
450+#: src/plugin/Evernote/notebook.cpp:112
451 msgid "two weeks ago"
452 msgstr ""
453
454 #. TRANSLATORS: this is used in the notes list to group notes created on the same month
455 #. the first parameter refers to a month name and the second to a year
456-#: ../src/plugin/Evernote/notebook.cpp:116
457+#: src/plugin/Evernote/notebook.cpp:116
458 #, qt-format
459 msgid "on %1 %2"
460 msgstr ""
461
462-#: ../src/plugin/Evernote/notesstore.cpp:223
463+#: src/plugin/Evernote/notesstore.cpp:239
464 #, qt-format
465 msgid "Error refreshing notes: %1"
466 msgstr ""
467
468-#: ../src/plugin/Evernote/notesstore.cpp:375
469+#: src/plugin/Evernote/notesstore.cpp:391
470 #, qt-format
471 msgid "Error refreshing notebooks: %1"
472 msgstr ""
473-
474-#: ../src/plugin/Evernote/jobs/evernotejob.cpp:87
475-msgid "Authentication expired."
476-msgstr ""
477-
478-#: ../src/plugin/Evernote/jobs/evernotejob.cpp:91
479-msgid "Limit exceeded."
480-msgstr ""
481-
482-#: ../src/plugin/Evernote/jobs/evernotejob.cpp:95
483-msgid "Rate limit exceeded."
484-msgstr ""
485-
486-#: ../src/plugin/Evernote/jobs/evernotejob.cpp:99
487-msgid "Quota exceeded."
488-msgstr ""

Subscribers

People subscribed via source and target branches