From c24810883759ef49feb047098c25a7387f55d314 Mon Sep 17 00:00:00 2001 From: Nicolas Bastien Date: Fri, 13 Jan 2017 16:46:38 +0100 Subject: [PATCH] EZP-26835 : Translation string extraction adds mirring to ezplatform-i18n corresponding folder --- bin/updatestrings.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bin/updatestrings.sh b/bin/updatestrings.sh index b58c367ea..7cbcab1e8 100755 --- a/bin/updatestrings.sh +++ b/bin/updatestrings.sh @@ -1,7 +1,20 @@ #!/usr/bin/env sh +# Extract string for default locale ../../../app/console translation:extract en -v \ --dir=. \ --exclude-dir=vendor --exclude-dir=Tests --exclude-dir=Features --exclude-dir=node_modules --exclude-dir=Resources/public/vendors \ --output-dir=./Resources/translations \ --keep "$@" + +# Clean corresponding ezplatform-i18n folder +rm ../../ezsystems/ezplatform-i18n/source/platform-ui-bundle/*.xlf +rm ../../ezsystems/ezplatform-i18n/source/platform-ui-bundle/*.yml + +# Miror the translation files +cp ./Resources/translations/* ../../ezsystems/ezplatform-i18n/source/platform-ui-bundle + +# Rename file to fit to crowdin format +rename 's/\.en\./\./g' ../../ezsystems/ezplatform-i18n/source/platform-ui-bundle/* + +echo 'Translation extraction done !'