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

--- Comment #9 from Marc VĂ©ron <[email protected]> ---
(In reply to Marcel de Rooy from comment #8)
> Marc,
> I understand your explanation, but you did not respond to my question about
> the trailing IF.

Ah, sorry, I must have skipped the main part...

If you do a translate create for a "language" aa-AA and then examine the file,
you find:

#. INPUT type=text name=enrolmentperiod
#: intranet-tmpl/prog/en/modules/admin/categories.tt:92
#: intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt:104
msgid ""
"[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]"
msgstr ""

If you apply the patch and translate create again, these line are gone.

The problem occurs because there is more than one tt statement inside a value
attribute for a form field:
value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END
%]"

If the attribute is changed to have one statement only, the translation tool
does not pick it. That's why I changed it to have a trailing IF.

And yes, we have a little bit less readability for programmers, but no more
disturbing tt directives for translators.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to