projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Funktion LxERP.t8() analog zum Filter [% ... | $T8 %] implementiert.
[kivitendo-erp.git]
/
SL
/
Template
/
Plugin
/
LxERP.pm
diff --git
a/SL/Template/Plugin/LxERP.pm
b/SL/Template/Plugin/LxERP.pm
index
c26988b
..
df6cb6a
100644
(file)
--- a/
SL/Template/Plugin/LxERP.pm
+++ b/
SL/Template/Plugin/LxERP.pm
@@
-106,4
+106,10
@@
sub abs {
return $var < 0 ? $var * -1 : $var;
}
+sub t8 {
+ my ($self, $text, $args) = @_;
+ $self->{locale} ||= Locale->new($::myconfig{countrycode}, 'all');
+ return $self->{locale}->text($text, @{ $args || [] });
+}
+
1;