Merge lp:~diegosarmentero/pay-ui/translation into lp:pay-ui
- translation
- Merge into first-branch
Status: | Merged |
---|---|
Approved by: | dobey |
Approved revision: | 42 |
Merged at revision: | 22 |
Proposed branch: | lp:~diegosarmentero/pay-ui/translation |
Merge into: | lp:pay-ui |
Prerequisite: | lp:~diegosarmentero/pay-ui/initial-autopilot |
Diff against target: |
273 lines (+175/-18) 8 files modified
CMakeLists.txt (+23/-0) app/CMakeLists.txt (+0/-5) app/payui.desktop.in (+0/-9) debian/control (+2/-0) manifest.json (+4/-4) payui_payui.desktop.in.in (+9/-0) po/CMakeLists.txt (+30/-0) po/payui.pot (+107/-0) |
To merge this branch: | bzr merge lp:~diegosarmentero/pay-ui/translation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
dobey (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
David Planella (community) | Approve | ||
Review via email: mp+230299@code.launchpad.net |
This proposal supersedes a proposal from 2014-08-11.
Commit message
- Adding support for translations
Description of the change
- 28. By Diego Sarmentero
-
changes in cmake
dobey (dobey) : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:28
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:/
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 29. By Diego Sarmentero
-
translation supported
David Planella (dpm) wrote : | # |
At a glance, it looks good to me. I would suggest to internationalize the .desktop file as well, but it could be done in a separate branch.
Here is one example of .desktop file internationaliz
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:29
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:/
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 30. By Diego Sarmentero
-
merge translations in desktop
- 31. By Diego Sarmentero
-
improves in cmake
- 32. By Diego Sarmentero
-
updates in cmake
- 33. By Diego Sarmentero
-
conflicts resolved
David Planella (dpm) wrote : | # |
See comments inline
- 34. By Diego Sarmentero
-
marking attributes for translation
- 35. By Diego Sarmentero
-
adding underscore on .desktop too
- 36. By Diego Sarmentero
-
fixing commented code
- 37. By Diego Sarmentero
-
adding dependecy
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:31
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 38. By Diego Sarmentero
-
email updated
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:37
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
David Planella (dpm) wrote : | # |
Looks good to me, the only thing I'd recommend is to remove the underscores from the .desktop file. Also, the only reason for having a .desktop file kept in bzr was for Qt Creator to be able to launch pure QML applications. If this does not apply to this app, I'd just remove it.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:38
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 39. By Diego Sarmentero
-
working on translations
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:39
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 40. By Diego Sarmentero
-
remove all rule
- 41. By Diego Sarmentero
-
mrege
- 42. By Diego Sarmentero
-
removed generated desktop file
dobey (dobey) : | # |
Preview Diff
1 | === modified file 'CMakeLists.txt' |
2 | --- CMakeLists.txt 2014-07-30 19:01:50 +0000 |
3 | +++ CMakeLists.txt 2014-08-20 13:26:53 +0000 |
4 | @@ -9,11 +9,14 @@ |
5 | set(APPLICATION_DIR ${DATA_DIR}) |
6 | set(CLICK_NAMESPACE com.canonical.payui) |
7 | set(APPLICATION_FILE "${CLICK_NAMESPACE}_${APP_NAME}.application") |
8 | +set(DESKTOP_FILE "${PROJECT_NAME}_${APP_NAME}.desktop") |
9 | |
10 | find_package(Qt5Core) |
11 | find_package(Qt5Qml) |
12 | find_package(Qt5Quick) |
13 | #find_package(ubuntu-sdk-libs) |
14 | +find_program(INTLTOOL_MERGE intltool-merge) |
15 | +find_program(INTLTOOL_EXTRACT intltool-extract) |
16 | |
17 | #automatically create moc files |
18 | set(CMAKE_AUTOMOC ON) |
19 | @@ -54,3 +57,23 @@ |
20 | DEPENDS payuibackend payuibackend-qmldir |
21 | WORKING_DIRECTORY ./app) |
22 | |
23 | +file(GLOB SRC_FILES |
24 | + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} |
25 | + *.qml *.js *.png *.js *.svg) |
26 | +install(FILES ${SRC_FILES} ${ICON_FILE} DESTINATION ${DATA_DIR}) |
27 | + |
28 | +file(GLOB_RECURSE I18N_SRC_FILES |
29 | + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/po |
30 | + *.qml *.js) |
31 | +list(APPEND I18N_SRC_FILES ${DESKTOP_FILE}.in.in.h) |
32 | +list(SORT I18N_SRC_FILES) |
33 | + |
34 | +configure_file(${DESKTOP_FILE}.in.in ${DESKTOP_FILE}.in) |
35 | +add_custom_target(${DESKTOP_FILE} ALL |
36 | + COMMENT "Merging translations into ${DESKTOP_FILE}" |
37 | + COMMAND LC_ALL=C ${INTLTOOL_MERGE} -d -u ${CMAKE_CURRENT_SOURCE_DIR}/po |
38 | + ${DESKTOP_FILE}.in ${DESKTOP_FILE} >/dev/null) |
39 | + |
40 | +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} DESTINATION ${DESKTOP_DIR}) |
41 | + |
42 | +add_subdirectory(po) |
43 | |
44 | === modified file 'app/CMakeLists.txt' |
45 | --- app/CMakeLists.txt 2014-04-16 18:29:09 +0000 |
46 | +++ app/CMakeLists.txt 2014-08-20 13:26:53 +0000 |
47 | @@ -3,11 +3,6 @@ |
48 | # make the files visible on qtcreator |
49 | add_custom_target(payui_QMlFiles ALL SOURCES ${QML_JS_FILES}) |
50 | |
51 | -#substitute variables in the desktop file |
52 | -set(DESKTOP_FILE "${CMAKE_PROJECT_NAME}.desktop") |
53 | -configure_file(${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}) |
54 | - |
55 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} DESTINATION ${DESKTOP_DIR}) |
56 | install(FILES ${QML_JS_FILES} DESTINATION ${PAYUI_DIR}) |
57 | |
58 | add_subdirectory(components) |
59 | |
60 | === removed file 'app/payui.desktop.in' |
61 | --- app/payui.desktop.in 2014-08-11 13:01:18 +0000 |
62 | +++ app/payui.desktop.in 1970-01-01 00:00:00 +0000 |
63 | @@ -1,9 +0,0 @@ |
64 | -[Desktop Entry] |
65 | -Name=Pay UI |
66 | -Comment=The application for completing a purchase. |
67 | -Exec=@EXEC@ --transparent %u |
68 | -Icon=graphics/credit_card@8.png |
69 | -Terminal=false |
70 | -Type=Application |
71 | -X-Ubuntu-Touch=true |
72 | -OnlyShowIn=Old |
73 | |
74 | === modified file 'debian/control' |
75 | --- debian/control 2014-07-28 12:57:07 +0000 |
76 | +++ debian/control 2014-08-20 13:26:53 +0000 |
77 | @@ -5,6 +5,8 @@ |
78 | cmake, |
79 | debhelper (>= 9), |
80 | pkg-config, |
81 | + gettext, |
82 | + intltool, |
83 | libqt5webkit5-qmlwebkitplugin, |
84 | libubuntuoneauth-2.0-dev, |
85 | qtbase5-dev, |
86 | |
87 | === modified file 'manifest.json' |
88 | --- manifest.json 2014-08-11 13:01:18 +0000 |
89 | +++ manifest.json 2014-08-20 13:26:53 +0000 |
90 | @@ -1,16 +1,16 @@ |
91 | { |
92 | "name": "com.canonical.payui", |
93 | "description": "UI for Pay Service", |
94 | - "framework": "ubuntu-sdk-14.10-qml-dev2", |
95 | + "framework": "ubuntu-sdk-14.10-qml-dev3", |
96 | "architecture": "armhf", |
97 | "title": "PayUI", |
98 | "hooks": { |
99 | "payui": { |
100 | "account-application": "com.canonical.payui_payui.application", |
101 | "apparmor": "payui.json", |
102 | - "desktop": "payui.desktop" |
103 | + "desktop": "payui_payui.desktop" |
104 | } |
105 | }, |
106 | - "version": "0.3.9", |
107 | - "maintainer": "Sarmentero Diego <diego.sarmentero@canonical.com>" |
108 | + "version": "0.3.11", |
109 | + "maintainer": "Diego Sarmentero <diego.sarmentero@canonical.com>" |
110 | } |
111 | \ No newline at end of file |
112 | |
113 | === added file 'payui_payui.desktop.in.in' |
114 | --- payui_payui.desktop.in.in 1970-01-01 00:00:00 +0000 |
115 | +++ payui_payui.desktop.in.in 2014-08-20 13:26:53 +0000 |
116 | @@ -0,0 +1,9 @@ |
117 | +[Desktop Entry] |
118 | +_Name=Pay UI |
119 | +_Comment=The application for completing a purchase. |
120 | +Exec=@EXEC@ %u |
121 | +Icon=graphics/credit_card@8.png |
122 | +Terminal=false |
123 | +Type=Application |
124 | +X-Ubuntu-Touch=true |
125 | +OnlyShowIn=Old |
126 | |
127 | === added directory 'po' |
128 | === added file 'po/CMakeLists.txt' |
129 | --- po/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
130 | +++ po/CMakeLists.txt 2014-08-20 13:26:53 +0000 |
131 | @@ -0,0 +1,30 @@ |
132 | +include(FindGettext) |
133 | +find_program(GETTEXT_XGETTEXT_EXECUTABLE xgettext) |
134 | + |
135 | +set(DOMAIN ${PROJECT_NAME}) |
136 | +set(POT_FILE ${DOMAIN}.pot) |
137 | +file(GLOB PO_FILES *.po) |
138 | + |
139 | +add_custom_target(${POT_FILE} |
140 | + COMMENT "Generating translation template" |
141 | + COMMAND ${INTLTOOL_EXTRACT} --update --type=gettext/ini |
142 | + --srcdir=${CMAKE_SOURCE_DIR} ${DESKTOP_FILE}.in.in |
143 | + COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} -o ${POT_FILE} |
144 | + -D ${CMAKE_CURRENT_SOURCE_DIR} |
145 | + -D ${CMAKE_CURRENT_BINARY_DIR} |
146 | + --from-code=UTF-8 |
147 | + --c++ --qt --add-comments=TRANSLATORS |
148 | + --keyword=tr --keyword=tr:1,2 --keyword=N_ |
149 | + --package-name='${PROJECT_NAME}' |
150 | + --copyright-holder='Canonical Ltd.' |
151 | + ${I18N_SRC_FILES} |
152 | + COMMAND cp -f ${POT_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/) |
153 | + |
154 | +foreach(PO_FILE ${PO_FILES}) |
155 | + get_filename_component(LANG ${PO_FILE} NAME_WE) |
156 | + gettext_process_po_files(${LANG} ALL PO_FILES ${PO_FILE}) |
157 | + set(INSTALL_DIR ${CMAKE_INSTALL_LOCALEDIR}/${LANG}/LC_MESSAGES) |
158 | + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.gmo |
159 | + DESTINATION ${INSTALL_DIR} |
160 | + RENAME ${DOMAIN}.mo) |
161 | +endforeach(PO_FILE) |
162 | |
163 | === added file 'po/payui.pot' |
164 | --- po/payui.pot 1970-01-01 00:00:00 +0000 |
165 | +++ po/payui.pot 2014-08-20 13:26:53 +0000 |
166 | @@ -0,0 +1,107 @@ |
167 | +# SOME DESCRIPTIVE TITLE. |
168 | +# Copyright (C) YEAR Canonical Ltd. |
169 | +# This file is distributed under the same license as the PACKAGE package. |
170 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
171 | +# |
172 | +#, fuzzy |
173 | +msgid "" |
174 | +msgstr "" |
175 | +"Project-Id-Version: payui\n" |
176 | +"Report-Msgid-Bugs-To: \n" |
177 | +"POT-Creation-Date: 2014-08-13 12:14-0300\n" |
178 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
179 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
180 | +"Language-Team: LANGUAGE <LL@li.org>\n" |
181 | +"Language: \n" |
182 | +"MIME-Version: 1.0\n" |
183 | +"Content-Type: text/plain; charset=UTF-8\n" |
184 | +"Content-Transfer-Encoding: 8bit\n" |
185 | + |
186 | +#: ../app/payui.qml:245 |
187 | +msgid "Purchase failed" |
188 | +msgstr "" |
189 | + |
190 | +#: ../app/payui.qml:246 |
191 | +msgid "The purchase couldn't be completed." |
192 | +msgstr "" |
193 | + |
194 | +#: ../app/payui.qml:260 |
195 | +msgid "Error contacting the server" |
196 | +msgstr "" |
197 | + |
198 | +#: ../app/payui.qml:261 ../app/payui.qml:276 |
199 | +msgid "Do you want to try again?" |
200 | +msgstr "" |
201 | + |
202 | +#: ../app/payui.qml:275 |
203 | +msgid "Adding Credit Card failed" |
204 | +msgstr "" |
205 | + |
206 | +#: ../app/payui.qml:292 |
207 | +msgid "Processing Purchase" |
208 | +msgstr "" |
209 | + |
210 | +#: ../app/payui.qml:292 |
211 | +msgid "Loading" |
212 | +msgstr "" |
213 | + |
214 | +#: ../app/payui.qml:293 |
215 | +msgid "Please wait…" |
216 | +msgstr "" |
217 | + |
218 | +#: ../app/payui.qml:307 ../app/ui/AddPaymentPage.qml:168 |
219 | +#: ../app/ui/CheckoutPage.qml:207 ../app/ui/DirectPurchase.qml:168 |
220 | +msgid "Cancel" |
221 | +msgstr "" |
222 | + |
223 | +#: ../app/payui.qml:374 ../app/payui.qml:387 |
224 | +msgid "Add Payment" |
225 | +msgstr "" |
226 | + |
227 | +#: ../app/ui/AddPaymentPage.qml:25 ../app/ui/CheckoutPage.qml:25 |
228 | +msgid "Payment" |
229 | +msgstr "" |
230 | + |
231 | +#: ../app/ui/AddPaymentPage.qml:155 ../app/ui/CheckoutPage.qml:230 |
232 | +msgid "Add credit/debit card" |
233 | +msgstr "" |
234 | + |
235 | +#: ../app/ui/CheckoutPage.qml:216 ../app/ui/DirectPurchase.qml:177 |
236 | +msgid "Buy Now" |
237 | +msgstr "" |
238 | + |
239 | +#: ../app/ui/DirectPurchase.qml:82 |
240 | +msgid "Sign in to Ubuntu Store" |
241 | +msgstr "" |
242 | + |
243 | +#: ../app/ui/DirectPurchase.qml:95 |
244 | +msgid "Enter the Ubuntu One password for" |
245 | +msgstr "" |
246 | + |
247 | +#: ../app/ui/DirectPurchase.qml:120 |
248 | +msgid "Password" |
249 | +msgstr "" |
250 | + |
251 | +#: ../app/ui/DirectPurchase.qml:134 |
252 | +msgid "Incorrect Password, please try again." |
253 | +msgstr "" |
254 | + |
255 | +#: ../app/ui/DirectPurchase.qml:193 |
256 | +msgid "View wallet" |
257 | +msgstr "" |
258 | + |
259 | +#: ../app/ui/ErrorDialog.qml:45 |
260 | +msgid "Retry" |
261 | +msgstr "" |
262 | + |
263 | +#: ../app/ui/ErrorDialog.qml:55 |
264 | +msgid "Close" |
265 | +msgstr "" |
266 | + |
267 | +#: payui_payui.desktop.in.in.h:1 |
268 | +msgid "Pay UI" |
269 | +msgstr "" |
270 | + |
271 | +#: payui_payui.desktop.in.in.h:2 |
272 | +msgid "The application for completing a purchase." |
273 | +msgstr "" |
FAILED: Continuous integration, rev:27 /code.launchpad .net/~diegosarm entero/ pay-ui/ translation/ +merge/ 230299/ +edit-commit- message
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:/
http:// jenkins. qa.ubuntu. com/job/ pay-ui- ci/60/ jenkins. qa.ubuntu. com/job/ generic- click-builder- utopic- armhf/392/ console jenkins. qa.ubuntu. com/job/ pay-ui- utopic- amd64-ci/ 57 jenkins. qa.ubuntu. com/job/ pay-ui- utopic- armhf-ci/ 57/console jenkins. qa.ubuntu. com/job/ pay-ui- utopic- i386-ci/ 57
Executed test runs:
FAILURE: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/pay- ui-ci/60/ rebuild
http://