Merge lp:~costales/unav/0.67-cancel-download into lp:unav

Proposed by costales
Status: Merged
Merged at revision: 177
Proposed branch: lp:~costales/unav/0.67-cancel-download
Merge into: lp:unav
Diff against target: 533 lines (+90/-334)
6 files modified
nav/img/voices/no-tick.svg (+53/-0)
nav/img/voices/non-starred.svg (+0/-160)
nav/img/voices/starred.svg (+0/-160)
nav/img/voices/tick.svg (+17/-0)
po/unav.pot (+10/-10)
qml/DownloadVoices.qml (+10/-4)
To merge this branch: bzr merge lp:~costales/unav/0.67-cancel-download
Reviewer Review Type Date Requested Status
uNav developers Pending
Review via email: mp+319596@code.launchpad.net

Description of the change

Real cancel download

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'nav/img/voices/no-tick.svg'
2--- nav/img/voices/no-tick.svg 1970-01-01 00:00:00 +0000
3+++ nav/img/voices/no-tick.svg 2017-03-10 16:20:13 +0000
4@@ -0,0 +1,53 @@
5+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
6+<!-- Created with Inkscape (http://www.inkscape.org/) -->
7+
8+<svg
9+ xmlns:dc="http://purl.org/dc/elements/1.1/"
10+ xmlns:cc="http://creativecommons.org/ns#"
11+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
12+ xmlns:svg="http://www.w3.org/2000/svg"
13+ xmlns="http://www.w3.org/2000/svg"
14+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
15+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
16+ id="svg4874"
17+ height="96"
18+ viewBox="0 0 96 96.000001"
19+ width="96"
20+ version="1.1"
21+ inkscape:version="0.91 r13725"
22+ sodipodi:docname="no-tick.svg">
23+ <defs
24+ id="defs9" />
25+ <sodipodi:namedview
26+ pagecolor="#ffffff"
27+ bordercolor="#666666"
28+ borderopacity="1"
29+ objecttolerance="10"
30+ gridtolerance="10"
31+ guidetolerance="10"
32+ inkscape:pageopacity="0"
33+ inkscape:pageshadow="2"
34+ inkscape:window-width="725"
35+ inkscape:window-height="480"
36+ id="namedview7"
37+ showgrid="false"
38+ inkscape:zoom="2.4583333"
39+ inkscape:cx="48"
40+ inkscape:cy="48"
41+ inkscape:window-x="0"
42+ inkscape:window-y="24"
43+ inkscape:window-maximized="0"
44+ inkscape:current-layer="svg4874" />
45+ <metadata
46+ id="metadata4879">
47+ <rdf:RDF>
48+ <cc:Work
49+ rdf:about="">
50+ <dc:format>image/svg+xml</dc:format>
51+ <dc:type
52+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
53+ <dc:title />
54+ </cc:Work>
55+ </rdf:RDF>
56+ </metadata>
57+</svg>
58
59=== removed file 'nav/img/voices/non-starred.svg'
60--- nav/img/voices/non-starred.svg 2017-01-14 23:08:02 +0000
61+++ nav/img/voices/non-starred.svg 1970-01-01 00:00:00 +0000
62@@ -1,160 +0,0 @@
63-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
64-<!-- Created with Inkscape (http://www.inkscape.org/) -->
65-
66-<svg
67- xmlns:dc="http://purl.org/dc/elements/1.1/"
68- xmlns:cc="http://creativecommons.org/ns#"
69- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
70- xmlns:svg="http://www.w3.org/2000/svg"
71- xmlns="http://www.w3.org/2000/svg"
72- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
73- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
74- width="96"
75- height="96"
76- id="svg4874"
77- version="1.1"
78- inkscape:version="0.91+devel r"
79- viewBox="0 0 96 96.000001"
80- sodipodi:docname="non-starred.svg">
81- <defs
82- id="defs4876" />
83- <sodipodi:namedview
84- id="base"
85- pagecolor="#ffffff"
86- bordercolor="#666666"
87- borderopacity="1.0"
88- inkscape:pageopacity="0.0"
89- inkscape:pageshadow="2"
90- inkscape:zoom="5.6199993"
91- inkscape:cx="-4.3416438"
92- inkscape:cy="69.76867"
93- inkscape:document-units="px"
94- inkscape:current-layer="g4780"
95- showgrid="true"
96- showborder="true"
97- fit-margin-top="0"
98- fit-margin-left="0"
99- fit-margin-right="0"
100- fit-margin-bottom="0"
101- inkscape:snap-bbox="true"
102- inkscape:bbox-paths="true"
103- inkscape:bbox-nodes="true"
104- inkscape:snap-bbox-edge-midpoints="true"
105- inkscape:snap-bbox-midpoints="true"
106- inkscape:object-paths="true"
107- inkscape:snap-intersection-paths="true"
108- inkscape:object-nodes="true"
109- inkscape:snap-smooth-nodes="true"
110- inkscape:snap-midpoints="true"
111- inkscape:snap-object-midpoints="true"
112- inkscape:snap-center="true"
113- showguides="true"
114- inkscape:guide-bbox="true"
115- inkscape:snap-global="true">
116- <inkscape:grid
117- type="xygrid"
118- id="grid5451"
119- empspacing="8" />
120- <sodipodi:guide
121- orientation="1,0"
122- position="8,-8.0000001"
123- id="guide4063" />
124- <sodipodi:guide
125- orientation="1,0"
126- position="4,-8.0000001"
127- id="guide4065" />
128- <sodipodi:guide
129- orientation="0,1"
130- position="-8,88.000001"
131- id="guide4067" />
132- <sodipodi:guide
133- orientation="0,1"
134- position="-8,92.000001"
135- id="guide4069" />
136- <sodipodi:guide
137- orientation="0,1"
138- position="104,4"
139- id="guide4071" />
140- <sodipodi:guide
141- orientation="0,1"
142- position="-5,8.0000001"
143- id="guide4073" />
144- <sodipodi:guide
145- orientation="1,0"
146- position="88,-8.0000001"
147- id="guide4077" />
148- <sodipodi:guide
149- orientation="0,1"
150- position="-8,84.000001"
151- id="guide4074" />
152- <sodipodi:guide
153- orientation="1,0"
154- position="12,-8.0000001"
155- id="guide4076" />
156- <sodipodi:guide
157- orientation="1,0"
158- position="84,-8.0000001"
159- id="guide4080" />
160- <sodipodi:guide
161- position="48,-8.0000001"
162- orientation="1,0"
163- id="guide4170" />
164- <sodipodi:guide
165- position="-8,48"
166- orientation="0,1"
167- id="guide4172" />
168- <sodipodi:guide
169- position="92,-8.0000001"
170- orientation="1,0"
171- id="guide4760" />
172- </sodipodi:namedview>
173- <metadata
174- id="metadata4879">
175- <rdf:RDF>
176- <cc:Work
177- rdf:about="">
178- <dc:format>image/svg+xml</dc:format>
179- <dc:type
180- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
181- <dc:title></dc:title>
182- </cc:Work>
183- </rdf:RDF>
184- </metadata>
185- <g
186- inkscape:label="Layer 1"
187- inkscape:groupmode="layer"
188- id="layer1"
189- transform="translate(67.857146,-78.50504)">
190- <g
191- transform="matrix(0,-1,-1,0,373.50506,516.50504)"
192- id="g4845"
193- style="display:inline">
194- <g
195- inkscape:export-ydpi="90"
196- inkscape:export-xdpi="90"
197- inkscape:export-filename="next01.png"
198- transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
199- id="g4778"
200- inkscape:label="Layer 1">
201- <g
202- transform="matrix(-1,0,0,1,575.99999,611)"
203- id="g4780"
204- style="display:inline">
205- <rect
206- style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
207- id="rect4782"
208- width="96.037987"
209- height="96"
210- x="-438.00244"
211- y="345.36221"
212- transform="scale(-1,1)" />
213- <path
214- style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;marker:none;enable-background:accumulate"
215- d="M 48.021484 8 C 48.021484 8 48.023438 8.0019531 48.023438 8.0019531 C 48.023438 8.0019531 48.025391 8 48.025391 8 L 48.021484 8 z M 48.023438 8.0019531 C 48.020658 8.0024345 48.017186 8.0030924 48.015625 8.0078125 C 48.008625 8.0088121 48.007859 8.0126262 48.005859 8.015625 C 47.999859 8.0186238 47.999047 8.0243449 47.998047 8.0273438 C 47.992047 8.0303426 47.991281 8.0292047 47.988281 8.0332031 C 42.927951 18.893186 39.018172 29.962354 36.794922 36.744141 C 29.481092 36.750138 17.434385 37.027378 5.953125 38.517578 C 5.952125 38.521577 5.9510781 38.522392 5.9550781 38.525391 C 5.9540781 38.532388 5.9598906 38.536164 5.9628906 38.539062 C 5.9638906 38.54606 5.96575 38.548782 5.96875 38.550781 C 5.96975 38.557778 5.9706562 38.555595 5.9726562 38.558594 C 14.737316 46.727322 24.057332 53.865858 29.820312 58.076172 C 27.565103 65.033519 24.105319 76.578677 21.974609 87.958984 C 21.977609 87.960984 21.979375 87.961983 21.984375 87.958984 C 21.990375 87.961983 21.993194 87.956078 21.996094 87.955078 C 22.003094 87.956078 22.007866 87.954125 22.009766 87.953125 C 22.016766 87.954125 22.016531 87.954125 22.019531 87.953125 C 32.497441 82.141414 42.168135 75.48841 47.953125 71.308594 C 53.873275 75.603464 63.783426 82.459396 73.947266 88.001953 C 73.950266 87.999954 73.950219 87.995332 73.949219 87.990234 C 73.953219 87.986236 73.951172 87.979461 73.951172 87.976562 C 73.954172 87.970565 73.953125 87.966743 73.953125 87.964844 C 73.956125 87.958846 73.958984 87.957223 73.958984 87.953125 C 71.669554 76.192038 68.326252 64.939966 66.138672 58.146484 C 72.052872 53.843157 81.633422 46.537088 90.044922 38.583984 C 90.043922 38.580986 90.043109 38.579125 90.037109 38.578125 C 90.034109 38.572127 90.028391 38.571312 90.025391 38.570312 C 90.021391 38.566314 90.013419 38.565453 90.011719 38.564453 C 90.007719 38.560455 90.008906 38.556687 90.003906 38.554688 C 78.111466 37.097764 66.377304 36.800063 59.240234 36.78125 C 56.975133 29.827029 52.986923 18.457674 48.023438 8.0019531 z M 48.021484 18.292969 C 51.110304 25.766972 53.823267 33.067625 55.435547 38.017578 L 56.332031 40.773438 L 59.228516 40.78125 C 64.336616 40.794715 72.076045 41.124943 80.265625 41.757812 C 74.107185 47.009426 67.995863 51.846816 63.783203 54.912109 L 61.441406 56.617188 L 62.330078 59.371094 C 63.895448 64.2323 65.971861 71.694193 67.900391 79.677734 C 61.005081 75.444679 54.517604 71.128064 50.302734 68.070312 L 47.957031 66.371094 L 45.607422 68.066406 C 41.469542 71.056143 35.017477 75.335426 28.023438 79.634766 C 29.919048 71.768427 32.01918 64.262584 33.625 59.308594 L 34.517578 56.556641 L 32.179688 54.847656 C 28.056207 51.835128 21.990151 47.021389 15.738281 41.697266 C 23.804281 41.069284 31.589045 40.746188 36.796875 40.742188 L 39.693359 40.740234 L 40.595703 37.988281 C 42.186103 33.136911 44.890674 25.882296 48.021484 18.292969 z "
216- transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
217- id="path4170" />
218- </g>
219- </g>
220- </g>
221- </g>
222-</svg>
223
224=== removed file 'nav/img/voices/starred.svg'
225--- nav/img/voices/starred.svg 2017-01-14 14:25:15 +0000
226+++ nav/img/voices/starred.svg 1970-01-01 00:00:00 +0000
227@@ -1,160 +0,0 @@
228-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
229-<!-- Created with Inkscape (http://www.inkscape.org/) -->
230-
231-<svg
232- xmlns:dc="http://purl.org/dc/elements/1.1/"
233- xmlns:cc="http://creativecommons.org/ns#"
234- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
235- xmlns:svg="http://www.w3.org/2000/svg"
236- xmlns="http://www.w3.org/2000/svg"
237- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
238- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
239- width="96"
240- height="96"
241- id="svg4874"
242- version="1.1"
243- inkscape:version="0.91+devel r"
244- viewBox="0 0 96 96.000001"
245- sodipodi:docname="starred.svg">
246- <defs
247- id="defs4876" />
248- <sodipodi:namedview
249- id="base"
250- pagecolor="#ffffff"
251- bordercolor="#666666"
252- borderopacity="1.0"
253- inkscape:pageopacity="0.0"
254- inkscape:pageshadow="2"
255- inkscape:zoom="5.6199993"
256- inkscape:cx="-4.3416438"
257- inkscape:cy="69.76867"
258- inkscape:document-units="px"
259- inkscape:current-layer="g4780"
260- showgrid="true"
261- showborder="true"
262- fit-margin-top="0"
263- fit-margin-left="0"
264- fit-margin-right="0"
265- fit-margin-bottom="0"
266- inkscape:snap-bbox="true"
267- inkscape:bbox-paths="true"
268- inkscape:bbox-nodes="true"
269- inkscape:snap-bbox-edge-midpoints="true"
270- inkscape:snap-bbox-midpoints="true"
271- inkscape:object-paths="true"
272- inkscape:snap-intersection-paths="true"
273- inkscape:object-nodes="true"
274- inkscape:snap-smooth-nodes="true"
275- inkscape:snap-midpoints="true"
276- inkscape:snap-object-midpoints="true"
277- inkscape:snap-center="true"
278- showguides="true"
279- inkscape:guide-bbox="true"
280- inkscape:snap-global="true">
281- <inkscape:grid
282- type="xygrid"
283- id="grid5451"
284- empspacing="8" />
285- <sodipodi:guide
286- orientation="1,0"
287- position="8,-8.0000001"
288- id="guide4063" />
289- <sodipodi:guide
290- orientation="1,0"
291- position="4,-8.0000001"
292- id="guide4065" />
293- <sodipodi:guide
294- orientation="0,1"
295- position="-8,88.000001"
296- id="guide4067" />
297- <sodipodi:guide
298- orientation="0,1"
299- position="-8,92.000001"
300- id="guide4069" />
301- <sodipodi:guide
302- orientation="0,1"
303- position="104,4"
304- id="guide4071" />
305- <sodipodi:guide
306- orientation="0,1"
307- position="-5,8.0000001"
308- id="guide4073" />
309- <sodipodi:guide
310- orientation="1,0"
311- position="88,-8.0000001"
312- id="guide4077" />
313- <sodipodi:guide
314- orientation="0,1"
315- position="-8,84.000001"
316- id="guide4074" />
317- <sodipodi:guide
318- orientation="1,0"
319- position="12,-8.0000001"
320- id="guide4076" />
321- <sodipodi:guide
322- orientation="1,0"
323- position="84,-8.0000001"
324- id="guide4080" />
325- <sodipodi:guide
326- position="48,-8.0000001"
327- orientation="1,0"
328- id="guide4170" />
329- <sodipodi:guide
330- position="-8,48"
331- orientation="0,1"
332- id="guide4172" />
333- <sodipodi:guide
334- position="92,-8.0000001"
335- orientation="1,0"
336- id="guide4760" />
337- </sodipodi:namedview>
338- <metadata
339- id="metadata4879">
340- <rdf:RDF>
341- <cc:Work
342- rdf:about="">
343- <dc:format>image/svg+xml</dc:format>
344- <dc:type
345- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
346- <dc:title></dc:title>
347- </cc:Work>
348- </rdf:RDF>
349- </metadata>
350- <g
351- inkscape:label="Layer 1"
352- inkscape:groupmode="layer"
353- id="layer1"
354- transform="translate(67.857146,-78.50504)">
355- <g
356- transform="matrix(0,-1,-1,0,373.50506,516.50504)"
357- id="g4845"
358- style="display:inline">
359- <g
360- inkscape:export-ydpi="90"
361- inkscape:export-xdpi="90"
362- inkscape:export-filename="next01.png"
363- transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
364- id="g4778"
365- inkscape:label="Layer 1">
366- <g
367- transform="matrix(-1,0,0,1,575.99999,611)"
368- id="g4780"
369- style="display:inline">
370- <rect
371- style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
372- id="rect4782"
373- width="96.037987"
374- height="96"
375- x="-438.00244"
376- y="345.36221"
377- transform="scale(-1,1)" />
378- <path
379- style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;marker:none;enable-background:accumulate"
380- d="m 429.99929,393.33773 c 0,0.004 -9.5e-4,0.007 -0.007,0.009 -0.001,0.007 -0.006,0.007 -0.009,0.009 -0.003,0.006 -0.008,0.008 -0.011,0.009 -0.003,0.006 -0.003,0.006 -0.007,0.009 -10.86428,5.06033 -21.9364,8.97057 -28.72087,11.19382 -0.006,7.31383 -0.28348,19.36 -1.77427,30.84126 -0.004,0.001 -0.006,0.002 -0.009,-0.002 -0.007,10e-4 -0.01,-0.004 -0.0129,-0.007 -0.007,-0.001 -0.009,-0.004 -0.011,-0.007 -0.007,-0.001 -0.006,-0.002 -0.009,-0.004 -8.17196,-8.76466 -15.31373,-18.08322 -19.52571,-23.8462 -6.9601,2.25521 -18.50812,5.71446 -29.89293,7.84517 -0.002,-0.003 -0.003,-0.004 0,-0.009 -0.003,-0.006 0.001,-0.01 0.002,-0.0129 -0.001,-0.007 0.001,-0.011 0.002,-0.0129 -0.001,-0.007 -0.001,-0.008 0,-0.011 5.81401,-10.47791 12.47128,-20.14765 16.65275,-25.93264 -4.29657,-5.92015 -11.1555,-15.83137 -16.70025,-25.99521 0.002,-0.003 0.006,-0.003 0.0111,-0.002 0.004,-0.004 0.01,-0.002 0.0129,-0.002 0.006,-0.003 0.011,-0.002 0.0129,-0.002 0.006,-0.003 0.007,-0.004 0.0111,-0.004 11.76574,2.28943 23.02338,5.63169 29.81955,7.81927 4.30503,-5.9142 11.61263,-15.49511 19.56888,-23.90661 0.003,0.001 0.006,0.003 0.007,0.009 0.006,0.003 0.006,0.008 0.007,0.011 0.004,0.004 0.006,0.0112 0.007,0.0129 0.004,0.004 0.007,0.004 0.009,0.009 1.4575,11.89244 1.75546,23.62651 1.77428,30.76358 6.95749,2.26527 18.3316,6.25356 28.7921,11.21756 z"
381- id="path4170"
382- inkscape:connector-curvature="0" />
383- </g>
384- </g>
385- </g>
386- </g>
387-</svg>
388
389=== added file 'nav/img/voices/tick.svg'
390--- nav/img/voices/tick.svg 1970-01-01 00:00:00 +0000
391+++ nav/img/voices/tick.svg 2017-03-10 16:20:13 +0000
392@@ -0,0 +1,17 @@
393+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
394+<!-- Created with Inkscape (http://www.inkscape.org/) -->
395+<svg id="svg4874" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="96" viewBox="0 0 96 96.000001" width="96" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
396+ <metadata id="metadata4879">
397+ <rdf:RDF>
398+ <cc:Work rdf:about="">
399+ <dc:format>image/svg+xml</dc:format>
400+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
401+ <dc:title/>
402+ </cc:Work>
403+ </rdf:RDF>
404+ </metadata>
405+ <g id="layer1" transform="translate(67.857 -78.505)">
406+ <rect id="rect4782" style="color:#000000;fill:none" transform="rotate(90)" height="96" width="96" y="-28.143" x="78.505"/>
407+ <path id="path4041-9" style="fill:#808080" d="m21.228 99.016-46.196 41.447-26.606-23.802-4.2834 4.8422 30.878 32.49 49.122-51.691z"/>
408+ </g>
409+</svg>
410
411=== modified file 'po/unav.pot'
412--- po/unav.pot 2017-03-07 18:49:43 +0000
413+++ po/unav.pot 2017-03-10 16:20:13 +0000
414@@ -8,7 +8,7 @@
415 msgstr ""
416 "Project-Id-Version: unav\n"
417 "Report-Msgid-Bugs-To: \n"
418-"POT-Creation-Date: 2017-03-07 19:49+0100\n"
419+"POT-Creation-Date: 2017-03-10 17:16+0100\n"
420 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
421 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
422 "Language-Team: LANGUAGE <LL@li.org>\n"
423@@ -274,7 +274,7 @@
424 msgstr ""
425
426 #: nav/index.html.strings:11 qml/Coordinate.qml:152 qml/Coordinate.qml:386
427-#: qml/DownloadVoices.qml:244 qml/Main.qml:974
428+#: qml/DownloadVoices.qml:250 qml/Main.qml:974
429 msgid "Close"
430 msgstr ""
431
432@@ -401,35 +401,35 @@
433 "Expected format is:"
434 msgstr ""
435
436-#: qml/DownloadVoices.qml:50
437+#: qml/DownloadVoices.qml:53
438 msgid "Download voices"
439 msgstr ""
440
441-#: qml/DownloadVoices.qml:58
442+#: qml/DownloadVoices.qml:61
443 msgid "Play current voice"
444 msgstr ""
445
446-#: qml/DownloadVoices.qml:67 qml/DownloadVoices.qml:240
447+#: qml/DownloadVoices.qml:70 qml/DownloadVoices.qml:246
448 msgid "How to add a voice"
449 msgstr ""
450
451-#: qml/DownloadVoices.qml:158
452+#: qml/DownloadVoices.qml:161
453 msgid "By "
454 msgstr ""
455
456-#: qml/DownloadVoices.qml:203
457+#: qml/DownloadVoices.qml:208
458 msgid "Cancel Download"
459 msgstr ""
460
461-#: qml/DownloadVoices.qml:218
462+#: qml/DownloadVoices.qml:224
463 msgid "About the voices"
464 msgstr ""
465
466-#: qml/DownloadVoices.qml:224
467+#: qml/DownloadVoices.qml:230
468 msgid "The stars are for the recommended voices."
469 msgstr ""
470
471-#: qml/DownloadVoices.qml:232
472+#: qml/DownloadVoices.qml:238
473 msgid "You can add a new voice to uNav following these steps:"
474 msgstr ""
475
476
477=== modified file 'qml/DownloadVoices.qml'
478--- qml/DownloadVoices.qml 2017-01-22 10:02:06 +0000
479+++ qml/DownloadVoices.qml 2017-03-10 16:20:13 +0000
480@@ -27,6 +27,7 @@
481
482 property string voice: ''
483 property bool downloading: false
484+ property bool canceled: false
485
486 Component.onDestruction: { // Return to Settings
487 mainPageStack.executeJavaScript("load_custom_voices(false)");
488@@ -40,8 +41,10 @@
489 id: singleDownload
490 onFinished: {
491 downloadVoices.downloading = false;
492- navApp.settings.currentVoice = downloadVoices.voice;
493- py.mvVoice(path);
494+ if (!downloadVoices.canceled) {
495+ navApp.settings.currentVoice = downloadVoices.voice;
496+ py.mvVoice(path);
497+ }
498 }
499 }
500
501@@ -135,11 +138,11 @@
502
503 UbuntuShape {
504 aspect: UbuntuShape.Flat
505- height: units.gu(2); width: height
506+ height: units.gu(3); width: height
507 sourceScale: Qt.vector2d(0.8, 0.8)
508 radius: "small"
509 source: Image {
510- source: model.starred === 'y' ? Qt.resolvedUrl("../nav/img/voices/starred.svg") : Qt.resolvedUrl("../nav/img/voices/non-starred.svg")
511+ source: model.author === navApp.settings.currentVoice ? Qt.resolvedUrl("../nav/img/voices/tick.svg") : Qt.resolvedUrl("../nav/img/voices/no-tick.svg")
512 }
513 sourceHorizontalAlignment: UbuntuShape.AlignHCenter
514 SlotsLayout.position: SlotsLayout.Leading
515@@ -176,8 +179,10 @@
516
517 downloadVoices.voice = model.author;
518 downloadVoices.downloading = true;
519+ downloadVoices.canceled = false;
520
521 py.rmOlder();
522+
523 singleDownload.download("http://people.ubuntu.com/~costales/unav/voices/unav_" + model.voice_code + ".tar.gz");
524 }
525 }
526@@ -206,6 +211,7 @@
527 onClicked: {
528 singleDownload.cancel
529 downloadVoices.downloading = false;
530+ downloadVoices.canceled = true;
531 }
532 }
533 }

Subscribers

People subscribed via source and target branches