Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from ezsystems/EZP-26834-ezplatform-i18n-sync…
…hronization EZP-26834: Synchronize translations in ezplatform-i18n
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env sh | ||
# This script should be used to synchronize ezplatform-i18n repository | ||
# Translations must be up-to-date in all packages | ||
echo 'Translation synchronization'; | ||
|
||
echo '# Clean corresponding ezplatform-i18n folder'; | ||
rm ./vendor/ezsystems/ezplatform-i18n/platform-ui-bundle/*.xlf | ||
rm ./vendor/ezsystems/ezplatform-i18n/ezpublish-kernel/*.xlf | ||
rm ./vendor/ezsystems/ezplatform-i18n/repository-forms/*.xlf | ||
|
||
echo '# Mirror the translation files'; | ||
cp ./vendor/ezsystems/platform-ui-bundle/Resources/translations/*.xlf ./vendor/ezsystems/ezplatform-i18n/platform-ui-bundle | ||
cp ./vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/translations/*.xlf ./vendor/ezsystems/ezplatform-i18n/ezpublish-kernel | ||
cp ./vendor/ezsystems/repository-forms/bundle/Resources/translations/*.xlf ./vendor/ezsystems/ezplatform-i18n/repository-forms | ||
|
||
echo '# Rename file to fit to crowdin format'; | ||
rename 's/\.en\./\./g' ./vendor/ezsystems/ezplatform-i18n/platform-ui-bundle/* | ||
rename 's/\.en\./\./g' ./vendor/ezsystems/ezplatform-i18n/ezpublish-kernel/* | ||
rename 's/\.en\./\./g' ./vendor/ezsystems/ezplatform-i18n/repository-forms/* | ||
|
||
echo 'Translation synchronization done !'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters