From e4f9a2adaec41bc9ccb0fec3aae6561a2926eafa Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Nov 2023 08:43:43 +0100 Subject: [PATCH] Bug 35174: Add a warning to the about page Signed-off-by: Jonathan Druart --- about.pl | 5 +++++ koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/about.pl b/about.pl index 5d00cdb34d..e8bacb5e58 100755 --- a/about.pl +++ b/about.pl @@ -47,6 +47,7 @@ use Koha::BackgroundJob; use Koha::BiblioFrameworks; use Koha::Biblios; use Koha::Email; +use Koha::I18N; use Koha::Patron::Categories; use Koha::Patrons; 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' }; } +unless ( Koha::I18N->_base_directory ) { + $template->param( warnI18nMissing => 1 ); +} + # ILL module checks if ( C4::Context->preference('ILLModule') ) { my $warnILLConfiguration = 0; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index b299b7516b..ec9c84ff68 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -269,7 +269,7 @@ [% SET warnMissingCompiledFiles = 1 %] [% END %] [% 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 ) %]

Database row format incorrect

Database tables with a row format other than 'DYNAMIC': [% warnDbRowFormat | html %]

@@ -512,6 +512,14 @@ [% END %] + [% IF warnI18nMissing %] + + Warning + + The PO directory has not been found. See the dedicated wiki page for more information. + + + [% END %] [% IF warnILLConfiguration %] [% IF no_ill_backends %] -- 2.39.5