diff --git a/htdocs/admin/limits.php b/htdocs/admin/limits.php index b1baceffa20..998ba1e825c 100644 --- a/htdocs/admin/limits.php +++ b/htdocs/admin/limits.php @@ -107,7 +107,7 @@ if ($action == 'update' && !$cancel) { if (! $error && ((float) $valmainmaxdecimalsshown < $valmainmaxdecimalsunit || (float) $valmainmaxdecimalsshown < $valmainmaxdecimalstot)) { $langs->load("errors"); $error++; - setEventMessages($langs->trans("ErrorValueForTooLow", dol_trunc(dol_string_nohtmltag($langs->transnoentitiesnoconv("MAIN_MAX_DECIMALS_SHOWN")), 40)), null, 'errors'); + setEventMessages($langs->trans("ErrorMaxDecimalsShownTooLowComparedToUnitOrTotal", $valmainmaxdecimalsshown, $valmainmaxdecimalsunit, $valmainmaxdecimalstot), null, 'errors'); $action = 'edit'; } diff --git a/htdocs/langs/en_US/errors.lang b/htdocs/langs/en_US/errors.lang index 288e52359cb..05319e52d9b 100644 --- a/htdocs/langs/en_US/errors.lang +++ b/htdocs/langs/en_US/errors.lang @@ -373,6 +373,7 @@ ErrorBlockLogNeedAmountsValue=The unalterbale log object needs amounts values to ErrorBlockLogNeedElement=The unalterbale log object needs element type to be set ErrorBlockLogNeedObject=The unalterbale log object needs object to be set ErrorBadParameterWhenCallingCreateOfBlockedLog=Bad parameter when calling create of blocked log +ErrorMaxDecimalsShownTooLowComparedToUnitOrTotal=Value for 'Max. decimals for prices shown on screen' (%s) must be equal to or greater than both 'Max. decimals for unit prices' (%s) and 'Max. decimals for total prices' (%s). This is required to prevent rounding inconsistencies on documents. # Warnings WarningParamUploadMaxFileSizeHigherThanPostMaxSize=Your PHP parameter upload_max_filesize (%s) is higher than PHP parameter post_max_size (%s). This is not a consistent setup.