X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a1a9bb961ab49ee053cb208ea01e17430d0ca836..e14cb525c640cb15bb6b2dfb62ccebbe78cb45cd:/SL/Locale.pm 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