X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/03b964b2afb0c72dd54688e08a6dda47a1bdfee9..c836425c17caf9f22601088f6133526d01990f9d:/SL/Locale.pm diff --git a/SL/Locale.pm b/SL/Locale.pm index a6756fefe..5454e74c5 100644 --- a/SL/Locale.pm +++ b/SL/Locale.pm @@ -91,13 +91,20 @@ sub new { } sub text { - my ($self, $text) = @_; + my $self = shift; + my $text = shift; if (exists $self->{texts}->{$text}) { - return $self->{iconv}->convert($self->{texts}->{$text}); + $text = $self->{iconv}->convert($self->{texts}->{$text}); + } else { + $text = $self->{iconv_english}->convert($text); } - return $self->{iconv_english}->convert($text); + if (@_) { + $text = Form->format_string($text, @_); + } + + return $text; } sub findsub {