MOBILE-2656 lang: Fix non existing parentlanguage
parent
5a61613eec
commit
89332fdd20
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue