]> git.deb.at Git - deb/packages.git/commitdiff
Packages::I18N::Locale: Also catch %f format strings in the compat layer
authorFrank Lichtenheld <frank@lichtenheld.de>
Fri, 16 Nov 2007 17:31:26 +0000 (18:31 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 17 Nov 2007 20:46:06 +0000 (21:46 +0100)
lib/Packages/I18N/Locale.pm

index 94fd8990fdf8013f981e67b1b8ba437fec9e4bc2..ae64b93303d06c5d9ae861a87eb616f8181ecb32 100644 (file)
@@ -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;
 }