[initial-setup][rhel7-branch][PATCH] Switch to Zanata for translations (#1229747)

Martin Kolman mkolman at redhat.com
Mon Jul 20 14:00:59 UTC 2015


Anaconda switched to Zanata, so switch also Initial Setup to use Zanata
for translations.

Related: rhbz#1229747
Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 .tx/config |   9 ------
 Makefile   |  10 +++++-
 zanata.xml | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 115 insertions(+), 10 deletions(-)
 delete mode 100644 .tx/config
 create mode 100644 zanata.xml

diff --git a/.tx/config b/.tx/config
deleted file mode 100644
index b1371eb..0000000
--- a/.tx/config
+++ /dev/null
@@ -1,9 +0,0 @@
-[main]
-host = https://www.transifex.com
-
-[initial-setup.rhel7-branch]
-file_filter = po/<lang>.po
-source_file = po/initial-setup.pot
-source_lang = en
-type = PO
-
diff --git a/Makefile b/Makefile
index f890124..c27a955 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@
 ANACONDA_PATH=${HOME}/Work/anaconda/msivak
 PYKICKSTART_PATH=${HOME}/Work/pykickstart/master
 
+ZANATA_PULL_ARGS = --transdir po/
+ZANATA_PUSH_ARGS = --srcdir po/ --push-type source --force
+
 default: all
 
 all: po-files
@@ -77,7 +80,12 @@ potfile:
 	$(MAKE) -C po potfile
 
 po-pull:
-	tx pull -a --disable-overwrite
+	rpm -q zanata-python-client &>/dev/null || ( echo "need to run: dnf install zanata-python-client"; exit 1 )
+	zanata pull $(ZANATA_PULL_ARGS)
+
+po-push:
+	rpm -q zanata-python-client &>/dev/null || ( echo "need to run: dnf install zanata-python-client"; exit 1 )
+	zanata push $(ZANATA_PUSH_ARGS) || ( echo "zanata push failed"; exit 1 )
 
 install-po-files:
 	$(MAKE) -C po install
diff --git a/zanata.xml b/zanata.xml
new file mode 100644
index 0000000..61b0e27
--- /dev/null
+++ b/zanata.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<config xmlns="http://zanata.org/namespace/config/">
+  <url>https://fedora.zanata.org/</url>
+  <project>initial-setup</project>
+  <project-version>rhel7-branch</project-version>
+  <project-type>gettext</project-type>
+
+  <locales>
+    <locale>sq</locale>
+    <locale>ar</locale>
+    <locale>as</locale>
+    <locale>ast</locale>
+    <locale>bal</locale>
+    <locale>eu</locale>
+    <locale>bn</locale>
+    <locale>bn-IN</locale>
+    <locale>brx</locale>
+    <locale>bs</locale>
+    <locale>br</locale>
+    <locale>bg</locale>
+    <locale>ca</locale>
+    <locale>zh-CN</locale>
+    <locale>zh-HK</locale>
+    <locale>zh-TW</locale>
+    <locale>kw</locale>
+    <locale>kw-GB</locale>
+    <locale>cs</locale>
+    <locale>da</locale>
+    <locale>nl</locale>
+    <locale>en-GB</locale>
+    <locale>eo</locale>
+    <locale>et</locale>
+    <locale>fi</locale>
+    <locale>fr</locale>
+    <locale>gl</locale>
+    <locale>ka</locale>
+    <locale>de</locale>
+    <locale>el</locale>
+    <locale>gu</locale>
+    <locale>he</locale>
+    <locale>hi</locale>
+    <locale>hu</locale>
+    <locale>is</locale>
+    <locale>id</locale>
+    <locale>ia</locale>
+    <locale>it</locale>
+    <locale>ja</locale>
+    <locale>kn</locale>
+    <locale>kk</locale>
+    <locale>km</locale>
+    <locale>ky</locale>
+    <locale>ko</locale>
+    <locale>lt</locale>
+    <locale>nds</locale>
+    <locale>mk</locale>
+    <locale>mai</locale>
+    <locale>ms</locale>
+    <locale>ml</locale>
+    <locale>mr</locale>
+    <locale>mn</locale>
+    <locale>ne</locale>
+    <locale>nb</locale>
+    <locale>nn</locale>
+    <locale>or</locale>
+    <locale>pa</locale>
+    <locale>fa</locale>
+    <locale>pl</locale>
+    <locale>pt</locale>
+    <locale>pt-BR</locale>
+    <locale>ro</locale>
+    <locale>ru</locale>
+    <locale>sr</locale>
+    <locale>sr at latin</locale>
+    <locale>si</locale>
+    <locale>sk</locale>
+    <locale>sl</locale>
+    <locale>es</locale>
+    <locale>sv</locale>
+    <locale>tg</locale>
+    <locale>ta</locale>
+    <locale>te</locale>
+    <locale>bo</locale>
+    <locale>tr</locale>
+    <locale>uk</locale>
+    <locale>ur</locale>
+    <locale>wba</locale>
+    <locale>cy</locale>
+    <locale>lv</locale>
+    <locale>kw at uccor</locale>
+    <locale>kw at kkcor</locale>
+    <locale>af</locale>
+    <locale>am</locale>
+    <locale>be</locale>
+    <locale>hr</locale>
+    <locale>de-CH</locale>
+    <locale>th</locale>
+    <locale>vi</locale>
+    <locale>zu</locale>
+    <locale>ilo</locale>
+    <locale>nso</locale>
+    <locale>tw</locale>
+    <locale>yo</locale>
+    <locale>anp</locale>
+  </locales>
+
+</config>
-- 
2.4.3



More information about the anaconda-patches mailing list