openspades/crowdin-download.sh

42 lines
932 B
Bash
Raw Normal View History

2017-09-05 02:11:05 -07:00
#!/bin/sh
# work-around for the issue that `languages_mapping` does not work for some reason
# this script performs a destructive operation - use carefully!
function remap() {
if [ -f "Resources/Locales/$1/openspades.po" ]; then
echo "Relocating Resources/Locales/$1 to Resources/Locales/$2"
# work-around for case-insensitive file systems (e.g., HFS+, NTFS)
mv "Resources/Locales/$1" "Resources/Locales/temp"
rm -rf "Resources/Locales/$2"
mv "Resources/Locales/temp" "Resources/Locales/$2"
fi
}
crowdin download || exit 1
rm -rf "Resources/Locales/temp"
remap de_DE de
2017-12-31 02:02:26 -08:00
remap el_GR el
2017-09-05 02:11:05 -07:00
remap es_ES es
remap fr_FR fr
2017-12-31 02:02:26 -08:00
remap id_ID id
2017-09-05 02:11:05 -07:00
remap it_IT it
remap ja_JP ja
remap ko_KR ko
remap nl_NL nl
remap pl_PL pl
remap pt_PT pt_pt
remap pt_BR pt_br
remap ru_RU ru
remap uk_UA uk
2017-12-31 02:02:26 -08:00
remap vi_VN vi
remap hu_HU hu
remap lt_LT lt
remap nb_NO nb
remap nn_NO nn
remap tr_TR tr
remap jbo_EN jbo