MDL-39088 use word "Uninstall" consistently in plugin administration UI

This commit is contained in:
Petr Škoda
2013-06-27 22:20:36 +02:00
parent d2fba597ef
commit dd24dd37ee
8 changed files with 70 additions and 64 deletions
+9 -7
View File
@@ -18,7 +18,7 @@
* Provides an overview of installed admin tools
*
* Displays the list of found admin tools, their version (if found) and
* a link to delete the admin tool.
* a link to uninstall the admin tool.
*
* The code is based on admin/localplugins.php by David Mudrak.
*
@@ -38,9 +38,11 @@ echo $OUTPUT->heading(get_string('tools', 'admin'));
/// Print the table of all installed tool plugins
$struninstall = get_string('uninstallplugin', 'core_admin');
$table = new flexible_table('toolplugins_administration_table');
$table->define_columns(array('name', 'version', 'delete'));
$table->define_headers(array(get_string('plugin'), get_string('version'), get_string('delete')));
$table->define_columns(array('name', 'version', 'uninstall'));
$table->define_headers(array(get_string('plugin'), get_string('version'), $struninstall));
$table->define_baseurl($PAGE->url);
$table->set_attribute('id', 'toolplugins');
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
@@ -70,9 +72,9 @@ foreach ($installed as $config) {
}
foreach ($plugins as $plugin => $name) {
$delete = '';
if ($deleteurl = plugin_manager::instance()->get_uninstall_url('tool_'.$plugin)) {
$delete = html_writer::link($deleteurl, get_string('delete'));
$uninstall = '';
if ($uninstallurl = plugin_manager::instance()->get_uninstall_url('tool_'.$plugin)) {
$uninstall = html_writer::link($uninstallurl, $struninstall);
}
if (!isset($versions[$plugin])) {
@@ -94,7 +96,7 @@ foreach ($plugins as $plugin => $name) {
}
}
$table->add_data(array($name, $version, $delete));
$table->add_data(array($name, $version, $uninstall));
}
$table->print_html();