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:
@@ -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>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user