Bug 15232

Summary: Advanced Cataloging Editor: Fix translation issues
Product: Koha Reporter: Marc Véron <veron>
Component: I18N/L10NAssignee: Marc Véron <veron>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: brendan, f.demians, hector.hecaxmmx, julian.maurice
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14459
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 15232: Advanced Cataloging Editor: Fix translation issues
Bug 15232: (follow-up) Advanced Cataloging Editor: Fix translation issues
Bug 15232: Advanced Cataloging Editor: Fix translation issues
Bug 15232: Advanced Cataloging Editor: Fix translation issues
Bug 15232: Advanced Cataloging Editor: Fix translation issues

Description Marc Véron 2015-11-23 06:42:01 UTC
The advanced cataloging editor contains strings that do not conform to

http://wiki.koha-community.org/wiki/Coding_Guidelines#JS3:_Avoid_strings_which_mix_text_and_markup

"JS3: Avoid strings which mix text and markup
Text mustn't contain HTML tags."

That makes translations errorprone.

Additionally, the fav icon is not displayed.
Comment 1 Marc Véron 2015-11-23 06:57:03 UTC
Fav icon issue seems to be browser dependent (FF only); removed from this bug.
Comment 2 Marc Véron 2015-11-23 07:05:36 UTC Comment hidden (obsolete)
Comment 3 Héctor Eduardo Castro Avalos 2015-11-23 16:33:34 UTC
Sorry, Marc

But not a good solution

If you trick a macro for example 500=‡aEdited with Rancor and you change for 500‡aEdited with Rancor, the message displayed is:

h3Failed to run macro:
Comment 4 Héctor Eduardo Castro Avalos 2015-11-23 16:38:15 UTC Comment hidden (obsolete)
Comment 5 Marc Véron 2015-11-23 19:24:26 UTC
Thanks Héctor for fixiing my error, I commited a little bit to fast... 
:-)
Comment 6 Frédéric Demians 2015-11-25 06:44:33 UTC Comment hidden (obsolete)
Comment 7 Jonathan Druart 2015-11-25 15:09:48 UTC Comment hidden (obsolete)
Comment 8 Brendan Gallagher 2015-12-29 23:02:57 UTC
Created attachment 46040 [details] [review]
Bug 15232: Advanced Cataloging Editor: Fix translation issues

This patch makes
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc to comply with
Coding guidlines to avoid translation issues: "JS3: Avoid strings which
mix text and markup Text mustn't contain HTML tags."

To test:
- Apply patch
- Verify that code changes are correct (html markup moved out of
  function _(...) )
- Bonus test: Enable syspref 'EnableAdvancedCatalogingEditor' and verify
  that it works as before

With type fix from: Hector Castro <hector.hecaxmmx@gmail.com>

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Comment 9 Brendan Gallagher 2015-12-29 23:03:24 UTC
Pushed to master - thanks
Comment 10 Julian Maurice 2015-12-30 16:19:18 UTC
Patch pushed in 3.22.x, will be in 3.22.2