From d2ff275ea446b1b0b7ecac772c85ca65b608cbbf Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 9 Aug 2019 15:49:34 +0000 Subject: [PATCH] Bug 23445: Make loan period unit translatable fixing editing issue In the circulation rules, the loan period displayed in the table of circulation rules is not translatable, always displaying in English. This causes an issue when editing a circ rule with unit hours in any other language than English. When editing these rules, instead of hours, days will be preselected. To test: - Before applying the patch: - Install a translation - Activate and switch to the tranlation - Create a circulation rule using 'hours' as the unit - Edit the circulation rule - Verify that instead of 'hours' 'days' will be selected in the pull-down - Apply patch - Update po files (kshell, cd misc/translator, perl translate update ) - Edit po file [% rule.issuelength | html %] - [% rule.lengthunit | html %] + [% IF ( rule.lengthunit == 'days' ) %] + Days + [% ELSIF ( rule.lengthunit == 'hours') %] + Hours + [% ELSE %] + Undefined + [% END %] [% IF ( rule.hardduedate ) %] -- 2.11.0