In version:2.1.1, The PagingToolBar class has a bug that the message variable "pagingToolBar_afterPageText" is not used yet, in the browser it shows "paging{}", not "paing{} of {}", but in version 1.2, it's good.
so when initializing the variable afterText = new new LabelToolItem(after);, please pass the message value to it.
eg:
String after = null;
if (msgs.getAfterPageText() != null) {
after = Format.substitute(msgs.getAfterPageText(), "" + pages);
} else {
after = GXT.MESSAGES.pagingToolBar_afterPageText((int) pages);
}
afterText = new LabelToolItem(after);
BTW:
in file XMessages_zh.properties
pagingToolBar_beforePageText should be "第", not "页",
thank you, sven, i download version 2.2.0 and test it ,it's fixed,
but in XMessages_zh.properties file pagingToolBar_beforePageText's localization is still wrong,
in Chinese this variable should be "第",not "页" 。