Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
EZP-26835 : Translation string extraction adds mirring to ezplatform-…
Browse files Browse the repository at this point in the history
…i18n corresponding folder
  • Loading branch information
Nicolas Bastien committed Jan 13, 2017
1 parent ebc472a commit c248108
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/updatestrings.sh
Original file line number Diff line number Diff line change
@@ -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 !'

0 comments on commit c248108

Please # to comment.