summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-09-02 12:58:14 +0400
committerAndrew Dolgov <[email protected]>2013-09-02 12:58:14 +0400
commitff04fe06250b7640b62379708b27ae31630150a0 (patch)
tree8c2dd2159829c084cac463c08999cf67117e03e6 /classes/feeds.php
parent9e04187845472b24d40eb364205f8ea8bedeceba (diff)
use plurals for comment/comments link in article, properly translate comments string, add feed title to article in zoom mode
Diffstat (limited to 'classes/feeds.php')
-rw-r--r--classes/feeds.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 3b765d6bd..394444345 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -701,10 +701,13 @@ class Feeds extends Handler_Protected {
} else {
$comments_url = htmlspecialchars($line["link"]);
}
- $entry_comments = "<a target='_blank' href=\"$comments_url\">$num_comments comments</a>";
+ $entry_comments = "<a class=\"postComments\"
+ target='_blank' href=\"$comments_url\">$num_comments ".
+ _ngettext("comment", "comments", $num_comments)."</a>";
+
} else {
if ($line["comments"] && $line["link"] != $line["comments"]) {
- $entry_comments = "<a target='_blank' href=\"".htmlspecialchars($line["comments"])."\">comments</a>";
+ $entry_comments = "<a class=\"postComments\" target='_blank' href=\"".htmlspecialchars($line["comments"])."\">".__("comments")."</a>";
}
}