diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index c2770f586..de1cd3c64 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -2198,14 +2198,14 @@ class e107plugin if($result !== NULL) { $status = ($result) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add("Adding Link: {$linkName} with url [{$url}] and perm {$perm} ", $status); + $mes->add(EPL_ADLAN_233." {$linkName} URL: [{$url}] ".EPL_ADLAN_252." {$perm} ", $status); } } if ($function == 'upgrade' && $remove) //remove inactive links on upgrade { $status = ($this->manage_link('remove', $url, $linkName,false, $options)) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add("Removing Link: {$linkName} with url [{$url}]", $status); + $mes->add(EPL_ADLAN_234." {$linkName} URL: [{$url}]", $status); } break; @@ -2213,7 +2213,7 @@ class e107plugin case 'uninstall': //remove all links $status = ($this->manage_link('remove', $url, $linkName, $perm, $options)) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add("Removing Link: {$linkName} with url [{$url}]", $status); + $mes->add(EPL_ADLAN_234." {$linkName} URL: [{$url}]", $status); break; } } @@ -2315,7 +2315,8 @@ class e107plugin $data['class'] = $this->getPerm(varset($v['@attributes']['perm']), 'member'); $status = e107::getMedia()->createCategory($data) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add("Adding Media Category: {$data['category']}", $status); + $message = str_replace('[x]', $data['category'], EPL_ADLAN_245); + $mes->add($message, $status); e107::getMedia()->import($data['category'],e_PLUGIN.$folder, false,'min-size=20000'); $c++; $i[$type]++; @@ -2325,7 +2326,8 @@ class e107plugin case 'uninstall': // Probably best to leave well alone $status = e107::getMedia()->deleteAllCategories($folder)? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add("Deleting All Media Categories owned by : {$folder}", $status); + $message = str_replace('[x]', $folder, EPL_ADLAN_246); + $mes->add($message, $status); break; @@ -2467,14 +2469,14 @@ class e107plugin //$status = $this->manage_extended_field('add', $name, $type, $attrib['default'], $source) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; $status = $this->manage_extended_field('add', $name, $attrib, $source) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add('Adding Extended Field: '.$name.' ... ', $status); + $mes->add(EPL_ADLAN_249 .$name.' ... ', $status); } if ($function == 'upgrade' && $remove) //If upgrading, removing any inactive extended fields { $status = $this->manage_extended_field('remove', $name, $attrib, $source) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add('Removing Extended Field: '.$name.' ... ', $status); + $mes->add(EPL_ADLAN_250 .$name.' ... ', $status); } break; @@ -2483,11 +2485,11 @@ class e107plugin if (vartrue($this->unInstallOpts['delete_xfields'], FALSE)) { $status = ($this->manage_extended_field('remove', $name, $attrib, $source)) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add('Removing Extended Field: '.$name.' ... ', $status); + $mes->add(EPL_ADLAN_250 .$name.' ... ', $status); } else { - $mes->add('Extended Field: '.$name.' left in place', E_MESSAGE_SUCCESS); + $mes->add(EPL_ADLAN_251 .$name, E_MESSAGE_SUCCESS); } break; } diff --git a/e107_languages/English/admin/lan_plugin.php b/e107_languages/English/admin/lan_plugin.php index d27d9fa16..00b084eec 100644 --- a/e107_languages/English/admin/lan_plugin.php +++ b/e107_languages/English/admin/lan_plugin.php @@ -273,6 +273,8 @@ define ("EPL_ADLAN_231", "Remove icons from Media-Manager"); define ("EPL_ADLAN_232", "Create Files"); define ("TPVLAN_81", "Downloading..."); define ("TPVLAN_82", "Download Complete!"); +define ("EPL_ADLAN_233", "Adding Link:"); +define ("EPL_ADLAN_234", "Removing Link:"); define ("EPL_ADLAN_235", "Automated download not possible."); define ("EPL_ADLAN_236", "Please Download Manually"); define ("EPL_ADLAN_237", "Download"); @@ -284,6 +286,14 @@ define ("EPL_ADLAN_242","Removing Pref:"); define ("EPL_ADLAN_243","Updating Pref:"); define ("EPL_ADLAN_244","Only 5 Media Categories are permitted during installation."); +define ("EPL_ADLAN_245","Adding Media Category: [x]"); +define ("EPL_ADLAN_246","Deleting All Media Categories owned by : [x]"); + +define ("EPL_ADLAN_249","Adding Extended Field: "); +define ("EPL_ADLAN_250","Removing Extended Field: "); +define ("EPL_ADLAN_251","Extended Field left in place: "); +define ("EPL_ADLAN_252","Perm: "); + define ("LAN_RELEASED", "Released"); define ("LAN_REPAIR_PLUGIN_SETTINGS", "Repair plugin settings"); define ("LAN_SYNC_WITH_GIT_REPO", "Sync with Git Repo"); @@ -295,4 +305,4 @@ define("LAN_INSTALL_FAIL", "Installation failed!"); define("LAN_UNINSTALL_FAIL", "Unable to uninstall!"); define("LAN_PLUGIN_IS_USED", "[x] plugin is used by:"); -?> \ No newline at end of file +?>