Bugzilla – Attachment 62335 Details for
Bug 15395
Internationalization: plural forms, context, and more
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15395: Example usage of I18N Template::Toolkit plugin
Bug-15395-Example-usage-of-I18N-TemplateToolkit-pl.patch (text/plain), 2.92 KB, created by
Marc Véron
on 2017-04-18 19:57:19 UTC
(
hide
)
Description:
Bug 15395: Example usage of I18N Template::Toolkit plugin
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-04-18 19:57:19 UTC
Size:
2.92 KB
patch
obsolete
>From 6ca714c35d32995c61fb4b44f676e4bff5956ff9 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 16 Dec 2015 01:25:44 +0100 >Subject: [PATCH] Bug 15395: Example usage of I18N Template::Toolkit plugin >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Moved this patch for example usage to teh end of patch set >and resolved minor conflict while applyin >Signed-off-by: Marc Véron <veron@veron.ch> >--- > C4/Search.pm | 1 - > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 3 ++- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 37dfb2c..9d2fcea 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -2247,7 +2247,6 @@ sub searchResults { > } > } > $oldbiblio->{norequests} = 1 unless $can_place_holds; >- $oldbiblio->{itemsplural} = 1 if $items_count > 1; > $oldbiblio->{items_count} = $items_count; > $oldbiblio->{available_items_loop} = \@available_items_loop; > $oldbiblio->{onloan_items_loop} = \@onloan_items_loop; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index e035200..d4c7970 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -1,6 +1,7 @@ > [% USE Koha %] > [% USE Biblio %] > [% USE KohaDates %] >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -628,7 +629,7 @@ var holdForPatron = function () { > <span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses"> > [% END %] > >- [% SEARCH_RESULT.items_count %] [% IF ( SEARCH_RESULT.itemsplural ) %]items[% ELSE %]item[% END %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %] >+ [% SEARCH_RESULT.items_count %] [% tn('item', 'items', SEARCH_RESULT.items_count) %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount %] available:[% ELSE %], None available[% END %] > > [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] > </span> >-- >2.1.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 15395
:
45797
|
45798
|
45799
|
46337
|
50023
|
50024
|
50025
|
50026
|
61873
|
61874
|
61875
|
61876
|
61934
|
61935
|
61977
|
62008
|
62041
|
62326
|
62327
|
62328
|
62329
|
62330
|
62331
|
62332
|
62333
|
62335
|
62709
|
65894
|
70974
|
70975
|
70976
|
71940
|
71941
|
71942
|
71943
|
71944
|
71945
|
71946
|
71947
|
71948
|
71949
|
71950
|
71951
|
71952
|
73901
|
73902
|
73903
|
73904
|
73905
|
73906
|
73907
|
73908
|
73909
|
73910
|
73911
|
73912
|
73913
|
76328
|
76329
|
76330
|
77475
|
77476
|
81152
|
81153
|
81154
|
81155
|
81156
|
81157
|
81158
|
81159
|
81167
|
81734
|
81735
|
81736
|
81737
|
81738
|
81739
|
81741
|
81742
|
81743