[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
Wed Jun 23 07:08:17 CEST 2021


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

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121434|0                           |1
        is obsolete|                            |

--- Comment #10 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 122309
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122309&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>

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


More information about the Koha-bugs mailing list