From 0fc08e8926bca036e53ed19aea2b1f48ad3faf83 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 4 Apr 2024 15:15:04 +0200 Subject: [PATCH] Clean translation files --- dev/translation/ignore_translation_keys.lst | 4 ---- htdocs/core/class/fiscalyear.class.php | 2 +- htdocs/langs/en_US/admin.lang | 1 + htdocs/modulebuilder/index.php | 4 ++-- htdocs/ticket/class/ticket.class.php | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/dev/translation/ignore_translation_keys.lst b/dev/translation/ignore_translation_keys.lst index 1f6bbe80e59..908b56407cc 100644 --- a/dev/translation/ignore_translation_keys.lst +++ b/dev/translation/ignore_translation_keys.lst @@ -436,9 +436,7 @@ FileDidAlreadyExist FileIsNotCorrect Filename FilteredFrom -FiscalYear Flashy -ForceEmailFrom ForcedByGlobalSetup Form for public lead registration has not been enabled Free @@ -1143,8 +1141,6 @@ XSubsriptionError centimes email id -leftmenu -message multicurrency_buyPriceInCurrency multicurrency_modifyRateApplication ref diff --git a/htdocs/core/class/fiscalyear.class.php b/htdocs/core/class/fiscalyear.class.php index 4b6f6f60939..fae363c13e2 100644 --- a/htdocs/core/class/fiscalyear.class.php +++ b/htdocs/core/class/fiscalyear.class.php @@ -360,7 +360,7 @@ class Fiscalyear extends CommonObject $linkclose = ''; if (empty($notooltip) && $user->hasRight('accounting', 'fiscalyear', 'write')) { if (getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER')) { - $label = $langs->trans("FiscalYear"); + $label = $langs->trans("FiscalPeriod"); $linkclose .= ' alt="'.dol_escape_htmltag($label, 1).'"'; } $linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"'; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index a9d4bde40ae..93a234564aa 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1992,6 +1992,7 @@ BackgroundColor=Background color TopMenuBackgroundColor=Background color for Top menu TopMenuDisableImages=Icon or Text in Top menu LeftMenuBackgroundColor=Background color for Left menu +LeftmenuId=Left menu ID BackgroundTableTitleColor=Background color for Table title line BackgroundTableTitleTextColor=Text color for Table title line BackgroundTableTitleTextlinkColor=Text color for Table title link line diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index f2261034547..2f555335c2d 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -2766,7 +2766,7 @@ if ($dirins && $action == 'addmenu' && empty($cancel)) { if (GETPOST('type', 'alpha') == 'left' && !empty(GETPOST('lefmenu', 'alpha'))) { if (!str_contains(GETPOST('leftmenu'), strtolower($module))) { $error++; - setEventMessages($langs->trans("WarningFieldsMustContains", $langs->transnoentities("leftmenu")), null, 'errors'); + setEventMessages($langs->trans("WarningFieldsMustContains", $langs->transnoentities("LeftmenuId")), null, 'errors'); } } $dirins = $listofmodules[strtolower($module)]['moduledescriptorrootpath']; @@ -2776,7 +2776,7 @@ if ($dirins && $action == 'addmenu' && empty($cancel)) { if (GETPOST('type', 'alpha') == 'left') { if (empty(GETPOST('leftmenu')) && count($objects) > 0) { $error++; - setEventMessages($langs->trans("ErrorCoherenceMenu", $langs->transnoentities("leftmenu"), $langs->transnoentities("type")), null, 'errors'); + setEventMessages($langs->trans("ErrorCoherenceMenu", $langs->transnoentities("LeftmenuId"), $langs->transnoentities("type")), null, 'errors'); } } if (GETPOST('type', 'alpha') == 'top') { diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 70d607c9633..9163ecb38a8 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -2630,7 +2630,7 @@ class Ticket extends CommonObject if (!GETPOST("message")) { $error++; - array_push($this->errors, $langs->trans("ErrorFieldRequired", $langs->transnoentities("message"))); + array_push($this->errors, $langs->trans("ErrorFieldRequired", $langs->transnoentities("Message"))); $action = 'add_message'; }