Bug 11495: Make "Select titles to: " translatable
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sat, 11 Jan 2014 14:54:44 +0000 (15:54 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 31 Jan 2014 15:48:08 +0000 (15:48 +0000)
Fixes translation of "Select titles to: " on the Bootstrap
OPAC result page.

Test plan:
- Update one of the po files running:
  perl translate update <langcode>
- Verify that "Select titles to: " is only listed once for
  search-results.tt
Apply patch
- Verify addings titles to lists and cart from the result list
  still works as expected
- Rerun the po file update
- Verify the string is now listed twice for search-results.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt

index 2ad3029..8f0a089 100644 (file)
@@ -704,7 +704,7 @@ $(document).ready(function(){
 
     var param1 = "";
     [% IF ( ( Koha.Preference( 'opacbookbag' ) == 1 ) || ( Koha.Preference( 'virtualshelves' ) == 1 ) || loggedinusername ) %]
-    param1 += "<span id=\"selections\">Select titles to: </span>";
+    param1 += "<span id=\"selections\">"+_("Select titles to: ")+"</span>";
     [% END %]
 
 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]