[Koha-bugs] [Bug 28462] TT tag on several lines break the translator tool
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jul 5 22:15:12 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28462
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #122498|0 |1
is obsolete| |
--- Comment #17 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 122589
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122589&action=edit
Bug 28462: Remove TT tag on several lines - opac-advsearch.tt
It fixes the translation in case the operators have been translated
Test plan:
1. misc/translator/translate update pt-BR
2. In pt-BR-opac-bootstrap.po , find OpacAdvSearchMoreOptions
3. sabotage the translation part, like replacing IF with something else
4. misc/translator/translate install pt-BR
5. enable and use pt-BR and hit opac-advsearch.pl
6. Notice the error
Template process failed: file error - parse error -
/kohadevbox/koha/koha-tmpl/opac-tmpl/bootstrap/pt-BR/modules/opac-advsearch.tt
line 409: unexpected token (e)
[% IF (OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.size> 0 e
extended_options) ou (OpacAdvSearchOptions and OpacAdvSearchOptions.size> 0 e n
expandido_options) %] at /kohadevbox/koha/C4/Templates.pm
7. Apply the patch and redo update and install of the language
8. Note that it's now working
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list