c# - IPagedList localization -


i'm using third party component (ipagedlist ) implement pagination. works fine, need localize message example

showing items 11 through 11 of 11. 

this message text generated using pagedlistrenderoptions.minimalwithitemcounttext

use following code set custom localized format:

var options = new pagedlistrenderoptions(); options.pagecountandcurrentlocationformat = "page {0} of {1}."; //your custom string goes gere options.itemsliceandtotalformat = "showing items {0} through {1} of {2}."; 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -