Bug 35174: Add a warning to the about page

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2023-11-16 08:43:43 +01:00
parent 72580bd09f
commit e4f9a2adae
2 changed files with 14 additions and 1 deletions

View file

@ -47,6 +47,7 @@ use Koha::BackgroundJob;
use Koha::BiblioFrameworks; use Koha::BiblioFrameworks;
use Koha::Biblios; use Koha::Biblios;
use Koha::Email; use Koha::Email;
use Koha::I18N;
use Koha::Patron::Categories; use Koha::Patron::Categories;
use Koha::Patrons; use Koha::Patrons;
use Koha::Caches; use Koha::Caches;
@ -290,6 +291,10 @@ if ( !defined C4::Context->config('use_zebra_facets') ) {
push @xml_config_warnings, { error => 'use_zebra_facets_entry_missing' }; push @xml_config_warnings, { error => 'use_zebra_facets_entry_missing' };
} }
unless ( Koha::I18N->_base_directory ) {
$template->param( warnI18nMissing => 1 );
}
# ILL module checks # ILL module checks
if ( C4::Context->preference('ILLModule') ) { if ( C4::Context->preference('ILLModule') ) {
my $warnILLConfiguration = 0; my $warnILLConfiguration = 0;

View file

@ -269,7 +269,7 @@
[% SET warnMissingCompiledFiles = 1 %] [% SET warnMissingCompiledFiles = 1 %]
[% END %] [% END %]
[% WRAPPER tab_panel tabname= "sysinfo" %] [% WRAPPER tab_panel tabname= "sysinfo" %]
[% IF warnPrefRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || invalid_yesno.count || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnConnectBroker || elasticsearch_has_missing || warnMissingCompiledFiles || warnDbRowFormat %] [% IF warnPrefRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || invalid_yesno.count || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || warnI18nMissing || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnConnectBroker || elasticsearch_has_missing || warnMissingCompiledFiles || warnDbRowFormat %]
[% IF ( warnDbRowFormat ) %] [% IF ( warnDbRowFormat ) %]
<h2>Database row format incorrect</h2> <h2>Database row format incorrect</h2>
<p>Database tables with a row format other than 'DYNAMIC': [% warnDbRowFormat | html %]</p> <p>Database tables with a row format other than 'DYNAMIC': [% warnDbRowFormat | html %]</p>
@ -512,6 +512,14 @@
</td> </td>
</tr> </tr>
[% END %] [% END %]
[% IF warnI18nMissing %]
<tr>
<th scope="row"><strong>Warning</strong> </th>
<td>
The PO directory has not been found. See <a href="https://wiki.koha-community.org/wiki/Translation_files">the dedicated wiki page</a> for more information.
</td>
</tr>
[% END %]
[% IF warnILLConfiguration %] [% IF warnILLConfiguration %]
[% IF no_ill_backends %] [% IF no_ill_backends %]
<tr> <tr>