From 01e89f1b9400644c1a70b8147195512ab7375ed3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Dec 2006 06:20:02 +0100 Subject: opml.php: I18N --- opml.php | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/opml.php b/opml.php index 10220d43d..be7c1816d 100644 --- a/opml.php +++ b/opml.php @@ -100,15 +100,7 @@

-

Importing OPML...

"; - - if (WEB_DEMO_MODE) { - print "OPML import is disabled in demo-mode."; - print "

- Return to preferences

"; - - return; - } +

"._('Importing OPML...')."

"; if (is_file($_FILES['opml_file']['tmp_name'])) { $dom = domxml_open_file($_FILES['opml_file']['tmp_name']); @@ -152,7 +144,8 @@ if (db_num_rows($result) == 0) { - print "Adding category $cat_title...
"; + printf(_("Adding category %s..."), $cat_title); + print "
"; db_query($link, "INSERT INTO ttrss_feed_categories (title,owner_uid) @@ -197,7 +190,7 @@ (rss)"; if (db_num_rows($result) > 0) { - print "Already imported."; + print ""._("Already imported.").""; } else { if ($cat_id) { @@ -215,7 +208,7 @@ db_query($link, $add_query); - print "Done."; + print ""._('Done.').""; } print ""; @@ -226,18 +219,18 @@ print ""; } else { - print "
Error: can't find body element.
"; + print "
"._("Error: can't find body element.")."
"; } } else { - print "
Error while parsing document.
"; + print "
"._("Error while parsing document.")."
"; } } else { - print "
Error: please upload OPML file.
"; + print "
"._("Error: please upload OPML file.")."
"; } print "

- Return to preferences"; + "._("Return to preferences").""; print ""; -- cgit v1.2.3