Merge lp:~phablet-team/messaging-app/messaging-app-desktop-translations into lp:messaging-app

Proposed by Ugo Riboni
Status: Merged
Approved by: Renato Araujo Oliveira Filho
Approved revision: 119
Merged at revision: 147
Proposed branch: lp:~phablet-team/messaging-app/messaging-app-desktop-translations
Merge into: lp:messaging-app
Diff against target: 276 lines (+68/-65)
5 files modified
CMakeLists.txt (+3/-0)
po/CMakeLists.txt (+7/-3)
po/messaging-app.pot (+49/-51)
src/CMakeLists.txt (+5/-7)
src/messaging-app.desktop.in.in (+4/-4)
To merge this branch: bzr merge lp:~phablet-team/messaging-app/messaging-app-desktop-translations
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Renato Araujo Oliveira Filho (community) Approve
Review via email: mp+223364@code.launchpad.net

Commit message

Add translations in .desktop files

Description of the change

Add translations in .desktop files

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) :
review: Needs Fixing
119. By Renato Araujo Oliveira Filho

Removed useless code.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
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-07-01 18:08:32 +0000
3+++ CMakeLists.txt 2014-07-16 12:41:29 +0000
4@@ -5,6 +5,9 @@
5 # Standard install paths
6 include(GNUInstallDirs)
7
8+find_program(INTLTOOL_MERGE intltool-merge)
9+find_program(INTLTOOL_EXTRACT intltool-extract)
10+
11 # Check for include files
12 include(CheckIncludeFileCXX)
13 include(CheckIncludeFile)
14
15=== modified file 'po/CMakeLists.txt'
16--- po/CMakeLists.txt 2013-07-15 20:33:33 +0000
17+++ po/CMakeLists.txt 2014-07-16 12:41:29 +0000
18@@ -8,13 +8,15 @@
19
20 set(DOMAIN messaging-app)
21 set(POT_FILE ${DOMAIN}.pot)
22+set(DESKTOP_FILE ${DOMAIN}.desktop)
23 file(GLOB PO_FILES *.po)
24 file(GLOB_RECURSE I18N_SRCS RELATIVE ${CMAKE_SOURCE_DIR}
25- ${CMAKE_SOURCE_DIR}/src/*.desktop.in
26 ${CMAKE_SOURCE_DIR}/src/*.qml
27 ${CMAKE_SOURCE_DIR}/src/*.js
28 ${CMAKE_SOURCE_DIR}/src/*.cpp
29 )
30+list(APPEND I18N_SRCS src/${DESKTOP_FILE}.in.in)
31+list(SORT I18N_SRCS)
32
33 foreach(PO_FILE ${PO_FILES})
34 get_filename_component(LANG ${PO_FILE} NAME_WE)
35@@ -27,8 +29,10 @@
36
37 find_program(XGETTEXT_EXECUTABLE xgettext)
38 if(XGETTEXT_EXECUTABLE)
39- add_custom_target(${POT_FILE})
40- add_custom_command(TARGET ${POT_FILE}
41+ add_custom_target(${POT_FILE} ALL
42+ COMMENT "Generating translation template"
43+ COMMAND ${INTLTOOL_EXTRACT} --update --type=gettext/ini
44+ --srcdir=${CMAKE_SOURCE_DIR} src/${DESKTOP_FILE}.in.in
45 COMMAND ${XGETTEXT_EXECUTABLE} --c++ --qt --add-comments=TRANSLATORS --keyword=tr --keyword=tr:1,2 -D ${CMAKE_SOURCE_DIR} -s -p ${CMAKE_CURRENT_SOURCE_DIR} -o ${POT_FILE} ${I18N_SRCS}
46 )
47 foreach(PO_FILE ${PO_FILES})
48
49=== modified file 'po/messaging-app.pot'
50--- po/messaging-app.pot 2014-05-09 18:14:10 +0000
51+++ po/messaging-app.pot 2014-07-16 12:41:29 +0000
52@@ -8,7 +8,7 @@
53 msgstr ""
54 "Project-Id-Version: PACKAGE VERSION\n"
55 "Report-Msgid-Bugs-To: \n"
56-"POT-Creation-Date: 2014-05-09 15:13-0300\n"
57+"POT-Creation-Date: 2014-06-17 11:13+0200\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@@ -32,13 +32,6 @@
62 msgstr[0] ""
63 msgstr[1] ""
64
65-#: src/qml/Messages.qml:61
66-#, qt-format
67-msgid "%1 other"
68-msgid_plural "%1 others"
69-msgstr[0] ""
70-msgstr[1] ""
71-
72 #: src/qml/dateUtils.js:66
73 #, qt-format
74 msgid "%1 second call"
75@@ -46,107 +39,112 @@
76 msgstr[0] ""
77 msgstr[1] ""
78
79-#: src/qml/Messages.qml:282
80+#: src/qml/Messages.qml:409
81 msgid "Add"
82 msgstr ""
83
84-#: src/qml/Messages.qml:242
85-msgid "Add Contact"
86-msgstr ""
87-
88-#: src/qml/MultiRecipientInput.qml:163
89+#: src/qml/MultiRecipientInput.qml:145
90 msgid "Add contacts.."
91 msgstr ""
92
93-#: src/qml/MultiRecipientInput.qml:217
94-msgid "Add contacts..."
95+#: src/qml/NewRecipientPage.qml:27
96+msgid "Add recipient"
97 msgstr ""
98
99-#: src/qml/Messages.qml:214
100+#: src/qml/AddPhoneNumberToContactPage.qml:26
101 msgid "Add to contact"
102 msgstr ""
103
104-#: src/qml/Messages.qml:169 src/qml/messaging-app.qml:84
105+#: src/qml/Messages.qml:152 src/qml/messaging-app.qml:137
106 msgid "Add to existing contact"
107 msgstr ""
108
109-#: src/qml/Messages.qml:306
110+#: src/qml/Messages.qml:397 src/qml/Messages.qml:426
111 msgid "Call"
112 msgstr ""
113
114-#: src/qml/MessageDelegate.qml:91 src/qml/Messages.qml:185
115+#: src/qml/MainPage.qml:75 src/qml/MessageDelegate.qml:216
116+#: src/qml/Messages.qml:169
117 msgid "Cancel"
118 msgstr ""
119
120-#: src/qml/MainPage.qml:51
121-msgid "Compose"
122+#: src/qml/MainPage.qml:31
123+msgid "Chats"
124 msgstr ""
125
126-#: src/qml/Messages.qml:294
127+#: src/qml/Messages.qml:438
128 msgid "Contact"
129 msgstr ""
130
131-#: src/qml/MessageDelegate.qml:59
132+#: src/qml/MessageDelegate.qml:176
133 msgid "Copy"
134 msgstr ""
135
136-#: src/qml/Messages.qml:177 src/qml/messaging-app.qml:86
137+#: src/qml/Messages.qml:161 src/qml/messaging-app.qml:139
138 msgid "Create new contact"
139 msgstr ""
140
141-#: src/qml/MainPage.qml:84 src/qml/Messages.qml:386
142-msgid "Delete"
143+#: src/qml/MainPage.qml:31 src/qml/Messages.qml:58
144+msgid "Edit"
145 msgstr ""
146
147-#: src/qml/MessageDelegate.qml:215
148+#: src/qml/MessageDelegate.qml:300
149 msgid "Failed"
150 msgstr ""
151
152-#: src/qml/Messages.qml:167
153+#: src/qml/Messages.qml:74
154+msgid "Group"
155+msgstr ""
156+
157+#: src/qml/Messages.qml:150
158 msgid "How do you want to save the contact?"
159 msgstr ""
160
161-#: src/qml/MainPage.qml:29
162-msgid "Messages"
163-msgstr ""
164-
165-#: src/messaging-app.desktop.in:3
166-msgid "Messaging"
167-msgstr ""
168-
169-#: src/messaging-app.desktop.in:4
170-msgid "Messaging App"
171-msgstr ""
172-
173-#: src/messaging-app.desktop.in:5
174-msgid "Messaging application"
175-msgstr ""
176-
177-#: src/qml/Messages.qml:64
178+#: src/qml/MMS/PreviewerImage.qml:25
179+msgid "Image Preview"
180+msgstr ""
181+
182+#: src/qml/MainPage.qml:39
183+msgid "New Chat"
184+msgstr ""
185+
186+#: src/qml/Messages.qml:77
187 msgid "New Message"
188 msgstr ""
189
190-#: src/qml/Messages.qml:166
191+#: src/qml/MMS/Previewer.qml:32 src/qml/MessageDelegate.qml:61
192+msgid "Save"
193+msgstr ""
194+
195+#: src/qml/Messages.qml:149
196 msgid "Save contact"
197 msgstr ""
198
199-#: src/qml/MainPage.qml:42 src/qml/Messages.qml:273
200+#: src/qml/MessageDelegate.qml:75 src/qml/MessageDelegate.qml:184
201 msgid "Select"
202 msgstr ""
203
204-#: src/qml/MessageDelegate.qml:213
205+#: src/qml/MessageDelegate.qml:298
206 msgid "Sending..."
207 msgstr ""
208
209+#: src/qml/MMS/Previewer.qml:45 src/qml/MessageDelegate.qml:68
210+msgid "Share"
211+msgstr ""
212+
213 #: src/qml/dateUtils.js:41
214 msgid "Today"
215 msgstr ""
216
217-#: src/qml/MessageDelegate.qml:83
218+#: src/qml/MessageDelegate.qml:208
219 msgid "Try again"
220 msgstr ""
221
222-#: src/qml/Messages.qml:474
223+#: src/qml/MMS/PreviewerVideo.qml:25
224+msgid "Video Preview"
225+msgstr ""
226+
227+#: src/qml/Messages.qml:578
228 msgid "Write a message..."
229 msgstr ""
230
231
232=== modified file 'src/CMakeLists.txt'
233--- src/CMakeLists.txt 2014-07-01 18:08:32 +0000
234+++ src/CMakeLists.txt 2014-07-16 12:41:29 +0000
235@@ -25,13 +25,11 @@
236
237 # Handle i18n in the desktop file
238 set(DESKTOP_FILE ${MESSAGING_APP}.desktop)
239-file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE})
240-file(STRINGS ${DESKTOP_FILE}.in DESKTOP_FILE_CONTENTS)
241-foreach(LINE ${DESKTOP_FILE_CONTENTS})
242- string(REGEX REPLACE "tr\\\(\"(.*)\"\\\)" "\\1" LINE "${LINE}")
243- string(CONFIGURE "${LINE}" LINE)
244- file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} "${LINE}\n")
245-endforeach(LINE)
246+configure_file(${DESKTOP_FILE}.in.in ${DESKTOP_FILE}.in)
247+add_custom_target(${DESKTOP_FILE} ALL
248+ COMMENT "Merging translations into ${DESKTOP_FILE}"
249+ COMMAND LC_ALL=C ${INTLTOOL_MERGE} -d -u ${CMAKE_SOURCE_DIR}/po ${DESKTOP_FILE}.in ${DESKTOP_FILE} >/dev/null
250+ )
251
252 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}
253 DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
254
255=== renamed file 'src/messaging-app.desktop.in' => 'src/messaging-app.desktop.in.in'
256--- src/messaging-app.desktop.in 2014-06-24 13:57:22 +0000
257+++ src/messaging-app.desktop.in.in 2014-07-16 12:41:29 +0000
258@@ -1,14 +1,14 @@
259 [Desktop Entry]
260 Type=Application
261-Name=tr("Messaging")
262-GenericName=tr("Messaging App")
263-Comment=tr("Messaging application")
264+_Name=Messaging
265+_GenericName=Messaging App
266+_Comment=Messaging application
267+_Keywords=Messages;SMS;MMS;Text Messages;Text
268 Exec=messaging-app %u
269 Terminal=false
270 Icon=messaging-app
271 MimeType=x-scheme-handler/contact;x-scheme-handler/call
272 X-Ubuntu-Touch=true
273 X-Ubuntu-StageHint=SideStage
274-X-Ubuntu-Gettext-Domain=messaging-app
275 X-Ubuntu-Single-Instance=true
276 X-Screenshot=@CMAKE_INSTALL_PREFIX@/@MESSAGING_APP_DIR@/assets/messaging-app-screenshot.png

Subscribers

People subscribed via source and target branches

to all changes: