我已经在我的网站上包含了Mvc4.寻呼包,现在我需要翻译如下:
显示53项中的51至53项。
或
第5页第1页
下面是分页的代码:
@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项目的视图中显示?
发布于 2017-05-13 09:54:49
我在这个链接:上创建了关于格式化寻呼机的答案
或者代码看起来是这样的:
@Html.PagedListPager(Model, page => Url.Action("Index", new {
page,
searchBy = Request.QueryString["searchBy"],
search = Request.QueryString["search"]
} ),
new PagedListRenderOptions() {
LinkToFirstPageFormat = "<< Прва",
LinkToPreviousPageFormat = "< Претходна",
LinkToNextPageFormat = "Следна >",
LinkToLastPageFormat = "ÚПоследна >>",
Display = PagedListDisplayMode.IfNeeded,
DisplayPageCountAndCurrentLocation = true,
PageCountAndCurrentLocationFormat = "Страна {0} од {1}.",
DisplayItemSliceAndTotal = true,
ItemSliceAndTotalFormat = "Прикажувам од {0} до {1} од вкупно {2}." }
)https://stackoverflow.com/questions/43924064
复制相似问题