Add scripts to translate from Transifex

This commit is contained in:
Marianne Gagnon 2015-02-15 20:45:52 -05:00
parent aae307c8b6
commit 12e583dde0
3 changed files with 28 additions and 31 deletions

2
data/po/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
transifex
tx.exe

View File

@ -1,31 +0,0 @@
msgfmt ca.po -o ca/LC_MESSAGES/supertuxkart.mo
msgfmt cs.po -o cs/LC_MESSAGES/supertuxkart.mo
msgfmt da.po -o da/LC_MESSAGES/supertuxkart.mo
msgfmt de.po -o de/LC_MESSAGES/supertuxkart.mo
msgfmt es.po -o es/LC_MESSAGES/supertuxkart.mo
msgfmt fi.po -o fi/LC_MESSAGES/supertuxkart.mo
msgfmt fr_CA.po -o fr_CA/LC_MESSAGES/supertuxkart.mo
msgfmt fr.po -o fr/LC_MESSAGES/supertuxkart.mo
msgfmt ga.po -o ga/LC_MESSAGES/supertuxkart.mo
msgfmt gl.po -o gl/LC_MESSAGES/supertuxkart.mo
msgfmt it.po -o it/LC_MESSAGES/supertuxkart.mo
msgfmt nb.po -o nb/LC_MESSAGES/supertuxkart.mo
msgfmt nl.po -o nl/LC_MESSAGES/supertuxkart.mo
msgfmt pl.po -o pl/LC_MESSAGES/supertuxkart.mo
msgfmt pt_BR.po -o pt_BR/LC_MESSAGES/supertuxkart.mo
msgfmt ro.po -o ro/LC_MESSAGES/supertuxkart.mo
msgfmt ru.po -o ru/LC_MESSAGES/supertuxkart.mo
msgfmt sl.po -o sl/LC_MESSAGES/supertuxkart.mo
msgfmt sv.po -o sv/LC_MESSAGES/supertuxkart.mo
msgfmt uk.po -o uk/LC_MESSAGES/supertuxkart.mo
msgfmt zh_CN.po -o zh_CN/LC_MESSAGES/supertuxkart.mo
msgfmt he.po -o he/LC_MESSAGES/supertuxkart.mo
msgfmt ko.po -o ko/LC_MESSAGES/supertuxkart.mo
msgfmt sk.po -o sk/LC_MESSAGES/supertuxkart.mo
msgfmt zh_TW.po -o zh_TW/LC_MESSAGES/supertuxkart.mo
msgfmt tr.po -o tr/LC_MESSAGES/supertuxkart.mo
msgfmt pt.po -o pt/LC_MESSAGES/supertuxkart.mo
msgfmt eu.po -o eu/LC_MESSAGES/supertuxkart.mo
msgfmt is.po -o is/LC_MESSAGES/supertuxkart.mo
msgfmt lt.po -o lt/LC_MESSAGES/supertuxkart.mo
msgfmt hr.po -o hr/LC_MESSAGES/supertuxkart.mo

View File

@ -0,0 +1,26 @@
#!/bin/sh
# Run this script from the root directory to get the latest translations from transifex :
# ./data/po/pull_from_transifex.sh
cd ./data/po
export PATH=$PATH:`pwd`
if [ -d "transifex/translations/supertuxkart.supertuxkartpot" ]; then
cd transifex
else
echo "==== Performing initial checkout ===="
mkdir -p transifex
cd transifex
tx init
tx set --auto-remote http://www.transifex.net/projects/p/supertuxkart/
fi
echo "==== Pulling all translations ===="
tx pull --all
echo "==== Copying files ===="
ls ./translations/supertuxkart.supertuxkartpot/*.po
cp -R ./translations/supertuxkart.supertuxkartpot/*.po ..
echo "==== Done ===="