[Koha-bugs] [Bug 33916] Improve translation of title tags: Labels

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Oct 7 16:33:41 CEST 2023


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Couldn't this be simplified?

+                    [% IF ( label_element == 'layout' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% ELSIF ( label_element == 'template' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% ELSIF ( label_element == 'profile' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% ELSIF ( label_element == 'batch' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% END %]


To just be?
<h2>[% PROCESS translate_label_element element=label_element_title %]</h2>

If the outcome is always the same, why do the if/else?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list