1
0
forked from me/IronOS

Merge pull request #486 from agatti/macos_build_fix

Fix build on macOS
This commit is contained in:
Ben V. Brown
2019-08-16 08:13:54 +10:00
committed by GitHub

View File

@@ -83,9 +83,7 @@ echo "*********************************************"
# Calculate available languages
for f in "$TRANSLATION_DIR"/translation_*.json
do
lang_json=${f#*/translation_} # Remove ".../translation_"
lang=${lang_json%.json} # Remove ".json"
AVAILABLE_LANGUAGES+=("${lang^^}") # Convert to uppercase
AVAILABLE_LANGUAGES+=(`echo $f | tr "[:lower:]" "[:upper:]" | sed "s/[^_]*_//" | sed "s/\.JSON//g"`)
done
# Checking requested language