From 8a93c6215e3e8d71faf51d807e269da1fde3abc2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Apr 2026 22:20:27 +0200 Subject: [PATCH] Trans --- htdocs/admin/fckeditor.php | 23 ++++++++--------------- htdocs/admin/invoice_situation.php | 12 +++++------- htdocs/langs/en_US/admin.lang | 3 +++ htdocs/theme/eldy/global.inc.php | 6 +++--- htdocs/theme/md/style.css.php | 6 +++--- 5 files changed, 22 insertions(+), 28 deletions(-) diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index 80a372d40ec..ac0b4f7a8e7 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -41,7 +41,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doleditor.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; // Load translation files required by the page -$langs->loadLangs(array('admin', 'fckeditor', 'errors')); +$langs->loadLangs(array('admin', 'fckeditor', 'errors', 'website')); $action = GETPOST('action', 'aZ09'); // Possible modes are: @@ -276,7 +276,7 @@ if (empty($conf->use_javascript_ajax)) { print ''."\n"; - print '
'."\n"; + print '


'."\n"; print '
'."\n"; @@ -287,23 +287,16 @@ if (empty($conf->use_javascript_ajax)) { //show_skin(null, 1); //print '
'."\n"; - $listofmodes = array('dolibarr_readonly', 'dolibarr_details', 'dolibarr_notes', 'dolibarr_mailings', 'Full', 'Full_inline'); + $listofmodes = array('dolibarr_readonly' => 'ReadOnly', 'dolibarr_details' => 'DetailOfLines', 'dolibarr_notes' => 'Notes', 'dolibarr_mailings' => 'Emails', 'Full' => 'AllFeatures', 'Full_inline' => 'EditInLine'); $linkstomode = ''; - foreach ($listofmodes as $newmode) { - if ($linkstomode) { - $linkstomode .= ' - '; - } - $linkstomode .= ''; - if ($mode == $newmode) { - $linkstomode .= ''; - } - $linkstomode .= $newmode; - if ($mode == $newmode) { - $linkstomode .= ''; + foreach ($listofmodes as $newmode => $newmodelabel) { + if (!$linkstomode) { + $linkstomode = ''.$langs->trans("Mode").': '; } + $linkstomode .= ''; + $linkstomode .= $langs->trans($newmodelabel); $linkstomode .= ''; } - $linkstomode .= ''; print load_fiche_titre($langs->trans("TestSubmitForm"), $linkstomode, ''); print ''; if ($mode != 'Full_inline') { diff --git a/htdocs/admin/invoice_situation.php b/htdocs/admin/invoice_situation.php index e299719a4ea..7e9d1859da6 100644 --- a/htdocs/admin/invoice_situation.php +++ b/htdocs/admin/invoice_situation.php @@ -31,13 +31,6 @@ // Load Dolibarr environment require '../main.inc.php'; - -// Libraries -require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php'; -require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; -require_once DOL_DOCUMENT_ROOT.'/core/class/html.formsetup.class.php'; - /** * @var Conf $conf * @var DoliDB $db @@ -45,6 +38,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formsetup.class.php'; * @var Translate $langs * @var User $user */ +// Libraries +require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; +require_once DOL_DOCUMENT_ROOT.'/core/class/html.formsetup.class.php'; // Load translation files required by the page $langs->loadLangs(array('admin', 'errors', 'other', 'bills')); diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index b5dec01041d..a1d7630eb26 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -2494,6 +2494,7 @@ ShowQuickAddLink=Show a button to quickly add an element in top right menu ShowSearchAreaInTopMenu=Show the search area in the top menu HashForPing=Public hash used for ping ReadOnlyMode=Is instance in "Read Only" mode +ReadOnly=Read only DEBUGBAR_USE_LOG_FILE=Use the dolibarr.log file to trap Logs UsingLogFileShowAllRecordOfSubrequestButIsSlower=Use the dolibarr.log file to trap Logs instead of live memory catching. It allows to catch all logs instead of only log of current process (so including the one of ajax subrequests pages) but will make your instance very very slow. Not recommended. FixedOrPercent=Fixed (use keyword 'fixed') or percent (use keyword 'percent') @@ -2878,3 +2879,5 @@ AI_API_MODEL_HELP=The AI model to use DisplayExtraOnTooltip = Display on Tooltips DisplayExtraOnTooltipDesc = This field will be displayed on dynamically loaded tooltips. WebHooksSupportExternalUrlOnly=Webhooks support external URL only. Set $dolibarr_allow_localurl_for_webhooks in conf.php file if you need to support URL local to the server. +DetailOfLines=Detail of lines +AllFeatures=All features diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 38da16ad68e..91e6b0d7169 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -1633,10 +1633,10 @@ div.divsearchfield { position: absolute; } -.a-filter, .a-mesure { +.a-filter, .a-mesure, .a-selection { border-radius: 50px; background: var(--colortexttitlenotab); - color: #fff; + color: #fff !important; padding: 8px 10px 8px 6px; } .a-filter:before { @@ -1651,7 +1651,7 @@ div.divsearchfield { padding-right: 5px; padding-left: 5px; } -.a-filter-disabled, .a-mesure-disabled { +.a-filter-disabled, .a-mesure-disabled, .a-selection-disabled { border-radius: 50px; background: var(--colorbacktitle1); padding: 8px; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index d2ba3a15543..754fc47f937 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -1753,10 +1753,10 @@ if ($conf->browser->layout == 'phone') { } ?> -.a-filter, .a-mesure { +.a-filter, .a-mesure, .a-selection { border-radius: 50px; background: var(--colortexttitlenotab); - color: #fff; + color: #fff !important; padding: 8px 10px 8px 6px; } .a-filter:before { @@ -1771,7 +1771,7 @@ if ($conf->browser->layout == 'phone') { padding-right: 5px; padding-left: 5px; } -.a-filter-disabled, .a-mesure-disabled { +.a-filter-disabled, .a-mesure-disabled, .a-mesure-disabled { border-radius: 50px; background: var(--colorbacktitle1); padding: 8px;