Commit 03cf87e2 authored by Georg Koppen's avatar Georg Koppen
Browse files

Bug 16268: Taking lower-case into account

Patch by Pearl Crescent
parent d7ff1cc7
......@@ -66,18 +66,24 @@ fi
echo "Locales: $BUNDLE_LOCALES"
cd translation
for KEYVAL in "${FILEMAP[@]}"; do
FILE="${KEYVAL%%:*}"
DEST_FILE="${KEYVAL%%:*}"
BRANCH="${KEYVAL##*:}"
echo "Updating ${FILE}..."
echo "Updating ${DEST_FILE}..."
git checkout -q "$BRANCH"
git merge -q origin/"$BRANCH"
for i in $BUNDLE_LOCALES;
do
UL="`echo $i|tr - _`"
mkdir -p ../$LOCALE_DIR/$i/
# Some file names are lowercase in Transifex.
if [ -f $UL/"$DEST_FILE" ]; then
SRCFILE="$DEST_FILE"
else
SRCFILE="`echo $DEST_FILE | tr '[:upper:]' '[:lower:]'`"
fi
# Use sed to work around a Transifex "double entity" issue.
sed -e 's/\&brandShortName;/\&brandShortName;/g' \
-e 's/\&vendorShortName;/\&vendorShortName;/g' \
$UL/"$FILE" > ../$LOCALE_DIR/$i/"$FILE"
$UL/"$SRCFILE" > ../$LOCALE_DIR/$i/"$DEST_FILE"
done
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment