From 865cde4eaa4e2123b9173a44b39e58f590670fe6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 21 Dec 2006 18:41:02 +0100 Subject: more I18N --- functions.php | 34 +++++++++++++++++----------------- logout.php | 6 +++--- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/functions.php b/functions.php index 22f2b00fa..b629526bc 100644 --- a/functions.php +++ b/functions.php @@ -2064,9 +2064,9 @@ function getFeedCatTitle($link, $id) { if ($id == -1) { - return "Special"; + return _("Special"); } else if ($id < -10) { - return "Labels"; + return _("Labels"); } else if ($id > 0) { $result = db_query($link, "SELECT ttrss_feed_categories.title FROM ttrss_feeds, ttrss_feed_categories WHERE ttrss_feeds.id = '$id' AND @@ -2074,7 +2074,7 @@ if (db_num_rows($result) == 1) { return db_fetch_result($result, 0, "title"); } else { - return "Uncategorized"; + return _("Uncategorized"); } } else { return "getFeedCatTitle($id) failed"; @@ -2084,7 +2084,7 @@ function getFeedTitle($link, $id) { if ($id == -1) { - return "Starred articles"; + return _("Starred articles"); } else if ($id < -10) { $label_id = -10 - $id; $result = db_query($link, "SELECT description FROM ttrss_labels WHERE id = '$label_id'"); @@ -2352,12 +2352,12 @@ $last_error = db_fetch_result($result, 0, "last_error"); if ($search) { - $feed_title = "Feed search results ($search, $feed_title)"; + $feed_title = _("Feed search results") . " ($search, $feed_title)"; } } } else if ($feed == -1) { - $feed_title = "Starred articles"; + $feed_title = _("Starred articles"); } else if ($feed < -10) { $label_id = -$feed - 11; $result = db_query($link, "SELECT description FROM ttrss_labels @@ -2365,7 +2365,7 @@ $feed_title = db_fetch_result($result, 0, "description"); if ($search) { - $feed_title = "Label search results ($search, $feed_title)"; + $feed_title = _("Label search results") . " ($search, $feed_title)"; } } else { $feed_title = "?"; @@ -2556,7 +2556,7 @@ } function prepare_headlines_digest($link, $user_id, $days = 1, $limit = 100) { - $tmp = "New headlines for last 24 hours, as of " . date("Y/m/d H:m") . "\n"; + $tmp = _("New headlines for last 24 hours, as of ") . date("Y/m/d H:m") . "\n"; $tmp .= "=======================================================\n\n"; if (DB_TYPE == "pgsql") { @@ -2600,9 +2600,9 @@ } $tmp .= "--- \n"; - $tmp .= "You have been sent this email because you have enabled daily digests in Tiny Tiny RSS at " . + $tmp .= _("You have been sent this email because you have enabled daily digests in Tiny Tiny RSS at ") . DIGEST_HOSTNAME . "\n". - "To unsubscribe, visit your configuration options or contact instance owner.\n"; + _("To unsubscribe, visit your configuration options or contact instance owner.\n"); return array($tmp, $headlines_count); @@ -2806,7 +2806,7 @@ /* virtual feeds */ if (get_pref($link, 'ENABLE_FEED_CATS')) { - print "
  • Special
  • "; + print "
  • "._('Special')."
  • "; print "