TXDIR=transifex
TXPROJECT=wesnoth-dev-japanese
RESOURCES="wesnoth \
- wesnoth-ai \
- wesnoth-anl \
- wesnoth-aoi \
- wesnoth-did \
- wesnoth-dm \
- wesnoth-dw \
- wesnoth-editor \
- wesnoth-ei \
- wesnoth-help \
- wesnoth-httt \
- wesnoth-l \
- wesnoth-lib \
- wesnoth-low \
- wesnoth-manpages \
- wesnoth-manual \
- wesnoth-multiplayer \
- wesnoth-nr \
- wesnoth-sof \
- wesnoth-sota \
- wesnoth-sotbe \
- wesnoth-tb \
- wesnoth-test \
- wesnoth-thot \
- wesnoth-trow \
- wesnoth-tsg \
- wesnoth-tutorial \
- wesnoth-units \
- wesnoth-utbs"
+ wesnoth-ai \
+ wesnoth-anl \
+ wesnoth-aoi \
+ wesnoth-did \
+ wesnoth-dm \
+ wesnoth-dw \
+ wesnoth-editor \
+ wesnoth-ei \
+ wesnoth-help \
+ wesnoth-httt \
+ wesnoth-l \
+ wesnoth-lib \
+ wesnoth-low \
+ wesnoth-manpages \
+ wesnoth-manual \
+ wesnoth-multiplayer \
+ wesnoth-nr \
+ wesnoth-sof \
+ wesnoth-sota \
+ wesnoth-sotbe \
+ wesnoth-tb \
+ wesnoth-test \
+ wesnoth-thot \
+ wesnoth-trow \
+ wesnoth-tsg \
+ wesnoth-tutorial \
+ wesnoth-units \
+ wesnoth-utbs"
# set transifex project
if [ ! -e ${TXDIR} ]; then
- mkdir ${TXDIR}
+ mkdir ${TXDIR}
tx init ${TX_DIR} --token=${TX_TOKEN} --force --no-interactive
- cd ${TXDIR}
+ cd ${TXDIR}
tx config mapping-remote https://www.transifex.com/projects/p/${TXPROJECT}/
cd ../
fi
for RESOURCE in ${RESOURCES}
do
- if [ ! -e ${RESOURCE} ]; then
- mkdir -p ${RESOURCE}
- fi
- cp ${TXDIR}/translations/${TXPROJECT}.${RESOURCE}/ja.po ${RESOURCE}/ja.po
+ if [ ! -e ${RESOURCE} ]; then
+ mkdir -p ${RESOURCE}
+ fi
+ cp ${TXDIR}/translations/${TXPROJECT}.${RESOURCE}/ja.po ${RESOURCE}/ja.po
done
git add .
git commit -m "Transifexと同期"
-git push origin master
\ No newline at end of file
+git push origin master