From 06719138737a450eba676864a004e6f4959b39c5 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov Error: your access level is insufficient to run this script. ".
+ __("Error: your access level is insufficient to run this script.")."
Database Updater
+
Tiny Tiny RSS database is up to date (version $version).
".__("Tiny Tiny RSS database is up to date.")."
"; print ""; return; } if (!$op) { - print "Warning: Please backup your database before proceeding.
"; + print "".__("Warning: Please backup your database before proceeding.")."
"; - print "Your Tiny Tiny RSS database needs update to the latest - version ($version —> $latest_version).
"; + print "" . T_sprintf("Your Tiny Tiny RSS database needs update to the latest version (%d to %d).", $version, $latest_version) . "
"; /* print "Available incremental updates:"; @@ -110,39 +110,39 @@ function confirmOP() { print "
"; } else if ($op == "do") { - print "Performing updates (from version $version)...
"; + print "".__("Performing updates...")."
"; $num_updates = 0; foreach (array_keys($update_versions) as $v) { if ($v == $version + 1) { - print "Updating to version $v...
"; + print "".T_sprintf("Updating to version %d...", $v)."
"; $fp = fopen($update_versions[$v], "r"); if ($fp) { while (!feof($fp)) { $query = trim(getline($fp, ";")); if ($query != "") { - print "QUERY: $query
"; + print "$query
"; db_query($link, $query); } } } fclose($fp); - print "Checking version... "; + print "
".__("Checking version... "); $result = db_query($link, "SELECT schema_version FROM ttrss_version"); $version = db_fetch_result($result, 0, "schema_version"); if ($version == $v) { - print "OK! ($version)"; + print __("OK!"); } else { - print "ERROR!"; + print "".__("ERROR!").""; return; } @@ -150,11 +150,11 @@ function confirmOP() { } } - print "
Finished. Performed $num_updates update(s) up to schema - version $version.
"; + print "".T_sprintf("Finished. Performed %d update(s) up to schema + version %d.", $num_updates, $version)."
"; print ""; } -- cgit v1.2.3-54-g00ecf