Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Pasi Kallinen 38e8b47e26 Bug 20166: Untranslatable course reserves delete prompt
Having a Template Toolkit statements inside the javascript
translation function _() prevents it from being picked for
translation.

The only example of such is the course reserve delete prompt.
Move the TT statement outside the string.

Test plan:

1) Update and install language xx-YY. Check that the msgids
   "Are you sure you want to delete this course? There is %s attached item."
   and
   "Are you sure you want to delete this course? There are %s attached items."
   do not exist in the xx-YY-staff-prog.po
2) Check the translated file
   intranet-tmpl/prog/fi-FI/modules/course_reserves/course-details.tt
   It should have two prompt texts above in English
3) Install patch
4) Update the language. Check that the msgids show up in
   xx-YY-staff-prog.po, translate them, and install the language.
5) Repeat 2, the prompts should now show up in the correct language.
6) Enable UsecourseReserves
7) Go to Home -> Course reserves
8) Create a new course, and add reserves to it
9) See the course details. Click on Delete course, the prompt
   should be correctly translated
10) Remove all but one of the reserves from the course
11) Repeat 9

To see if there are other such TT statements:

    rgrep -E '\b_\("[^"]*\[%' koha-tmpl/

Signed-off-by: Pasi Kallinen <pasi.kallinen@joensuu.fi>
Signed-off-by: Roch D'Amour <roch.damour@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-02-12 17:38:57 -03:00
..
acqui Bug 10032: (follow-up) Move title attribute to button container 2018-02-08 17:01:14 -03:00
admin Bug 20157: Correctly hide the features for non first level groups 2018-02-12 15:42:21 -03:00
authorities Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
basket Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
batch
catalogue Bug 18403: Use patron-title.inc when hidepatronname is used [SPECIFIC for issuehistory] 2018-02-12 15:41:39 -03:00
cataloguing Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
circ Bug 18403: output_and_exit_if_error for circulation.pl 2018-02-12 15:41:39 -03:00
clubs Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
common Bug 18403: Only display libraries from group in dropdown lists 2018-02-12 15:41:38 -03:00
course_reserves Bug 20166: Untranslatable course reserves delete prompt 2018-02-12 17:38:57 -03:00
errors Bug 16270: Typo authentification/authentication 2016-04-29 14:44:26 +00:00
help Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
ill Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
installer Bug 18819: "UNIMARC is used in Europe" text changed to "UNIMARC is used in a few European countries" 2017-12-20 13:34:10 -03:00
labels Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
members Bug 18403: Fix few errors found with hit_pages.t 2018-02-12 15:41:43 -03:00
offline_circ Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
onboarding Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
patron_lists Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
patroncards Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
plugins Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
reports Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
reserve Bug 18403: Use patron-title.inc when hidepatronname is used 2018-02-12 15:41:38 -03:00
reviews Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
rotating_collections Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
serials Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
services Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
suggestion Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
tags Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
test Bug 14321: Final cleanup, removing obsolete files 2015-09-25 12:02:52 -03:00
tools Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
virtualshelves Bug 12904: Force browser to load new javascript files after upgrade 2018-02-08 14:53:24 -03:00
about.tt Bug 7143: Update about page for new dev - Jenny Way 2018-02-05 10:03:35 -03:00
auth.tt Bug 18314 (QA Followup) Use OpacBaseURL for password reset link 2017-05-12 10:59:10 -04:00
intranet-main.tt Bug 18403: Update permissions - borrowers => 1|* becomes borrowers => 'edit_borrowers' 2018-02-12 15:41:37 -03:00