Clean translation files

This commit is contained in:
Laurent Destailleur 2024-04-04 15:15:04 +02:00
parent 1551d02449
commit 0fc08e8926
5 changed files with 5 additions and 8 deletions

View file

@ -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

View file

@ -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).'"';

View file

@ -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

View file

@ -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') {

View file

@ -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';
}