From 93c841c4e52b938d97aff9f08956156c765b725c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 23 Feb 2008 06:39:36 +0100 Subject: [PATCH] extend no articles error messages --- functions.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 3e6c0bcb..b4a540e7 100644 --- a/functions.php +++ b/functions.php @@ -5099,7 +5099,20 @@ } else { - if (!$offset) print "
".__('No articles found.')."
"; + $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 "
$message
"; } if (!$offset) { -- 2.39.5