https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18649 --- Comment #10 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Marc Véron from comment #9)
(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.
Sure :) But why not just [% category.enrolmentperiod %] ? -- You are receiving this mail because: You are watching all bug changes.