DevExpress WinForm 控件汉化方法 代码(二)

本文件代码适用于DevExpress 2011.2.5以后版本

(5)XtraEditors.Controls.Localizer

Imports System.Resources
Imports System.Reflection

Public Class XLocallizerEditors
Inherits DevExpress.XtraEditors.Controls.Localizer
Public Overrides ReadOnly Property Language() As String
Get
Return "Chinese"
End Get
End Property
Public Overrides Function GetLocalizedString(ByVal id As DevExpress.XtraEditors.Controls.StringId) As String
Dim ret As String = ""
Select Case id
CASE StringId.Apply: RETURN "应用" 'Apply
Case StringId.CalcButtonBack : Return "后退" 'Back
Case StringId.CalcButtonC : Return "C" 'C
Case StringId.CalcButtonCE : Return "CE" 'CE
Case StringId.CalcButtonMC : Return "MC" 'MC
Case StringId.CalcButtonMR : Return "MR" 'MR
Case StringId.CalcButtonMS : Return "MS" 'MS
Case StringId.CalcButtonMx : Return "M+" 'M+
Case StringId.CalcButtonSqrt : Return "平方根" 'sqrt
Case StringId.CalcError : Return "计算错误" 'Calculation Error
Case StringId.Cancel : Return "取消" 'Cancel
Case StringId.CaptionError : Return "错误" 'Error
Case StringId.CheckChecked : Return "已经选取" 'Checked
Case StringId.CheckIndeterminate : Return "不确定" 'Indeterminate
Case StringId.CheckUnchecked : Return "非选取" 'Unchecked
Case StringId.ColorTabCustom : Return "自定义" 'Custom
Case StringId.ColorTabSystem : Return "系统" 'System
Case StringId.ColorTabWeb : Return "网页" 'Web
Case StringId.ContainerAccessibleEditName : Return "编辑控件" 'Editing control
Case StringId.DataEmpty : Return "没有图像数据" 'No image data
Case StringId.DateEditClear : Return "清除" 'Clear
Case StringId.DateEditToday : Return "今天" 'Today
Case StringId.DefaultBooleanDefault : Return "默认" 'Default
Case StringId.DefaultBooleanFalse : Return "虚假" 'False
Case StringId.DefaultBooleanTrue : Return "真实" 'True
Case StringId.FieldListName : Return "字段列表 ({0})" 'Field List ({0})
Case StringId.FilterAggregateAvg : Return "平均" 'Avg
Case StringId.FilterAggregateCount : Return "计数" 'Count
Case StringId.FilterAggregateExists : Return "存在" 'Exists
Case StringId.FilterAggregateMax : Return "最大值" 'Max
Case StringId.FilterAggregateMin : Return "最小值" 'Min
Case StringId.FilterAggregateSum : Return "求和" 'Sum
Case StringId.FilterClauseAnyOf : Return "是下列任一项" 'Is any of
Case StringId.FilterClauseBeginsWith : Return "开头是" 'Begins with
Case StringId.FilterClauseBetween : Return "介于" 'Is between
Case StringId.FilterClauseBetweenAnd : Return "和" 'and
Case StringId.FilterClauseContains : Return "包含" 'Contains
Case StringId.FilterClauseDoesNotContain : Return "不包含" 'Does not contain
Case StringId.FilterClauseDoesNotEqual : Return "不等于" 'Does not equal
Case StringId.FilterClauseEndsWith : Return "结尾是" 'Ends with
Case StringId.FilterClauseEquals : Return "合计" 'Equals
Case StringId.FilterClauseGreater : Return "大于" 'Is greater than
Case StringId.FilterClauseGreaterOrEqual : Return "大于或等于" 'Is greater than or equal to
Case StringId.FilterClauseIsNotNull : Return "不为空" 'Is not null
Case StringId.FilterClauseIsNotNullOrEmpty : Return "不为空" 'Is not blank
Case StringId.FilterClauseIsNull : Return "为空" 'Is null
Case StringId.FilterClauseIsNullOrEmpty : Return "为空" 'Is blank
Case StringId.FilterClauseLess : Return "是少于" 'Is less than
Case StringId.FilterClauseLessOrEqual : Return "小于或等于" 'Is less than or equal to
Case StringId.FilterClauseLike : Return "近似于" 'Is like
Case StringId.FilterClauseNoneOf : Return "都不是" 'Is none of
Case StringId.FilterClauseNotBetween : Return "不介于" 'Is not between
Case StringId.FilterClauseNotLike : Return "非近似于" 'Is not like
Case StringId.FilterCriteriaInvalidExpression : Return "指定的表达式包含无效的符号(行 {0},字符 {1})。" 'The specified expression contains invalid symbols (line {0}, character {1}).
Case StringId.FilterCriteriaInvalidExpressionEx : Return "指定的表达式是无效的。" 'The specified expression is invalid.
Case StringId.FilterCriteriaToStringBetween : Return "介于" 'Between
Case StringId.FilterCriteriaToStringBinaryOperatorBitwiseAnd : Return "&" '&
Case StringId.FilterCriteriaToStringBinaryOperatorBitwiseOr : Return "'" ''
Case StringId.FilterCriteriaToStringBinaryOperatorBitwiseXor : Return "^" '^
Case StringId.FilterCriteriaToStringBinaryOperatorDivide : Return "/" '/
Case StringId.FilterCriteriaToStringBinaryOperatorEqual : Return "=" '=
Case StringId.FilterCriteriaToStringBinaryOperatorGreater : Return "> " '>
Case StringId.FilterCriteriaToStringBinaryOperatorGreaterOrEqual : Return ">=" '>=
Case StringId.FilterCriteriaToStringBinaryOperatorLess : Return "< " '<
Case StringId.FilterCriteriaToStringBinaryOperatorLessOrEqual : Return "<=" '<=
Case StringId.FilterCriteriaToStringBinaryOperatorLike : Return "Like" 'Like
Case StringId.FilterCriteriaToStringBinaryOperatorMinus : Return "-" '-
Case StringId.FilterCriteriaToStringBinaryOperatorModulo : Return "%" '%
Case StringId.FilterCriteriaToStringBinaryOperatorMultiply : Return "*" '*
Case StringId.FilterCriteriaToStringBinaryOperatorNotEqual : Return "<> " '<>
Case StringId.FilterCriteriaToStringBinaryOperatorPlus : Return "+" '+
Case StringId.FilterCriteriaToStringFunctionAbs : Return "Abs" 'Abs
Case StringId.FilterCriteriaToStringFunctionAcos : Return "Acos" 'Acos
Case StringId.FilterCriteriaToStringFunctionAddDays : Return "添加天" 'Add days
Case StringId.FilterCriteriaToStringFunctionAddHours : Return "添加时间" 'Add hours
Case StringId.FilterCriteriaToStringFunctionAddMilliSeconds : Return "添加毫秒为单位)" 'Add milliseconds
Case StringId.FilterCriteriaToStringFunctionAddMinutes : Return "添加分钟" 'Add minutes
Case StringId.FilterCriteriaToStringFunctionAddMonths : Return "添加几个月" 'Add months
Case StringId.FilterCriteriaToStringFunctionAddSeconds : Return "增加秒数" 'Add seconds
Case StringId.FilterCriteriaToStringFunctionAddTicks : Return "添加刻度" 'Add ticks
Case StringId.FilterCriteriaToStringFunctionAddTimeSpan : Return "添加时间跨度" 'Add time span
Case StringId.FilterCriteriaToStringFunctionAddYears : Return "添加年" 'Add years
Case StringId.FilterCriteriaToStringFunctionAscii : Return "Ascii" 'Ascii
Case StringId.FilterCriteriaToStringFunctionAsin : Return "Asin" 'Asin
Case StringId.FilterCriteriaToStringFunctionAtn : Return "Atn" 'Atn
Case StringId.FilterCriteriaToStringFunctionAtn2 : Return "Atn2" 'Atn2
Case StringId.FilterCriteriaToStringFunctionBigMul : Return "多大" 'Big mul
Case StringId.FilterCriteriaToStringFunctionCeiling : Return "上限" 'Ceiling
Case StringId.FilterCriteriaToStringFunctionChar : Return "字符" 'Char
Case StringId.FilterCriteriaToStringFunctionCharIndex : Return "字符索引" 'Char index
Case StringId.FilterCriteriaToStringFunctionConcat : Return "合并字符" 'Concat
Case StringId.FilterCriteriaToStringFunctionContains : Return "包含" 'Contains
Case StringId.FilterCriteriaToStringFunctionCos : Return "Cos" 'Cos
Case StringId.FilterCriteriaToStringFunctionCosh : Return "Cosh" 'Cosh
Case StringId.FilterCriteriaToStringFunctionCustom : Return "自定义" 'Custom
Case StringId.FilterCriteriaToStringFunctionCustomNonDeterministic : Return "非确定性的自定义" 'Custom non deterministic
Case StringId.FilterCriteriaToStringFunctionDateDiffDay : Return "日期比较天" 'Date diff day
Case StringId.FilterCriteriaToStringFunctionDateDiffHour : Return "日期比较小时" 'Date diff hour
Case StringId.FilterCriteriaToStringFunctionDateDiffMilliSecond : Return "日期比较毫秒" 'Date diff millisecond
Case StringId.FilterCriteriaToStringFunctionDateDiffMinute : Return "日期比较分钟" 'Date diff minute
Case StringId.FilterCriteriaToStringFunctionDateDiffMonth : Return "日期比较月" 'Date diff month
Case StringId.FilterCriteriaToStringFunctionDateDiffSecond : Return "第二日期比较" 'Date diff second
Case StringId.FilterCriteriaToStringFunctionDateDiffTick : Return "日期比较刻度线" 'Date diff tick
Case StringId.FilterCriteriaToStringFunctionDateDiffYear : Return "日期比较年" 'Date diff year
Case StringId.FilterCriteriaToStringFunctionEndsWith : Return "结尾是" 'Ends with
Case StringId.FilterCriteriaToStringFunctionExp : Return "Exp" 'Exp
Case StringId.FilterCriteriaToStringFunctionFloor : Return "下限" 'Floor
Case StringId.FilterCriteriaToStringFunctionGetDate : Return "获取日期" 'Get date
Case StringId.FilterCriteriaToStringFunctionGetDay : Return "天" 'Get day
Case StringId.FilterCriteriaToStringFunctionGetDayOfWeek : Return "获取一周中的天" 'Get day of week
Case StringId.FilterCriteriaToStringFunctionGetDayOfYear : Return "得到一年的一天" 'Get day of year
Case StringId.FilterCriteriaToStringFunctionGetHour : Return "获取小时" 'Get hour
Case StringId.FilterCriteriaToStringFunctionGetMilliSecond : Return "获取毫秒" 'Get millisecond
Case StringId.FilterCriteriaToStringFunctionGetMinute : Return "获取分钟" 'Get minute
Case StringId.FilterCriteriaToStringFunctionGetMonth : Return "一个月" 'Get month
Case StringId.FilterCriteriaToStringFunctionGetSecond : Return "获得秒" 'Get second
Case StringId.FilterCriteriaToStringFunctionGetTimeOfDay : Return "获取一天的时间" 'Get time of day
Case StringId.FilterCriteriaToStringFunctionGetYear : Return "获取一年" 'Get year
Case StringId.FilterCriteriaToStringFunctionIif : Return "Iif" 'Iif
Case StringId.FilterCriteriaToStringFunctionInsert : Return "插入" 'Insert
Case StringId.FilterCriteriaToStringFunctionIsNull : Return "IsNull" 'IsNull
Case StringId.FilterCriteriaToStringFunctionIsNullOrEmpty : Return "为 null 或空" 'Is null or empty
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalBeyondThisYear : Return "超出了本年度" 'Is beyond this year
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisMonth : Return "本月早些时候" 'Is earlier this month
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisWeek : Return "本周早些时候" 'Is earlier this week
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisYear : Return "今年早些时候" 'Is earlier this year
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLastWeek : Return "是上个星期" 'Is last week
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisMonth : Return "本月晚些时候" 'Is later this month
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisWeek : Return "是本周晚些时候" 'Is later this week
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisYear : Return "今年晚些时候" 'Is later this year
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalNextWeek : Return "下周" 'Is next week
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalPriorThisYear : Return "今年是事先" 'Is prior this year
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalToday : Return "今天是" 'Is today
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalTomorrow : Return "明天是" 'Is tomorrow
Case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalYesterday : Return "昨天是" 'Is yesterday
Case StringId.FilterCriteriaToStringFunctionLen : Return "Len" 'Len
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeDayAfterTomorrow : Return "后天" 'Day after tomorrow
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeLastWeek : Return "上个星期" 'Last week
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeNextMonth : Return "下个月" 'Next month
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeNextWeek : Return "下个 星期" 'Next week
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeNextYear : Return "明年" 'Next year
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeNow : Return "现在" 'Now
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeThisMonth : Return "本月" 'This month
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeThisWeek : Return "这一周" 'This week
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeThisYear : Return "这一年" 'This year
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeToday : Return "今天" 'Today
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeTomorrow : Return "明天" 'Tomorrow
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeTwoWeeksAway : Return "两周" 'Two weeks away
Case StringId.FilterCriteriaToStringFunctionLocalDateTimeYesterday : Return "昨天" 'Yesterday
Case StringId.FilterCriteriaToStringFunctionLog : Return "Log" 'Log
Case StringId.FilterCriteriaToStringFunctionLog10 : Return "Log10" 'Log10
Case StringId.FilterCriteriaToStringFunctionLower : Return "较低" 'Lower
Case StringId.FilterCriteriaToStringFunctionMax : Return "最大值" 'Max
Case StringId.FilterCriteriaToStringFunctionMin : Return "最小值" 'Min
Case StringId.FilterCriteriaToStringFunctionNone : Return "无" 'None
Case StringId.FilterCriteriaToStringFunctionNow : Return "现在" 'Now
Case StringId.FilterCriteriaToStringFunctionPadLeft : Return "左垫" 'Pad left
Case StringId.FilterCriteriaToStringFunctionPadRight : Return "右垫" 'Pad right
Case StringId.FilterCriteriaToStringFunctionPower : Return "电源" 'Power
Case StringId.FilterCriteriaToStringFunctionRemove : Return "删除" 'Remove
Case StringId.FilterCriteriaToStringFunctionReplace : Return "替换" 'Replace
Case StringId.FilterCriteriaToStringFunctionReverse : Return "反向" 'Reverse
Case StringId.FilterCriteriaToStringFunctionRnd : Return "Rnd" 'Rnd
Case StringId.FilterCriteriaToStringFunctionRound : Return "Round" 'Round
Case StringId.FilterCriteriaToStringFunctionSign : Return "Sign" 'Sign
Case StringId.FilterCriteriaToStringFunctionSin : Return "Sin" 'Sin
Case StringId.FilterCriteriaToStringFunctionSinh : Return "Sinh" 'Sinh
Case StringId.FilterCriteriaToStringFunctionSqr : Return "Sqr" 'Sqr
Case StringId.FilterCriteriaToStringFunctionStartsWith : Return "开头" 'Starts with
Case StringId.FilterCriteriaToStringFunctionSubstring : Return "子字符串" 'Substring
Case StringId.FilterCriteriaToStringFunctionTan : Return "Tan" 'Tan
Case StringId.FilterCriteriaToStringFunctionTanh : Return "Tanh" 'Tanh
Case StringId.FilterCriteriaToStringFunctionToday : Return "今天" 'Today
Case StringId.FilterCriteriaToStringFunctionToDecimal : Return "To decimal" 'To decimal
Case StringId.FilterCriteriaToStringFunctionToDouble : Return "To double" 'To double
Case StringId.FilterCriteriaToStringFunctionToFloat : Return "To float" 'To float
Case StringId.FilterCriteriaToStringFunctionToInt : Return "To int" 'To int
Case StringId.FilterCriteriaToStringFunctionToLong : Return "To long" 'To long
Case StringId.FilterCriteriaToStringFunctionToStr : Return "To str" 'To str
Case StringId.FilterCriteriaToStringFunctionTrim : Return "Trim" 'Trim
Case StringId.FilterCriteriaToStringFunctionUpper : Return "Upper" 'Upper
Case StringId.FilterCriteriaToStringFunctionUtcNow : Return "Utc now" 'Utc now
Case StringId.FilterCriteriaToStringGroupOperatorAnd : Return "并且" 'And
Case StringId.FilterCriteriaToStringGroupOperatorOr : Return "或" 'Or
Case StringId.FilterCriteriaToStringIn : Return "在中" 'In
Case StringId.FilterCriteriaToStringIsNotNull : Return "不为空" 'Is Not Null
Case StringId.FilterCriteriaToStringNotLike : Return "不相似" 'Not Like
Case StringId.FilterCriteriaToStringUnaryOperatorBitwiseNot : Return "~" '~
Case StringId.FilterCriteriaToStringUnaryOperatorIsNull : Return "为空" 'Is Null
Case StringId.FilterCriteriaToStringUnaryOperatorMinus : Return "-" '-
Case StringId.FilterCriteriaToStringUnaryOperatorNot : Return "不是" 'Not
Case StringId.FilterCriteriaToStringUnaryOperatorPlus : Return "+" '+
Case StringId.FilterDateTextAlt : Return "Show all'Show Empty'Filter by a specific date,'Beyond'''Next week'Today'This week'This month'Earlier'{0,yyyy}, {0,MMMM}" 'Show all'Show Empty'Filter by a specific date,'Beyond'''Next week'Today'This week'This month'Earlier'{0,yyyy}, {0,MMMM}
Case StringId.FilterDateTimeConstantMenuCaption : Return "日期时间常数" 'Date and time constants
Case StringId.FilterDateTimeOperatorMenuCaption : Return "日期时间操作" 'Date and time operators
Case StringId.FilterEditorTabText : Return "文本" 'Text
Case StringId.FilterEditorTabVisual : Return "可见" 'Visual
Case StringId.FilterEmptyEnter : Return "< 输入值 >" '<enter a value>
Case StringId.FilterEmptyParameter : Return "< 输入参数 >" '<enter a parameter>
Case StringId.FilterEmptyValue : Return "<empty>" '<empty>
Case StringId.FilterFunctionsMenuCaption : Return "" '
Case StringId.FilterGroupAnd : Return "And" 'And
Case StringId.FilterGroupNotAnd : Return "Not And" 'Not And
Case StringId.FilterGroupNotOr : Return "Not Or" 'Not Or
Case StringId.FilterGroupOr : Return "Or" 'Or
Case StringId.FilterMenuAddNewParameter : Return "添加一个新的参数..." 'Add a new parameter ...
Case StringId.FilterMenuClearAll : Return "全部清除" 'Clear All
Case StringId.FilterMenuConditionAdd : Return "添加条件" 'Add Condition
Case StringId.FilterMenuGroupAdd : Return "添加组" 'Add Group
Case StringId.FilterMenuRowRemove : Return "删除组" 'Remove Group
Case StringId.FilterOutlookDateText : Return "显示全部'Show Empty'依下列日期筛选:'除今年之外'晚于今年'晚于本月'下周'晚于本周'明天'今天'昨天'本周之前'上周'本月之前'今年之前'去年" 'Show all'Show Empty'Filter by a specific date,'Beyond this year'Later this year'Later this month'Next week'" + "Later this week'Tomorrow'Today'Yesterday'Earlier this week'Last week'Earlier this month'Earlier this year'" + "Prior to this year
Case StringId.FilterShowAll : Return "(选择所有)" '(Select All)
Case StringId.FilterToolTipElementAdd : Return "将新项添加到列表中" 'Adds a new item to the list
Case StringId.FilterToolTipKeysAdd : Return "(使用插入或添加键)" '(Use the Insert or Add key)
Case StringId.FilterToolTipKeysRemove : Return "(使用删除或减去键)" '(Use the Delete or Subtract key)
Case StringId.FilterToolTipNodeAction : Return "行动" 'Actions
Case StringId.FilterToolTipNodeAdd : Return "向该组添加一个新的条件" 'Adds a new condition to this group
Case StringId.FilterToolTipNodeRemove : Return "删除此条件" 'Removes this condition
Case StringId.FilterToolTipValueType : Return "比较值 / 另一个字段的值" 'Compare with a value / another field's value
Case StringId.ImagePopupEmpty : Return "(空)" '(Empty)
Case StringId.ImagePopupPicture : Return "(图像)" '(Picture)
Case StringId.InvalidValueText : Return "无效值" 'Invalid Value
Case StringId.LookUpColumnDefaultName : Return "名称" 'Name
Case StringId.LookUpEditValueIsNull : Return "[编辑值为空]" '[EditValue is null]
Case StringId.LookUpInvalidEditValueType : Return "无效的 LookUpEdit 编辑值类型。" 'Invalid LookUpEdit EditValue type.
Case StringId.MaskBoxValidateError : Return "输入值不完整,是否修正? 是 - 返回编辑器,修正该值. 否 -保留该值. 取消 - 重设为原来的值. " 'The entered value is incomplete. Do you want to correct it?\r\n\r\n" +"Yes - to the editor and correct the value.\r\n" +"No - leave the value as is.\r\n" +"Cancel - reset to the previous value.\r\n
Case StringId.NavigatorAppendButtonHint : Return "追加" 'Append
Case StringId.NavigatorCancelEditButtonHint : Return "取消编辑" 'Cancel Edit
Case StringId.NavigatorEditButtonHint : Return "编辑" 'Edit
Case StringId.NavigatorEndEditButtonHint : Return "结束编辑" 'End Edit
Case StringId.NavigatorFirstButtonHint : Return "第一个" 'First
Case StringId.NavigatorLastButtonHint : Return "最后一个" 'Last
Case StringId.NavigatorNextButtonHint : Return "下一个" 'Next
Case StringId.NavigatorNextPageButtonHint : Return "下一页" 'Next Page
Case StringId.NavigatorPreviousButtonHint : Return "前一个" 'Previous
Case StringId.NavigatorPreviousPageButtonHint : Return "前一页" 'Previous Page
Case StringId.NavigatorRemoveButtonHint : Return "删除" 'Delete
Case StringId.NavigatorTextStringFormat : Return "第{0}行({1})" 'Record {0} of {1}
Case StringId.None : Return "" '
Case StringId.NotValidArrayLength : Return "无效的数组长度。" 'Not valid array length.
Case StringId.OK : Return "确定(&O)" 'OK
Case StringId.PictureEditCopyImageError : Return "无法复制图像" 'Could not copy image
Case StringId.PictureEditMenuCopy : Return "复制" 'Copy
Case StringId.PictureEditMenuCut : Return "剪切" 'Cut
Case StringId.PictureEditMenuDelete : Return "删除" 'Delete
Case StringId.PictureEditMenuFitImage : Return "图像尺寸调整" 'Fit Image
Case StringId.PictureEditMenuFullSize : Return "全尺寸" 'Full Size
Case StringId.PictureEditMenuLoad : Return "调用" 'Load
Case StringId.PictureEditMenuPaste : Return "粘贴" 'Paste
Case StringId.PictureEditMenuSave : Return "保存" 'Save
Case StringId.PictureEditMenuZoom : Return "缩放" 'Zoom
Case StringId.PictureEditMenuZoomIn : Return "放大" 'Zoom In
Case StringId.PictureEditMenuZoomOut : Return "缩小" 'Zoom Out
Case StringId.PictureEditMenuZoomTo : Return "缩放到" 'Zoom to
Case StringId.PictureEditMenuZoomToolTip : Return "{0}%" '{0}%
Case StringId.PictureEditOpenFileError : Return "错误的图像格式" 'Wrong picture format
Case StringId.PictureEditOpenFileErrorCaption : Return "打开错误" 'Open error
Case StringId.PictureEditOpenFileFilter : Return "Bitmap Files (*.bmp)|*.bmp'" + "Graphics Interchange Format (*.gif)|*.gif'" + "JPEG File Interchange Format (*.jpg;*.jpeg)|*.jpg;*.jpeg'" + "Icon Files (*.ico)|*.ico'" + "All Picture Files '*.bmp;*.gif;*.jpg;*.jpeg;*.ico;*.png;*.tif'" + "All Files '*.*" 'Bitmap Files (*.bmp)|*.bmp'" +"Graphics Interchange Format (*.gif)|*.gif'" +"JPEG File Interchange Format (*.jpg;*.jpeg)|*.jpg;*.jpeg'" +"Icon Files (*.ico)|*.ico'" +"All Picture Files '*.bmp;*.gif;*.jpg;*.jpeg;*.ico;*.png;*.tif'" +"All Files '*.*
Case StringId.PictureEditOpenFileTitle : Return "打开" 'Open
Case StringId.PictureEditSaveFileFilter : Return "Bitmap Files (*.bmp)|*.bmp'" + "Graphics Interchange Format (*.gif)|*.gif'" + "JPEG File Interchange Format (*.jpg)|*.jpg" 'Bitmap Files (*.bmp)|*.bmp'" +"Graphics Interchange Format (*.gif)|*.gif'" +"JPEG File Interchange Format (*.jpg)|*.jpg
Case StringId.PictureEditSaveFileTitle : Return "另存为" 'Save As
Case StringId.PreviewPanelText : Return "预览" 'Preview
Case StringId.ProgressCancel : Return "取消" 'Cancel
Case StringId.ProgressCancelPending : Return "取消挂起" 'Cancel pending
Case StringId.ProgressCreateDocument : Return "创建文档" 'Creating document
Case StringId.ProgressExport : Return "导出" 'Exporting
Case StringId.ProgressLoadingData : Return "加载数据" 'Loading data
Case StringId.ProgressPrinting : Return "打印" 'Printing
Case StringId.RestoreLayoutDialogFileFilter : Return "XML files (*.xml)|*.xml'All files'*.*" 'XML files (*.xml)|*.xml'All files'*.*
Case StringId.RestoreLayoutDialogTitle : Return "恢复布局" 'Restore Layout
Case StringId.SaveLayoutDialogFileFilter : Return "XML files (*.xml)|*.xml" 'XML files (*.xml)|*.xml
Case StringId.SaveLayoutDialogTitle : Return "保存布局" 'Save Layout
Case StringId.TabHeaderButtonClose : Return "关闭" 'Close
Case StringId.TabHeaderButtonNext : Return "向右滚动" 'Scroll Right
Case StringId.TabHeaderButtonPrev : Return "向左滚动" 'Scroll Left
Case StringId.TabHeaderSelectorButton : Return "显示窗口列表" 'Show Window List
Case StringId.TextEditMenuCopy : Return "复制(&C)" '&Copy
Case StringId.TextEditMenuCut : Return "剪切(&t)" 'Cu&t
Case StringId.TextEditMenuDelete : Return "删除(&D)" '&Delete
Case StringId.TextEditMenuPaste : Return "粘贴(&P)" '&Paste
Case StringId.TextEditMenuSelectAll : Return "全选(&A)" 'Select &All
Case StringId.TextEditMenuUndo : Return "撤销(&U)" '&Undo
Case StringId.TransparentBackColorNotSupported : Return "此控件不支持透明背景色" 'This control does not support transparent background colors
Case StringId.UnknownPictureFormat : Return "未知的图形格式" 'Unknown picture format
Case StringId.XtraMessageBoxAbortButtonText : Return "中断(&A)" '&Abort
Case StringId.XtraMessageBoxCancelButtonText : Return "取消" '&Cancel
Case StringId.XtraMessageBoxIgnoreButtonText : Return "忽略(&I)" '&Ignore
Case StringId.XtraMessageBoxNoButtonText : Return "否(&N)" '&No
Case StringId.XtraMessageBoxOkButtonText : Return "确定(&O)" '&OK
Case StringId.XtraMessageBoxRetryButtonText : Return "重试(&R)" '&Retry
Case StringId.XtraMessageBoxYesButtonText : Return "是(&Y)" '&Yes
Case Else
ret = id.ToString
End Select
Return ret
End Function

End Class

(6)XtraGauges.Core.Localization.GaugesCoreLocalizer

Imports System.Resources
Imports System.Reflection
Imports DevExpress.XtraGauges.Core.Localization
Public Class XLocallizerGauges
Inherits DevExpress.XtraGauges.Core.Localization.GaugesCoreLocalizer
Public Overrides ReadOnly Property Language() As String
Get
Return "Chinese"
End Get
End Property
Public Overrides Function GetLocalizedString(ByVal id As DevExpress.XtraGauges.Core.Localization.GaugesCoreStringId) As String
Dim ret As String = ""
Select Case id
Case GaugesCoreStringId.MsgGaugeRestoreError : Return "厚度控制不能正确地还原,因为指定的布局文件 contians 以下无效元素: {0}。" 'The gauge control can't be restored correctly, because the specified layout file contians the following invalid elements: {0}.
Case GaugesCoreStringId.MsgInvalidClassCreationParameters : Return "无法创建类的实例: {0} 因为指定参数不正确。" 'It's impossible to create an instance of a class: {0} because specified parameters are incorrect.
Case GaugesCoreStringId.MsgPathCreationError : Return "不能创建路径。" 'Path can't be created.
Case GaugesCoreStringId.MsgTextParsingError : Return "它是无法创建类 {0} 的实例,因为指定的文本不正确:" 'It's impossible to create an instance of a class {0} because specified text is incorrect:
Case Else
ret = id.ToString
End Select
Return ret
End Function

End Class

(7)XtraGrid.Localization.GridLocalizer

Imports System.Resources
Imports System.Reflection
Imports DevExpress.XtraGrid.Localization
Public Class XLocallizerGrid
Inherits DevExpress.XtraGrid.Localization.GridLocalizer
Public Overrides ReadOnly Property Language() As String
Get
Return "Chinese"
End Get
End Property
Public Overrides Function GetLocalizedString(ByVal id As DevExpress.XtraGrid.Localization.GridStringId) As String
Dim ret As String = ""
Select Case id
Case GridStringId.CardViewCaptionFormat : Return "记录 N {0}" 'Record N {0}
Case GridStringId.CardViewNewCard : Return "新建卡" 'New Card
Case GridStringId.CardViewQuickCustomizationButton : Return "自定义" 'Customize
Case GridStringId.CardViewQuickCustomizationButtonFilter : Return "过滤器 " 'Filter
Case GridStringId.CardViewQuickCustomizationButtonSort : Return "排序方式:" 'Sort:
Case GridStringId.ColumnViewExceptionMessage : Return " 要修正当前值吗?" ' Do you want to correct the value ?
Case GridStringId.CustomFilterDialog2FieldCheck : Return "字段" 'Field
Case GridStringId.CustomFilterDialogCancelButton : Return "取消(&C)" '&Cancel
Case GridStringId.CustomFilterDialogCaption : Return "显示符合下列条件的行:" 'Show rows where:
Case GridStringId.CustomFilterDialogClearFilter : Return "清除过滤器(&L)" 'C&lear Filter
Case GridStringId.CustomFilterDialogEmptyOperator : Return "(选择一个操作)" '(Select an operator)
Case GridStringId.CustomFilterDialogEmptyValue : Return "(输入一个值)" '(Enter a value)
Case GridStringId.CustomFilterDialogFormCaption : Return "用户自定义自动过滤器" 'Custom AutoFilter
Case GridStringId.CustomFilterDialogHint : Return "用 _ 替代一个单字符#用 % 替代其他任何类型的字符" 'Use _ to represent any single character#Use % to represent any series of characters
Case GridStringId.CustomFilterDialogOkButton : Return "确定(&O)" '&OK
Case GridStringId.CustomFilterDialogRadioAnd : Return "与(&A)" '&And
Case GridStringId.CustomFilterDialogRadioOr : Return "或(&O)" 'O&r
Case GridStringId.CustomizationBands : Return "带区" 'Bands
Case GridStringId.CustomizationCaption : Return "自定义" 'Customization
Case GridStringId.CustomizationColumns : Return "列" 'Columns
Case GridStringId.CustomizationFormBandHint : Return "在此拖拉条来定制布局" 'Drag and drop bands here to customize layout
Case GridStringId.CustomizationFormColumnHint : Return "在此拖拉列来定制布局" 'Drag and drop columns here to customize layout
Case GridStringId.FileIsNotFoundError : Return "文件{0}找不到" 'File {0} is not found
Case GridStringId.FilterBuilderApplyButton : Return "应用(&A)" '&Apply
Case GridStringId.FilterBuilderCancelButton : Return "取消(&C)" '&Cancel
Case GridStringId.FilterBuilderCaption : Return "数据筛选条件设定:" 'Filter Editor
Case GridStringId.FilterBuilderOkButton : Return "确定(&O)" '&OK
Case GridStringId.FilterPanelCustomizeButton : Return "自定义" 'Edit Filter
Case GridStringId.FindControlClearButton : Return "关闭" 'Close
Case GridStringId.FindControlFindButton : Return "查找" 'Find
Case GridStringId.GridGroupPanelText : Return "拖动列标题至此,根据该列分组" 'Drag a column header here to group by that column
Case GridStringId.GridNewRowText : Return "在此处添加一行" 'Click here to add a new row
Case GridStringId.GridOutlookIntervals : Return "更早;上个月;本月初;三周之前;两周之前;上周;;;;;;;;昨天;今天;明天;;;;;;;;下周;两周后;三周后;本月底;下个月;一个月之后;" 'Older;Last Month;Earlier this Month;Three Weeks Ago;Two Weeks Ago;Last Week;;;;;;;;Yesterday;Today;Tomorrow;;;;;;;;Next Week;Two Weeks Away;Three Weeks Away;Later this Month;Next Month;Beyond Next Month;
Case GridStringId.GroupSummaryEditorFormCancelButton : Return "取消" 'Cancel
Case GridStringId.GroupSummaryEditorFormCaption : Return "组摘要编辑器" 'Group Summary Editor
Case GridStringId.GroupSummaryEditorFormItemsTabCaption : Return "项目" 'Items
Case GridStringId.GroupSummaryEditorFormOkButton : Return "确定" 'OK
Case GridStringId.GroupSummaryEditorFormOrderTabCaption : Return "订单" 'Order
Case GridStringId.GroupSummaryEditorSummaryAverage : Return "平均水平" 'Average
Case GridStringId.GroupSummaryEditorSummaryCount : Return "计数" 'Count
Case GridStringId.GroupSummaryEditorSummaryMax : Return "最大值" 'Max
Case GridStringId.GroupSummaryEditorSummaryMin : Return "最小值" 'Min
Case GridStringId.GroupSummaryEditorSummarySum : Return "总和" 'Sum
Case GridStringId.LayoutModifiedWarning : Return "布局已被更改,确定要保存更改吗?" 'The layout has been modified.\r\nDo you want to save the changes?
Case GridStringId.LayoutViewButtonApply : Return "应用(&A)" '&Apply
Case GridStringId.LayoutViewButtonCancel : Return "取消(&C)" 'Cancel
Case GridStringId.LayoutViewButtonCustomizeHide : Return "隐藏自定义(&z)" 'Hide Customi&zation
Case GridStringId.LayoutViewButtonCustomizeShow : Return "显示自定义(&S)" '&Show Customization
Case GridStringId.LayoutViewButtonLoadLayout : Return "加载面板(&L)..." '&Load Layout...
Case GridStringId.LayoutViewButtonOk : Return "确定(&O)" 'Ok
Case GridStringId.LayoutViewButtonPreview : Return "显示更多卡(&M)" 'Show &More Cards
Case GridStringId.LayoutViewButtonReset : Return "重置卡模板(&R)" '&Reset Template Card
Case GridStringId.LayoutViewButtonSaveLayout : Return "保存版面...(&v)" 'Sa&ve Layout...
Case GridStringId.LayoutViewButtonShrinkToMinimum : Return "收缩卡模板(&S)" '&Shrink Template Card
Case GridStringId.LayoutViewCardCaptionFormat : Return "记录[{0} / {1}]" 'Record [{0} of {1}]
Case GridStringId.LayoutViewCarouselModeBtnHint : Return "旋转模式" 'Carousel Mode
Case GridStringId.LayoutViewCloseZoomBtnHintClose : Return "还原视图" 'Restore View
Case GridStringId.LayoutViewCloseZoomBtnHintZoom : Return "最大化详细信息" 'Maximize Detail
Case GridStringId.LayoutViewColumnModeBtnHint : Return "一个栏位" 'One Column
Case GridStringId.LayoutViewCustomizationFormCaption : Return "自定义查看面板" 'LayoutView Customization
Case GridStringId.LayoutViewCustomizationFormDescription : Return "通过拖放自定义卡面板和菜单,并且可在查看面板中预览数据." 'Customize the card layout using drag-and-drop and customization menu, and preview data in the View Layout page.
Case GridStringId.LayoutViewCustomizeBtnHint : Return "自定义" 'Customization
Case GridStringId.LayoutViewFieldCaptionFormat : Return "{0}:" '{0}:
Case GridStringId.LayoutViewGroupCaptions : Return "主题" 'Captions
Case GridStringId.LayoutViewGroupCards : Return "卡" 'Cards
Case GridStringId.LayoutViewGroupCustomization : Return "自定义" 'Customization
Case GridStringId.LayoutViewGroupFields : Return "区域" 'Fields
Case GridStringId.LayoutViewGroupHiddenItems : Return "隐藏项" 'Hidden Items
Case GridStringId.LayoutViewGroupIndents : Return "缩进" 'Indents
Case GridStringId.LayoutViewGroupIntervals : Return "间隔" 'Intervals
Case GridStringId.LayoutViewGroupLayout : Return "布局" 'Layout
Case GridStringId.LayoutViewGroupPropertyGrid : Return "属性栅格" 'Property Grid
Case GridStringId.LayoutViewGroupTreeStructure : Return "树形布局查看" 'Layout Tree View
Case GridStringId.LayoutViewGroupView : Return "查看" 'View
Case GridStringId.LayoutViewLabelAllowFieldHotTracking : Return "允许热跟踪" 'Allow Hot-Tracking
Case GridStringId.LayoutViewLabelCaptionLocation : Return "区域主题位置" 'Field Caption Location:
Case GridStringId.LayoutViewLabelCardArrangeRule : Return "排列规则:" 'Arrange Rule:
Case GridStringId.LayoutViewLabelCardEdgeAlignment : Return "卡边缘对齐方式:" 'Card Edge Alignment:
Case GridStringId.LayoutViewLabelGroupCaptionLocation : Return "组标题位置:" 'Group Caption Location:
Case GridStringId.LayoutViewLabelHorizontal : Return "水平间隔" 'Horizontal Interval
Case GridStringId.LayoutViewLabelPadding : Return "填充" 'Padding
Case GridStringId.LayoutViewLabelScrollVisibility : Return "滚动条可见:" 'Scroll Visibility:
Case GridStringId.LayoutViewLabelShowCardBorder : Return "显示边界" 'Show Border
Case GridStringId.LayoutViewLabelShowCardCaption : Return "显示标题" 'Show Caption
Case GridStringId.LayoutViewLabelShowCardExpandButton : Return "显示展开按钮" 'Show Expand Button
Case GridStringId.LayoutViewLabelShowFieldBorder : Return "显示边界" 'Show Border
Case GridStringId.LayoutViewLabelShowFieldHint : Return "显示提示" 'Show Hint
Case GridStringId.LayoutViewLabelShowFilterPanel : Return "显示过滤面板" 'Show Filter Panel:
Case GridStringId.LayoutViewLabelShowHeaderPanel : Return "显示表头面板" 'Show Header Panel
Case GridStringId.LayoutViewLabelShowLines : Return "显示线条" 'Show Lines
Case GridStringId.LayoutViewLabelSpacing : Return "间距" 'Spacing
Case GridStringId.LayoutViewLabelTextAlignment : Return "文本对其方式:" 'Field Caption Text Alignment:
Case GridStringId.LayoutViewLabelTextIndent : Return "文本缩进" 'Text Indents
Case GridStringId.LayoutViewLabelVertical : Return "垂直间隔" 'Vertical Interval
Case GridStringId.LayoutViewLabelViewMode : Return "查看模式" 'View Mode:
Case GridStringId.LayoutViewMultiColumnModeBtnHint : Return "多列" 'Multiple Columns
Case GridStringId.LayoutViewMultiRowModeBtnHint : Return "多行" 'Multiple Rowss
Case GridStringId.LayoutViewPageTemplateCard : Return "模板卡" 'Template Card
Case GridStringId.LayoutViewPageViewLayout : Return "查看版面" 'View Layout
Case GridStringId.LayoutViewPanBtnHint : Return "面板" 'Panning
Case GridStringId.LayoutViewRowModeBtnHint : Return "单行" 'One Row
Case GridStringId.LayoutViewSingleModeBtnHint : Return "单卡" 'One card
Case GridStringId.MenuColumnAutoFilterRowHide : Return "隐藏自动筛选器行" 'Hide Auto Filter Row
Case GridStringId.MenuColumnAutoFilterRowShow : Return "显示自动筛选器行" 'Show Auto Filter Row
Case GridStringId.MenuColumnAverageSummaryTypeDescription : Return "平均水平" 'Average
Case GridStringId.MenuColumnBandCustomization : Return "列/带选择器" 'Column/Band Chooser
Case GridStringId.MenuColumnBestFit : Return "最佳匹配" 'Best Fit
Case GridStringId.MenuColumnBestFitAllColumns : Return "最佳匹配(所有列)" 'Best Fit (all columns)
Case GridStringId.MenuColumnClearFilter : Return "清除过滤器" 'Clear Filter
Case GridStringId.MenuColumnClearSorting : Return "清除排序设置" 'Clear Sorting
Case GridStringId.MenuColumnColumnCustomization : Return "列选择" 'Column Chooser
Case GridStringId.MenuColumnCountSummaryTypeDescription : Return "计数" 'Count
Case GridStringId.MenuColumnCustomSummaryTypeDescription : Return "自定义" 'Custom
Case GridStringId.MenuColumnExpressionEditor : Return "表达式编辑器..." 'Expression Editor...
Case GridStringId.MenuColumnFilter : Return "允许筛选数据" 'Can Filter
Case GridStringId.MenuColumnFilterEditor : Return "设定数据筛选条件" 'Filter Editor...
Case GridStringId.MenuColumnFilterMode : Return "筛选模式" 'Filter Mode
Case GridStringId.MenuColumnFilterModeDisplayText : Return "显示文本" 'Display Text
Case GridStringId.MenuColumnFilterModeValue : Return "价值" 'Value
Case GridStringId.MenuColumnFindFilterHide : Return "隐藏查找面板" 'Hide Find Panel
Case GridStringId.MenuColumnFindFilterShow : Return "显示查找面板" 'Show Find Panel
Case GridStringId.MenuColumnGroup : Return "根据此列分组" 'Group By This Column
Case GridStringId.MenuColumnGroupBox : Return "分组依据框" 'Group By Box
Case GridStringId.MenuColumnGroupIntervalDay : Return "一天" 'Day
Case GridStringId.MenuColumnGroupIntervalMenu : Return "组间隔" 'Group Interval
Case GridStringId.MenuColumnGroupIntervalMonth : Return "个月" 'Month
Case GridStringId.MenuColumnGroupIntervalNone : Return "无" 'None
Case GridStringId.MenuColumnGroupIntervalSmart : Return "智能" 'Smart
Case GridStringId.MenuColumnGroupIntervalYear : Return "一年" 'Year
Case GridStringId.MenuColumnGroupSummaryEditor : Return "组摘要编辑器..." 'Group Summary Editor...
Case GridStringId.MenuColumnGroupSummarySortFormat : Return "{1} 依照 - '{0}' - {2}" '{1} by '{0}' - {2}
Case GridStringId.MenuColumnMaxSummaryTypeDescription : Return "最大值" 'Max
Case GridStringId.MenuColumnMinSummaryTypeDescription : Return "最小值" 'Min
Case GridStringId.MenuColumnRemoveColumn : Return "移除列" 'Remove This Column
Case GridStringId.MenuColumnResetGroupSummarySort : Return "清除摘要排序" 'Clear Summary Sorting
Case GridStringId.MenuColumnShowColumn : Return "显示列" 'Show This Column
Case GridStringId.MenuColumnSortAscending : Return "升序排列" 'Sort Ascending
Case GridStringId.MenuColumnSortDescending : Return "降序排列" 'Sort Descending
Case GridStringId.MenuColumnSortGroupBySummaryMenu : Return "按摘要排序" 'Sort by Summary
Case GridStringId.MenuColumnSumSummaryTypeDescription : Return "总和" 'Sum
Case GridStringId.MenuColumnUnGroup : Return "不分组" 'UnGroup
Case GridStringId.MenuFooterAddSummaryItem : Return "添加新的汇总" 'Add New Summary
Case GridStringId.MenuFooterAverage : Return "平均值" 'Average
Case GridStringId.MenuFooterAverageFormat : Return "平均={0:#.##}" 'AVG={0:0.##}
Case GridStringId.MenuFooterClearSummaryItems : Return "清除汇总的项目" 'Clear Summary Items
Case GridStringId.MenuFooterCount : Return "计数" 'Count
Case GridStringId.MenuFooterCountFormat : Return "{0}" '{0}
Case GridStringId.MenuFooterCountGroupFormat : Return "计数={0}" 'Count={0}
Case GridStringId.MenuFooterCustomFormat : Return "统计值={0}" 'Custom={0}
Case GridStringId.MenuFooterMax : Return "最大值" 'Max
Case GridStringId.MenuFooterMaxFormat : Return "最大值={0}" 'MAX={0}
Case GridStringId.MenuFooterMin : Return "最小值" 'Min
Case GridStringId.MenuFooterMinFormat : Return "最小值={0}" 'MIN={0}
Case GridStringId.MenuFooterNone : Return "无" 'None
Case GridStringId.MenuFooterSum : Return "和" 'Sum
Case GridStringId.MenuFooterSumFormat : Return "和={0:#.##}" 'SUM={0:0.##}
Case GridStringId.MenuGroupPanelClearGrouping : Return "清除分组" 'Clear Grouping
Case GridStringId.MenuGroupPanelFullCollapse : Return "全部收合" 'Full Collapse
Case GridStringId.MenuGroupPanelFullExpand : Return "全部展开" 'Full Expand
Case GridStringId.MenuGroupPanelHide : Return "隐藏组框" 'Hide Group By Box
Case GridStringId.MenuGroupPanelShow : Return "框显示组" 'Show Group By Box
Case GridStringId.MenuHideSplitItem : Return "删除拆分" 'Remove Split
Case GridStringId.MenuShowSplitItem : Return "拆分" 'Split
Case GridStringId.PopupFilterAll : Return "(全部)" '(All)
Case GridStringId.PopupFilterBlanks : Return "(空白)" '(Blanks)
Case GridStringId.PopupFilterCustom : Return "(自定义)" '(Custom)
Case GridStringId.PopupFilterNonBlanks : Return "(无空白)" '(Non blanks)
Case GridStringId.PrintDesignerBandedView : Return "打印设置 (Banded View)" 'Print Settings (Banded View)
Case GridStringId.PrintDesignerBandHeader : Return "起始带宽" 'Band Header
Case GridStringId.PrintDesignerCardView : Return "打印设置(卡视图)" 'Print Settings (Card View)
Case GridStringId.PrintDesignerDescription : Return "为当前视图设置不同的打印选项" 'Set up various printing options for the current view.
Case GridStringId.PrintDesignerGridView : Return "打印设置(网格视图)" 'Print Settings (Grid View)
Case GridStringId.PrintDesignerLayoutView : Return "打印设置(版面视图)" 'Print Settings (Layout View)
Case GridStringId.SearchLookUpAddNewButton : Return "添加新的" 'Add New
Case GridStringId.SearchLookUpMissingRows : Return "" '
Case GridStringId.ServerRequestError : Return "处理服务器的请求 ({0} … …) 的过程中出错" 'Error occurred during processing server request ({0}...)
Case GridStringId.WindowErrorCaption : Return "错误" 'Error

Case Else
ret = id.ToString
End Select
Return ret
End Function

End Class

你可能感兴趣的:(DevExpress)