Merge pull request #2884 from crazyserver/MOBILE-3320

Mobile 3320
main
Dani Palou 2021-07-08 14:55:33 +02:00 committed by GitHub
commit bd001ef6eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -385,16 +385,18 @@ function override_component_lang_files($keys, $translations) {
}
switch($type) {
case 'core':
case 'addon':
switch($component) {
case 'moodle':
$path .= 'lang.json';
$path .= 'core/lang.json';
break;
default:
$path .= $type.'/'.str_replace('_', '/', $component).'/lang.json';
$path .= 'core/features/'.str_replace('_', '/', $component).'/lang.json';
break;
}
break;
case 'addon':
$path .= 'addons/'.str_replace('_', '/', $component).'/lang.json';
break;
case 'assets':
$path .= $type.'/'.$component.'.json';
break;
@ -406,6 +408,8 @@ function override_component_lang_files($keys, $translations) {
if (is_file($path)) {
save_key($plainid, $value, $path);
} else {
echo "Cannot override: $path not found.\n";
}
}
}

View File

@ -37,6 +37,8 @@
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
margin: auto;
}
}