[zanata] Improve zanata process
This commit is contained in:
parent
379a664b3a
commit
417b4cd4a8
2 changed files with 8 additions and 5 deletions
|
@ -8,7 +8,7 @@ do
|
|||
then
|
||||
po2txt -i $i --progress none -o po/$l.toml
|
||||
else
|
||||
po2txt -i $i --progress none -o po/$j.md
|
||||
po2txt -i $i --progress none -t content/$k.fr.md -o po/$j.md
|
||||
fi
|
||||
done
|
||||
mv po/*.md content/
|
||||
|
|
11
Makefile
11
Makefile
|
@ -1,17 +1,20 @@
|
|||
all: hugo
|
||||
|
||||
locales:
|
||||
txt2po --progress=none -P -i content/home.fr.md -o pot/home.pot
|
||||
txt2po --progress=none -P -i content/faq.fr.md -o pot/faq.pot
|
||||
txt2po --progress=none -P -i config/en.toml -o pot/config.pot
|
||||
txt2po --progress=none --duplicates=merge -P -i content/home.fr.md -o pot/home.pot
|
||||
txt2po --progress=none --duplicates=merge -P -i content/faq.fr.md -o pot/faq.pot
|
||||
txt2po --progress=none --duplicates=merge -P -i config/en.toml -o pot/config.pot
|
||||
|
||||
push-locales: locales
|
||||
zanata-cli -q -B push
|
||||
|
||||
pull-locales:
|
||||
zanata-cli -q -B pull
|
||||
zanata-cli -q -B pull --min-doc-percent 75
|
||||
./.po2txt.sh
|
||||
|
||||
clean-locales:
|
||||
rm po/*
|
||||
|
||||
stats-locales:
|
||||
zanata-cli -q stats
|
||||
|
||||
|
|
Loading…
Reference in a new issue