Merge lp:~dpm/simple-scan/translation-fixes into lp:~robert-ancell/simple-scan/trunk

Proposed by David Planella
Status: Merged
Merge reported by: Robert Ancell
Merged at revision: not available
Proposed branch: lp:~dpm/simple-scan/translation-fixes
Merge into: lp:~robert-ancell/simple-scan/trunk
Diff against target: 434 lines (+418/-1)
2 files modified
data/simple-scan.ui (+1/-1)
po/simple-scan.pot (+417/-0)
To merge this branch: bzr merge lp:~dpm/simple-scan/translation-fixes
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Review via email: mp+16568@code.launchpad.net
To post a comment you must log in.
Revision history for this message
David Planella (dpm) wrote :

Some minor translations-related changes. From the commit log:

Added the POT file to revision control, so that the automatic translation
template imports can work with Launchpad. In the future Launchpad will
implement the feature of automatically regenerating templates, but for now they
must be manually updated and committed for them to be automatically imported.

Used only ASCII chars in the UI file, otherwise translations are not loaded.
See https://bugzilla.gnome.org/show_bug.cgi?id=596205

Revision history for this message
Robert Ancell (robert-ancell) wrote :

I've committed the .pot file. I'd like to keep the correct unicode characters (many, many other projects will have this same problem) for now.

review: Approve
Revision history for this message
David Planella (dpm) wrote :

Hi Robert,

Thanks for reviewing and merging the branch. However, I still cannot see the .pot file committed in http://bazaar.launchpad.net/~robert-ancell/simple-scan/trunk/files/head%3A/po/ and thus the latest strings added to the UI are not available for translation. Do you think you could update it and commit it, so that translators can translate the latest strings? Thanks!

In time, Rosetta will grow the ability to automatically generate the .pot template, but for now, it needs to be kept under revision control (and updated and committed before releases, so that it gets automatically imported into Launchpad and the latest strings are exposed for translation).

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Hmm, didn't work. It is there now.

