diff --git a/data/po/.gitignore b/data/po/.gitignore new file mode 100644 index 000000000..55f1e5080 --- /dev/null +++ b/data/po/.gitignore @@ -0,0 +1,2 @@ +transifex +tx.exe \ No newline at end of file diff --git a/data/po/gen-mo.sh b/data/po/gen-mo.sh deleted file mode 100755 index 1295922b7..000000000 --- a/data/po/gen-mo.sh +++ /dev/null @@ -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 diff --git a/data/po/pull_from_transifex.sh b/data/po/pull_from_transifex.sh new file mode 100644 index 000000000..e198f7bb5 --- /dev/null +++ b/data/po/pull_from_transifex.sh @@ -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 ====" \ No newline at end of file