Bug 11827: Make "Cancel Rating" translatable in jQuery rating plugin
authorPasi Kallinen <pasi.kallinen@joensuu.fi>
Thu, 25 Jan 2018 11:04:09 +0000 (13:04 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 16 Feb 2018 00:49:04 +0000 (00:49 +0000)
commit04d6f406ffc52cf60768fe38530aebf8c03add03
treed6774f6bc84b0fc26a3c0770d76907550e89ede6
parent5abb08859152c7af509a4c719d2b2ee2f2bf20fd
Bug 11827: Make "Cancel Rating" translatable in jQuery rating plugin

- Make the "Cancel rating" text translatable (and change
  capitalization to conform to Koha coding guidelines)
- Improve the two other messages to use formatted strings
  instead of concatenation.
- Use the exact same text for the "your rating" text, so it
  only appears once in the po-file.

Test plan:

1. See that the "Cancel rating" -text doesn't appear in
   po/xx-YY-opac-bootstrap.po
2. Note how there's two versions of the your rating -text
   ("your rating: %s, " and "your rating:") in the po-file
3. Apply patch
4. Update the xx-YY translation
5. Check the po-file. It should now contain the "Cancel rating"
   and a single "your rating: %s, "
6. Translate those texts, and update & install the language.
7. Go to the OPAC detail page of a biblio, and check the
   rating texts.
8. Hovering over the rating minus -sign should show the translated
   "Cancel rating"
9. Check that the text after the stars is correct with and without
   your rating

Signed-off-by: Pasi Kallinen <pasi.kallinen@joensuu.fi>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt