From ee4b398033da18a0cc2c57b0b2994ca16290a99e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 15 Aug 2011 10:12:17 +0200 Subject: Use "%s" instead of "%h" in format strings Use the standard string type specifier instead of "%h" in format strings. Both specifiers are treated equally in __() so we shouldn't break anything here. This also allows us to replace the hacky substitution algorithm in __() by vsprintf(). Signed-off-by: Lukas Fleischer --- web/html/index.php | 4 ++-- web/html/passreset.php | 2 +- web/html/pkgsubmit.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'web/html') diff --git a/web/html/index.php b/web/html/index.php index ffc5f008..138541f2 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -25,7 +25,7 @@ $dbh = db_connect(); ', '', '', @@ -37,7 +37,7 @@ echo __( ', '', '', '' diff --git a/web/html/passreset.php b/web/html/passreset.php index ed5d4d31..01f32047 100644 --- a/web/html/passreset.php +++ b/web/html/passreset.php @@ -122,7 +122,7 @@ html_header(__("Password Reset")); -

', ''); ?>

diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 64281c7a..a5cc0c05 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -273,7 +273,7 @@ if ($uid): $error = __( "Could not create directory %s.", $incoming_pkgdir); } } else { - $error = __( "You are not allowed to overwrite the %h%s%h package.", "", $pkg_name, ""); + $error = __( "You are not allowed to overwrite the %s%s%s package.", "", $pkg_name, ""); } if (!$error) { -- cgit v1.2.3-24-g4f1b