From 420e71280abdfbb990185de9b85b6c6ec061d73c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 19 Feb 2019 20:54:44 +0300 Subject: [PATCH] dbupdater: dojoify, add some missing translations --- classes/handler/public.php | 75 +++++++++++++++++++++----------------- 1 file changed, 42 insertions(+), 33 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 662e0b72f..2d3ce43e1 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -1049,23 +1049,38 @@ class Handler_Public extends Handler { exit; } - ?> + ?> + Database Updater - - - + + + - -
@@ -1080,28 +1095,29 @@ class Handler_Public extends Handler { if ($op == "performupdate") { if ($updater->isUpdateRequired()) { - print "

Performing updates

"; + print "

" . __("Performing updates") . "

"; - print "

Updating to schema version " . SCHEMA_VERSION . "

"; + print "

" . T_sprintf("Updating to schema version %d", SCHEMA_VERSION) . "

"; print ""; + print "".__("FAILED!").""; print_warning("One of the updates failed. Either retry the process or perform updates manually."); - print "

- + + print " +
"; return; } else { - print "OK!"; + print "".__("OK!").""; } } @@ -1109,25 +1125,21 @@ class Handler_Public extends Handler { print_notice("Your Tiny Tiny RSS database is now updated to the latest version."); - print "
"; - - print "

- -
"; + print "
+ +
"; } else { - print "

Your database is up to date.

"; + print_notice("Tiny Tiny RSS database is up to date."); - print "
"; - - print "

- + print " +
"; } } else { if ($updater->isUpdateRequired()) { - print "

Database update required

"; + print "

" . __("Database update required") . "

"; print_notice("

". sprintf("Your Tiny Tiny RSS database needs update to the latest version: %d to %d.", @@ -1138,19 +1150,16 @@ class Handler_Public extends Handler { print "
- +
"; } else { print_notice("Tiny Tiny RSS database is up to date."); - print "
"; - - print "

- + print " +
"; - } } ?>