From 31cc42f602d569e3dd0592ea574767e73cd21f8b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 5 Mar 2007 10:37:40 +0100 Subject: more I18N work --- modules/pref-feeds.php | 74 +++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'modules/pref-feeds.php') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 0797b2bbd..256bbbd1f 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -35,7 +35,7 @@ } if (count($subscribed) > 0) { - $msg = "Subscribed to feeds:". + $msg = "".__('Subscribed to feeds:')."". ""; print "
+ onclick=\"feedBrowserSubscribe()\" value=\"".__('Subscribe')."\">
"; + onclick=\"closeInfoBox()\" value=\"".__('Cancel')."\">"; print ""; return; @@ -142,7 +142,7 @@ $feed_icon = ""; } - print "
Feed editor
"; + print "
".__('Feed editor')."
"; print "
"; @@ -154,7 +154,7 @@ print ""; - print ""; + print ""; print ""; @@ -162,7 +162,7 @@ $feed_url = htmlspecialchars(db_unescape_string(db_fetch_result($result, 0, "feed_url"))); - print ""; + print ""; print ""; @@ -170,7 +170,7 @@ $cat_id = db_fetch_result($result, 0, "cat_id"); - print ""; + print ""; print ""; + print ""; print ""; - print ""; + print ""; print ""; + print ""; print ""; $auth_pass = escape_for_form(db_fetch_result($result, 0, "auth_pass")); - print ""; + print ""; print ""; @@ -280,9 +280,9 @@ $checked = ""; } - print ""; + print ""; print ""; @@ -326,9 +326,9 @@ print "
+ onclick=\"return feedEditSave()\" value=\"".__('Save')."\">
"; + onclick=\"return feedEditCancel()\" value=\"".__('Cancel')."\">"; print ""; @@ -443,9 +443,9 @@ } if (subscribe_to_feed($link, $feed_url, $cat_id)) { - print format_notice("Subscribed to $feed_url."); + print format_notice(printf(__("Subscribed to %s."), $feed_url)); } else { - print format_warning("Already subscribed to $feed_url."); + print format_warning(printf(__("Already subscribed to %s."), $feed_url)); } if ($p_from != 'tt-rss') { @@ -513,7 +513,7 @@ if ($subop == "editCats") { - print "
Category editor
"; + print "
".__('Category editor')."
"; print "
"; @@ -547,7 +547,7 @@ } else { - print format_warning("Category $feed_cat already exists in the database."); + print format_warning(printf(__("Category $%s already exists in the database."), $feed_cat)); } } @@ -574,7 +574,7 @@ WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]); } else { - print format_warning("Unable to delete non empty feed categories."); + print format_warning(__("Unable to delete non empty feed categories.")); } @@ -591,7 +591,7 @@ size=\"40\"> 
"; + onclick=\"javascript:addFeedCat()\" value=\"".__('Create category')."\">"; $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories WHERE owner_uid = ".$_SESSION["uid"]." @@ -691,27 +691,27 @@ print ""; } else { - print "

No feed categories defined.

"; + print "

".__('No feed categories defined.')."

"; } print "
"; + onclick=\"selectTab('feedConfig')\" value=\"".__('Close this window')."\">"; print "
"; if ($action == "edit") { print " + onclick=\"return feedCatEditSave()\" value=\"".__('Save')."\"> "; + onclick=\"return feedCatEditCancel()\" value=\"".__('Cancel')."\">"; } else { print " + onclick=\"return editSelectedFeedCat()\" value=\"".__('Edit')."\"> "; + onclick=\"return removeSelectedFeedCats()\" value=\"".__('Remove')."\">"; } print "
"; @@ -731,8 +731,8 @@ if ($num_errors > 0) { - print format_notice(" - Some feeds have update errors (click for details)"); + print format_notice("". + __('Some feeds have update errors (click for details)').""); } $feed_search = db_escape_string($_GET["search"]); -- cgit v1.2.3
Title:
".__('Title:')."
Feed URL:
".__('Feed URL:')."
Category:
".__('Category:').""; $parent_feed = db_fetch_result($result, 0, "parent_feed"); @@ -190,7 +190,7 @@ $update_interval = db_fetch_result($result, 0, "update_interval"); - print "
Update Interval:
".__('Update Interval:').""; @@ -199,7 +199,7 @@ print "
Link to:"; + print "
".__('Link to:').""; $tmp_result = db_query($link, "SELECT COUNT(id) AS count FROM ttrss_feeds WHERE parent_feed = '$feed_id'"); @@ -216,7 +216,7 @@ print "
Article purging:
".__('Article purging:').""; @@ -261,13 +261,13 @@ $auth_login = escape_for_form(db_fetch_result($result, 0, "auth_login")); - print "
Login:
".__('Login:')."
Password:
".__('Password:')."
Options:
".__('Options:').""; + $checked>"; $rtl_content = sql_bool_to_bool(db_fetch_result($result, 0, "rtl_content")); @@ -304,7 +304,7 @@ } print "
"; + $checked>"; $include_in_digest = sql_bool_to_bool(db_fetch_result($result, 0, "include_in_digest")); @@ -316,7 +316,7 @@ print "
"; + $checked>"; print "