+
+ $ERRORS[13] = __("Method not found");
+
+ $ERRORS[14] = __("Plugin not found");
+
+ if ($_REQUEST['mode'] == 'js') {
+ header("Content-Type: text/javascript; charset=UTF-8");
+
+ print "var ERRORS = [];\n";
+
+ foreach ($ERRORS as $id => $error) {
+
+ $error = preg_replace("/\n/", "", $error);
+ $error = preg_replace("/\"/", "\\\"", $error);
+
+ print "ERRORS[$id] = \"$error\";\n";
+ }
+ }