ChineseRadGridLocalizationProvider.cs

 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls.UI.Localization; namespace DragRow
{
public class ChineseRadGridLocalizationProvider : RadGridLocalizationProvider
{
/// <summary>
/// 重写的本地化取值方法。
/// </summary>
/// <param name="id">功能键值。</param>
/// <returns>本地化串。</returns>
public override string GetLocalizedString(string id)
{
switch (id)
{
case RadGridStringId.AddNewRowString:
return "点击添加新行";
case RadGridStringId.BestFitMenuItem:
return "自适应列宽";
case RadGridStringId.ClearValueMenuItem:
return "清 空";
case RadGridStringId.CompositeFilterFormErrorCaption:
return "多功能过滤器错误标题";
case RadGridStringId.ClearSortingMenuItem:
return "清除排序";
case RadGridStringId.CopyMenuItem:
return "复 制";
case RadGridStringId.ColumnChooserFormCaption:
return " 列选择表格标题";
case RadGridStringId.ColumnChooserFormMessage:
return "当前视图中,从网格中拖动列标题到这里并删除\n如果想加到网格中再次拖动即可";
case RadGridStringId.ColumnChooserMenuItem:
return "列选择";
case RadGridStringId.ConditionalFormattingBtnExpression:
return "表达式";
case RadGridStringId.ConditionalFormattingLblFormat:
return "标签格式";
case RadGridStringId.ConditionalFormattingPropertyGridCaseSensitive:
return "区分大小写";
case RadGridStringId.ConditionalFormattingPropertyGridCellBackColor:
return "背景色";
case RadGridStringId.ConditionalFormattingPropertyGridCellForeColor:
return "前景色";
case RadGridStringId.ConditionalFormattingPropertyGridEnabled:
return "启用";
case RadGridStringId.ConditionalFormattingPropertyGridRowBackColor:
return "行背景色";
case RadGridStringId.ConditionalFormattingPropertyGridRowForeColor:
return "行前景色";
case RadGridStringId.ConditionalFormattingPropertyGridRowTextAlignment:
return "行文本对齐";
case RadGridStringId.ConditionalFormattingPropertyGridTextAlignment:
return "文本对齐";
case RadGridStringId.ConditionalFormattingSortAlphabetically:
return "按字母顺序排序";
case RadGridStringId.ConditionalFormattingStartsWith:
return "起始为";
case RadGridStringId.ConditionalFormattingTextBoxExpression:
return "表达式";
case RadGridStringId.ConditionalFormattingMenuItem:
return "条件格式";
case RadGridStringId.ConditionalFormattingCaption:
return "条件格式标题";
case RadGridStringId.ConditionalFormattingLblColumn:
return "标签列:";
case RadGridStringId.ConditionalFormattingLblName:
return "标签名:";
case RadGridStringId.ConditionalFormattingLblType:
return "标签类型:";
case RadGridStringId.ConditionalFormattingRuleAppliesOn:
return "规则适用于:";
case RadGridStringId.ConditionalFormattingChooseOne:
return "选择一个";
case RadGridStringId.ConditionalFormattingCondition:
return "条件";
case RadGridStringId.ConditionalFormattingContains:
return "包含";
case RadGridStringId.ConditionalFormattingDoesNotContain:
return "不包含";
case RadGridStringId.ConditionalFormattingEndsWith:
return "结束于";
case RadGridStringId.ConditionalFormattingEqualsTo:
return "等于";
case RadGridStringId.ConditionalFormattingExpression:
return "表达式";
case RadGridStringId.ConditionalFormattingIsBetween:
return "之间";
case RadGridStringId.ConditionalFormattingIsGreaterThan:
return "大于";
case RadGridStringId.ConditionalFormattingIsGreaterThanOrEqual:
return "大于等于";
case RadGridStringId.ConditionalFormattingIsLessThan:
return "小于";
case RadGridStringId.ConditionalFormattingIsLessThanOrEqual:
return "小于等于";
case RadGridStringId.ConditionalFormattingIsNotBetween:
return "不在之间";
case RadGridStringId.ConditionalFormattingIsNotEqualTo:
return "不等于";
case RadGridStringId.ConditionalFormattingLblValue1:
return "标签值1:";
case RadGridStringId.ConditionalFormattingLblValue2:
return "标签值2:";
case RadGridStringId.ConditionalFormattingGrpConditions:
return "分组条件:";
case RadGridStringId.ConditionalFormattingGrpProperties:
return "分组属性";
case RadGridStringId.ConditionalFormattingChkApplyToRow:
return "选中适用于行";
case RadGridStringId.ConditionalFormattingBtnAdd:
return "添加";
case RadGridStringId.ConditionalFormattingBtnRemove:
return "删除";
case RadGridStringId.ConditionalFormattingBtnOK:
return "确定";
case RadGridStringId.ConditionalFormattingBtnCancel:
return "取消";
case RadGridStringId.ConditionalFormattingBtnApply:
return "应用";
case RadGridStringId.ConditionalFormattingChkApplyOnSelectedRows:
return "选中适用于选中行";
case RadGridStringId.CustomFilterDialogBtnCancel:
return "取消";
case RadGridStringId.CustomFilterDialogBtnOk:
return "确定";
case RadGridStringId.CustomFilterDialogFalse:
return "假";
case RadGridStringId.CustomFilterDialogRbAnd:
return "和";
case RadGridStringId.CustomFilterDialogRbOr:
return "或";
case RadGridStringId.CustomFilterDialogTrue:
return "真";
case RadGridStringId.CustomFilterMenuItem:
return "菜单项";
case RadGridStringId.CustomFilterDialogCheckBoxNot:
return "是 否";
case RadGridStringId.CustomFilterDialogLabel:
return "显示的列";
case RadGridStringId.CutMenuItem:
return "剪切";
case RadGridStringId.CustomFilterDialogCaption:
return "自定义条件";
case RadGridStringId.DeleteRowMenuItem:
return "删除行";
case RadGridStringId.EditMenuItem:
return "编 辑";
case RadGridStringId.ExpressionFormAndButton:
return "和";
case RadGridStringId.ExpressionFormCancelButton:
return "取消";
case RadGridStringId.ExpressionFormConstants:
return "包含";
case RadGridStringId.ExpressionFormDescription:
return "描述";
case RadGridStringId.ExpressionFormFields:
return "字段";
case RadGridStringId.ExpressionFormFunctions:
return "函数";
case RadGridStringId.ExpressionFormFunctionsAggregate:
return "合计";
case RadGridStringId.ExpressionFormFunctionsDateTime:
return "日期时间";
case RadGridStringId.ExpressionFormFunctionsLogical:
return "逻辑";
case RadGridStringId.ExpressionFormFunctionsMath:
return "数学";
case RadGridStringId.ExpressionFormFunctionsOther:
return "其它";
case RadGridStringId.ExpressionFormFunctionsText:
return "文本";
case RadGridStringId.ExpressionFormNotButton:
return "没有";
case RadGridStringId.ExpressionFormOKButton:
return "确定";
case RadGridStringId.ExpressionFormOperators:
return "运营商";
case RadGridStringId.ExpressionFormOrButton:
return "或";
case RadGridStringId.ExpressionFormResultPreview:
return "结果预览";
case RadGridStringId.ExpressionFormTitle:
return "主题";
case RadGridStringId.ExpressionFormTooltipAnd:
return "与";
case RadGridStringId.ExpressionFormTooltipDivide:
return "除以";
case RadGridStringId.ExpressionFormTooltipEqual:
return "等于";
case RadGridStringId.ExpressionFormTooltipGreater:
return "大于";
case RadGridStringId.ExpressionFormTooltipGreaterOrEqual:
return "大于等于";
case RadGridStringId.ExpressionFormTooltipLess:
return "小于";
case RadGridStringId.ExpressionFormTooltipLessOrEqual:
return "小于等于";
case RadGridStringId.ExpressionFormTooltipMinus:
return "减去";
case RadGridStringId.ExpressionFormTooltipModulo:
return "模";
case RadGridStringId.ExpressionFormTooltipMultiply:
return "乘以";
case RadGridStringId.ExpressionFormTooltipNot:
return "否";
case RadGridStringId.ExpressionFormTooltipNotEqual:
return "不等于";
case RadGridStringId.ExpressionFormTooltipOr:
return "或";
case RadGridStringId.ExpressionFormTooltipPlus:
return "加";
case RadGridStringId.ExpressionMenuItem:
return "表达式菜单项";
case RadGridStringId.HideGroupMenuItem:
return "隐藏分组菜单项";
case RadGridStringId.HideMenuItem:
return "隐 藏";
case RadGridStringId.PinAtBottomMenuItem:
return "页脚在下面的菜单项";
case RadGridStringId.PinAtTopMenuItem:
return "页脚顶部菜单项";
case RadGridStringId.UnpinRowMenuItem:
return "取消固定行菜单项";
case RadGridStringId.GroupByThisColumnMenuItem:
return "分 组";
case RadGridStringId.FilterFunctionContains:
return "包 含";
case RadGridStringId.FilterFunctionCustom:
return "自定义";
case RadGridStringId.FilterFunctionDoesNotContain:
return "不包含";
case RadGridStringId.FilterFunctionEndsWith:
return "以结尾";
case RadGridStringId.FilterFunctionEqualTo:
return "等 于";
case RadGridStringId.FilterFunctionGreaterThan:
return "大 于";
case RadGridStringId.FilterFunctionGreaterThanOrEqualTo:
return "大于等于";
case RadGridStringId.FilterFunctionLessThan:
return "小 于";
case RadGridStringId.FilterFunctionLessThanOrEqualTo:
return "小于等于";
case RadGridStringId.FilterFunctionNoFilter:
return "不过滤";
case RadGridStringId.FilterFunctionStartsWith:
return "以开头";
case RadGridStringId.FilterFunctionIsNull:
return "为 空";
case RadGridStringId.FilterFunctionIsEmpty:
return "空 串";
case RadGridStringId.FilterFunctionNotIsNull:
return "不为空";
case RadGridStringId.FilterFunctionNotIsEmpty:
return "不为空串";
case RadGridStringId.FilterFunctionNotEqualTo:
return "不等于";
case RadGridStringId.FilterFunctionNotBetween:
return "不在之间";
case RadGridStringId.FilterFunctionBetween:
return "在之间";
case RadGridStringId.FilterOperatorBetween:
return "在之间";
case RadGridStringId.FilterOperatorContains:
return "包 含";
case RadGridStringId.FilterOperatorDoesNotContain:
return "不包含";
case RadGridStringId.FilterOperatorEndsWith:
return "以结尾";
case RadGridStringId.FilterOperatorEqualTo:
return "等 于";
case RadGridStringId.FilterOperatorGreaterThan:
return "大 于";
case RadGridStringId.FilterOperatorGreaterThanOrEqualTo:
return "大于等于";
case RadGridStringId.FilterOperatorIsEmpty:
return "空 串";
case RadGridStringId.FilterOperatorIsNull:
return "为 空";
case RadGridStringId.FilterOperatorLessThan:
return "小 于";
case RadGridStringId.FilterOperatorLessThanOrEqualTo:
return "小于等于";
case RadGridStringId.FilterOperatorNoFilter:
return "不过滤";
case RadGridStringId.FilterOperatorNotBetween:
return "不在之间";
case RadGridStringId.FilterOperatorNotEqualTo:
return "不等于";
case RadGridStringId.FilterOperatorNotIsEmpty:
return "不是空串";
case RadGridStringId.FilterOperatorNotIsNull:
return "不为空";
case RadGridStringId.FilterOperatorStartsWith:
return "以开头";
case RadGridStringId.FilterOperatorIsLike:
return "包 含";
case RadGridStringId.FilterOperatorNotIsLike:
return "不包含";
case RadGridStringId.FilterOperatorIsContainedIn:
return "包含在内";
case RadGridStringId.FilterOperatorNotIsContainedIn:
return "不包含在内";
case RadGridStringId.FilterOperatorCustom:
return "自定义";
case RadGridStringId.FilterCompositeNotOperator:
return "Not";
case RadGridStringId.FilterFunctionDuringLast7days:
return "最后7天";
case RadGridStringId.FilterFunctionSelectedDates:
return "选择日期";
case RadGridStringId.FilterFunctionToday:
return "今天";
case RadGridStringId.FilterFunctionYesterday:
return "昨天";
case RadGridStringId.FilterLogicalOperatorAnd:
return "与";
case RadGridStringId.FilterLogicalOperatorOr:
return "或";
case RadGridStringId.FilterMenuAvailableFilters:
return "可用过滤器";
case RadGridStringId.FilterMenuButtonCancel:
return "取消";
case RadGridStringId.FilterMenuButtonOK:
return "确定";
case RadGridStringId.FilterMenuClearFilters:
return "清除过滤器";
case RadGridStringId.FilterMenuSearchBoxText:
return "搜索框";
case RadGridStringId.FilterMenuSelectionAll:
return "选择全部";
case RadGridStringId.FilterMenuSelectionAllSearched:
return "选择全部搜索";
case RadGridStringId.FilterMenuSelectionNotNull:
return "不能为空";
case RadGridStringId.FilterMenuSelectionNull:
return "空";
case RadGridStringId.GroupingPanelDefaultMessage:
return "拖一列到面板进行分组";
case RadGridStringId.GroupingPanelHeader:
return "分 组";
case RadGridStringId.NoDataText:
return "没有数据";
case RadGridStringId.PinMenuItem:
return "锁定状态";
case RadGridStringId.PinAtLeftMenuItem:
return "左锁定";
case RadGridStringId.PinAtRightMenuItem:
return "右锁定";
case RadGridStringId.PasteMenuItem:
return "粘 贴";
case RadGridStringId.SortAscendingMenuItem:
return "升 序";
case RadGridStringId.SortDescendingMenuItem:
return "降 序";
case RadGridStringId.UngroupThisColumn:
return "取消分组";
case RadGridStringId.UnpinMenuItem:
return "解 锁"; default:
return base.GetLocalizedString(id);
}
}
}
}

