[Koha-bugs] [Bug 36171] Incorrect translation of Template Toolkit directive causes patron view error in ru-RU

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 27 18:38:28 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36171

--- Comment #5 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 162516
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162516&action=edit
Bug 36171: Use FILTER collapse instead of tilde in address includes

A couple of our include files used for displaying addresses have "~"
added to every template directive in order to collapse whitespace in the
generated HTML. This seems to cause problems for the translation script
which was picking up the "SET" in "[% SET foo = 'bar' %].

This patch modifies the affected files and related files (for
consistency) to use '[% FILTER collapse %]'. This seems to fix the
problem.

Note: This patch makes indentation changes, so ignore whitespace when
viewing the diff.

To test, apply the patch and search for a patron in the staff interface.

- View the patron detail page. All addresses, including alternate
  address and alternative contact address, should be displayed
  correctly.
- Edit the patron and confirm that the forms for entering those
  addresses also look correct.
- Go to Administration -> System preferences and test using other
  options for the "AddressFormat" preference.

- In the OPAC, view the "Libraries" page. Confirm that addresses are
  displayed correctly.

- Rebuild the ru-RU templates to confirm that there is no error:
    > perl misc/translator/translate update ru-RU
    > perl misc/translator/translate install ru-RU
   - Enable the language, if necessary, by updating the "language" and
     "OPACLanguage" system preferences.
   - Repeat the testing steps above.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list