Bugzilla – Attachment 139164 Details for
Bug 29673
Allow an English sql localization script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29673: Allow English sql localization script
Bug-29673-Allow-English-sql-localization-script.patch (text/plain), 1.63 KB, created by
Kyle M Hall (khall)
on 2022-08-15 17:50:23 UTC
(
hide
)
Description:
Bug 29673: Allow English sql localization script
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-08-15 17:50:23 UTC
Size:
1.63 KB
patch
obsolete
>From b2295c15ddcb1d0ec65a918c49171e148784bce7 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 9 Dec 2021 16:07:18 +0100 >Subject: [PATCH] Bug 29673: Allow English sql localization script > >Test plan: >You might want to add a simple SQL statement to your English >custom.sql in order to verify the execution. >Run a Koha install (in English). >Check if the data shows your custom sql action. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Installer.pm | 2 +- > installer/data/mysql/localization/en/custom.sql | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/localization/en/custom.sql > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index 723d47227b..ffab0ed76a 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -370,7 +370,7 @@ sub load_sql_in_order { > ; > my $localization_file = C4::Context->config('intranetdir') . > "/installer/data/$self->{dbms}/localization/$langchoice/custom.sql"; >- if ( $langchoice ne 'en' and -f $localization_file ) { >+ if ( -f $localization_file ) { > push @fnames, $localization_file; > } > foreach my $file (@fnames) { >diff --git a/installer/data/mysql/localization/en/custom.sql b/installer/data/mysql/localization/en/custom.sql >new file mode 100644 >index 0000000000..c632ef064e >--- /dev/null >+++ b/installer/data/mysql/localization/en/custom.sql >@@ -0,0 +1,2 @@ >+-- custom.sql, English edition >+-- You may want to add SQL statements here to customize your Koha install >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29673
:
128386
| 139164