Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-doc
Navigation:
Lists: gentoo-doc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-doc@g.o
From: Jan Kundrát <jkt@g.o>
Subject: Referencing English files instead of translated ones
Date: Fri, 22 Jul 2005 20:54:49 +0200
Hi all,
as I wanted to find out something I can slap rane (Polish translator)
with, I've written small script that checks if you are referencing
English file from other files even if you have given doc translated. My
simple script doesn't use metadoc.xml, so it will warn you if you have
some file in CVS but without metadoc.xml entry as well.

Anyway, I've found out that Polish docs were up-to-date while Czech ones
weren't (not my fault, they were added before I became Lead Translator
for CS), but don't laugh at me, they have been fixed :-).

In fact, it's not a script, only a simple line of bash, designed to be
run in gentoo/xml/htdocs/doc/$LANG/:

for f in *.xml */*.xml; do grep -Rn en/`echo $f | sed "s:\./::"` .; done

Because it is so simple, it *will* report false positives, mainly
because of metadoc.xml's parent="/doc/en/metadoc.xml" and also index.xml
existing in several directories (in case you don't have them all
translated). Those reports could be quite easily tracked down, so I hope
you'll find it usefull (chiguire already felt the feelings while looking
at 85 lines of wrong references...).

HTH,
-jkt

P.S.:
I've just found two files under doc/pl not listed in metadoc.xml :-P

-- 
cd /local/pub && more beer > /dev/mouth
Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: Referencing English files instead of translated ones
-- Xavier Neys
Navigation:
Lists: gentoo-doc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Resignation
Next by thread:
Re: Referencing English files instead of translated ones
Previous by date:
Re: TEST, can ignore it
Next by date:
Re: Referencing English files instead of translated ones


Updated Jun 17, 2009

Summary: Archive of the gentoo-doc mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.