From: Moritz Bunkus Date: Wed, 23 Jun 2021 11:16:45 +0000 (+0200) Subject: SL::Locale::String: ne überladen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~157 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=227230658410220b29227b98077280abf4f4a9a7;p=kivitendo-erp.git SL::Locale::String: ne überladen --- diff --git a/SL/Locale/String.pm b/SL/Locale/String.pm index 63a53231b..722974393 100644 --- a/SL/Locale/String.pm +++ b/SL/Locale/String.pm @@ -13,7 +13,8 @@ our @EXPORT = qw(t8); use overload '""' => \&translated, - eq => \&my_eq; + eq => \&my_eq, + ne => \&my_ne; sub translated { my ($self) = @_; @@ -31,6 +32,10 @@ sub my_eq { $_[1] eq $_[0]->translated; } +sub my_ne { + $_[1] ne $_[0]->translated; +} + sub TO_JSON { return $_[0]->translated; }