From d1db26aa1c18130accf6e536a063efadbab65a1d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 5 Mar 2007 09:45:38 +0100 Subject: [PATCH] change _() to __() (use php-gettext) --- backend.php | 46 ++++++++++++++++++------------------- errors.php | 24 +++++++++---------- functions.php | 52 +++++++++++++++++++++--------------------- opml.php | 2 +- prefs.php | 20 ++++++++-------- sanity_check.php | 24 +++++++++---------- tt-rss.php | 50 ++++++++++++++++++++-------------------- update-translations.sh | 2 +- 8 files changed, 110 insertions(+), 110 deletions(-) diff --git a/backend.php b/backend.php index d2f3d356..1f0cf2e8 100644 --- a/backend.php +++ b/backend.php @@ -79,28 +79,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"; @@ -221,7 +221,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'), @@ -263,7 +263,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')) { @@ -332,7 +332,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; } } @@ -401,7 +401,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; } @@ -599,7 +599,7 @@ } else { - print "
"._('No articles found.')."
"; + print "
".__('No articles found.')."
"; } print "
"; diff --git a/errors.php b/errors.php index bab8647d..16efd09a 100644 --- a/errors.php +++ b/errors.php @@ -1,28 +1,28 @@ diff --git a/functions.php b/functions.php index 2e97ddb2..a90eed18 100644 --- a/functions.php +++ b/functions.php @@ -2001,7 +2001,7 @@ print " - - - + + + - - - - + + + + - + - + - - + + - - + +
- + - + - + 15, 30 => 30, 60 => 60, 0 => "All"); @@ -190,7 +190,7 @@ window.onload = init; + value="">
@@ -204,11 +204,11 @@ window.onload = init;
-
+
 
-
+