[Pkg-libvirt-commits] [libguestfs] 25/72: Move upstream translations from Tranifex to Zanata.

Hilko Bengen bengen at moszumanska.debian.org
Sun Apr 5 15:19:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 7f1f5c0953ce4719b355cab1a75dbb65dac9cc81
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Feb 18 14:42:54 2015 +0000

    Move upstream translations from Tranifex to Zanata.
    
    This is at the request of the Fedora localization team.
    For further information see:
    
    https://www.redhat.com/archives/libguestfs/2015-February/msg00168.html
    (cherry picked from commit c328ac9e0473197dd563cfc123c417a5261fb39e)
---
 .tx/config                   |  12 -----
 Makefile.am                  |   1 -
 src/guestfs.pod              |   8 ++--
 tx-pull.sh => zanata-pull.sh |  17 ++++---
 zanata.xml                   | 106 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 118 insertions(+), 26 deletions(-)

diff --git a/.tx/config b/.tx/config
deleted file mode 100644
index 26fb474..0000000
--- a/.tx/config
+++ /dev/null
@@ -1,12 +0,0 @@
-[main]
-host = https://www.transifex.com
-
-[libguestfs.libguestfspot]
-file_filter = po/<lang>.po
-source_file = po/libguestfs.pot
-source_lang = en
-
-[libguestfs.libguestfsdocspot]
-file_filter = po-docs/<lang>.po
-source_file = po-docs/libguestfs-docs.pot
-source_lang = en
diff --git a/Makefile.am b/Makefile.am
index d55d8d6..fce68c2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -159,7 +159,6 @@ EXTRA_DIST = \
 	.gitignore \
 	.lvimrc \
 	.mailmap \
-	.tx/config \
 	bootstrap \
 	bugs-in-changelog.sh \
 	autogen.sh \
diff --git a/src/guestfs.pod b/src/guestfs.pod
index 949ff7a..85b6872 100644
--- a/src/guestfs.pod
+++ b/src/guestfs.pod
@@ -4528,15 +4528,15 @@ Run C<src/api-support/update-from-tarballs.sh>.
 
 =item *
 
-Push and pull from Transifex.
+Push and pull from Zanata.
 
 Run:
 
- tx push -s
+ zanata push
 
-to push the latest POT files to Transifex.  Then run:
+to push the latest POT files to Zanata.  Then run:
 
- ./tx-pull.sh
+ ./zanata-pull.sh
 
 which is a wrapper to pull the latest translated C<*.po> files.
 
diff --git a/tx-pull.sh b/zanata-pull.sh
similarity index 81%
rename from tx-pull.sh
rename to zanata-pull.sh
index 3260a34..c6cb9b7 100755
--- a/tx-pull.sh
+++ b/zanata-pull.sh
@@ -1,6 +1,6 @@
 #!/bin/bash -
-# Pull translations from Transifex.
-# Copyright (C) 2011 Red Hat Inc.
+# Pull translations from Zanata.
+# Copyright (C) 2011-2015 Red Hat Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,15 +17,14 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 set -e
-set -v
 
-echo tx pull
-tx pull
+echo zanata po pull
+zanata po pull
 
 # Remove PO files that have no translations in them.
 for f in po/*.po po-docs/*.po; do
-  if ! grep -q '^msgstr "[^"]' $f; then
-    echo rm $f
-    rm $f
-  fi
+    if ! grep -q '^msgstr "[^"]' $f; then
+        echo rm $f
+        rm $f
+    fi
 done
diff --git a/zanata.xml b/zanata.xml
new file mode 100644
index 0000000..ab537f9
--- /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>libguestfs</project>
+  <project-version>master</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>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list