Bug 9323 - Untranslatable string in serials search
Summary: Untranslatable string in serials search
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Serials (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-27 10:26 UTC by Jonathan Druart
Modified: 2014-05-26 21:04 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 9323: Untranslatable string in serial search (2.51 KB, patch)
2012-12-27 10:32 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 9323 [Counter-proposal] Untranslatable string in serials search (2.72 KB, patch)
2012-12-27 15:48 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 9323 [Counter-proposal] Untranslatable string in serials search (2.76 KB, patch)
2012-12-28 09:10 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 9323 [Counter-proposal] Untranslatable string in serials search (2.83 KB, patch)
2013-02-10 22:53 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2012-12-27 10:26:38 UTC
A javascript string is not translatable on the serial search page
Comment 1 Jonathan Druart 2012-12-27 10:32:04 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2012-12-27 15:48:16 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2012-12-28 09:10:13 UTC Comment hidden (obsolete)
Comment 4 Jonathan Druart 2012-12-28 09:10:42 UTC
Thanks Owen!
Comment 5 Katrin Fischer 2013-02-10 22:53:27 UTC
Created attachment 15213 [details] [review]
Bug 9323 [Counter-proposal] Untranslatable string in serials search

The translator seems to have a problem with the _() function inside
HTML. Rather than move only the translatable string to the <script>
block, why not move all of the JavaScript to the <script> tag? This
keeps things a little more organized and lets us follow the guideline to
always use double quotes with _().

Same test plan as Jonathan's patch:

- translate update LANG
- Check in your po file that the string "Are you sure you want to
  reopen this subscription?" does not exist.
- Apply the patch
- translate update LANG
- Check in your po file that the string is translatable

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
String is now translatable.
Comment 6 Jared Camins-Esakov 2013-02-12 13:45:58 UTC
This patch has been pushed to master.