Merge branch 'bug_7368' into 3.12-master
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / categorie.tt
index 9398ca6..6c3114f 100644 (file)
@@ -371,7 +371,13 @@ Confirm deletion of category [% categorycode |html %][% END %]</legend>
                                 [% FOREACH branch IN loo.branches %]
                                     [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
                                 [% END %]
-                                <span title="[% branches_str %]">[% loo.branches.size %] branches limitations</span>
+                                <span title="[% branches_str %]">
+                                    [% IF loo.branches.size > 1 %]
+                                        [% loo.branches.size %] branches limitations
+                                    [% ELSE %]
+                                        [% loo.branches.size %] branch limitation
+                                    [% END %]
+                                </span>
                             [% ELSE %]
                                 No limitation
                             [% END %]