MOBILE-2656 lang: Fix non existing parentlanguage

main
Pau Ferrer Ocaña 2018-10-04 17:34:18 +02:00
parent 5a61613eec
commit 89332fdd20
2 changed files with 2 additions and 2 deletions

View File

@ -1442,7 +1442,7 @@
"core.question.questionmessage": "local_moodlemobileapp",
"core.question.questionno": "question",
"core.question.requiresgrading": "question",
"core.question.unknown": "local_moodlemobileapp",
"core.question.unknown": "question",
"core.quotausage": "moodle",
"core.redirectingtosite": "local_moodlemobileapp",
"core.refresh": "moodle",

View File

@ -99,7 +99,7 @@ export class CoreLangProvider {
// It's a language override, load the original one first.
const fallbackLang = this.translate.instant('core.parentlanguage');
if (fallbackLang != '' && fallbackLang != language) {
if (fallbackLang != '' && fallbackLang != 'core.parentlanguage' && fallbackLang != language) {
const fallbackSubs = this.translate.use(fallbackLang).subscribe((fallbackData) => {
data = Object.assign(fallbackData, data);
resolve(data);