2017-09-05 18:11:05 +09: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 19:02:26 +09:00
|
|
|
remap el_GR el
|
2017-09-05 18:11:05 +09:00
|
|
|
remap es_ES es
|
|
|
|
remap fr_FR fr
|
2017-12-31 19:02:26 +09:00
|
|
|
remap id_ID id
|
2017-09-05 18:11:05 +09: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 19:02:26 +09:00
|
|
|
remap vi_VN vi
|
2019-01-01 15:17:51 +09:00
|
|
|
remap hu_HU hu
|
2020-04-20 00:07:16 +09:00
|
|
|
remap lt_LT lt
|
|
|
|
remap nb_NO nb
|
|
|
|
remap nn_NO nn
|
|
|
|
remap tr_TR tr
|
|
|
|
remap jbo_EN jbo
|