X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLocale.pm;h=8fa37805d6ce6e1932308185dea702766313d87b;hb=cca939527d780d2a5c1c152043c789d11d290ad5;hp=5016900fe29bce569057d5e3d4c95d08173c93d3;hpb=dd70b2b0ab95ac40943e8562589a5542c815e4f4;p=kivitendo-erp.git diff --git a/SL/Locale.pm b/SL/Locale.pm index 5016900fe..8fa37805d 100644 --- a/SL/Locale.pm +++ b/SL/Locale.pm @@ -214,6 +214,8 @@ sub text { my $self = shift; my $text = shift; + return $text->translated if (ref($text) || '') eq 'SL::Locale::String'; + if ($self->{texts}->{$text}) { $text = $self->{iconv}->convert($self->{texts}->{$text}); } else {