Merge pull request #1968 from crazyserver/MOBILE-3039
MOBILE-3039 scripts: Do not override English local translationsmain
commit
56ec20b677
|
@ -6,7 +6,7 @@ if [ $TRAVIS_BRANCH == 'integration' ] || [ $TRAVIS_BRANCH == 'master' ] || [ $T
|
||||||
./build_lang.sh
|
./build_lang.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [ $TRAVIS_BRANCH == 'master' ] && [ ! -z $GIT_TOKEN ] ; then
|
if [ "$TRAVIS_BRANCH" == 'master' ] && [ ! -z $GIT_TOKEN ] ; then
|
||||||
git remote set-url origin https://$GIT_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
|
git remote set-url origin https://$GIT_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
|
||||||
git fetch -q origin
|
git fetch -q origin
|
||||||
git add src/assets/lang
|
git add src/assets/lang
|
||||||
|
|
|
@ -171,7 +171,7 @@ function build_lang($lang, $keys, $total) {
|
||||||
$string = [];
|
$string = [];
|
||||||
include($file);
|
include($file);
|
||||||
|
|
||||||
if (!isset($string[$value->string])) {
|
if (!isset($string[$value->string]) || ($lang == 'en' && $value->file == 'local_moodlemobileapp')) {
|
||||||
// Not yet translated. Do not override.
|
// Not yet translated. Do not override.
|
||||||
if (!$langFile) {
|
if (!$langFile) {
|
||||||
// Load lang files just once.
|
// Load lang files just once.
|
||||||
|
|
Loading…
Reference in New Issue