Skip to content

Commit 56ec20b

Browse files
authored
Merge pull request #1968 from crazyserver/MOBILE-3039
MOBILE-3039 scripts: Do not override English local translations
2 parents ea5daca + ec93e1c commit 56ec20b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/aot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ $TRAVIS_BRANCH == 'integration' ] || [ $TRAVIS_BRANCH == 'master' ] || [ $T
66
./build_lang.sh
77
cd ..
88

9-
if [ $TRAVIS_BRANCH == 'master' ] && [ ! -z $GIT_TOKEN ] ; then
9+
if [ "$TRAVIS_BRANCH" == 'master' ] && [ ! -z $GIT_TOKEN ] ; then
1010
git remote set-url origin https://$GIT_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
1111
git fetch -q origin
1212
git add src/assets/lang

scripts/moodle_to_json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function build_lang($lang, $keys, $total) {
171171
$string = [];
172172
include($file);
173173

174-
if (!isset($string[$value->string])) {
174+
if (!isset($string[$value->string]) || ($lang == 'en' && $value->file == 'local_moodlemobileapp')) {
175175
// Not yet translated. Do not override.
176176
if (!$langFile) {
177177
// Load lang files just once.

0 commit comments

Comments
 (0)