博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Telerik_2012_Q3 RadGrid 汉化
阅读量:6180 次
发布时间:2019-06-21

本文共 19472 字,大约阅读时间需要 64 分钟。

ChineseRadGridLocalizationProvider.cs

1 using System;  2 using System.Collections.Generic;  3 using System.Linq;  4 using System.Text;  5 using Telerik.WinControls.UI.Localization;  6   7 namespace DragRow  8 {  9     public class ChineseRadGridLocalizationProvider : RadGridLocalizationProvider 10     { 11         ///  12         /// 重写的本地化取值方法。 13         ///  14         /// 功能键值。 15         /// 
本地化串。
16 public override string GetLocalizedString(string id) 17 { 18 switch (id) 19 { 20 case RadGridStringId.AddNewRowString: 21 return "点击添加新行"; 22 case RadGridStringId.BestFitMenuItem: 23 return "自适应列宽"; 24 case RadGridStringId.ClearValueMenuItem: 25 return "清 空"; 26 case RadGridStringId.CompositeFilterFormErrorCaption: 27 return "多功能过滤器错误标题"; 28 case RadGridStringId.ClearSortingMenuItem: 29 return "清除排序"; 30 case RadGridStringId.CopyMenuItem: 31 return "复 制"; 32 case RadGridStringId.ColumnChooserFormCaption: 33 return " 列选择表格标题"; 34 case RadGridStringId.ColumnChooserFormMessage: 35 return "当前视图中,从网格中拖动列标题到这里并删除\n如果想加到网格中再次拖动即可"; 36 case RadGridStringId.ColumnChooserMenuItem: 37 return "列选择"; 38 case RadGridStringId.ConditionalFormattingBtnExpression: 39 return "表达式"; 40 case RadGridStringId.ConditionalFormattingLblFormat: 41 return "标签格式"; 42 case RadGridStringId.ConditionalFormattingPropertyGridCaseSensitive: 43 return "区分大小写"; 44 case RadGridStringId.ConditionalFormattingPropertyGridCellBackColor: 45 return "背景色"; 46 case RadGridStringId.ConditionalFormattingPropertyGridCellForeColor: 47 return "前景色"; 48 case RadGridStringId.ConditionalFormattingPropertyGridEnabled: 49 return "启用"; 50 case RadGridStringId.ConditionalFormattingPropertyGridRowBackColor: 51 return "行背景色"; 52 case RadGridStringId.ConditionalFormattingPropertyGridRowForeColor: 53 return "行前景色"; 54 case RadGridStringId.ConditionalFormattingPropertyGridRowTextAlignment: 55 return "行文本对齐"; 56 case RadGridStringId.ConditionalFormattingPropertyGridTextAlignment: 57 return "文本对齐"; 58 case RadGridStringId.ConditionalFormattingSortAlphabetically: 59 return "按字母顺序排序"; 60 case RadGridStringId.ConditionalFormattingStartsWith: 61 return "起始为"; 62 case RadGridStringId.ConditionalFormattingTextBoxExpression: 63 return "表达式"; 64 case RadGridStringId.ConditionalFormattingMenuItem: 65 return "条件格式"; 66 case RadGridStringId.ConditionalFormattingCaption: 67 return "条件格式标题"; 68 case RadGridStringId.ConditionalFormattingLblColumn: 69 return "标签列:"; 70 case RadGridStringId.ConditionalFormattingLblName: 71 return "标签名:"; 72 case RadGridStringId.ConditionalFormattingLblType: 73 return "标签类型:"; 74 case RadGridStringId.ConditionalFormattingRuleAppliesOn: 75 return "规则适用于:"; 76 case RadGridStringId.ConditionalFormattingChooseOne: 77 return "选择一个"; 78 case RadGridStringId.ConditionalFormattingCondition: 79 return "条件"; 80 case RadGridStringId.ConditionalFormattingContains: 81 return "包含"; 82 case RadGridStringId.ConditionalFormattingDoesNotContain: 83 return "不包含"; 84 case RadGridStringId.ConditionalFormattingEndsWith: 85 return "结束于"; 86 case RadGridStringId.ConditionalFormattingEqualsTo: 87 return "等于"; 88 case RadGridStringId.ConditionalFormattingExpression: 89 return "表达式"; 90 case RadGridStringId.ConditionalFormattingIsBetween: 91 return "之间"; 92 case RadGridStringId.ConditionalFormattingIsGreaterThan: 93 return "大于"; 94 case RadGridStringId.ConditionalFormattingIsGreaterThanOrEqual: 95 return "大于等于"; 96 case RadGridStringId.ConditionalFormattingIsLessThan: 97 return "小于"; 98 case RadGridStringId.ConditionalFormattingIsLessThanOrEqual: 99 return "小于等于";100 case RadGridStringId.ConditionalFormattingIsNotBetween:101 return "不在之间";102 case RadGridStringId.ConditionalFormattingIsNotEqualTo:103 return "不等于";104 case RadGridStringId.ConditionalFormattingLblValue1:105 return "标签值1:";106 case RadGridStringId.ConditionalFormattingLblValue2:107 return "标签值2:";108 case RadGridStringId.ConditionalFormattingGrpConditions:109 return "分组条件:";110 case RadGridStringId.ConditionalFormattingGrpProperties:111 return "分组属性";112 case RadGridStringId.ConditionalFormattingChkApplyToRow:113 return "选中适用于行";114 case RadGridStringId.ConditionalFormattingBtnAdd:115 return "添加";116 case RadGridStringId.ConditionalFormattingBtnRemove:117 return "删除";118 case RadGridStringId.ConditionalFormattingBtnOK:119 return "确定";120 case RadGridStringId.ConditionalFormattingBtnCancel:121 return "取消";122 case RadGridStringId.ConditionalFormattingBtnApply:123 return "应用";124 case RadGridStringId.ConditionalFormattingChkApplyOnSelectedRows:125 return "选中适用于选中行";126 case RadGridStringId.CustomFilterDialogBtnCancel:127 return "取消";128 case RadGridStringId.CustomFilterDialogBtnOk:129 return "确定";130 case RadGridStringId.CustomFilterDialogFalse:131 return "假";132 case RadGridStringId.CustomFilterDialogRbAnd:133 return "和";134 case RadGridStringId.CustomFilterDialogRbOr:135 return "或";136 case RadGridStringId.CustomFilterDialogTrue:137 return "真";138 case RadGridStringId.CustomFilterMenuItem:139 return "菜单项";140 case RadGridStringId.CustomFilterDialogCheckBoxNot:141 return "是 否";142 case RadGridStringId.CustomFilterDialogLabel:143 return "显示的列";144 case RadGridStringId.CutMenuItem:145 return "剪切";146 case RadGridStringId.CustomFilterDialogCaption:147 return "自定义条件";148 case RadGridStringId.DeleteRowMenuItem:149 return "删除行";150 case RadGridStringId.EditMenuItem:151 return "编 辑";152 case RadGridStringId.ExpressionFormAndButton:153 return "和";154 case RadGridStringId.ExpressionFormCancelButton:155 return "取消";156 case RadGridStringId.ExpressionFormConstants:157 return "包含";158 case RadGridStringId.ExpressionFormDescription:159 return "描述";160 case RadGridStringId.ExpressionFormFields:161 return "字段";162 case RadGridStringId.ExpressionFormFunctions:163 return "函数";164 case RadGridStringId.ExpressionFormFunctionsAggregate:165 return "合计";166 case RadGridStringId.ExpressionFormFunctionsDateTime:167 return "日期时间";168 case RadGridStringId.ExpressionFormFunctionsLogical:169 return "逻辑";170 case RadGridStringId.ExpressionFormFunctionsMath:171 return "数学";172 case RadGridStringId.ExpressionFormFunctionsOther:173 return "其它";174 case RadGridStringId.ExpressionFormFunctionsText:175 return "文本";176 case RadGridStringId.ExpressionFormNotButton:177 return "没有";178 case RadGridStringId.ExpressionFormOKButton:179 return "确定";180 case RadGridStringId.ExpressionFormOperators:181 return "运营商";182 case RadGridStringId.ExpressionFormOrButton:183 return "或";184 case RadGridStringId.ExpressionFormResultPreview:185 return "结果预览";186 case RadGridStringId.ExpressionFormTitle:187 return "主题";188 case RadGridStringId.ExpressionFormTooltipAnd:189 return "与";190 case RadGridStringId.ExpressionFormTooltipDivide:191 return "除以";192 case RadGridStringId.ExpressionFormTooltipEqual:193 return "等于";194 case RadGridStringId.ExpressionFormTooltipGreater:195 return "大于";196 case RadGridStringId.ExpressionFormTooltipGreaterOrEqual:197 return "大于等于";198 case RadGridStringId.ExpressionFormTooltipLess:199 return "小于";200 case RadGridStringId.ExpressionFormTooltipLessOrEqual:201 return "小于等于";202 case RadGridStringId.ExpressionFormTooltipMinus:203 return "减去";204 case RadGridStringId.ExpressionFormTooltipModulo:205 return "模";206 case RadGridStringId.ExpressionFormTooltipMultiply:207 return "乘以";208 case RadGridStringId.ExpressionFormTooltipNot:209 return "否";210 case RadGridStringId.ExpressionFormTooltipNotEqual:211 return "不等于";212 case RadGridStringId.ExpressionFormTooltipOr:213 return "或";214 case RadGridStringId.ExpressionFormTooltipPlus:215 return "加";216 case RadGridStringId.ExpressionMenuItem:217 return "表达式菜单项";218 case RadGridStringId.HideGroupMenuItem:219 return "隐藏分组菜单项";220 case RadGridStringId.HideMenuItem:221 return "隐 藏";222 case RadGridStringId.PinAtBottomMenuItem:223 return "页脚在下面的菜单项";224 case RadGridStringId.PinAtTopMenuItem:225 return "页脚顶部菜单项";226 case RadGridStringId.UnpinRowMenuItem:227 return "取消固定行菜单项";228 case RadGridStringId.GroupByThisColumnMenuItem:229 return "分 组";230 case RadGridStringId.FilterFunctionContains:231 return "包 含";232 case RadGridStringId.FilterFunctionCustom:233 return "自定义";234 case RadGridStringId.FilterFunctionDoesNotContain:235 return "不包含";236 case RadGridStringId.FilterFunctionEndsWith:237 return "以结尾";238 case RadGridStringId.FilterFunctionEqualTo:239 return "等 于";240 case RadGridStringId.FilterFunctionGreaterThan:241 return "大 于";242 case RadGridStringId.FilterFunctionGreaterThanOrEqualTo:243 return "大于等于";244 case RadGridStringId.FilterFunctionLessThan:245 return "小 于";246 case RadGridStringId.FilterFunctionLessThanOrEqualTo:247 return "小于等于";248 case RadGridStringId.FilterFunctionNoFilter:249 return "不过滤";250 case RadGridStringId.FilterFunctionStartsWith:251 return "以开头";252 case RadGridStringId.FilterFunctionIsNull:253 return "为 空";254 case RadGridStringId.FilterFunctionIsEmpty:255 return "空 串";256 case RadGridStringId.FilterFunctionNotIsNull:257 return "不为空";258 case RadGridStringId.FilterFunctionNotIsEmpty:259 return "不为空串";260 case RadGridStringId.FilterFunctionNotEqualTo:261 return "不等于";262 case RadGridStringId.FilterFunctionNotBetween:263 return "不在之间";264 case RadGridStringId.FilterFunctionBetween:265 return "在之间";266 case RadGridStringId.FilterOperatorBetween:267 return "在之间";268 case RadGridStringId.FilterOperatorContains:269 return "包 含";270 case RadGridStringId.FilterOperatorDoesNotContain:271 return "不包含";272 case RadGridStringId.FilterOperatorEndsWith:273 return "以结尾";274 case RadGridStringId.FilterOperatorEqualTo:275 return "等 于";276 case RadGridStringId.FilterOperatorGreaterThan:277 return "大 于";278 case RadGridStringId.FilterOperatorGreaterThanOrEqualTo:279 return "大于等于";280 case RadGridStringId.FilterOperatorIsEmpty:281 return "空 串";282 case RadGridStringId.FilterOperatorIsNull:283 return "为 空";284 case RadGridStringId.FilterOperatorLessThan:285 return "小 于";286 case RadGridStringId.FilterOperatorLessThanOrEqualTo:287 return "小于等于";288 case RadGridStringId.FilterOperatorNoFilter:289 return "不过滤";290 case RadGridStringId.FilterOperatorNotBetween:291 return "不在之间";292 case RadGridStringId.FilterOperatorNotEqualTo:293 return "不等于";294 case RadGridStringId.FilterOperatorNotIsEmpty:295 return "不是空串";296 case RadGridStringId.FilterOperatorNotIsNull:297 return "不为空";298 case RadGridStringId.FilterOperatorStartsWith:299 return "以开头";300 case RadGridStringId.FilterOperatorIsLike:301 return "包 含";302 case RadGridStringId.FilterOperatorNotIsLike:303 return "不包含";304 case RadGridStringId.FilterOperatorIsContainedIn:305 return "包含在内";306 case RadGridStringId.FilterOperatorNotIsContainedIn:307 return "不包含在内";308 case RadGridStringId.FilterOperatorCustom:309 return "自定义";310 case RadGridStringId.FilterCompositeNotOperator:311 return "Not";312 case RadGridStringId.FilterFunctionDuringLast7days:313 return "最后7天";314 case RadGridStringId.FilterFunctionSelectedDates:315 return "选择日期";316 case RadGridStringId.FilterFunctionToday:317 return "今天";318 case RadGridStringId.FilterFunctionYesterday:319 return "昨天";320 case RadGridStringId.FilterLogicalOperatorAnd:321 return "与";322 case RadGridStringId.FilterLogicalOperatorOr:323 return "或";324 case RadGridStringId.FilterMenuAvailableFilters:325 return "可用过滤器";326 case RadGridStringId.FilterMenuButtonCancel:327 return "取消";328 case RadGridStringId.FilterMenuButtonOK:329 return "确定";330 case RadGridStringId.FilterMenuClearFilters:331 return "清除过滤器";332 case RadGridStringId.FilterMenuSearchBoxText:333 return "搜索框";334 case RadGridStringId.FilterMenuSelectionAll:335 return "选择全部";336 case RadGridStringId.FilterMenuSelectionAllSearched:337 return "选择全部搜索";338 case RadGridStringId.FilterMenuSelectionNotNull:339 return "不能为空";340 case RadGridStringId.FilterMenuSelectionNull:341 return "空";342 case RadGridStringId.GroupingPanelDefaultMessage:343 return "拖一列到面板进行分组";344 case RadGridStringId.GroupingPanelHeader:345 return "分 组";346 case RadGridStringId.NoDataText:347 return "没有数据";348 case RadGridStringId.PinMenuItem:349 return "锁定状态";350 case RadGridStringId.PinAtLeftMenuItem:351 return "左锁定";352 case RadGridStringId.PinAtRightMenuItem:353 return "右锁定";354 case RadGridStringId.PasteMenuItem:355 return "粘 贴";356 case RadGridStringId.SortAscendingMenuItem:357 return "升 序";358 case RadGridStringId.SortDescendingMenuItem:359 return "降 序";360 case RadGridStringId.UngroupThisColumn:361 return "取消分组";362 case RadGridStringId.UnpinMenuItem:363 return "解 锁";364 365 default:366 return base.GetLocalizedString(id);367 }368 }369 }370 }

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汉化不全面,希望网友批评指正!

转载地址:http://mubda.baihongyu.com/

你可能感兴趣的文章
软件测试常用术语
查看>>
linux磁盘与文件系统管理
查看>>
ORACLE 索引详解
查看>>
第五课_课后习题解答
查看>>
Linux日志系统分析
查看>>
Linux下双网卡绑定bond0
查看>>
你是否也在服务器租用的过程中对服务器各方面的问题产生疑问呢????
查看>>
SSH2屌丝增强版1:构建GenericDao
查看>>
nfs服务配置
查看>>
内存不足导致不能执行system
查看>>
Android Studio导出jar包
查看>>
通过python 爬取网址url 自动提交百度
查看>>
我的友情链接
查看>>
乔布斯走了,苹果会坠落吗?
查看>>
java高级_01
查看>>
win8重装成win8.1后把hyperv的虚拟机导入
查看>>
linux命令汇总(mkdir、rmdir、touch、dirname、basename)
查看>>
EBS12.2.5 升级到EBS12.2.6的问题及跟踪处理
查看>>
网站访问流程
查看>>
java的日志工具log4j的配置方法
查看>>