]> git.wh0rd.org Git - tt-rss.git/commitdiff
extend no articles error messages
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 23 Feb 2008 05:39:36 +0000 (06:39 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 23 Feb 2008 05:39:36 +0000 (06:39 +0100)
functions.php

index 3e6c0bcb1eb68992f343918cf3fdc0831a630cec..b4a540e7ead8d598b7ff0b56b90d02fde47b6748 100644 (file)
 
 
                } 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) {