Form1.cs

using System;
using System.Windows.Forms;
using Telerik.WinControls.UI.Localization; namespace DragRow
{
public partial class Form1 : Form
{ RadGridLocalizationProvider _oldProvider;
public Form1()
{
InitializeComponent(); _oldProvider = RadGridLocalizationProvider.CurrentProvider;
RadGridLocalizationProvider.CurrentProvider = new ChineseRadGridLocalizationProvider();
} private void Form1_Load(object sender, EventArgs e)
{
} private void radGridView1_Click(object sender, EventArgs e)
{ } }
}

结束语:可能对RadGrid汉化不全面,希望网友批评指正!

Telerik_2012_Q3 RadGrid 汉化的更多相关文章

  1. 真正的汉化-PowerDesigner 16.5 汉化

    一.背景 经常使用PowerDesigner,之前使用15版本,后来16出来后,就一直在使用16,不过一直是英文.一些同事对使用英文版总显示有些吃力. 遍寻百度.必应,都没有找到真正的针对版本16的汉 ...

  2. CentOS下Zabbix安装部署及汉化

    搭建环境:Centos6.5_x86_64,Zabbix2.4.5,epel 源 服务端: 1.安装开发软件包yum -y groupinstall "Development Tools&q ...

  3. pycharm2016.3.1激活及汉化

    pycharm快捷键 PyCharm设置python新建文件指定编码为utf-8 Python | 设置PyCharm支持中文 0, 注册码 43B4A73YYJ-eyJsaWNlbnNlSWQiOi ...

  4. jquery dataTable汉化(插件形式)

    1.jquery dataTable.js 官网:http://datatables.net/ 中文:http://dt.thxopen.com/ 2.汉化提示信息(放到xx.js中,引入即可) 注: ...

  5. ENGLISH抠脚童鞋的福利--GitHub汉化插件

    今天在某前端群看到一个插件,激动万分啊!我就把插件使用实现的步骤分享一下! 打开chrome浏览器输入地址:chrome://extensions/ : 跳转到其他页面,点击左上角--扩展程序: 将T ...

  6. TinyMCE的使用(包括汉化及本地图片上传功能)

    TinyMCE我就不多介绍了,这是下载地址:https://www.tinymce.com/download/ 下载下来是英文版,要汉化也很简单.首先去网上随便下载个汉化包,然后把汉化包解压后的lan ...

  7. ERDAS 2014安装破解及汉化图文教程

    关于ERDAS 2014 的安装破解及其汉化过程: 说明:汉化只是之针对英语能力不能正常满足使用软件的朋友们.如果英语过专八,完全没有必要汉化!在此之前查了好多关于ERDAS汉化的文档,可惜只是简单的 ...

  8. [No000095].Net入门级逆向工程-1.SpreadsheetGear汉化

    一.SpreadsheetGear汉化 最近,我们的有个项目要用到表格功能,由于历(la)史(ji)遗(kuang)留(jia)的问题,我们不得不用第三方的一个插件SpreadsheetGear来实现 ...

  9. Linux下Source Insight的安装和汉化

    原创文章,转载请注明出处. 工欲善其事,必先利其器.Source Insight绝对是阅读C和C++代码的利器,另外,Source Insight的体量很小,安装便捷,显示直观,比vim+cscope ...

