From a11e6957569924a7cdb4933c1d50cc48999be260 Mon Sep 17 00:00:00 2001 From: Maxim Khlobystov Date: Thu, 19 Oct 2017 20:58:47 +0000 Subject: [PATCH] Made sure the fix for escaping backslashes is applied when you run the Transifex for all locales at once. --- bigbluebutton-html5/transifex.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/transifex.sh b/bigbluebutton-html5/transifex.sh index fa00675fde..2b620b682b 100755 --- a/bigbluebutton-html5/transifex.sh +++ b/bigbluebutton-html5/transifex.sh @@ -34,8 +34,9 @@ else LOCALE=$( echo "$l" | tr -d '[:space:]' ) TRANSLATION=$(curl -L --user "$USER":"$PW" -X GET "https://www.transifex.com/api/2/project/bigbluebutton-html5/resource/enjson/translation/$LOCALE/?mode=onlytranslated&file") NO_EMPTY_STRINGS=$(echo "$TRANSLATION" | sed '/: \"\"/D' | sed '/}$/D') - NO_TRAILING_COMMA=$(echo "$NO_EMPTY_STRINGS" | sed '$ s/,$//') - echo -e "$NO_TRAILING_COMMA\n}\n" > ./private/locales/"$LOCALE".json + NO_TRAILING_COMMA=$(echo "$NO_EMPTY_STRINGS" | sed '$ s/,$//') + echo "$NO_TRAILING_COMMA" > ./private/locales/"$LOCALE".json + echo -e "\n}\n" >> ./private/locales/"$LOCALE".json echo -e "Added translation file $LOCALE.json : ${GREEN}✓${NC}" done else