diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-21 10:42:17 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-24 12:23:05 +0200 |
commit | d56a88897bcaa9d552d1d2b90c33b7c6e29e330a (patch) | |
tree | c497cc2c86ca4592496d16223ce4e231e5f44e6e /web/lib | |
parent | 6102759b7cb9fd23f4e7fa5f12137334ff30a410 (diff) | |
download | aur-d56a88897bcaa9d552d1d2b90c33b7c6e29e330a.tar.gz aur-d56a88897bcaa9d552d1d2b90c33b7c6e29e330a.tar.xz |
Avoid use of "<b>"/"</b>"
* Use "<label>"/"</label>" for form labels.
* Use "<strong>"/"</strong>" for important text.
* Use "<h4>"/"</h4>" for headings.
* Drop "<b>"/"</b>" everywhere else.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 12 | ||||
-rw-r--r-- | web/lib/feedcreator.class.php | 2 | ||||
-rw-r--r-- | web/lib/translator.inc.php | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 44cbfbd8..bce00f86 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.", - "<b>", htmlspecialchars($U,ENT_QUOTES), "</b>"); + "<strong>", htmlspecialchars($U,ENT_QUOTES), "</strong>"); } } 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.", - "<b>", htmlspecialchars($E,ENT_QUOTES), "</b>"); + "<strong>", htmlspecialchars($E,ENT_QUOTES), "</strong>"); } } 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.", - "<b>", htmlspecialchars($U,ENT_QUOTES), "</b>"); + "<strong>", htmlspecialchars($U,ENT_QUOTES), "</strong>"); } else { # account created/modified, tell them so. # print __("The account, %s%s%s, has been successfully created.", - "<b>", htmlspecialchars($U,ENT_QUOTES), "</b>"); + "<strong>", htmlspecialchars($U,ENT_QUOTES), "</strong>"); print "<p>\n"; print __("Click on the Login link above to use your account."); print "</p>\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.", - "<b>", htmlspecialchars($U,ENT_QUOTES), "</b>"); + "<strong>", htmlspecialchars($U,ENT_QUOTES), "</strong>"); } else { print __("The account, %s%s%s, has been successfully modified.", - "<b>", htmlspecialchars($U,ENT_QUOTES), "</b>"); + "<strong>", htmlspecialchars($U,ENT_QUOTES), "</strong>"); } } } diff --git a/web/lib/feedcreator.class.php b/web/lib/feedcreator.class.php index 1d57fac4..802eebbe 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 "<br /><b>Error creating feed file, please check write permissions.</b><br />";
+ echo "<br /><strong>Error creating feed file, please check write permissions.</strong><br />";
}
}
diff --git a/web/lib/translator.inc.php b/web/lib/translator.inc.php index 382160cc..2093cf79 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!", "<b>", "</b>"); +# print __("This is a %smajor%s problem!", "<strong>", "</strong>"); include_once('config.inc.php'); include_once('gettext.php'); |