Using T.Plural in code

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-06-09 15:39:35 -07:00
parent a190d9bc64
commit 85a0f45c5d
11 changed files with 25 additions and 17 deletions

View File

@@ -2,9 +2,10 @@
<%@ Import Namespace="Orchard.Comments"%>
<%@ Import Namespace="Orchard.Security" %>
<%@ Import Namespace="Orchard.Comments.Models" %>
<%-- todo: clean up this template - waaay too much going on in here :/ --%><%
if (Model.Comments.Count > 0) { %>
<h2 id="comments"><%: T("{0} Comment{1}", Model.Comments.Count, Model.Comments.Count == 1 ? "" : "s")%></h2>
<h2 id="comments"><%: T.Plural("1 Comment", "{0} Comments", Model.Comments.Count)%></h2>
<% Html.RenderPartial("ListOfComments", Model.Comments);
}