From c5f96b6d02ecf06bddb5c255fbd8ba6a5a5e05ab Mon Sep 17 00:00:00 2001 From: Herafia Date: Mon, 18 May 2026 15:01:52 +0200 Subject: [PATCH 1/3] fix/ display translation --- inc/config.class.php | 4 ++-- inc/profile.class.php | 4 ++-- setup.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/config.class.php b/inc/config.class.php index 7a347fc..f7b5729 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 ''; @@ -55,7 +55,7 @@ public function showConfigForm() echo ""; echo "
"; echo ""; - echo "'; + echo "'; echo '
" . __s('Tag Management', 'tag') . '
" . __('Tag Management', 'tag') . '' . __s('Tags location', 'tag') . ''; Dropdown::showFromArray( 'tags_location', 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', From 55737340b328363bbd9a776352d27e1f6ea9e656 Mon Sep 17 00:00:00 2001 From: Herafia Date: Mon, 18 May 2026 15:03:53 +0200 Subject: [PATCH 2/3] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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 From f9dccdbb58f8d527b697f6b416eda1f8f7371253 Mon Sep 17 00:00:00 2001 From: Herafia Date: Mon, 18 May 2026 15:19:16 +0200 Subject: [PATCH 3/3] revert --- inc/config.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/config.class.php b/inc/config.class.php index f7b5729..8a6e0cb 100644 --- a/inc/config.class.php +++ b/inc/config.class.php @@ -55,7 +55,7 @@ public function showConfigForm() echo ""; echo "
"; echo ""; - echo "'; + echo "'; echo '
" . __('Tag Management', 'tag') . '
" . __s('Tag Management', 'tag') . '' . __s('Tags location', 'tag') . ''; Dropdown::showFromArray( 'tags_location',