[Bug 10492] Translation problems with TT directives in po files
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10492 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |bgkriegel@gmail.com |ity.org | --- Comment #4 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to Katrin Fischer from comment #3)
Searching for [% in the po files for 19.05 finds 69 results. A lot of those are like:
Koha [% Version %]
I am not sure why those exist yet. I would have expected Koha %s.
They exist because they belong to 'attributes' in HTML tags, for example 'alt' in 'img', 'value' in inputs, or 'content' in 'meta'. In this particular case, on line 5 of opac-tmpl/bootstrap/en/includes/doc-head-close.inc there is <meta name="generator" content="Koha [% Version | html %]" /> Each line on each TT file is 'tokenized', and TTvariables are replaced with '%s'. But an HTML tag (i.e. <meta ../>) is 'tokenized' as such, so no replacement is made there; only the text of some attributes is extracted in order to translate them. Ideally we should no use TTvariables inside tag attributes, but it's useful :) I'll try to write a patch to (partially) 'fix' this -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org