Merge lp:~dholbach/help-app/translations-fixes into lp:~ubuntu-touch-coreapps-drivers/help-app/trunk

Proposed by Daniel Holbach
Status: Merged
Merged at revision: 68
Proposed branch: lp:~dholbach/help-app/translations-fixes
Merge into: lp:~ubuntu-touch-coreapps-drivers/help-app/trunk
Diff against target: 184 lines (+50/-32)
3 files modified
edit-here/po/es.po (+39/-27)
edit-here/po/help.pot (+1/-1)
edit-here/translations.py (+10/-4)
To merge this branch: bzr merge lp:~dholbach/help-app/translations-fixes
Reviewer Review Type Date Requested Status
David Planella Approve
Review via email: mp+251887@code.launchpad.net
To post a comment you must log in.
71. By Daniel Holbach

rewrite links in Spanish translations

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

Tested it to work fine.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'edit-here/po/es.po'
2--- edit-here/po/es.po 2015-03-05 06:06:56 +0000
3+++ edit-here/po/es.po 2015-03-05 09:35:04 +0000
4@@ -2,7 +2,7 @@
5 # Copyright (c) 2015 Rosetta Contributors and Canonical Ltd 2015
6 # This file is distributed under the same license as the ubuntu-devices-help package.
7 # FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
8-#
9+#
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: ubuntu-devices-help\n"
13@@ -14,13 +14,8 @@
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17+"X-Generator: Launchpad (build 17374)\n"
18 "X-Launchpad-Export-Date: 2015-03-05 06:06+0000\n"
19-"X-Generator: Launchpad (build 17374)\n"
20-
21-#. type: Plain text
22-#: content/pages/faq.md:2
23-msgid "Title: Get your questions answered."
24-msgstr ""
25
26 #. type: Plain text
27 #: content/pages/faq.md:5
28@@ -34,7 +29,7 @@
29 #. type: Bullet: ' * '
30 #: content/pages/faq.md:7
31 msgid "[Apps]({filename}apps.md)"
32-msgstr ""
33+msgstr "[Apps]({filename}apps.es.md)"
34
35 #. type: Bullet: ' * '
36 #: content/pages/faq.md:7
37@@ -42,18 +37,13 @@
38 msgstr ""
39
40 #. type: Plain text
41-#: content/pages/index.md:2
42-msgid "Title: Welcome to Help for Ubuntu for devices!"
43-msgstr ""
44-
45-#. type: Plain text
46 #: content/pages/index.md:5
47 msgid ""
48 "The world-wide Ubuntu community wants to give you the best possible "
49 "experience on your Ubuntu device. This is why we collected:"
50 msgstr ""
51-"La comunidad mundial de Ubuntu quiere ofrecerle la mejor experiencia posible "
52-"en su dispositivo con Ubuntu. Por ello hemos recopilado:"
53+"La comunidad mundial de Ubuntu quiere ofrecerle la mejor experiencia posible"
54+" en su dispositivo con Ubuntu. Por ello hemos recopilado:"
55
56 #. type: Bullet: ' * '
57 #: content/pages/index.md:9
58@@ -79,17 +69,12 @@
59 #: content/pages/index.md:12
60 #, no-wrap
61 msgid "[Take me to the FAQ!]({filename}faq.md) \n"
62-msgstr ""
63+msgstr "[Take me to the FAQ!]({filename}faq.es.md) \n"
64
65 #. type: Plain text
66 #: content/pages/index.md:14
67 msgid "[Get in touch]({filename}get-in-touch.md)"
68-msgstr ""
69-
70-#. type: Plain text
71-#: content/pages/apps.md:2
72-msgid "Title: FAQ - Apps"
73-msgstr ""
74+msgstr "[Get in touch]({filename}get-in-touch.es.md)"
75
76 #. type: Plain text
77 #: content/pages/apps.md:5
78@@ -128,11 +113,6 @@
79 msgstr ""
80
81 #. type: Plain text
82-#: content/pages/get-in-touch.md:2
83-msgid "Title: Get in touch"
84-msgstr ""
85-
86-#. type: Plain text
87 #: content/pages/get-in-touch.md:7
88 #, no-wrap
89 msgid ""
90@@ -151,3 +131,35 @@
91 "out about all the individual teams in Ubuntu, what they do, where they hang "
92 "out and how to get involved."
93 msgstr ""
94+
95+#. type: Plain text
96+#: content/pages/faq.md:2
97+msgid "Get your questions answered."
98+msgstr ""
99+
100+#. type: Plain text
101+#: content/pages/index.md:2
102+msgid "Welcome to Help for Ubuntu for devices!"
103+msgstr ""
104+
105+#. type: Plain text
106+#: content/pages/apps.md:2
107+msgid "FAQ - Apps"
108+msgstr ""
109+
110+#. type: Plain text
111+#: content/pages/get-in-touch.md:2
112+msgid "Get in touch"
113+msgstr ""
114+
115+#~ msgid "Title: Get your questions answered."
116+#~ msgstr ""
117+
118+#~ msgid "Title: Welcome to Help for Ubuntu for devices!"
119+#~ msgstr ""
120+
121+#~ msgid "Title: FAQ - Apps"
122+#~ msgstr ""
123+
124+#~ msgid "Title: Get in touch"
125+#~ msgstr ""
126
127=== modified file 'edit-here/po/help.pot'
128--- edit-here/po/help.pot 2015-03-03 12:37:30 +0000
129+++ edit-here/po/help.pot 2015-03-05 09:35:04 +0000
130@@ -7,7 +7,7 @@
131 msgid ""
132 msgstr ""
133 "Project-Id-Version: PACKAGE VERSION\n"
134-"POT-Creation-Date: 2015-02-26 15:28+0100\n"
135+"POT-Creation-Date: 2015-03-05 10:31+0100\n"
136 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
137 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
138 "Language-Team: LANGUAGE <LL@li.org>\n"
139
140=== modified file 'edit-here/translations.py'
141--- edit-here/translations.py 2015-03-05 08:14:09 +0000
142+++ edit-here/translations.py 2015-03-05 09:35:04 +0000
143@@ -57,7 +57,7 @@
144 return ret
145
146 def gettextize(self, document_fns, pot_file):
147- args = []
148+ args = copy.copy(self.default_args)
149 for document_fn in document_fns:
150 args += ['-m', document_fn]
151 args += [
152@@ -82,6 +82,9 @@
153 self.po_fn = po_fn
154 self.pofile = polib.pofile(po_fn)
155
156+ def reread(self):
157+ self.pofile = polib.pofile(self.po_fn)
158+
159 def merge(self, pot_file_ob):
160 self.pofile.merge(pot_file_ob)
161
162@@ -107,9 +110,11 @@
163 results = {}
164 for entry in self.find_in_msgid('Title: '):
165 if entry.msgid.startswith('Title: '):
166- if entry.linenum != 1:
167- print('Title line "%s" found, but at linenum "%s", '
168- 'not 1.' % (entry.msgid, entry.linenum))
169+ where = entry.occurrences[0][0]
170+ first_line = open(where).readline().strip()
171+ if entry.msgid != first_line:
172+ print('Title line "%s" found, but not on the first line '
173+ 'of "%s".' % (entry.msgid, entry.linenum))
174 return False
175 entry.msgid = entry.msgid.replace('Title: ', '')
176 fn = entry.occurrences[0][0]
177@@ -176,6 +181,7 @@
178 def generate_pot_file(self, documents):
179 if not self.po4a.gettextize(documents.docs, self.pot_fn):
180 return False
181+ self.pot_file_ob.reread()
182 if not self.pot_file_ob.replace_title_lines():
183 return False
184 for po_fn in self.langs:

Subscribers

People subscribed via source and target branches