From b869934543c8d50a9580f47c0c41917fe63da413 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Dec 2006 15:58:56 +0100 Subject: [PATCH] backend.php: add some gettext work --- backend.php | 48 +++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/backend.php b/backend.php index a9543d9f..34c2781d 100644 --- a/backend.php +++ b/backend.php @@ -59,28 +59,28 @@ } $purge_intervals = array( - 0 => "Use default", - -1 => "Never purge", - 5 => "1 week old", - 14 => "2 weeks old", - 31 => "1 month old", - 60 => "2 months old", - 90 => "3 months old"); + 0 => _("Use default"), + -1 => _("Never purge"), + 5 => _("1 week old"), + 14 => _("2 weeks old"), + 31 => _("1 month old"), + 60 => _("2 months old"), + 90 => _("3 months old")); $update_intervals = array( - 0 => "Use default", - -1 => "Disable updates", - 30 => "Each 30 minutes", - 60 => "Hourly", - 240 => "Each 4 hours", - 720 => "Each 12 hours", - 1440 => "Daily", - 10080 => "Weekly"); + 0 => _("Use default"), + -1 => _("Disable updates"), + 30 => _("Each 30 minutes"), + 60 => _("Hourly"), + 240 => _("Each 4 hours"), + 720 => _("Each 12 hours"), + 1440 => _("Daily"), + 10080 => _("Weekly"); $access_level_names = array( - 0 => "User", - 10 => "Administrator"); + 0 => _("User"), + 10 => _("Administrator")); require_once "modules/pref-prefs.php"; require_once "modules/popup-dialog.php"; @@ -216,7 +216,7 @@ $entry_author = $line["author"]; if ($entry_author) { - $entry_author = " - by $entry_author"; + $entry_author = _(" - by ") . $entry_author; } $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), @@ -258,7 +258,7 @@ if (!$entry_comments) $entry_comments = " "; # placeholder - if (!$tags_str) $tags_str = 'no tags'; + if (!$tags_str) $tags_str = ''._('no tags').''; print "
$tags_str "; if (db_num_rows($tmp_result) > 0) { - print "
Tags: $f_tags_str
"; + print "
"._('Tags:')."$f_tags_str
"; } if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) { @@ -324,8 +324,7 @@ "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1"); if (db_num_rows($result) == 0) { - print "
- Feed not found.
"; + print "
"._('Feed not found.')."
"; return; } } @@ -391,8 +390,7 @@ print "
"; if (!$result) { - print "
- Could not display feed (query failed). Please check label match syntax or local configuration.
"; + print "
"._("Could not display feed (query failed). Please check label match syntax or local configuration.")."
"; return; } @@ -570,7 +568,7 @@ } else { - print "
No articles found.
"; + print "
"._('No articles found.')."
"; } print "
"; -- 2.39.5