bigbluebutton-Github/bigbluebutton-client/setuplocale.sh
2010-04-02 17:42:37 +00:00

22 lines
486 B
Bash
Executable File

#!/bin/bash
#
# Setup the locale for BigBlueButton
#
NEW_LANG=$(cat ./src/org/bigbluebutton/util/i18n/ResourceUtil.as | tr -d '\r' | sed -n "/localeChain:Array/{s/.*\[[ ]*//g;s/[ ]*\];//g;s/\"//g;s/,//g;p}")
echo "Checking languages: $NEW_LANG"
CUR_DIR=$(pwd)
cd "${FLEX_HOME}/frameworks/locale"
for v in $NEW_LANG; do
if [ ! -d ${v} ]; then
echo "Creating locale for: ${v}"
$FLEX_HOME/bin/copylocale en_US ${v}
fi
done
cd $CUR_DIR