Bugzilla – Attachment 19582 Details for
Bug 10560
No way to disable english
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 10560 - No way to disable english
SIGNED-OFF-Bug-10560---No-way-to-disable-english.patch (text/plain), 1.28 KB, created by
Owen Leonard
on 2013-07-11 18:30:07 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 10560 - No way to disable english
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-07-11 18:30:07 UTC
Size:
1.28 KB
patch
obsolete
>From e33a938ff1138fa77c931bfbd3797a5c5433c195 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Fri, 30 Nov 2012 15:48:50 +1300 >Subject: [PATCH] [SIGNED-OFF] Bug 10560 - No way to disable english >Content-Type: text/plain; charset="utf-8" > >If you enable another translation, and disable english, then if you dont >have a cookie set, or your browser is not set to that language, you will >get english. So you can not disable english in either the staff client >or the OPAC. > >This patch fixes the language selection to do the right thing. > >To test you must have at least one other language installed besides >English. Apply the patch and disable the en translation. Koha should >fall back to one of the enabled translations. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >I added a patch description and test plan, missing from the >original patch. >--- > C4/Templates.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index 88b9b01..21604fc 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -344,6 +344,10 @@ sub getlanguage { > return $lang; > } > >+ # Pick the first selected syspref language >+ $lang = shift @languages; >+ return $lang if $lang; >+ > # Fall back to English if necessary > return 'en'; > } >-- >1.7.9.5
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 10560
:
19509
|
19582
|
19584