为了使得产品能够符合不一样市场的本地化需求和语言,Kendo UI中的网格控件提供了一种方法,来帮助用户经过使用配置选项来本地化用户的界面。
html
工具栏控件的本地化 web
toolbar: [
//name - name of the available commands, text - text to be set on the button
{ name: "create", text: "Custom Create" },
{ name: "save", text: "Custom Save" },
{ name: "cancel", text: "Custom Cancel" }
] app
列命令的本地化 框架
columns: [
{ field: "FirstName", title: "First Name" },
{ field: "LastName", title: "Last Name" },
{ command: [
{
name: "edit",
text: { // sets the text of the "Edit", "Update" and "Cancel" buttons
edit: "CustomEdit",
update: "CustomUpdate",
cancel: "CustomCancel"
}
},
{ name: "destroy", text: "CustomDelete" } // sets the text of the "Delete" button
],
title: " "
}
] 工具
过滤器菜单本地化 spa
组头本地化
htm
列菜单本地化
get
页面本地化 产品