1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 03:31:33 +00:00

use plurals for comment/comments link in article, properly translate comments string, add feed title to article in zoom mode

This commit is contained in:
Andrew Dolgov
2013-09-02 12:58:14 +04:00
parent 9e04187845
commit ff04fe0625
3 changed files with 32 additions and 5 deletions

View File

@@ -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>";
}
}