diff --git a/inc/typology_item.class.php b/inc/typology_item.class.php index 880d892..c01badc 100644 --- a/inc/typology_item.class.php +++ b/inc/typology_item.class.php @@ -701,7 +701,7 @@ public static function showForTypology(PluginTypologyTypology $typo) { if(empty($type)){ echo ""; echo ""; echo "
"; - _e('Select a type', 'typology'); + echo __('Select a type', 'typology'); echo "
"; @@ -724,9 +724,9 @@ public static function showForTypology(PluginTypologyTypology $typo) { echo ""; if ($number == 0) { - _e('No linked element', 'typology'); + echo __('No linked element', 'typology'); } else { - _e('Linked elements', 'typology'); + echo __('Linked elements', 'typology'); } echo ""; @@ -909,7 +909,7 @@ static function showManagementConsole($ID, $typo_ID, $display = true){ //title echo ""; - _e('Management console','typology'); + echo __('Management console','typology'); echo ""; //column name diff --git a/setup.php b/setup.php index 80dab06..951f501 100644 --- a/setup.php +++ b/setup.php @@ -83,7 +83,7 @@ function plugin_version_typology() { // Optional : check prerequisites before install : may print errors or add to message after redirect function plugin_typology_check_prerequisites() { if (version_compare(GLPI_VERSION,'9.1','lt') || version_compare(GLPI_VERSION,'9.2','ge')) { - _e('This plugin requires GLPI >= 9.1', 'typology'); + echo __('This plugin requires GLPI >= 9.1', 'typology'); return false; } return true;