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

--- Comment #11 from Kevin Carnes <[email protected]> ---
Created attachment 165506
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165506&action=edit
Bug 36171: Incorrect translation of Template Toolkit directive causes patron
view error in ru-RU

It appears that the template parser parses HTML tags first and then template
toolkit tags. This can cause a template toolkit tag that contains an HTML tag
to have its start and end markers separated. This causes it to be treated as
text that can be translated instead of a template toolkit tag.

The template toolkit tags should probably be parsed first, but as a workaround
the HTML tags in a template toolkit tag can be obfuscated. This patch uses
concatenation as an example.

To test:
1. You will need to edit the staff-prog.po for a language and modify the
   the translation for "SET line_break". You can change SET to FOO.
2. Install the translation for the language.
3. View the details of a patron in the staff interface with the language.
4. The page will have an error.
5. Apply the patch.
6. Install the translation for the language.
7. View the details of a patron in the staff interface with the language.
8. The page should now display correctly.

If you want to, you can run "gulp po:update --lang LANGUAGE-CODE" to make sure
that the template tag is no longer included in .po file.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to