David Planella wrote:
> Hi Robert,
>
> Thanks for reviewing and merging the branch. However, I still cannot see the .pot file committed in http://bazaar.launchpad.net/~robert-ancell/simple-scan/trunk/files/head%3A/po/ and thus the latest strings added to the UI are not available for translation. Do you think you could update it and commit it, so that translators can translate the latest strings? Thanks!
>
> In time, Rosetta will grow the ability to automatically generate the .pot template, but for now, it needs to be kept under revision control (and updated and committed before releases, so that it gets automatically imported into Launchpad and the latest strings are exposed for translation).
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/simple-scan.ui'
2--- data/simple-scan.ui 2009-12-23 03:48:58 +0000
3+++ data/simple-scan.ui 2009-12-24 14:13:14 +0000
4@@ -223,7 +223,7 @@
5 <child>
6 <object class="GtkRadioMenuItem" id="4x6_menuitem">
7 <property name="visible">True</property>
8- <property name="label" translatable="yes" comments="Radio button for cropping page to 4x6 inch">4&#xD7;6</property>
9+ <property name="label" translatable="yes" comments="Radio button for cropping page to 4x6 inch">4x6</property>
10 <property name="use_underline">True</property>
11 <property name="draw_as_radio">True</property>
12 <property name="group">no_crop_menuitem</property>
13
14=== added file 'po/simple-scan.pot'
15--- po/simple-scan.pot 1970-01-01 00:00:00 +0000
16+++ po/simple-scan.pot 2009-12-24 14:13:14 +0000
17@@ -0,0 +1,417 @@
18+# SOME DESCRIPTIVE TITLE.
19+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
20+# This file is distributed under the same license as the PACKAGE package.
21+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
22+#
23+#, fuzzy
24+msgid ""
25+msgstr ""
26+"Project-Id-Version: PACKAGE VERSION\n"
27+"Report-Msgid-Bugs-To: \n"
28+"POT-Creation-Date: 2009-12-24 14:59+0100\n"
29+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
30+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
31+"Language-Team: LANGUAGE <LL@li.org>\n"
32+"MIME-Version: 1.0\n"
33+"Content-Type: text/plain; charset=CHARSET\n"
34+"Content-Transfer-Encoding: 8bit\n"
35+
36+#. Radio button for cropping page to 4x6 inch
37+#: ../data/simple-scan.ui.h:2
38+msgid "4&#xD7;6"
39+msgstr ""
40+
41+#. Radio button for cropping page to A4 size
42+#: ../data/simple-scan.ui.h:4
43+msgid "A_4"
44+msgstr ""
45+
46+#. Radio button for cropping page to A5 size
47+#: ../data/simple-scan.ui.h:6
48+msgid "A_5"
49+msgstr ""
50+
51+#. Radio button for cropping page to A6 size
52+#: ../data/simple-scan.ui.h:8
53+msgid "A_6"
54+msgstr ""
55+
56+#. Toolbar scan menu item to scan all pages from a document feeder
57+#: ../data/simple-scan.ui.h:10
58+msgid "All Pages From _Feeder"
59+msgstr ""
60+
61+#. Label on email toobar item
62+#: ../data/simple-scan.ui.h:12
63+msgid "Email"
64+msgstr ""
65+
66+#. Tooltip for the email toolbar button
67+#: ../data/simple-scan.ui.h:14
68+msgid "Email the scanned documents"
69+msgstr ""
70+
71+#. Radio button for cropping to page to US legal size
72+#: ../data/simple-scan.ui.h:16
73+msgid "Le_gal"
74+msgstr ""
75+
76+#: ../data/simple-scan.ui.h:17
77+msgid "New"
78+msgstr ""
79+
80+#. Combo box label for photo scan mode
81+#: ../data/simple-scan.ui.h:19
82+msgid "Photo"
83+msgstr ""
84+
85+#. Title of preferences dialog
86+#: ../data/simple-scan.ui.h:21
87+msgid "Preferences"
88+msgstr ""
89+
90+#. Label on print toolbar item
91+#: ../data/simple-scan.ui.h:23
92+msgid "Print"
93+msgstr ""
94+
95+#. Tooltip for print toolbar button
96+#: ../data/simple-scan.ui.h:25
97+msgid "Print the scanned documents"
98+msgstr ""
99+
100+#. Label on rotate page left (anti-clockwise) item
101+#: ../data/simple-scan.ui.h:27
102+msgid "Rotate Left"
103+msgstr ""
104+
105+#. Label on rotate page right (clockwise) item
106+#: ../data/simple-scan.ui.h:29
107+msgid "Rotate Right"
108+msgstr ""
109+
110+#. Menu item to rotate page to left (anti-clockwise)
111+#: ../data/simple-scan.ui.h:31
112+msgid "Rotate _Left"
113+msgstr ""
114+
115+#. Menu item to rotate page to right (clockwise)
116+#: ../data/simple-scan.ui.h:33
117+msgid "Rotate _Right"
118+msgstr ""
119+
120+#. Label on save to file toolbar item
121+#: ../data/simple-scan.ui.h:35
122+msgid "Save"
123+msgstr ""
124+
125+#. Tooltip for save toolbar button
126+#: ../data/simple-scan.ui.h:37
127+msgid "Save the current document to a file"
128+msgstr ""
129+
130+#. Label on scan toolbar item
131+#: ../data/simple-scan.ui.h:39
132+msgid "Scan"
133+msgstr ""
134+
135+#. Label beside scan source combo box
136+#: ../data/simple-scan.ui.h:41
137+msgid "Scan S_ource:"
138+msgstr ""
139+
140+#. Tooltip for scan toolbar button
141+#: ../data/simple-scan.ui.h:43
142+msgid "Scan a single page from the scanner"
143+msgstr ""
144+
145+#. Title of scan window
146+#: ../data/simple-scan.ui.h:45 ../data/simple-scan.desktop.in.h:2
147+msgid "Simple Scan"
148+msgstr ""
149+
150+#. Toolbar scan menu item to scan a single page from the scanner
151+#: ../data/simple-scan.ui.h:47
152+msgid "Single _Page"
153+msgstr ""
154+
155+#. Tooltip for new document button
156+#: ../data/simple-scan.ui.h:49
157+msgid "Start a new document"
158+msgstr ""
159+
160+#. Combo box label for text scan mode
161+#: ../data/simple-scan.ui.h:51
162+msgid "Text"
163+msgstr ""
164+
165+#. Tooltip for the toolbar document type combo box
166+#: ../data/simple-scan.ui.h:53
167+msgid ""
168+"The type of document being scanned. This changes the time taken to scan and "
169+"the quality of the scanned data."
170+msgstr ""
171+
172+#. Button to submit authorization dialog
173+#: ../data/simple-scan.ui.h:55
174+msgid "_Authorize"
175+msgstr ""
176+
177+#. Label for page crop submenu
178+#: ../data/simple-scan.ui.h:57
179+msgid "_Crop"
180+msgstr ""
181+
182+#. Radio button for cropping to custom page size
183+#: ../data/simple-scan.ui.h:59
184+msgid "_Custom"
185+msgstr ""
186+
187+#. Label on page delete menuitem
188+#: ../data/simple-scan.ui.h:61
189+msgid "_Delete"
190+msgstr ""
191+
192+#. Label on document menu (contains actions for this document, e.g. save, print)
193+#: ../data/simple-scan.ui.h:63
194+msgid "_Document"
195+msgstr ""
196+
197+#. Label on help menu
198+#: ../data/simple-scan.ui.h:65
199+msgid "_Help"
200+msgstr ""
201+
202+#. Radio button for cropping page to US letter size
203+#: ../data/simple-scan.ui.h:67
204+msgid "_Letter"
205+msgstr ""
206+
207+#. Radio button for no crop
208+#: ../data/simple-scan.ui.h:69
209+msgid "_None"
210+msgstr ""
211+
212+#. Page menu (contains action for each page, e.g. delete, crop)
213+#: ../data/simple-scan.ui.h:71
214+msgid "_Page"
215+msgstr ""
216+
217+#. Label beside password entry
218+#: ../data/simple-scan.ui.h:73
219+msgid "_Password:"
220+msgstr ""
221+
222+#. Check button to delete all existing pages on a new scan when enabled
223+#: ../data/simple-scan.ui.h:75
224+msgid "_Replace current pages"
225+msgstr ""
226+
227+#. Menu item to rotate the crop area
228+#: ../data/simple-scan.ui.h:77
229+msgid "_Rotate Crop"
230+msgstr ""
231+
232+#. Menu entry to stop current scan
233+#: ../data/simple-scan.ui.h:79
234+msgid "_Stop Scan"
235+msgstr ""
236+
237+#. Label beside username entry
238+#: ../data/simple-scan.ui.h:81
239+msgid "_Username for resource:"
240+msgstr ""
241+
242+#: ../data/simple-scan.desktop.in.h:1
243+msgid "Scan Documents"
244+msgstr ""
245+
246+#: ../data/simple-scan.schemas.in.h:1
247+msgid "Device to scan from"
248+msgstr ""
249+
250+#: ../data/simple-scan.schemas.in.h:2
251+msgid "Direction of scan"
252+msgstr ""
253+
254+#: ../data/simple-scan.schemas.in.h:3
255+msgid "SANE device to acquire images from."
256+msgstr ""
257+
258+#: ../data/simple-scan.schemas.in.h:4
259+msgid "TRUE if the application window is maximized"
260+msgstr ""
261+
262+#: ../data/simple-scan.schemas.in.h:5
263+msgid "TRUE if the document is cleared on each scan"
264+msgstr ""
265+
266+#: ../data/simple-scan.schemas.in.h:6
267+msgid ""
268+"The direction of the scanner across the scanned page. It can be one of the "
269+"following: 'top-to-bottom' 'bottom-to-top' 'left-to-right' 'right-to-left'"
270+msgstr ""
271+
272+#: ../data/simple-scan.schemas.in.h:7
273+msgid "Type of document being scanned"
274+msgstr ""
275+
276+#: ../data/simple-scan.schemas.in.h:8
277+msgid ""
278+"Type of document being scanned. 'text' for text documents, 'photo' for "
279+"photos. This setting decides on the scan resolution, colors and post-"
280+"processing."
281+msgstr ""
282+
283+#: ../data/simple-scan.schemas.in.h:9
284+msgid "Window height in pixels"
285+msgstr ""
286+
287+#: ../data/simple-scan.schemas.in.h:10
288+msgid "Window width in pixels"
289+msgstr ""
290+
291+#. Error displayed when cannot connect to scanner
292+#: ../src/scanner.c:557
293+#, c-format
294+msgid "Unable to connect to scanner"
295+msgstr ""
296+
297+#. Error display when unable to start scan
298+#: ../src/scanner.c:695
299+#, c-format
300+msgid "Unable to start scan"
301+msgstr ""
302+
303+#. Error displayed when communication with scanner broken
304+#: ../src/scanner.c:708 ../src/scanner.c:749
305+#, c-format
306+msgid "Error communicating with scanner"
307+msgstr ""
308+
309+#. Warning displayed when no scanners are detected
310+#: ../src/simple-scan.c:61
311+msgid "No scanners detected"
312+msgstr ""
313+
314+#. Hint to user on why there are no scanners detected
315+#: ../src/simple-scan.c:63
316+msgid "Please check your scanner is connected and powered on"
317+msgstr ""
318+
319+#. Title of error dialog when scan failed
320+#: ../src/simple-scan.c:162
321+msgid "Failed to scan"
322+msgstr ""
323+
324+#. Default name for PDF documents
325+#: ../src/simple-scan.c:180 ../src/ui.c:1177
326+msgid "Scanned Document.pdf"
327+msgstr ""
328+
329+#. Default name for JPEG documents
330+#: ../src/simple-scan.c:183 ../src/simple-scan.c:189
331+msgid "Scanned Document.jpeg"
332+msgstr ""
333+
334+#. Default name for PNG documents
335+#: ../src/simple-scan.c:186
336+msgid "Scanned Document.png"
337+msgstr ""
338+
339+#. Title of error dialog when save failed
340+#: ../src/simple-scan.c:251
341+msgid "Failed to save file"
342+msgstr ""
343+
344+#. Description on how to use simple-scan displayed on command-line
345+#: ../src/simple-scan.c:336
346+#, c-format
347+msgid ""
348+"Usage:\n"
349+" %s [DEVICE...] - Scanning utility"
350+msgstr ""
351+
352+#. Description on how to use simple-scan displayed on command-line
353+#: ../src/simple-scan.c:344
354+#, c-format
355+msgid ""
356+"Help Options:\n"
357+" -d, --debug Print debugging messages\n"
358+" -v, --version Show release version\n"
359+" -h, --help Show help options\n"
360+" --help-all Show all help options\n"
361+" --help-gtk Show GTK+ options"
362+msgstr ""
363+
364+#. Description on simple-scan command-line GTK+ options displayed on command-line
365+#: ../src/simple-scan.c:356
366+#, c-format
367+msgid ""
368+"GTK+ Options:\n"
369+" --class=CLASS Program class as used by the window "
370+"manager\n"
371+" --name=NAME Program name as used by the window "
372+"manager\n"
373+" --screen=SCREEN X screen to use\n"
374+" --sync Make X calls synchronous\n"
375+" --gtk-module=MODULES Load additional GTK+ modules\n"
376+" --g-fatal-warnings Make all warnings fatal"
377+msgstr ""
378+
379+#. Label in authorization dialog. '%s' is replaced with the name of the resource requesting authorization
380+#: ../src/ui.c:118
381+#, c-format
382+msgid "Username and password required to access '%s'"
383+msgstr ""
384+
385+#. Title of save dialog
386+#: ../src/ui.c:549
387+msgid "Save As..."
388+msgstr ""
389+
390+#. The license this software is under (GPL3+)
391+#: ../src/ui.c:760
392+msgid ""
393+"This program is free software: you can redistribute it and/or modify\n"
394+"it under the terms of the GNU General Public License as published by\n"
395+"the Free Software Foundation, either version 3 of the License, or\n"
396+"(at your option) any later version.\n"
397+"\n"
398+"This program is distributed in the hope that it will be useful,\n"
399+"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
400+"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
401+"GNU General Public License for more details.\n"
402+"\n"
403+"You should have received a copy of the GNU General Public License\n"
404+"along with this program. If not, see <http://www.gnu.org/licenses/>."
405+msgstr ""
406+
407+#. Title of about dialog
408+#: ../src/ui.c:774
409+msgid "About Simple Scan"
410+msgstr ""
411+
412+#. Description of program
413+#: ../src/ui.c:777
414+msgid "Simple document scanning tool"
415+msgstr ""
416+
417+#: ../src/ui.c:785
418+msgid "translator-credits"
419+msgstr ""
420+
421+#. Title of dialog when cannot load required files
422+#: ../src/ui.c:902
423+msgid "Files missing"
424+msgstr ""
425+
426+#. Description in dialog when cannot load required files
427+#: ../src/ui.c:904
428+msgid "Please check your installation"
429+msgstr ""
430+
431+#. Button in error dialog to open prefereces dialog and change scanner
432+#: ../src/ui.c:1053
433+msgid "Change _Scanner"
434+msgstr ""

Subscribers

People subscribed via source and target branches

to all changes: