@@ -, +, @@ the corresponding JavaScript - Perform a catalog search and view the detail page for a bibliographic record. - Confirm that the search results browser in the left-hand sidebar work correctly and that the title attributes of the controls are correct. - Locate a patron with multiple checkouts. View the checkout page and test the various controls in the table of checkouts: Renew, check in, return claims, etc. - View the list of holds on a patron's account. Test suspending and resuming holds. - Update a translation, e.g. fr-FR: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for JavaScript strings, e.g. misc/translator/po/fr-FR-messages-js.po - Locate strings pulled from koha-tmpl/intranet-tmpl/prog/js/checkouts.js for translation, e.g.: msgid "Checked in" msgstr "" - Edit the "msgstr" string however you want (it's just for testing). - Install the updated translation: > perl translate install fr-FR - Switch to your newly translated language in the staff client and repeat the test plan above. The translated strings should appear. --- koha-tmpl/intranet-tmpl/js/browser.js | 12 ++-- .../intranet-tmpl/prog/en/includes/strings.inc | 61 ----------------- .../prog/en/modules/catalogue/ISBDdetail.tt | 1 - .../prog/en/modules/catalogue/MARCdetail.tt | 1 - .../prog/en/modules/catalogue/detail.tt | 1 - .../prog/en/modules/catalogue/labeledMARCdetail.tt | 1 - .../prog/en/modules/catalogue/moredetail.tt | 1 - .../prog/en/modules/catalogue/results.tt | 1 - .../prog/en/modules/catalogue/stockrotation.tt | 1 - .../prog/en/modules/circ/circulation.tt | 1 - .../prog/en/modules/members/moremember.tt | 1 - koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 78 +++++++++++----------- koha-tmpl/intranet-tmpl/prog/js/holds.js | 50 +++++++------- koha-tmpl/intranet-tmpl/prog/js/pages/results.js | 2 +- 14 files changed, 72 insertions(+), 140 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc --- a/koha-tmpl/intranet-tmpl/js/browser.js +++ a/koha-tmpl/intranet-tmpl/js/browser.js @@ -1,4 +1,4 @@ -/* global BROWSER_PREVIOUS BROWSER_NEXT BROWSER_RETURN_TO_SEARCH */ +/* global __ */ if ( KOHA === undefined ) var KOHA = {}; @@ -81,16 +81,16 @@ KOHA.browser = function (searchid, biblionumber) { var prevbutton; var nextbutton; if (me.curPos === 0 && current_search.offset === 1) { - prevbutton = ''; + prevbutton = ''; } else { - prevbutton = ''; + prevbutton = ''; } if (current_search.offset + me.curPos == current_search.total) { - nextbutton = ''; + nextbutton = ''; } else { - nextbutton = ''; + nextbutton = ''; } - $('#menu').before('
' + prevbutton + nextbutton + '
'); + $('#menu').before('
' + prevbutton + nextbutton + '
'); $('a#browse-previous').click(function (ev) { ev.preventDefault(); browseRecords(-1); --- a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc @@ -1,61 +0,0 @@ - - - --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt @@ -56,7 +56,6 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'catalog-strings.inc' %] [% Asset.js("js/catalog.js") | $raw %] - [% INCLUDE 'strings.inc' %] [% Asset.js("js/browser.js") | $raw %]