1 |
A través de la lista de documentación me entero de lo siguiente: |
2 |
|
3 |
------------------------------------------ |
4 |
To all translation teams: |
5 |
Update your English originals and use the script below to add their date & |
6 |
versions to your translations, with dates formatted in your language of course. |
7 |
Update the locale and date format as required. |
8 |
|
9 |
Use with caution and only once. |
10 |
Play with the following command if you need to test the date command: |
11 |
|
12 |
echo 'November 2, 2004'|LC_ALL="fr_FR.utf8" date -d "$D" +"%e %B %Y" |
13 |
|
14 |
""" |
15 |
#!/bin/bash |
16 |
|
17 |
for hb in `ls hb-*xml`; do |
18 |
if [ -f "../../en/handbook/$hb" ]; then |
19 |
V=`grep '^<version' ../../en/handbook/$hb` |
20 |
D=`grep '^<date' ../../en/handbook/$hb|sed "s:^<date>\\(.*\\)</date>$:\\1:"` |
21 |
ND=`LC_ALL="fr_FR.utf8" date -d "$D" +"%e %B %Y"` |
22 |
echo "$hb : $V $D => $ND " |
23 |
grep -B 99 "^<sections" $hb > toto.xml |
24 |
echo -e "\n$V\n<date>$ND</date>\n" >> toto.xml |
25 |
grep -A 9999 "^<sections" $hb |grep -v "^<sections">> toto.xml |
26 |
mv toto.xml $hb |
27 |
fi |
28 |
done |
29 |
""" |
30 |
------------------------------------------ |
31 |
|
32 |
Espero que Bass o Chigui pueden resolver pronto este asunto. |
33 |
Gracias de antemano. |
34 |
|
35 |
-- |
36 |
gentoo-doc-es@g.o mailing list |