2010-01-20 00:14:03 +08:00
|
|
|
#!/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"
|
|
|
|
|
2010-01-20 03:36:50 +08:00
|
|
|
CUR_DIR=$(pwd)
|
|
|
|
|
2010-01-20 03:44:53 +08:00
|
|
|
cd "${FLEX_HOME}/frameworks/locale"
|
2010-01-20 03:36:50 +08:00
|
|
|
|
2010-01-20 00:14:03 +08:00
|
|
|
for v in $NEW_LANG; do
|
|
|
|
if [ ! -d ${v} ]; then
|
|
|
|
echo "Creating locale for: ${v}"
|
|
|
|
copylocale en_US ${v}
|
|
|
|
fi
|
|
|
|
done
|
2010-01-20 03:36:50 +08:00
|
|
|
|
|
|
|
cd $CUR_DIR
|
2010-01-20 00:14:03 +08:00
|
|
|
|