From: Frank Lichtenheld Date: Fri, 16 Nov 2007 17:31:26 +0000 (+0100) Subject: Packages::I18N::Locale: Also catch %f format strings in the compat layer X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=54a1d7595e76ef2e1babf2157937a2a475671d67;p=deb%2Fpackages.git Packages::I18N::Locale: Also catch %f format strings in the compat layer --- diff --git a/lib/Packages/I18N/Locale.pm b/lib/Packages/I18N/Locale.pm index 94fd899..ae64b93 100644 --- a/lib/Packages/I18N/Locale.pm +++ b/lib/Packages/I18N/Locale.pm @@ -22,7 +22,7 @@ sub N_ { return $_[0]; } sub g { my ($self, $format, @args) = @_; my $result = $self->maketext($format, @args); - return sprintf($result, @args) if $result =~ /%[su]/; + return sprintf($result, @args) if $result =~ /%([su]|[.\d]*f)/; return $result; }