[Koha-bugs] [Bug 6988] formatted strings get split in substrings for translation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 8 08:14:15 CET 2018


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

paxed <pasi.kallinen at joensuu.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pasi.kallinen at joensuu.fi

--- Comment #2 from paxed <pasi.kallinen at joensuu.fi> ---
If there absolutely has to be HTML formatting in the middle of a sentence (eg.
a link), one solution is to put the HTML elements in TT directives, so they
don't split the sentence into separate msgid strings. For example:

<p>Click [% '<a href="http://example.com">' %]here[% '</a>' %] to do
whatever.</p>

Which should show up in the po-files as

msgid "Click %shere%s to do whatever."


(I didn't test the example, so it may not work. Putting the elements in TT
variables, and using the variable, definitely does work)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list