Show tooltip on nb of translation files
This commit is contained in:
parent
48342cd3c5
commit
22a2aa55e2
@ -475,6 +475,7 @@ if ($mode == 'other') {
|
||||
|
||||
print '<div class="center">';
|
||||
print '<input class="button button-save reposition" type="submit" name="submit" value="' . $langs->trans("Save") . '">';
|
||||
print '<input class="button button-cancel reposition" type="submit" name="cancel" value="' . $langs->trans("Cancel") . '">';
|
||||
print '</div>';
|
||||
|
||||
print '<br>';
|
||||
@ -577,9 +578,8 @@ if ($mode == 'other') {
|
||||
print '</tr>';
|
||||
|
||||
// Disable javascript and ajax
|
||||
print '<tr class="oddeven"><td>' . $langs->trans("DisableJavascript") . '</td><td>';
|
||||
print '<tr class="oddeven"><td>' . $form->textwithpicto($langs->trans("DisableJavascript"), $langs->trans("DisableJavascriptNote")) . '</td><td>';
|
||||
print ajax_constantonoff("MAIN_DISABLE_JAVASCRIPT", array(), $conf->entity, 0, 0, 1, 0, 0, 0, '', 'other');
|
||||
print ' <span class="opacitymedium paddingleft marginleft">' . $langs->trans("DisableJavascriptNote") . '</span>';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
@ -271,7 +271,8 @@ $recordtoshow = array();
|
||||
// Search modules dirs
|
||||
$modulesdir = dolGetModulesDirs();
|
||||
|
||||
$nbtotaloffiles = 0;
|
||||
$listoffiles = array();
|
||||
$listoffilesexternalmodules = array();
|
||||
|
||||
// Search into dir of modules (the $modulesdir is already a list that loop on $conf->file->dol_document_root)
|
||||
$i = 0;
|
||||
@ -298,7 +299,10 @@ foreach ($modulesdir as $keydir => $tmpsearchdir) {
|
||||
if ($result < 0) {
|
||||
print 'Failed to load language file '.$tmpfile.'<br>'."\n";
|
||||
} else {
|
||||
$nbtotaloffiles++;
|
||||
$listoffiles[$langkey] = $tmpfile;
|
||||
if (strpos($langkey, '@') !== false) {
|
||||
$listoffilesexternalmodules[$langkey] = $tmpfile;
|
||||
}
|
||||
}
|
||||
//print 'After loading lang '.$langkey.', newlang has '.count($newlang->tab_translate).' records<br>'."\n";
|
||||
|
||||
@ -307,6 +311,8 @@ foreach ($modulesdir as $keydir => $tmpsearchdir) {
|
||||
$i++;
|
||||
}
|
||||
|
||||
$nbtotaloffiles = count($listoffiles);
|
||||
$nbtotaloffilesexternal = count($listoffilesexternalmodules);
|
||||
|
||||
if ($mode == 'overwrite') {
|
||||
print '<input type="hidden" name="page" value="'.$page.'">';
|
||||
@ -477,7 +483,7 @@ if ($mode == 'searchkey') {
|
||||
//print 'param='.$param.' $_SERVER["PHP_SELF"]='.$_SERVER["PHP_SELF"].' num='.$num.' page='.$page.' nbtotalofrecords='.$nbtotalofrecords." sortfield=".$sortfield." sortorder=".$sortorder;
|
||||
$title = $langs->trans("Translation");
|
||||
if ($nbtotalofrecords > 0) {
|
||||
$title .= ' <span class="opacitymedium colorblack paddingleft">('.$nbtotalofrecords.' / '.$nbtotalofrecordswithoutfilters.' - '.$nbtotaloffiles.' '.$langs->trans("Files").')</span>';
|
||||
$title .= ' <span class="opacitymedium colorblack paddingleft">('.$nbtotalofrecords.' / '.$nbtotalofrecordswithoutfilters.' - <span title="'.dol_escape_htmltag(($nbtotaloffiles - $nbtotaloffilesexternal).' core - '.($nbtotaloffilesexternal).' external').'">'.$nbtotaloffiles.' '.$langs->trans("Files").'</span>)</span>';
|
||||
}
|
||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, -1 * $nbtotalofrecords, '', 0, '', '', $limit, 0, 0, 1);
|
||||
|
||||
|
||||
@ -1000,7 +1000,7 @@ class FormOther
|
||||
6=>$langs->trans("Day6")
|
||||
);
|
||||
|
||||
$select_week = '<select class="flat" name="'.$htmlname.'">';
|
||||
$select_week = '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
|
||||
if ($useempty) {
|
||||
$select_week .= '<option value="-1"> </option>';
|
||||
}
|
||||
@ -1014,6 +1014,9 @@ class FormOther
|
||||
$select_week .= '</option>';
|
||||
}
|
||||
$select_week .= '</select>';
|
||||
|
||||
$select_week .= ajax_combobox($htmlname);
|
||||
|
||||
return $select_week;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user