Fix for Lokalise backend misinterpretation of keys (#13986)

The Lokalise server has a bug that the internal portion of key
references was misinterpreted as a symfony key, and was getting auto
converted by the convert placeholders feature. Since we don't use this
we're turning it off to work around the bug.
This commit is contained in:
Adam Mills 2018-04-18 15:58:47 -04:00 committed by Paulus Schoutsen
parent b0a3d084fb
commit ccba858ae1
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ script: travis_wait 30 tox --develop
services: services:
- docker - docker
before_deploy: before_deploy:
- docker pull lokalise/lokalise-cli@sha256:79b3108211ed1fcc9f7b09a011bfc53c240fc2f3b7fa7f0c8390f593271b4cd7 - docker pull lokalise/lokalise-cli@sha256:2198814ebddfda56ee041a4b427521757dd57f75415ea9693696a64c550cef21
deploy: deploy:
skip_cleanup: true skip_cleanup: true
provider: script provider: script

View File

@ -35,9 +35,10 @@ script/translations_upload_merge.py
docker run \ docker run \
-v ${LOCAL_FILE}:/opt/src/${LOCAL_FILE} \ -v ${LOCAL_FILE}:/opt/src/${LOCAL_FILE} \
lokalise/lokalise-cli@sha256:79b3108211ed1fcc9f7b09a011bfc53c240fc2f3b7fa7f0c8390f593271b4cd7 lokalise \ lokalise/lokalise-cli@sha256:2198814ebddfda56ee041a4b427521757dd57f75415ea9693696a64c550cef21 lokalise \
--token ${LOKALISE_TOKEN} \ --token ${LOKALISE_TOKEN} \
import ${PROJECT_ID} \ import ${PROJECT_ID} \
--file /opt/src/${LOCAL_FILE} \ --file /opt/src/${LOCAL_FILE} \
--lang_iso ${LANG_ISO} \ --lang_iso ${LANG_ISO} \
--convert_placeholders 0 \
--replace 1 --replace 1