X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FLocale.pm;h=8fa37805d6ce6e1932308185dea702766313d87b;hb=c2f911bdbad03f7b81e0121e4e866bb96586168c;hp=8a2caa2c0bfb7e335b046f88eb94a075ea4508e5;hpb=abde405dfaab376a13e9a1e3e24cd715fa7de024;p=kivitendo-erp.git diff --git a/SL/Locale.pm b/SL/Locale.pm index 8a2caa2c0..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 { @@ -547,7 +549,7 @@ __END__ =head1 NAME -Locale - Functions for dealing with locale-dependant information +Locale - Functions for dealing with locale-dependent information =head1 SYNOPSIS