diff options
author | Andrew Dolgov <[email protected]> | 2008-02-23 06:39:36 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-02-23 06:39:36 +0100 |
commit | 93c841c4e52b938d97aff9f08956156c765b725c (patch) | |
tree | 567931f51ccd476eb183e0b24b54b0701b055194 | |
parent | c67d2990c7a54a6379fe2a134f947555461109bc (diff) |
extend no articles error messages
-rw-r--r-- | functions.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 3e6c0bcb1..b4a540e7e 100644 --- a/functions.php +++ b/functions.php @@ -5099,7 +5099,20 @@ } else { - if (!$offset) print "<div class='whiteBox'>".__('No articles found.')."</div>"; + $message = ""; + + switch ($view_mode) { + case "unread": + $message = __("No unread articles found to display."); + break; + case "marked": + $message = __("No starred articles found to display."); + break; + default: + $message = __("No articles found to display."); + } + + if (!$offset) print "<div class='whiteBox'>$message</div>"; } if (!$offset) { |