[Fedora-trans-fr] [script] Voici un script pour modifier vos header

shaiton shaiton at fedoraproject.org
Thu Aug 5 18:33:14 UTC 2010


J'en avais un peu marre de vérifier à chaque fois... Puis avec Poedit
je ne sais pas définir le catalogue par défaut.
Je vous propose donc un script qui permet d'éditer les header pour
qu'ils soient conformes.

Si vous avez lokalize (ou autre du style) ce n'est pas utile...
Mais dans tous les autres cas, il peut vous servir.

Le voici :

sed -e 's/^"Project-Id-V.*$/"Project-Id-Version:
fr\\n"/g;s/^"Last-Translator:.*$/"Last-Translator: Kevin Raymond
<shaiton at fedoraproject.org>\\n"/g;s/^"Report-Msgid-Bugs-To.*$/"Report-Msgid-Bugs-To:
https:\/\/bugzilla.redhat.com\/\\n"/g;s/^"Language-Team.*$/"Language-Team:
Français <trans-fr at lists.fedoraproject.org>\\n"/g;s/^"Content-Type.*$/"Content-Type:
text\/plain; charset=UTF-8\\n"/g;s/^"Content-Transfer-Encoding.*$/"Content-Transfer-Encoding:
8bit\\n"/g;s/^"Plural-Forms.*$/"Plural-Forms: nplurals=2; plural=(n >
1);\\n"/g' -i file.po

Oui c'est bourrin, mais ca fait son job (vous n'avez qu'à modifier
votre nom et email et bien sur la cible (*.po par exemple)).

Si vous trouvez un bug... merci de me prévenir :)

++

-- 
Kévin Raymond
GPG-Key: A5BCB3A2


More information about the trans-fr mailing list