From 06f57db1bdd2837b6e7bae86d287fe84f52107de Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 13 Nov 2017 05:33:29 -0500 Subject: [PATCH] Add crowdin yaml Remove fake api key Use android language code Ignore translation branch Disable publishing on translation branch Move path to file Revert Add strings xml Add comma --- .travis.yml | 2 +- crowdin.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 crowdin.yaml diff --git a/.travis.yml b/.travis.yml index 9a3d38de3..7b2d45491 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ android: licenses: - ".+" after_success: -- chmod +x ./generate-apk-release.sh; ./generate-apk-release.sh +- if [ "$TRAVIS_BRANCH" != "l10n_dev" ]; then chmod +x ./generate-apk-release.sh; ./generate-apk-release.sh; fi script: - cd $TRAVIS_BUILD_DIR/ - printf "Starting script\n" diff --git a/crowdin.yaml b/crowdin.yaml new file mode 100644 index 000000000..5053e2115 --- /dev/null +++ b/crowdin.yaml @@ -0,0 +1,16 @@ +"project_identifier": "frost-for-facebook" +"base_path": "/app/src/main/res" + +"files": [ + { + "source" : "/values/strings.xml", + "translation" : "/values-%android_code%/%original_file_name%" + }, + { + "source" : "/values/strings_*.xml", + "translation" : "/values-%android_code%/%original_file_name%", + "ignore" : [ + "/values/strings_no_translate.xml" + ] + } +] \ No newline at end of file