]> git.wh0rd.org Git - tt-rss.git/commitdiff
backend.php: add some gettext work
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 20 Dec 2006 14:58:56 +0000 (15:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 20 Dec 2006 14:58:56 +0000 (15:58 +0100)
backend.php

index a9543d9fe7d4ea0789ef7291c2ad58de47580f42..34c2781d6bb352ebbb20c80e7ad4b262dc92a5b0 100644 (file)
        }
 
        $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";
                        $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'), 
 
                        if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder
 
-                       if (!$tags_str) $tags_str = '<span class="tagList">no tags</span>';
+                       if (!$tags_str) $tags_str = '<span class="tagList">'._('no tags').'</span>';
 
                        print "<div style='float : right'>$tags_str 
                                <a title=\"Edit tags for this article\" 
                        print "<div class=\"postContent\">";
                        
                        if (db_num_rows($tmp_result) > 0) {
-                               print "<div id=\"allEntryTags\">Tags: $f_tags_str</div>";
+                               print "<div id=\"allEntryTags\">"._('Tags:')."$f_tags_str</div>";
                        }
 
                        if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
                                "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1");
                
                        if (db_num_rows($result) == 0) {
-                               print "<div align='center'>
-                                       Feed not found.</div>";
+                               print "<div align='center'>"._('Feed not found.')."</div>";
                                return;
                        }
                }
                print "<div id=\"headlinesContainer\" $rtl_tag>";
 
                if (!$result) {
-                       print "<div align='center'>
-                               Could not display feed (query failed). Please check label match syntax or local configuration.</div>";
+                       print "<div align='center'>"._("Could not display feed (query failed). Please check label match syntax or local configuration.")."</div>";
                        return;
                }
        
 
 
                } else {
-                       print "<div class='whiteBox'>No articles found.</div>";
+                       print "<div class='whiteBox'>"._('No articles found.')."</div>";
                }
 
                print "</div>";