From: Andrew Dolgov Date: Sat, 23 Feb 2008 05:39:36 +0000 (+0100) Subject: extend no articles error messages X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=93c841c4e52b938d97aff9f08956156c765b725c;p=tt-rss.git extend no articles error messages --- 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) {