Bug 10002

Summary: Don't include line breaks in strings that are translated
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Jonathan Druart <jonathan.druart>
Severity: trivial    
Priority: P5 - low CC: chris, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: String patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 10002 - Don't include line breaks in strings that are translated
Bug 10002 - Don't include line breaks in strings that are translated
Bug 10002 - Don't include line breaks in strings that are translated

Description Katrin Fischer 2013-04-08 14:57:45 UTC
Because Pootle will add in additional escaping and because it's confusing to translators, we should not include formatting/line breaks in strings for translation.

cat-toolbar.inc:
holds(s) for this record \\n Are you sure you want to delete this record?.

Also, we shoudl fix the typo.
Comment 1 Owen Leonard 2013-04-09 19:55:09 UTC Comment hidden (obsolete)
Comment 2 Chris Cormack 2013-04-09 21:49:28 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2013-04-10 12:33:34 UTC
Created attachment 17340 [details] [review]
Bug 10002 - Don't include line breaks in strings that are translated

Several JS alert messages contain "\n" which is problematic for
translation. This patch removes those instances (a line break is not
strictly necessary anyway). Also corrected: two instances of "holds(s)"

To test, place a hold on a title with items. From the biblio detail page
choose Edit -> Delete all items and Edit -> Delete record. In each case
you should see error messages with no line breaks and no misspellings.

Delete all items attached to the record with holds from the item edit
page. Go back to the detail page and choose Edit -> Delete record. You
should see an error message about existing hold(s) with no line breaks
or misspellings.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Harmless change, fixes misspellings and makes translations easier

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Comment 4 Jared Camins-Esakov 2013-04-18 13:12:30 UTC
This patch has been pushed to master and 3.12.x.
Comment 5 Chris Cormack 2013-04-27 05:25:42 UTC
Pushed to 3.10.x will be in 3.10.6