projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f413df
)
SL::Locale::String: ne überladen
author
Moritz Bunkus
<m.bunkus@linet.de>
Wed, 23 Jun 2021 11:16:45 +0000
(13:16 +0200)
committer
Moritz Bunkus
<m.bunkus@linet.de>
Wed, 23 Jun 2021 11:17:09 +0000
(13:17 +0200)
SL/Locale/String.pm
patch
|
blob
|
history
diff --git
a/SL/Locale/String.pm
b/SL/Locale/String.pm
index
63a5323
..
7229743
100644
(file)
--- 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;
}