diff --git a/.po2txt.sh b/.po2txt.sh index c1a47db..6da56df 100755 --- a/.po2txt.sh +++ b/.po2txt.sh @@ -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/ diff --git a/Makefile b/Makefile index 60e59d2..b5efe9d 100644 --- a/Makefile +++ b/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