From 54a1d7595e76ef2e1babf2157937a2a475671d67 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 16 Nov 2007 18:31:26 +0100 Subject: [PATCH] Packages::I18N::Locale: Also catch %f format strings in the compat layer --- lib/Packages/I18N/Locale.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2