[debian-edu-commits] debian-edu/ 02/05: Make it easier to test with different languages.

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Oct 2 18:55:48 UTC 2015


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

pere pushed a commit to branch master
in repository debian-edu-itil-doc-nb.

commit b2ba96f86a7de2248ab35bea3786cf71c5f1720d
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Oct 2 20:10:15 2015 +0200

    Make it easier to test with different languages.
---
 documentation/itil/dotranslation | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/documentation/itil/dotranslation b/documentation/itil/dotranslation
index 6a936f2..c9ae94b 100755
--- a/documentation/itil/dotranslation
+++ b/documentation/itil/dotranslation
@@ -1,4 +1,6 @@
 #!/bin/sh
+
+TARGETLANG=en
  
 if [ -z "`ls *.po`" ]; then
         echo "Found no translations (po files)." >&2
@@ -22,10 +24,10 @@ for f in *.xml ; do
 
         echo $f
         ln -s ${f} tmp.xml
-        po4a --translate-only itil.en.xml tmp.cfg
+        po4a --translate-only itil.${TARGETLANG}.xml tmp.cfg
         rm tmp.xml
-	if [ -e itil.en.xml ] ; then
-	    mv itil.en.xml ${base}.en.xml
+	if [ -e itil.${TARGETLANG}.xml ] ; then
+	    mv itil.${TARGETLANG}.xml ${base}.${TARGETLANG}.xml
 	else
 	    echo translation failed
 	fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/debian-edu-itil-doc-nb.git



More information about the debian-edu-commits mailing list