Julien Hardelin | 7 Aug 2012 08:23
Picon

Projet Mallard et fichiers po

Avec "yelp index.page" ou "yelp-build html *.page" on peut afficher, en 
anglais, le html d'un projet Mallard.
Comment faire pour afficher le html en français quand on possède le 
fr.po traduit ?
(Je crois me souvenir qu'il existe un script test.sh à exécuter dans le 
répertoire po/fr, mais je n'arrive pas à le retrouver).

Alexandre Franke | 7 Sep 2012 16:17
Picon

Re: Projet Mallard et fichiers po

2012/8/7 Julien Hardelin <jm.hard <at> wanadoo.fr>:
> Avec "yelp index.page" ou "yelp-build html *.page" on peut afficher, en
> anglais, le html d'un projet Mallard.
> Comment faire pour afficher le html en français quand on possède le fr.po
> traduit ?
> (Je crois me souvenir qu'il existe un script test.sh à exécuter dans le
> répertoire po/fr, mais je n'arrive pas à le retrouver).

À lancer dans le répertoire fr/ :

#!/bin/bash
for page in ../C/*.page; do
  xml2po -m mallard -p fr.po $page > `basename $page`;
done

--

-- 
Alexandre Franke


Gmane