From: Andrew Dolgov Date: Tue, 26 Dec 2006 05:20:02 +0000 (+0100) Subject: opml.php: I18N X-Git-Tag: 1.2.7~12 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=01e89f1b9400644c1a70b8147195512ab7375ed3;p=tt-rss.git opml.php: I18N --- diff --git a/opml.php b/opml.php index 10220d43..be7c1816 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 "";