From 417b4cd4a83e2eff3e2df4ab72f75f109d124998 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 30 Mar 2018 15:27:39 +0200 Subject: [PATCH] [zanata] Improve zanata process --- .po2txt.sh | 2 +- Makefile | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) 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