From: Andrew Dolgov Date: Mon, 5 Mar 2007 09:37:40 +0000 (+0100) Subject: more I18N work X-Git-Tag: 1.2.9~36 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=31cc42f602d569e3dd0592ea574767e73cd21f8b;p=tt-rss.git more I18N work --- diff --git a/modules/help.php b/modules/help.php index 90c63cfb..751d6082 100644 --- a/modules/help.php +++ b/modules/help.php @@ -13,21 +13,21 @@ $tid = sprintf("%d", $_GET["tid"]); - print "
Help
"; + print "
".__('Help')."
"; print "
"; if (file_exists("help/$tid.php")) { include("help/$tid.php"); } else { - print "

Help topic not found.

"; + print "

".__("Help topic not found.")."

"; } print "
"; print "
"; + onclick=\"closeInfoBox()\" value=\"".__('Close this window')."\">"; if (!$_GET["noheaders"]) { print ""; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 0797b2bb..256bbbd1 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"]);
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 "