From d56a88897bcaa9d552d1d2b90c33b7c6e29e330a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 21 Sep 2012 10:42:17 +0200 Subject: Avoid use of ""/"" * Use "" for form labels. * Use ""/"" for important text. * Use "

"/"

" for headings. * Drop ""/"" everywhere else. Signed-off-by: Lukas Fleischer --- web/html/addvote.php | 12 ++++++------ web/html/home.php | 5 ++--- web/html/pkgsubmit.php | 2 +- web/lib/acctfuncs.inc.php | 12 ++++++------ web/lib/feedcreator.class.php | 2 +- web/lib/translator.inc.php | 2 +- web/template/tu_details.php | 8 ++++---- 7 files changed, 21 insertions(+), 22 deletions(-) (limited to 'web') diff --git a/web/html/addvote.php b/web/html/addvote.php index 5575031..43973f3 100644 --- a/web/html/addvote.php +++ b/web/html/addvote.php @@ -70,18 +70,18 @@ if ($atype == "Trusted User" || $atype == "Developer") {

- - + +

- - + +

-
-
+
+
" /> diff --git a/web/html/home.php b/web/html/home.php index 3050bd1..f5a9afe 100644 --- a/web/html/home.php +++ b/web/html/home.php @@ -33,7 +33,7 @@ $dbh = db_connect(); ', '', + '', '', '', '' ); @@ -67,9 +67,8 @@ $dbh = db_connect(); ?>

+

- : -
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index ffbc1c9..930add0 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -324,7 +324,7 @@ if ($uid): $error = __( "Could not create directory %s.", $incoming_pkgdir); } } else { - $error = __( "You are not allowed to overwrite the %s%s%s package.", "", $pkg_name, ""); + $error = __( "You are not allowed to overwrite the %s%s%s package.", "", $pkg_name, ""); } if (!$error) { diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 44cbfbd..bce00f8 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -165,7 +165,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="", if ($row[0]) { $error = __("The username, %s%s%s, is already in use.", - "", htmlspecialchars($U,ENT_QUOTES), ""); + "", htmlspecialchars($U,ENT_QUOTES), ""); } } if (!$error) { @@ -182,7 +182,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="", if ($row[0]) { $error = __("The address, %s%s%s, is already in use.", - "", htmlspecialchars($E,ENT_QUOTES), ""); + "", htmlspecialchars($E,ENT_QUOTES), ""); } } if ($error) { @@ -209,12 +209,12 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="", $result = $dbh->exec($q); if (!$result) { print __("Error trying to create account, %s%s%s.", - "", htmlspecialchars($U,ENT_QUOTES), ""); + "", htmlspecialchars($U,ENT_QUOTES), ""); } else { # account created/modified, tell them so. # print __("The account, %s%s%s, has been successfully created.", - "", htmlspecialchars($U,ENT_QUOTES), ""); + "", htmlspecialchars($U,ENT_QUOTES), ""); print "

\n"; print __("Click on the Login link above to use your account."); print "

\n"; @@ -247,10 +247,10 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="", $result = $dbh->exec($q); if (!$result) { print __("Error trying to modify account, %s%s%s.", - "", htmlspecialchars($U,ENT_QUOTES), ""); + "", htmlspecialchars($U,ENT_QUOTES), ""); } else { print __("The account, %s%s%s, has been successfully modified.", - "", htmlspecialchars($U,ENT_QUOTES), ""); + "", htmlspecialchars($U,ENT_QUOTES), ""); } } } diff --git a/web/lib/feedcreator.class.php b/web/lib/feedcreator.class.php index 1d57fac..802eebb 100644 --- a/web/lib/feedcreator.class.php +++ b/web/lib/feedcreator.class.php @@ -689,7 +689,7 @@ class FeedCreator extends HtmlDescribable { $this->_redirect($filename); } } else { - echo "
Error creating feed file, please check write permissions.
"; + echo "
Error creating feed file, please check write permissions.
"; } } diff --git a/web/lib/translator.inc.php b/web/lib/translator.inc.php index 382160c..2093cf7 100644 --- a/web/lib/translator.inc.php +++ b/web/lib/translator.inc.php @@ -9,7 +9,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR # # examples: # print __("%s has %s apples.", "Bill", "5"); -# print __("This is a %smajor%s problem!", "", ""); +# print __("This is a %smajor%s problem!", "", ""); include_once('config.inc.php'); include_once('gettext.php'); diff --git a/web/template/tu_details.php b/web/template/tu_details.php index 035cc8d..b53797f 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -9,18 +9,18 @@

: - + N/A - +
- " . gmdate("Y-m-d H:i", $row['Submitted']) . "", "" . username_from_id($row['SubmitterID']) . "") ?> +
: - +

-- cgit v1.2.3-54-g00ecf