Add link to repair page in admin setup

- Admin Tools section in setup page with link to repair.php
- Translations for AdminTools and Open (DE/EN)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Eduard Wisch 2026-02-20 12:06:13 +01:00
parent 95220dda14
commit 5264a2e91e
4 changed files with 33 additions and 1 deletions

View file

@ -613,6 +613,26 @@ print '<strong>'.$langs->trans("SecurityInfo").'</strong><br>';
print $langs->trans("SecurityInfoText"); print $langs->trans("SecurityInfoText");
print '</div>'; print '</div>';
// Admin Tools Section
print '<br>';
print load_fiche_titre($langs->trans("AdminTools"), '', 'tools');
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder centpercent">';
print '<tr class="liste_titre">';
print '<th>'.$langs->trans("Tool").'</th>';
print '<th>'.$langs->trans("Description").'</th>';
print '<th></th>';
print '</tr>';
print '<tr class="oddeven">';
print '<td>'.$langs->trans("RepairOrphanedTransactions").'</td>';
print '<td class="opacitymedium">'.$langs->trans("RepairOrphanedTransactionsDesc").'</td>';
print '<td class="right"><a class="butAction" href="'.dol_buildpath('/bankimport/repair.php', 1).'">'.$langs->trans("Open").'</a></td>';
print '</tr>';
print '</table>';
print '</div>';
// Page end // Page end
print dol_get_fiche_end(); print dol_get_fiche_end();

View file

@ -76,7 +76,7 @@ class modBankImport extends DolibarrModules
$this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@bankimport' $this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@bankimport'
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z' // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
$this->version = '2.5'; $this->version = '2.6';
// Url to the file with your last numberversion of this module // Url to the file with your last numberversion of this module
//$this->url_last_version = 'http://www.example.com/versionmodule.txt'; //$this->url_last_version = 'http://www.example.com/versionmodule.txt';

View file

@ -364,3 +364,9 @@ NoOrphanedTransactionsFound = Keine verwaisten Buchungen gefunden. Alle BankImpo
OrphanedTransactionsFound = %s verwaiste Buchung(en) gefunden OrphanedTransactionsFound = %s verwaiste Buchung(en) gefunden
RepairAll = Alle reparieren RepairAll = Alle reparieren
Repair = Reparieren Repair = Reparieren
#
# Admin Tools
#
AdminTools = Admin-Werkzeuge
Open = Öffnen

View file

@ -260,3 +260,9 @@ NoOrphanedTransactionsFound = No orphaned transactions found. All BankImport tra
OrphanedTransactionsFound = %s orphaned transaction(s) found OrphanedTransactionsFound = %s orphaned transaction(s) found
RepairAll = Repair All RepairAll = Repair All
Repair = Repair Repair = Repair
#
# Admin Tools
#
AdminTools = Admin Tools
Open = Open