diff --git a/config.php b/config.php index 9d01e7b..c7e66fd 100755 --- a/config.php +++ b/config.php @@ -45,5 +45,5 @@ Session::checkRight("config", UPDATE); Plugin::load('example'); Html::header("TITRE", $_SERVER['PHP_SELF'], "config", "plugins"); -_e("This is the plugin config page", 'example'); +echo __("This is the plugin config page", 'example'); Html::footer(); diff --git a/hook.php b/hook.php index 2ee5f8e..49bfa66 100644 --- a/hook.php +++ b/hook.php @@ -292,7 +292,7 @@ function plugin_example_MassiveActionsFieldsDisplay($options=array()) { // Table fields switch ($table.".".$field) { case 'glpi_plugin_example_examples.serial' : - _e("Not really specific - Just for example", 'example'); + echo __("Not really specific - Just for example", 'example'); //Html::autocompletionTextField($linkfield,$table,$field); // Dropdown::showYesNo($linkfield); // Need to return true if specific display @@ -303,7 +303,7 @@ function plugin_example_MassiveActionsFieldsDisplay($options=array()) { // Linked Fields switch ($table.".".$field) { case "glpi_plugin_example_dropdowns.name" : - _e("Not really specific - Just for example", 'example'); + echo __("Not really specific - Just for example", 'example'); // Need to return true if specific display return true; } @@ -323,7 +323,7 @@ function plugin_example_searchOptionsValues($options=array()) { // Table fields switch ($table.".".$field) { case "glpi_plugin_example_examples.serial" : - _e("Not really specific - Use your own dropdown - Just for example", 'example'); + echo __("Not really specific - Use your own dropdown - Just for example", 'example'); Dropdown::show(getItemTypeForTable($options['searchoption']['table']), array('value' => $options['value'], 'name' => $options['name'], diff --git a/inc/example.class.php b/inc/example.class.php index cd9516a..d271c9b 100644 --- a/inc/example.class.php +++ b/inc/example.class.php @@ -239,11 +239,11 @@ class PluginExampleExample extends CommonDBTM { switch ($item->getType()) { case 'Phone' : - _e("Plugin Example on Phone", 'example'); + echo __("Plugin Example on Phone", 'example'); break; case 'Central' : - _e("Plugin central action", 'example'); + echo __("Plugin central action", 'example'); break; case 'Preference' : @@ -266,15 +266,15 @@ class PluginExampleExample extends CommonDBTM { break; case 'Notification' : - _e("Plugin mailing action", 'example'); + echo __("Plugin mailing action", 'example'); break; case 'ComputerDisk' : case 'Supplier' : if ($tabnum==1) { - _e('First tab of Plugin example', 'example'); + echo __('First tab of Plugin example', 'example'); } else { - _e('Second tab of Plugin example', 'example'); + echo __('Second tab of Plugin example', 'example'); } break; diff --git a/setup.php b/setup.php index 703cd41..46a92cf 100755 --- a/setup.php +++ b/setup.php @@ -262,7 +262,7 @@ function plugin_example_check_config($verbose = false) { } if ($verbose) { - _e('Installed / not configured', 'example'); + echo __('Installed / not configured', 'example'); } return false; }