Telerik GridView 控件的汉化

之前搜索这个控件的汉化时,都没有发现合适的汉化包,自己做了一个.

实现的思路就是基本都是telerik 官网的实现.

官网链接:http://docs.telerik.com/devtools/silverlight/common-localization

1.本地创建一个资源文件包GridViewResources

(不能上传文件,直接把键值对,拷贝在这里了,中文是随手翻译的,自己看着改)

ActivateRow	激活	Activate
BeginEdit	编辑	Begin Edit
BeginInsert	插入	Begin Insert
CancelCellEdit	取消单元格编辑	Cancel Cell Edit
CancelRowEdit	取消行编辑	Cancel Row Edit
CollapseHierarchyItem	收缩	Collapse
CommitCellEdit	提交单元格编辑	CommitCellEdit
CommitEdit	提交编辑	Commit Edit
Copy	复制	Copy
Delete	删除	Delete
ExpandHierarchyItem	展开	Expand
ExtendSelectionToCurrentUnit	选择至当前单元	Extends selection to current unit
GridViewClearFilter	清除过滤	Clear Filter
GridViewFilter	过滤	Filter
GridViewFilterAnd	以及	And
GridViewFilterContains	包含	Contains
GridViewFilterDoesNotContain	不包含	Does not contain
GridViewFilterEndsWith	结尾为	Ends with
GridViewFilterIsContainedIn	包括范围	Is contained in
GridViewFilterIsEmpty	为空字符串	Is empty
GridViewFilterIsEqualTo	等于	Is equal to
GridViewFilterIsGreaterThan	大于	Is greater than
GridViewFilterIsGreaterThanOrEqualTo	大于等于	Is greater than or equal to
GridViewFilterIsLessThan	小于	Is less than
GridViewFilterIsLessThanOrEqualTo	小于等于	Is less than or equal to
GridViewFilterIsNotContainedIn	不包括范围	Is not contained in
GridViewFilterIsNotEmpty	不为空字符串	Is not empty
GridViewFilterIsNotEqualTo	不等于	Is not equal to
GridViewFilterIsNotNull	不为空	Is not null
GridViewFilterIsNull	为空	Is null
GridViewFilterMatchCase	大小写	Match case
GridViewFilterOr	或者	Or
GridViewFilterSelectAll	全选	Select All
GridViewFilterShowRowsWithValueThat	显示包括此值的行	Show rows with value that
GridViewFilterStartsWith	开始为	Starts with
GridViewGroupPanelText	拖拽所需分组的列头于此	Drag a column header and drop it here to group by that column
GridViewGroupPanelTopTextGrouped	分组 :	Grouped by:
MoveBottom	最后	Move Bottom
MoveDown	下移	Move Down
MoveEnd	末项	Move End
MoveFirst	第一项	Move First
MoveHome	首项	Move Home
MoveLast	最后项	Move Last
MoveLeft	左移	Move Left
MoveNext	后一项	Move Next
MovePageDown	下一页	Move PageDown
MovePageUp	上一页	Move PageUp
MovePrevious	前一项	Move Previous
MoveRight	右移	Move Right
MoveTop	起始	Move Top
MoveUp	上移	Move Up
Paste	黏贴	Paste
SelectCurrentItem	当前项	Select Current Item
SelectCurrentUnit	当前单元	Select the current unit

  

 

 

2.加载到工程启动中..Over

   Thread.CurrentThread.CurrentCulture = new CultureInfo("zh-CN");
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CN");
                LocalizationManager.DefaultResourceManager = GridViewResources.ResourceManager;

 

转载于:https://www.cnblogs.com/Juniph/p/4253273.html

你可能感兴趣的:(Telerik GridView 控件的汉化)