Merge lp:~unit193/xubuntu-docs/utopic into lp:xubuntu-docs/utopic

Proposed by Unit 193
Status: Merged
Merged at revision: 211
Proposed branch: lp:~unit193/xubuntu-docs/utopic
Merge into: lp:xubuntu-docs/utopic
Diff against target: 244 lines (+85/-25)
5 files modified
debian/changelog (+5/-0)
desktop-guide/C/index.xml (+3/-0)
desktop-guide/Makefile (+4/-3)
desktop-guide/po/desktop-guide.pot (+26/-22)
scripts/translators.sh (+47/-0)
To merge this branch: bzr merge lp:~unit193/xubuntu-docs/utopic
Reviewer Review Type Date Requested Status
Pasi Lallinaho Pending
Review via email: mp+225229@code.launchpad.net

Description of the change

Attribute translators and do it in each Language's credits.

To post a comment you must log in.
lp:~unit193/xubuntu-docs/utopic updated
211. By Pasi Lallinaho

Merging Unit193's branch to attribute translators per language correctly.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-06-12 22:40:11 +0000
3+++ debian/changelog 2014-07-01 20:27:45 +0000
4@@ -3,9 +3,14 @@
5 [ David Pires ]
6 * Fix the printing chapter to remove a reference to a obsolete setting (LP: #1299743)
7
8+ [ Pasi Lallinaho ]
9 * Bump version to 14.10.
10 * Fix broken startpage logo. (LP: #1310347)
11
12+ [ Unit 193 ]
13+ * scripts/translators.sh, desktop-guide/Makefile, desktop-guide/C/index.xml:
14+ - Attribute translators in their own Language's credits.
15+
16 -- Pasi Lallinaho <pasi@shimmerproject.org> Sun, 20 Apr 2014 22:12:01 +0300
17
18 xubuntu-docs (14.04.1) trusty; urgency=medium
19
20=== modified file 'desktop-guide/C/index.xml'
21--- desktop-guide/C/index.xml 2014-02-17 23:32:54 +0000
22+++ desktop-guide/C/index.xml 2014-07-01 20:27:45 +0000
23@@ -31,6 +31,9 @@
24 <listitem><para>Jay van Cooten (skippersboss)</para></listitem>
25 </itemizedlist>
26
27+ <para>The contributors to this translation of the documentation are:</para>
28+ <xi:include href="translators.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
29+
30 <para>The contributors to previous versions to this documentation are:</para>
31 <itemizedlist>
32 <listitem><para>Jim Campbell (jwcampbell)</para></listitem>
33
34=== modified file 'desktop-guide/Makefile'
35--- desktop-guide/Makefile 2014-03-15 11:56:14 +0000
36+++ desktop-guide/Makefile 2014-07-01 20:27:45 +0000
37@@ -15,6 +15,7 @@
38 endif
39
40 html: style
41+ @echo "<para>Attributed on each language's page.</para>" > C/translators.xml
42 xsltproc --xinclude -o ../build/desktop-guide/index.html $(XUBUNTUXSL) C/index.xml
43
44 style:
45@@ -27,11 +28,11 @@
46 translate:
47 ../scripts/translate.sh $(OPTS); \
48 for dir in $(TRANSLATIONS); do \
49- xsltproc --xinclude -o ../build/$$dir/index.html $(XUBUNTUXSL) $$dir/index.xml && \
50- rm -rf $$dir/; \
51+ ../scripts/translators.sh -l $$dir > $$dir/translators.xml ;\
52+ xsltproc --xinclude -o ../build/$$dir/index.html $(XUBUNTUXSL) $$dir/index.xml ;\
53 done
54
55 clean:
56- ${RM} -r $(TRANSLATIONS)
57+ ${RM} -r $(TRANSLATIONS) C/translators.xml
58
59 .PHONY: html translate
60
61=== modified file 'desktop-guide/po/desktop-guide.pot'
62--- desktop-guide/po/desktop-guide.pot 2014-03-20 00:49:35 +0000
63+++ desktop-guide/po/desktop-guide.pot 2014-07-01 20:27:45 +0000
64@@ -1,7 +1,7 @@
65 msgid ""
66 msgstr ""
67 "Project-Id-Version: PACKAGE VERSION\n"
68-"POT-Creation-Date: 2014-03-20 02:49+0200\n"
69+"POT-Creation-Date: 2014-07-01 16:18-0400\n"
70 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
71 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
72 "Language-Team: LANGUAGE <LL@li.org>\n"
73@@ -762,7 +762,7 @@
74 msgstr ""
75
76 #: desktop-guide/C/printing-scanning.xml:63(para)
77-msgid "If you do not have a network printer, but want your printer to be shared to other computers on your network, click <menuchoice><guimenu>Server</guimenu><guimenuitem>Settings</guimenuitem></menuchoice> from the <guilabel>Printers</guilabel> dialog, check the box <guilabel>Publish shared printers connected to this system</guilabel>, and then press <guibutton>OK</guibutton>. Other Linux/Ubuntu based systems need to have <guilabel>Show printers shared by other systems</guilabel> checked in the server settings dialog in order to access the printer."
78+msgid "If you do not have a network printer, but want your printer to be shared to other computers on your network, click <menuchoice><guimenu>Server</guimenu><guimenuitem>Settings</guimenuitem></menuchoice> from the <guilabel>Printers</guilabel> dialog, check the box <guilabel>Publish shared printers connected to this system</guilabel>, and then press <guibutton>OK</guibutton>. Other computers running versions of Xubuntu later than 13.04 will automatically detect printers shared this way. Computers running Xubuntu versions prior to 13.10, or other Linux/Ubuntu-based systems, may need to enable a setting to show shared printers."
79 msgstr ""
80
81 #: desktop-guide/C/printing-scanning.xml:68(title)
82@@ -1948,86 +1948,90 @@
83 msgstr ""
84
85 #: desktop-guide/C/index.xml:34(para)
86+msgid "The contributors to this translation of the documentation are:"
87+msgstr ""
88+
89+#: desktop-guide/C/index.xml:37(para)
90 msgid "The contributors to previous versions to this documentation are:"
91 msgstr ""
92
93-#: desktop-guide/C/index.xml:36(para)
94+#: desktop-guide/C/index.xml:39(para)
95 msgid "Jim Campbell (jwcampbell)"
96 msgstr ""
97
98-#: desktop-guide/C/index.xml:37(para)
99+#: desktop-guide/C/index.xml:40(para)
100 msgid "Freddy Martinez (freddymartinez9)"
101 msgstr ""
102
103-#: desktop-guide/C/index.xml:38(para)
104+#: desktop-guide/C/index.xml:41(para)
105 msgid "Jan M. (fijam7)"
106 msgstr ""
107
108-#: desktop-guide/C/index.xml:39(para)
109+#: desktop-guide/C/index.xml:42(para)
110 msgid "Cody A.W. Somerville (cody-somerville)"
111 msgstr ""
112
113-#: desktop-guide/C/index.xml:40(para)
114+#: desktop-guide/C/index.xml:43(para)
115 msgid "Luzius Thöny (lucius-antonius)"
116 msgstr ""
117
118-#: desktop-guide/C/index.xml:43(para)
119+#: desktop-guide/C/index.xml:46(para)
120 msgid "This document is made available under the Creative Commons ShareAlike 2.5 License (CC-BY-SA)."
121 msgstr ""
122
123-#: desktop-guide/C/index.xml:44(para)
124+#: desktop-guide/C/index.xml:47(para)
125 msgid "You are free to modify, extend, and improve the Ubuntu documentation source code under the terms of this license. All derivative works must be released under this license."
126 msgstr ""
127
128-#: desktop-guide/C/index.xml:46(para)
129+#: desktop-guide/C/index.xml:49(para)
130 msgid "This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE AS DESCRIBED IN THE DISCLAIMER."
131 msgstr ""
132
133-#: desktop-guide/C/index.xml:49(para)
134+#: desktop-guide/C/index.xml:52(para)
135 msgid "A copy of the license is available here: <link linkend=\"cc-by-sa\">Creative Commons ShareAlike License</link>."
136 msgstr ""
137
138-#: desktop-guide/C/index.xml:50(para)
139+#: desktop-guide/C/index.xml:53(para)
140 msgid "All trademarks or registered trademarks are the property of the respective owners."
141 msgstr ""
142
143-#: desktop-guide/C/index.xml:54(year)
144+#: desktop-guide/C/index.xml:57(year)
145 msgid "2012"
146 msgstr ""
147
148-#: desktop-guide/C/index.xml:55(year)
149+#: desktop-guide/C/index.xml:58(year)
150 msgid "2013"
151 msgstr ""
152
153-#: desktop-guide/C/index.xml:56(year)
154+#: desktop-guide/C/index.xml:59(year)
155 msgid "2014"
156 msgstr ""
157
158-#: desktop-guide/C/index.xml:57(holder)
159+#: desktop-guide/C/index.xml:60(holder)
160 msgid "Canonical Ltd. and members of the Xubuntu Documentation team."
161 msgstr ""
162
163-#: desktop-guide/C/index.xml:61(publishername)
164+#: desktop-guide/C/index.xml:64(publishername)
165 msgid "The Ubuntu Documentation Project"
166 msgstr ""
167
168-#: desktop-guide/C/index.xml:64(title)
169+#: desktop-guide/C/index.xml:67(title)
170 msgid "Welcome!"
171 msgstr ""
172
173-#: desktop-guide/C/index.xml:66(para)
174+#: desktop-guide/C/index.xml:69(para)
175 msgid "This documentation provides documentation to the most common issues with Xubuntu, including:"
176 msgstr ""
177
178-#: desktop-guide/C/index.xml:71(para)
179+#: desktop-guide/C/index.xml:74(para)
180 msgid "In addition, this documentation has three quick guides:"
181 msgstr ""
182
183-#: desktop-guide/C/index.xml:77(para)
184+#: desktop-guide/C/index.xml:80(para)
185 msgid "The complete set of topics is listed below. If you require help with a topic or problem that is not addressed by the documentation, go to the <ulink url=\"http://xubuntu.org/help/\">Help &amp; Support</ulink> page of the Xubuntu website. There you will find links to additional help resources."
186 msgstr ""
187
188-#: desktop-guide/C/index.xml:79(para)
189+#: desktop-guide/C/index.xml:82(para)
190 msgid "If you would like to contribute to Xubuntu, including this documentation, see the <ulink url=\"http://xubuntu.org/contribute/\">Get Involved</ulink> section of the Xubuntu website."
191 msgstr ""
192
193
194=== added file 'scripts/translators.sh'
195--- scripts/translators.sh 1970-01-01 00:00:00 +0000
196+++ scripts/translators.sh 2014-07-01 20:27:45 +0000
197@@ -0,0 +1,47 @@
198+#!/bin/sh
199+
200+CURDIR=$(pwd)/po/
201+
202+get_languages() {
203+if [ "$generated" = yes ];then
204+ languages=$(cat po/LINGUAS)
205+elif [ -n $language ];then
206+ languages=$language
207+else
208+ languages=$(basename -s.po $CURDIR/*.po)
209+fi
210+}
211+
212+build_creds() {
213+#for lang in `basename -s.po *.po`;do ## Good for testing, uses all translations it can find.
214+echo "<itemizedlist>"
215+for lang in $languages;do
216+ mkdir -p $CURDIR/mo/$lang/LC_MESSAGES/
217+ msgfmt -o $CURDIR/mo/$lang/LC_MESSAGES/xubuntu-docs.mo $CURDIR/$lang.po
218+ TEXTDOMAINDIR=$CURDIR/mo/ LANGUAGE=$lang gettext -d xubuntu-docs -s 'translator-credits' | \
219+ sed -e 's@^ @\t<listitem><para>@' -e '/launchpad.net/s@$@)</para></listitem>@' \
220+ -e 's@https://launchpad.net/~@(@' -e /Launchpad\ Contributions/d -e /^translator-credits$/d
221+done | sort | uniq
222+echo "</itemizedlist>"
223+rm -rf $CURDIR/mo/
224+}
225+
226+grep_creds() {
227+## Don't build, just grep.
228+## This is incomplete and unused, potentially helpful later.
229+for lang in $languages;do
230+ echo msggrep --msgid -F -e 'translator-credits' $lang.po
231+done
232+}
233+
234+while getopts ":gl:" Option
235+do
236+ case ${Option} in
237+ g) generated=yes;;
238+ l) language=${OPTARG};;
239+ *) echo "Please specify an argument.";;
240+ esac
241+done
242+
243+get_languages
244+build_creds

Subscribers

People subscribed via source and target branches