}
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 {
} elsif (($cur_char eq '"') || ($cur_char eq '\'')) {
$inside_string = $cur_char;
- } elsif ($cur_char eq ")") {
+ } elsif (($cur_char eq ")") || ($cur_char eq ',')) {
return ($text, substr($line, $pos + 1));
}