首页 > 代码库 > Telerik GridView 控件的汉化

Telerik GridView 控件的汉化

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

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

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

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

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

ActivateRow	激活	ActivateBeginEdit	编辑	Begin EditBeginInsert	插入	Begin InsertCancelCellEdit	取消单元格编辑	Cancel Cell EditCancelRowEdit	取消行编辑	Cancel Row EditCollapseHierarchyItem	收缩	CollapseCommitCellEdit	提交单元格编辑	CommitCellEditCommitEdit	提交编辑	Commit EditCopy	复制	CopyDelete	删除	DeleteExpandHierarchyItem	展开	ExpandExtendSelectionToCurrentUnit	选择至当前单元	Extends selection to current unitGridViewClearFilter	清除过滤	Clear FilterGridViewFilter	过滤	FilterGridViewFilterAnd	以及	AndGridViewFilterContains	包含	ContainsGridViewFilterDoesNotContain	不包含	Does not containGridViewFilterEndsWith	结尾为	Ends withGridViewFilterIsContainedIn	包括范围	Is contained inGridViewFilterIsEmpty	为空字符串	Is emptyGridViewFilterIsEqualTo	等于	Is equal toGridViewFilterIsGreaterThan	大于	Is greater thanGridViewFilterIsGreaterThanOrEqualTo	大于等于	Is greater than or equal toGridViewFilterIsLessThan	小于	Is less thanGridViewFilterIsLessThanOrEqualTo	小于等于	Is less than or equal toGridViewFilterIsNotContainedIn	不包括范围	Is not contained inGridViewFilterIsNotEmpty	不为空字符串	Is not emptyGridViewFilterIsNotEqualTo	不等于	Is not equal toGridViewFilterIsNotNull	不为空	Is not nullGridViewFilterIsNull	为空	Is nullGridViewFilterMatchCase	大小写	Match caseGridViewFilterOr	或者	OrGridViewFilterSelectAll	全选	Select AllGridViewFilterShowRowsWithValueThat	显示包括此值的行	Show rows with value thatGridViewFilterStartsWith	开始为	Starts withGridViewGroupPanelText	拖拽所需分组的列头于此	Drag a column header and drop it here to group by that columnGridViewGroupPanelTopTextGrouped	分组 :	Grouped by:MoveBottom	最后	Move BottomMoveDown	下移	Move DownMoveEnd	末项	Move EndMoveFirst	第一项	Move FirstMoveHome	首项	Move HomeMoveLast	最后项	Move LastMoveLeft	左移	Move LeftMoveNext	后一项	Move NextMovePageDown	下一页	Move PageDownMovePageUp	上一页	Move PageUpMovePrevious	前一项	Move PreviousMoveRight	右移	Move RightMoveTop	起始	Move TopMoveUp	上移	Move UpPaste	黏贴	PasteSelectCurrentItem	当前项	Select Current ItemSelectCurrentUnit	当前单元	Select the current unit

  

 

 

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

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

 

Telerik GridView 控件的汉化