Gentoo Archives: gentoo-doc

From: Xavier Neys <neysx@g.o>
To: gentoo-doc@l.g.o
Subject: Re: [gentoo-doc] Referencing English files instead of translated ones
Date: Fri, 22 Jul 2005 21:25:57
Message-Id: 42E1643A.6040700@gentoo.org
In Reply to: [gentoo-doc] Referencing English files instead of translated ones by "Jan Kundrát"
1 Jan Kundrát wrote:
2 > Hi all,
3 > as I wanted to find out something I can slap rane (Polish translator)
4 > with, I've written small script that checks if you are referencing
5 > English file from other files even if you have given doc translated. My
6 > simple script doesn't use metadoc.xml, so it will warn you if you have
7 > some file in CVS but without metadoc.xml entry as well.
8 >
9 > Anyway, I've found out that Polish docs were up-to-date while Czech ones
10 > weren't (not my fault, they were added before I became Lead Translator
11 > for CS), but don't laugh at me, they have been fixed :-).
12 >
13 > In fact, it's not a script, only a simple line of bash, designed to be
14 > run in gentoo/xml/htdocs/doc/$LANG/:
15 >
16 > for f in *.xml */*.xml; do grep -Rn en/`echo $f | sed "s:\./::"` .; done
17
18
19 Better use one that does not check comments, does not yield unwanted false
20 positives (a wanted one would be a mention of the main English index with a
21 link to /doc/en/index.xml eg.), does not forget handbook/2005.0, knows that a
22 link to a dir is actually a link to {dir}/index.xml and outputs something
23 readable.
24
25 neysx@basil ~/gentoo.org/gentoo/xml/htdocs/doc/cs $ ../cl.rb
26 ./handbook/hb-working-features.xml::/doc/en/distcc.xml
27 ./handbook/index.xml::/doc/en/handbook/handbook-alpha.xml
28 ./handbook/hb-install-about.xml::/doc/en/faq.xml
29 ./handbook/handbook.xml::/doc/en/handbook/handbook-alpha.xml
30
31 Looks like you should have been slapped twice as much, or twice as hard, as
32 rane, not even mentioning a Russian slap for closing a bug without pinging the
33 assignee, and one more from releng, and... now my catfish needs a rest, the
34 drought has made him weary.
35
36 cl.rb should be run from /doc/$LANG
37 Just leave it in /doc and use "../cl.rb" from your /doc/$LANG.
38 "../cl.rb|grep -v 2004" would hide unmaintained old books.
39
40
41 Cheers,
42 --
43 / Xavier Neys
44 \_ Gentoo Documentation Project
45 / French & Internationalisation Lead
46 \ http://www.gentoo.org/doc/en
47 /\

Attachments

File name MIME type
cl.rb text/plain