bigbluebutton-Github/bigbluebutton-client/setuplocale.sh

18 lines
457 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"
cd ~/dev/tools/flex3/frameworks/locale
for v in $NEW_LANG; do
if [ ! -d ${v} ]; then
echo "Creating locale for: ${v}"
copylocale en_US ${v}
fi
done
cd ~/dev/bbb-client