MDL-69583 tool_customlang: add customization import

This commit is contained in:
Ferran Recio
2020-10-13 13:26:21 +02:00
parent 46f977a8bf
commit 489f6f2684
17 changed files with 2468 additions and 1 deletions
+5
View File
@@ -132,6 +132,11 @@ if (has_capability('tool/customlang:edit', context_system::instance())) {
'method' => 'post',
);
}
$menu['import'] = array(
'title' => get_string('import', 'tool_customlang'),
'url' => new moodle_url($PAGE->url, ['action' => 'checkout', 'lng' => $lng, 'next' => 'import']),
'method' => 'post',
);
}
if (has_capability('tool/customlang:export', context_system::instance())) {
$langdir = tool_customlang_utils::get_localpack_location($lng);