Bug 18698 - Get rid of [%% in translation for shelves-result.tt
Summary: Get rid of [%% in translation for shelves-result.tt
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on: 19039
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-30 12:49 UTC by Marc Véron
Modified: 2023-09-15 21:39 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.