commit
bd001ef6eb
|
@ -385,16 +385,18 @@ function override_component_lang_files($keys, $translations) {
|
||||||
}
|
}
|
||||||
switch($type) {
|
switch($type) {
|
||||||
case 'core':
|
case 'core':
|
||||||
case 'addon':
|
|
||||||
switch($component) {
|
switch($component) {
|
||||||
case 'moodle':
|
case 'moodle':
|
||||||
$path .= 'lang.json';
|
$path .= 'core/lang.json';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$path .= $type.'/'.str_replace('_', '/', $component).'/lang.json';
|
$path .= 'core/features/'.str_replace('_', '/', $component).'/lang.json';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'addon':
|
||||||
|
$path .= 'addons/'.str_replace('_', '/', $component).'/lang.json';
|
||||||
|
break;
|
||||||
case 'assets':
|
case 'assets':
|
||||||
$path .= $type.'/'.$component.'.json';
|
$path .= $type.'/'.$component.'.json';
|
||||||
break;
|
break;
|
||||||
|
@ -406,6 +408,8 @@ function override_component_lang_files($keys, $translations) {
|
||||||
|
|
||||||
if (is_file($path)) {
|
if (is_file($path)) {
|
||||||
save_key($plainid, $value, $path);
|
save_key($plainid, $value, $path);
|
||||||
|
} else {
|
||||||
|
echo "Cannot override: $path not found.\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue