C# 如何翻译Mvc4。分页?

C# 如何翻译Mvc4。分页?,c#,asp.net-mvc,asp.net-mvc-4,paging,C#,Asp.net Mvc,Asp.net Mvc 4,Paging,我已经在我的网站上包含了Mvc4.Paging包,现在我需要翻译如下单词: 显示第51至53项,共53项 或 第1页,共5页 下面是分页代码: @Html.PagedListPager(Model, page => Url.Action("Index", new { page, searchBy = Request.QueryString["searchBy"], search = Request.QueryString["search"] } ), new PagedLi

我已经在我的网站上包含了Mvc4.Paging包,现在我需要翻译如下单词:

显示第51至53项,共53项

第1页,共5页

下面是分页代码:

   @Html.PagedListPager(Model, page => Url.Action("Index", new { page,
searchBy = Request.QueryString["searchBy"],
search = Request.QueryString["search"]
} ),

    new PagedListRenderOptions() { Display = PagedListDisplayMode.IfNeeded, DisplayPageCountAndCurrentLocation = true, DisplayItemSliceAndTotal = true }
)
如何将其翻译为在MVC项目视图中显示?

我找到了关于设置寻呼机格式的答案

或者代码如下所示:

 @Html.PagedListPager(Model, page => Url.Action("Index", new {
    page,
    searchBy = Request.QueryString["searchBy"],
    search = Request.QueryString["search"]
} ),

    new PagedListRenderOptions() {
        LinkToFirstPageFormat = "<< Прва",
        LinkToPreviousPageFormat = "< Претходна",
        LinkToNextPageFormat = "Следна >",
        LinkToLastPageFormat = "&Uacute;Последна >>",
        Display = PagedListDisplayMode.IfNeeded,
        DisplayPageCountAndCurrentLocation = true,
        PageCountAndCurrentLocationFormat = "Страна {0} од {1}.",
        DisplayItemSliceAndTotal = true,
        ItemSliceAndTotalFormat = "Прикажувам од {0} до {1} од вкупно {2}." }
)

没有寻呼机。不过,该页面显示了许多自定义文本标签的选项。你在说什么包裹?也许你在说?这也提供了很多定制选项,我安装了nuget Mvc4.Paging,使用PagedList;使用PagedList.Mvc;