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/lib/acctfuncs.inc.php | 12 ++++++------ web/lib/feedcreator.class.php | 2 +- web/lib/translator.inc.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'web/lib') 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'); -- cgit v1.2.3-54-g00ecf