随机推荐

  1. poj 2186 强连通分支 和 spfa

    思路: 建图时,分别建正向图edge和转置图T.用正向图edge来DFS,找出第一个被发现的强连通分支(如果该图存在题目要求的点,那么一定就是第一个被发现的).然后用spfa跑转置图T,判断被发现的点 ...

  2. pre 随变化的样式

    <pre style="white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-sp ...

  3. document.ready和onload的区别

    转自:http://holysonll.blog.163.com/blog/static/2141390932013411112823855/ document.ready和onload的区别——Ja ...

  4. asp自动解析网页中的图片地址,并将其保存到本地服务器

    程序实现功能:自动将远程页面的文件中的图片下载到本地. 程序代码 <% '将本文保存为 save2local.asp '测试:save2local.asp?url=http://ent.sina ...

  5. Unity 5.4大赞:HTC Vive经典The lab渲染器开源

    HTC Vive提供了一个不错的免费VR demo,最近1周仔细体验了一番. 仔细看了其安装文件,竟然是Unity 5.4beta版本(通过查log,知道Valve公司用的是最新的5.4.0b11版本 ...

  6. OC6-网址分割

    // // HtmlManger.h // OC6-网址分割 // // Created by qianfeng on 15/6/17. // Copyright (c) 2015年 qianfeng ...

  7. 线程模式HS/HA和L/F的区别, HS/HA的实现原理图

    线程池模式一般分为两种:L/F领导者与跟随者模式.HS/HA半同步/半异步模式. HS/HA 半同步/ 半异步模式 :分为三层,同步层.队列层.异步层,又称为生产者消费者模式,主线程处理I/O事件并解 ...

  8. Nginx日志按天分割

    核心思想:使用crontab在每日23:59执行日志分割. 1.配置nginx日志信息,vim /etc/logrotate.d/nginx /var/log/nginx/*.log { nocomp ...

  9. 串操作,C++实现

    对串的基本操作都全已经实现 对kmp,kf字符串替换等功能全都已经实现 由于时间原因.没来得及注释,希望大家参考见谅. 串操作hstring.h头文件实现 //kallen 1 #ifndef _HS ...

  10. css定义的权重

    以下是权重的规则:标签的权重为1,class的权重为10,id的权重为100,以下例子是演示各种定义的权重值: /*权重为1*/        div{        }        /*权重为10 ...