Trans
This commit is contained in:
parent
166cef8bc2
commit
8a93c6215e
5 changed files with 22 additions and 28 deletions
|
|
@ -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 '</form>'."\n";
|
||||
|
||||
print '<br>'."\n";
|
||||
print '<br><br><br>'."\n";
|
||||
|
||||
|
||||
print '<form name="formtest" method="POST" action="'.$_SERVER["PHP_SELF"].'">'."\n";
|
||||
|
|
@ -287,23 +287,16 @@ if (empty($conf->use_javascript_ajax)) {
|
|||
//show_skin(null, 1);
|
||||
//print '<br>'."\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 .= '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?mode='.$newmode.'">';
|
||||
if ($mode == $newmode) {
|
||||
$linkstomode .= '<strong>';
|
||||
}
|
||||
$linkstomode .= $newmode;
|
||||
if ($mode == $newmode) {
|
||||
$linkstomode .= '</strong>';
|
||||
foreach ($listofmodes as $newmode => $newmodelabel) {
|
||||
if (!$linkstomode) {
|
||||
$linkstomode = '<span class="opacitymedium">'.$langs->trans("Mode").': </span>';
|
||||
}
|
||||
$linkstomode .= '<a class="a-selection'.($mode != $newmode ? '-disabled' : '').' marginleftonly marginrightonly reposition nounderline" href="'.$_SERVER["PHP_SELF"].'?mode='.$newmode.'">';
|
||||
$linkstomode .= $langs->trans($newmodelabel);
|
||||
$linkstomode .= '</a>';
|
||||
}
|
||||
$linkstomode .= '';
|
||||
print load_fiche_titre($langs->trans("TestSubmitForm"), $linkstomode, '');
|
||||
print '<input type="hidden" name="mode" value="'.dol_escape_htmltag($mode).'">';
|
||||
if ($mode != 'Full_inline') {
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
|
|
|||
|
|
@ -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 <b>dolibarr.log</b> 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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue