Bug 18698

Summary: Get rid of [%% in translation for shelves-result.tt
Product: Koha Reporter: Marc Véron <veron>
Component: I18N/L10NAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: f.demians, m.de.rooy, mtj
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16559
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 19039    
Bug Blocks:    

Description Marc Véron 2017-05-30 12:49:05 UTC
The file koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt exposes parts of template directives to translation, for example:
"\", \"dt_sortby\": %s\"Author\"%s\"Year\"%s\"Call number\"%s\"Title\"%s, "
"\"dt_created_on\": \"%s\", \"dt_modification_time\": \"%s\", \"dt_action\": "
"\"%s\" }%s,%s %s ] } %s %s %s %s [%%~ action_block = '"
or
 ~%%] %s %s [%%~ action_block = action_block _ ' 

Such semi-internals make translation errorprone. Translators should not be
confronted with tt internals.
Comment 1 Marc Véron 2017-05-30 13:31:03 UTC
Very complex. To resolve this translation issue the help of the original authors is needed.
Comment 2 Owen Leonard 2019-11-21 15:38:12 UTC
The way the item search handles generation of the JSON data might be useful here, although it's kind of convoluted.
Comment 4 Katrin Fischer 2023-09-15 21:39:11 UTC
I can't find this string in the templates anymore.