[Koha-bugs] [Bug 10492] Translation problems with TT directives in po files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun May 5 20:10:54 CEST 2019


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

Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|koha-bugs at lists.koha-commun |bgkriegel at gmail.com
                   |ity.org                     |

--- Comment #4 from Bernardo Gonzalez Kriegel <bgkriegel at 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.


More information about the Koha-bugs mailing list