Subject: | Simple patch l10n patch |
Date: | Tue, 14 Apr 2015 00:59:24 +0300 |
To: | bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org |
From: | Max Kosmach <max [...] tcen.ru> |
Hi
Simple patch to add loc() calls for field names and statuses.
--- RT-Extension-MandatoryOnTransition/lib/RT/Extension/MandatoryOnTransition.pm.or 2015-04-07 15:09:11.000000000 +0300
+++ RT-Extension-MandatoryOnTransition/lib/RT/Extension/MandatoryOnTransition.pm 2015-04-14 00:48:08.761417833 +0300
@@ -360,7 +360,7 @@
(my $label = $field) =~ s/(?<=[a-z])(?=[A-Z])/ /g; # /
push @errors,
$CurrentUser->loc("[_1] is required when changing Status to [_2]",
- $label, $ARGSRef->{Status});
+ $CurrentUser->loc($label), $CurrentUser->loc($ARGSRef->{Status}));
}
return \@errors unless @$cfs;
@@ -417,7 +417,7 @@
push @errors,
$CurrentUser->loc("[_1] is required when changing Status to [_2]",
- $cf->Name, $ARGSRef->{Status});
+ $CurrentUser->loc($cf->Name), $CurrentUser->loc($ARGSRef->{Status}));
}
return \@errors;
--
With best wishes,
Max