From 06719138737a450eba676864a004e6f4959b39c5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Mar 2007 12:02:19 +0100 Subject: opml.php: fix typo, update.php: i18n --- update.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index 41206dc75..4f7a097c0 100644 --- a/update.php +++ b/update.php @@ -20,7 +20,8 @@ $owner_uid = $_SESSION["uid"]; if ($_SESSION["access_level"] < 10) { - print "

Error: your access level is insufficient to run this script.

"; + print "

". + __("Error: your access level is insufficient to run this script.")."

"; exit; } @@ -39,13 +40,13 @@ -

Database Updater

+

Tiny Tiny RSS database is up to date (version $version).

"; + print "

".__("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