Skip to content

Commit

Permalink
Fix the way Crowdin handles the 'title' file
Browse files Browse the repository at this point in the history
Crowdin reformats the 'title' file, which makes it unusable by the Play
Publisher Gradle plugin
  • Loading branch information
rm3l committed Jun 27, 2017
1 parent 09e7404 commit 897c9d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/import-translations-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ if [ "$CIRCLE_PULL_REQUEST" == "" ]; then

# import listing graphics
for playLangPath in ./maoni-sample/src/main/play/*-*; do
# Crowdin reformats the 'title' file, which makes it unusable by the Play Publisher Gradle plugin
awk 'BEGIN{f=1} /#X-Generator/{f=0} f{print} $0{f=1}' ${playLangPath}/listing/title > ${playLangPath}/listing/title.tmp
mv ${playLangPath}/listing/title.tmp ${playLangPath}/listing/title
sed -i 's/Maoni=//g' ${playLangPath}/listing/title
for d in featureGraphic icon phoneScreenshots promoGraphic sevenInchScreenshots tenInchScreenshots tvBanner tvScreenshots; do
cp -r ./maoni-sample/src/main/play/en-US/listing/${d} ${playLangPath}/listing/ || true
done
Expand Down

0 comments on commit 897c9d9

Please sign in to comment.