Bugzilla – Attachment 8626 Details for
Bug 7821
XSLT systempreference multi-language support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 7821 - {langcode} will be replaced with current interface language
SIGNED-OFF-Bug-7821---langcode-will-be-replaced-wi.patch (text/plain), 5.02 KB, created by
Katrin Fischer
on 2012-03-26 04:57:01 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7821 - {langcode} will be replaced with current interface language
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-03-26 04:57:01 UTC
Size:
5.02 KB
patch
obsolete
>From 4afabf3a516c540607c2f010f87bfb7f9f6d2692 Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Sat, 24 Mar 2012 17:47:57 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 7821 - {langcode} will be replaced with > current interface language > >This makes bug 4032 support multi-language Koha installation which is important >for some of Koha users. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >1) After update XSLT system preferences are set to 'default'. All views >(OPAC and staff, results and detail page) work and switching languages >selects the correct translated file. > >2) Leaving empty works and normal views are used. > >3) Putting in a single URL without placeholder works. > >4) Putting in a URL with placeholder works. Created local directories >have to match the language codes. > >NOTE: In order to make the URLs and patchs work, the Utils file needs to be >copied too. >--- > C4/XSLT.pm | 6 ++++++ > .../prog/en/modules/admin/preferences/opac.pref | 4 ++-- > .../en/modules/admin/preferences/staff_client.pref | 4 ++-- > 3 files changed, 10 insertions(+), 4 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index 621f08f..cbdf35b 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -170,6 +170,12 @@ sub XSLTParse4Display { > "slim2OPACResults.xsl"; > } > } >+ >+ if ( $xslfilename =~ m/{langcode}/ ) { >+ my $lang = C4::Templates::_current_language; >+ $xslfilename =~ s/{langcode}/$lang/; >+ } >+ > # grab the XML, run it through our stylesheet, push it out to the browser > my $record = transformMARCXML4XSLT($biblionumber, $orig_record); > #return $record->as_formatted(); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index b3bee94..a871399 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -51,12 +51,12 @@ OPAC: > - 'Display OPAC results using XSLT stylesheet at: ' > - pref: OPACXSLTResultsDisplay > class: file >- - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.' >+ - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language' > - > - 'Display OPAC details using XSLT stylesheet at: ' > - pref: OPACXSLTDetailsDisplay > class: file >- - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.' >+ - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language' > - > - On pages displayed with XSLT stylesheets on the OPAC, > - pref: DisplayOPACiconsXSLT >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >index edb9072..33496a1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >@@ -54,12 +54,12 @@ Staff Client: > - 'Display results in the staff client using XSLT stylesheet at: ' > - pref: XSLTResultsDisplay > class: file >- - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.' >+ - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language' > - > - 'Display details in the staff client using XSLT stylesheet at: ' > - pref: XSLTDetailsDisplay > class: file >- - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.' >+ - '<br />Options:<br />- leave empty for "no xslt"<br />- enter "default" for the default one<br />- put a path to define a xslt file<br />- put an URL for an external specific stylesheet.<br />{langcode} will be replaced with current interface language' > - > - Use the Yahoo UI libraries > - pref: yuipath >-- >1.7.5.4
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 7821
:
8621
|
8626
|
8724
|
8725