diff --git a/crowdin.yaml b/crowdin.yaml index 5ed17fe9..a5ef453d 100644 --- a/crowdin.yaml +++ b/crowdin.yaml @@ -103,9 +103,21 @@ files: zu: zu - - source: '/maoni-sample/src/main/play/en-US/whatsnew*' + source: '/maoni-sample/src/main/play/whatsnew*' translation: '/maoni-sample/src/main/play/%locale%/%original_file_name%' - - source: '/maoni-sample/src/main/play/en-US/listing/*' - translation: '/maoni-sample/src/main/play/%locale%/listing/%original_file_name%' + source: '/maoni-sample/src/main/play/listing_fulldescription' + translation: '/maoni-sample/src/main/play/%locale%/listing/fulldescription' + + - + source: '/maoni-sample/src/main/play/listing_shortdescription' + translation: '/maoni-sample/src/main/play/%locale%/listing/shortdescription' + + - + source: '/maoni-sample/src/main/play/listing_title' + translation: '/maoni-sample/src/main/play/%locale%/listing/title' + + # - + # source: '/maoni-sample/src/main/play/listing_video' + # translation: '/maoni-sample/src/main/play/%locale%/listing/video' diff --git a/maoni-sample/src/main/play/en-US/listing/title b/maoni-sample/src/main/play/en-US/listing/title deleted file mode 100644 index d8dfa22a..00000000 --- a/maoni-sample/src/main/play/en-US/listing/title +++ /dev/null @@ -1,121 +0,0 @@ -#X-Generator: crowdin.com -Maoni=In-App Feedback library - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/maoni-sample/src/main/play/en-US/listing/fulldescription b/maoni-sample/src/main/play/listing_fulldescription similarity index 100% rename from maoni-sample/src/main/play/en-US/listing/fulldescription rename to maoni-sample/src/main/play/listing_fulldescription diff --git a/maoni-sample/src/main/play/en-US/listing/shortdescription b/maoni-sample/src/main/play/listing_shortdescription similarity index 100% rename from maoni-sample/src/main/play/en-US/listing/shortdescription rename to maoni-sample/src/main/play/listing_shortdescription diff --git a/maoni-sample/src/main/play/listing_title b/maoni-sample/src/main/play/listing_title new file mode 100644 index 00000000..28f1ac35 --- /dev/null +++ b/maoni-sample/src/main/play/listing_title @@ -0,0 +1 @@ +Maoni: In-App Feedback library diff --git a/maoni-sample/src/main/play/en-US/whatsnew b/maoni-sample/src/main/play/whatsnew similarity index 100% rename from maoni-sample/src/main/play/en-US/whatsnew rename to maoni-sample/src/main/play/whatsnew diff --git a/tools/import-translations-github.sh b/tools/import-translations-github.sh index d8e99330..05595a40 100644 --- a/tools/import-translations-github.sh +++ b/tools/import-translations-github.sh @@ -40,14 +40,20 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then java -jar crowdin-cli.jar download rm crowdin-cli.jar + # import listing graphics + for playLangPath in ./maoni-sample/src/main/play/*-*; do + mkdir -p ${playLangPath}/listing + cp -vr ./maoni-sample/src/main/play/en-US/listing/* ${playLangPath}/listing/ + done + #add, commit and push files git add -f . git remote rm origin git remote add origin https://rm3l:$GITHUB_API_KEY@github.com/rm3l/maoni.git git add -f . - git commit -q -m "Automatic translation import (build #$TRAVIS_BUILD_NUMBER)." \ + git commit -m "Automatic translation import (build #$TRAVIS_BUILD_NUMBER)." \ -m "Commit $TRAVIS_COMMIT" - git push -q -f origin master > /dev/null + git push -f origin master 2>&1 echo -e "... Done with importing translations from Crowdin\n" fi