diff --git a/CHANGELOG.md b/CHANGELOG.md index ab714ae..733ea0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix `webapplication` plugin integration - Prevent SQL error when column `name` not exist from `Item_Device` - Prevent the tag field from appearing in the satisfaction survey. +- Fix display translations ## [2.14.3] - 2025-12-22 diff --git a/inc/config.class.php b/inc/config.class.php index 7a347fc..8a6e0cb 100644 --- a/inc/config.class.php +++ b/inc/config.class.php @@ -36,7 +36,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if (!$withtemplate && $item->getType() === 'Config') { - return self::createTabEntry(__s('Tag Management', 'tag'), 0, $item::getType(), PluginTagTag::getIcon()); + return self::createTabEntry(__('Tag Management', 'tag'), 0, $item::getType(), PluginTagTag::getIcon()); } return ''; diff --git a/inc/profile.class.php b/inc/profile.class.php index 81fb1f3..a33f22f 100644 --- a/inc/profile.class.php +++ b/inc/profile.class.php @@ -32,7 +32,7 @@ class PluginTagProfile extends Profile { public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { - return self::createTabEntry(__s('Tag Management', 'tag'), 0, $item::getType(), PluginTagTag::getIcon()); + return self::createTabEntry(__('Tag Management', 'tag'), 0, $item::getType(), PluginTagTag::getIcon()); } public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) @@ -65,7 +65,7 @@ public function showForm($ID, array $options = []) 'field' => 'plugin_tag_tag', ], ]; - $matrix_options['title'] = __s('Tag management', 'tag'); + $matrix_options['title'] = __('Tag management', 'tag'); $profile->displayRightsChoiceMatrix($rights, $matrix_options); if ($canedit) { diff --git a/setup.php b/setup.php index 70155ef..c44ae76 100644 --- a/setup.php +++ b/setup.php @@ -182,7 +182,7 @@ function plugin_init_tag() function plugin_version_tag() { return [ - 'name' => __s('Tag Management', 'tag'), + 'name' => __('Tag Management', 'tag'), 'version' => PLUGIN_TAG_VERSION, 'author' => 'Teclib\' - Infotel conseil', 'homepage' => 'https://github.com/pluginsGLPI/tag',