Bugzilla – Attachment 34015 Details for
Bug 13357
Untranslatable strings on itemsearch.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13357: Untranslatable strings on itemsearch.tt
Bug-13357-Untranslatable-strings-on-itemsearchtt.patch (text/plain), 7.94 KB, created by
Bernardo Gonzalez Kriegel
on 2014-11-28 13:31:58 UTC
(
hide
)
Description:
Bug 13357: Untranslatable strings on itemsearch.tt
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2014-11-28 13:31:58 UTC
Size:
7.94 KB
patch
obsolete
>From d783939fd971a60b82b94559758f072edb71e6c3 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Fri, 28 Nov 2014 10:06:18 -0300 >Subject: [PATCH] Bug 13357: Untranslatable strings on itemsearch.tt > >This patch enable translation of labels on itemsearch.tt > >To test: >1) Translate for a fairly complete language (es-ES de-DE) >2) On staff, go to Search > Item search >3) Check there are many untranslated strings >e.g. Text before pulldowns on first and second box > All options on third box > >4) Apply the patch > >5) Repeat 1 & 2 >6) Check there are now some strings translated >7) Update translation file, check there are some >new strings to translate (may be they are fuzzy) >e.g. "All statuses", "All collection codes" >--- > .../prog/en/modules/catalogue/itemsearch.tt | 69 +++++++++++++------- > 1 file changed, 46 insertions(+), 23 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index 0c65c11..9b791ff 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -1,9 +1,36 @@ > [% USE CGI %] > [% USE JSON.Escape %] > >+[% BLOCK form_label %] >+ [% SWITCH label %] >+ [% CASE 'barcode' %]<span>Barcode</span> >+ [% CASE 'itemcallnumber' %]<span>Call number</span> >+ [% CASE 'stocknumber' %]<span>Stock number</span> >+ [% CASE 'title' %]<span>Title</span> >+ [% CASE 'author' %]<span>Author</span> >+ [% CASE 'publishercode' %]<span>Publisher</span> >+ [% CASE 'publicationdate' %]<span>Publication date</span> >+ [% CASE 'collectiontitle' %]<span>Collection</span> >+ [% CASE 'isbn' %]<span>ISBN</span> >+ [% CASE 'issn' %]<span>ISSN</span> >+ [% CASE 'homebranch' %]<span>Home library</span> >+ [% CASE 'All libraries' %]<span>All libraries</span> >+ [% CASE 'location' %]<span>Shelving location</span> >+ [% CASE 'All locations' %]<span>All locations</span> >+ [% CASE 'itype' %]<span>Item type</span> >+ [% CASE 'All item types' %]<span>All item types</span> >+ [% CASE 'ccode' %]<span>Collection code</span> >+ [% CASE 'All collection codes' %]<span>All collection codes</span> >+ [% CASE 'notforloan' %]<span>Status</span> >+ [% CASE 'All statuses' %]<span>All statuses</span> >+ [% CASE 'damaged' %]<span>Damaged</span> >+ [% CASE 'itemlost' %]<span>Lost</span> >+ [% END %] >+[% END %] >+ > [% BLOCK form_field_select %] > <div class="form-field form-field-select"> >- <label class="form-field-label" for="[% name %]">[% label %]</label> >+ <label class="form-field-label" for="[% name %]">[% INCLUDE form_label label=name %]</label> > <select id="[% name %]_op" name="[% name %]_op"> > <option value="=">is</option> > [% IF CGI.param(name _ '_op') == '!=' %] >@@ -19,7 +46,7 @@ > [% ELSE %] > <option value=""> > [% END %] >- [% empty_option || "All" %] >+ [% IF (empty_option) %][% INCLUDE form_label label=empty_option %][% ELSE %]<span>All</span>[% END %] > </option> > [% FOREACH option IN options %] > [% IF values != '' && values.grep(option.value).size %] >@@ -34,9 +61,9 @@ > > [% BLOCK form_field_select_option %] > [% IF params.f == value %] >- <option value="[% value %]" selected="selected">[% label %]</option> >+ <option value="[% value %]" selected="selected">[% INCLUDE form_label label=value %]</option> > [% ELSE %] >- <option value="[% value %]">[% label %]</option> >+ <option value="[% value %]">[% INCLUDE form_label label=value %]</option> > [% END %] > [% END %] > >@@ -58,16 +85,16 @@ > </select> > [% END %] > <select name="f" class="form-field-column"> >- [% INCLUDE form_field_select_option value='barcode' label='Barcode' %] >- [% INCLUDE form_field_select_option value='itemcallnumber' label='Call number' %] >- [% INCLUDE form_field_select_option value='stocknumber' label='Stock number' %] >- [% INCLUDE form_field_select_option value='title' label='Title' %] >- [% INCLUDE form_field_select_option value='author' label='Author' %] >- [% INCLUDE form_field_select_option value='publishercode' label='Publisher' %] >- [% INCLUDE form_field_select_option value='publicationdate' label='Publication date' %] >- [% INCLUDE form_field_select_option value='collectiontitle' label='Collection' %] >- [% INCLUDE form_field_select_option value='isbn' label='ISBN' %] >- [% INCLUDE form_field_select_option value='issn' label='ISSN' %] >+ [% INCLUDE form_field_select_option value='barcode' %] >+ [% INCLUDE form_field_select_option value='itemcallnumber' %] >+ [% INCLUDE form_field_select_option value='stocknumber' %] >+ [% INCLUDE form_field_select_option value='title' %] >+ [% INCLUDE form_field_select_option value='author' %] >+ [% INCLUDE form_field_select_option value='publishercode' %] >+ [% INCLUDE form_field_select_option value='publicationdate' %] >+ [% INCLUDE form_field_select_option value='collectiontitle' %] >+ [% INCLUDE form_field_select_option value='isbn' %] >+ [% INCLUDE form_field_select_option value='issn' %] > [% IF items_search_fields.size %] > <optgroup label="Custom search fields"> > [% FOREACH field IN items_search_fields %] >@@ -117,7 +144,7 @@ > > [% BLOCK form_field_radio_yes_no %] > <div class="form-field"> >- <label class="form-field-label">[% label %]:</label> >+ <label class="form-field-label">[% INCLUDE form_label label=name %]:</label> > <input type="radio" name="[% name %]" id="[% name %]_indifferent" value="" checked="checked"/> > <label for="[% name %]_indifferent">Ignore</label> > <input type="radio" name="[% name %]" id="[% name %]_yes" value="yes" /> >@@ -265,7 +292,8 @@ > $(document).ready(function () { > // Add the "New field" link. > var form_field = $('div.form-field-select-text').last() >- var button_field_new = $('<a href="#" class="button-field-new" title="Add a new field">New field</a>'); >+ var NEW_FIELD = _("New field"); >+ var button_field_new = $('<a href="#" class="button-field-new" title="Add a new field">' + NEW_FIELD + '</a>'); > button_field_new.click(function() { > addNewField(); > return false; >@@ -325,13 +353,11 @@ > <fieldset> > [% INCLUDE form_field_select > name="homebranch" >- label="Home library" > options = branches > empty_option = "All libraries" > %] > [% INCLUDE form_field_select > name="location" >- label="Shelving location" > options = locations > empty_option = "All locations" > %] >@@ -339,19 +365,16 @@ > <fieldset> > [% INCLUDE form_field_select > name="itype" >- label="Item type" > options = itemtypes > empty_option = "All item types" > %] > [% INCLUDE form_field_select > name="ccode" >- label="Collection code" > options = ccodes > empty_option = "All collection codes" > %] > [% INCLUDE form_field_select > name="notforloan" >- label="Status" > options = notforloans > empty_option = "All statuses" > %] >@@ -375,8 +398,8 @@ > <input type="text" id="itemcallnumber_to" name="itemcallnumber_to" value="[% value %]" /> > <span class="hint">(inclusive)</span> > </div> >- [% INCLUDE form_field_radio_yes_no name="damaged" label="Damaged" %] >- [% INCLUDE form_field_radio_yes_no name="itemlost" label="Lost" %] >+ [% INCLUDE form_field_radio_yes_no name="damaged" %] >+ [% INCLUDE form_field_radio_yes_no name="itemlost" %] > <div class="form-field"> > <label class="form-field-label" for="issues_op">Checkout count:</label> > <select id="issues_op" name="issues_op"> >-- >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 13357
:
34015
|
34666
|
34681