281c32bbba
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@4094 af16638f-c34d-0410-8cfa-b39d5352b314
22 lines
486 B
Bash
Executable File
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
|
|
|