]> git.wh0rd.org - tt-rss.git/blobdiff - errors.php
try to detect sanity check abnormalities (caused by Firebug)
[tt-rss.git] / errors.php
index 603ef7056fd0201ba165c7a85e6ea93e83bd6a4f..9fb028ecac9024e710d02f084dc9797545c615ac 100644 (file)
@@ -1,28 +1,32 @@
-<?
-       $ERRORS[0] = "Unknown error";
+<?php
 
-       $ERRORS[1] = "This program requires XmlHttpRequest " .
-                       "to function properly. Your browser doesn't seem to support it.";
+       $ERRORS[0] = __("Unknown error");
 
-       $ERRORS[2] = "This program requires cookies " .
-                       "to function properly. Your browser doesn't seem to support them.";
+       $ERRORS[1] = __("This program requires XmlHttpRequest " .
+                       "to function properly. Your browser doesn't seem to support it.");
 
-       $ERRORS[3] = "Backend sanity check failed";
+       $ERRORS[2] = __("This program requires cookies " .
+                       "to function properly. Your browser doesn't seem to support them.");
 
-       $ERRORS[4] = "Frontend sanity check failed.";
+       $ERRORS[3] = __("Backend sanity check failed");
 
-       $ERRORS[5] = "Incorrect database schema version.";
+       $ERRORS[4] = __("Frontend sanity check failed.");
 
-       $ERRORS[6] = "Request not authorized.";
+       $ERRORS[5] = __("Incorrect database schema version. &lt;a href='update.php'&gt;Please update&lt;/a&gt;.");
 
-       $ERRORS[7] = "No operation to perform.";
+       $ERRORS[6] = __("Request not authorized.");
 
-       $ERRORS[8] = "Could not display feed: query failed. Please check label match syntax or local configuration.";
+       $ERRORS[7] = __("No operation to perform.");
 
-       $ERRORS[8] = "Denied. Your access level is insufficient to access this page.";
+       $ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration.");
 
-       $ERRORS[9] = "Configuration check failed";
+       $ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
 
-       $ERRORS[10] = "Your version of MySQL is not currently supported. Please see 
-               official site for more information.";
+       $ERRORS[9] = __("Configuration check failed");
+
+       $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see 
+               official site for more information.");
+
+       $ERRORS[11] = __("Sanity check request received twice. You could be running
+               Firebug or some other disrupting extension. Please turn it off.");
 ?>