首页 > 代码库 > Devexpress(DXperience) 10.1.6 自己简单的方式来汉化
Devexpress(DXperience) 10.1.6 自己简单的方式来汉化
using DevExpress.XtraEditors.Controls; namespace LocalizationCHS { public class DevExpressXtraEditorsLocalizationCHS : Localizer { public override string GetLocalizedString(StringId id) { switch (id) { case StringId.None: return ""; case StringId.CaptionError: return "错误"; case StringId.InvalidValueText: return "无效数值"; case StringId.CheckChecked: return "已选"; case StringId.CheckUnchecked: return "未选"; case StringId.CheckIndeterminate: return "Indeterminate"; case StringId.DateEditToday: return "今天"; case StringId.DateEditClear: return "清除"; case StringId.OK: return "确定"; case StringId.Cancel: return "取消"; case StringId.NavigatorFirstButtonHint: return "First"; case StringId.NavigatorPreviousButtonHint: return "Previous"; case StringId.NavigatorPreviousPageButtonHint: return "Previous Page"; case StringId.NavigatorNextButtonHint: return "Next"; case StringId.NavigatorNextPageButtonHint: return "Next Page"; case StringId.NavigatorLastButtonHint: return "Last"; case StringId.NavigatorAppendButtonHint: return "Append"; case StringId.NavigatorRemoveButtonHint: return "Delete"; case StringId.NavigatorEditButtonHint: return "Edit"; case StringId.NavigatorEndEditButtonHint: return "End Edit"; case StringId.NavigatorCancelEditButtonHint: return "Cancel Edit"; case StringId.NavigatorTextStringFormat: return "Record {0} of {1}"; case StringId.PictureEditMenuCut: return "Cut"; case StringId.PictureEditMenuCopy: return "Copy"; case StringId.PictureEditMenuPaste: return "Paste"; case StringId.PictureEditMenuDelete: return "Delete"; case StringId.PictureEditMenuLoad: return "Load"; case StringId.PictureEditMenuSave: return "Save"; 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 |*.*"; case StringId.PictureEditSaveFileFilter: return "Bitmap Files (*.bmp)|*.bmp|" + "Graphics Interchange Format (*.gif)|*.gif|" + "JPEG File Interchange Format (*.jpg)|*.jpg"; case StringId.PictureEditOpenFileTitle: return "Open"; case StringId.PictureEditSaveFileTitle: return "Save As"; case StringId.PictureEditOpenFileError: return "Wrong picture format"; case StringId.PictureEditOpenFileErrorCaption: return "Open error"; case StringId.PictureEditCopyImageError: return "Could not copy image"; case StringId.LookUpEditValueIsNull: return "[EditValue is null]"; case StringId.LookUpInvalidEditValueType: return "Invalid LookUpEdit EditValue type."; case StringId.LookUpColumnDefaultName: return "Name"; case StringId.MaskBoxValidateError: return "The entered value is incomplete. Do you want to correct it?\r\n\r\n" + "Yes - return 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.UnknownPictureFormat: return "Unknown picture format"; case StringId.DataEmpty: return "No image data"; case StringId.NotValidArrayLength: return "Not valid array length."; case StringId.ImagePopupEmpty: return "(Empty)"; case StringId.ImagePopupPicture: return "(Picture)"; case StringId.ColorTabCustom: return "Custom"; case StringId.ColorTabWeb: return "Web"; case StringId.ColorTabSystem: return "System"; case StringId.CalcButtonMC: return "MC"; case StringId.CalcButtonMR: return "MR"; case StringId.CalcButtonMS: return "MS"; case StringId.CalcButtonMx: return "M+"; case StringId.CalcButtonSqrt: return "sqrt"; case StringId.CalcButtonBack: return "Back"; case StringId.CalcButtonCE: return "CE"; case StringId.CalcButtonC: return "C"; case StringId.CalcError: return "Calculation Error"; case StringId.TabHeaderButtonPrev: return "Scroll Left"; case StringId.TabHeaderButtonNext: return "Scroll Right"; case StringId.TabHeaderButtonClose: return "关闭"; case StringId.XtraMessageBoxOkButtonText: return "确定"; case StringId.XtraMessageBoxCancelButtonText: return "取消"; case StringId.XtraMessageBoxYesButtonText: return "是"; case StringId.XtraMessageBoxNoButtonText: return "否"; case StringId.XtraMessageBoxAbortButtonText: return "终止"; case StringId.XtraMessageBoxRetryButtonText: return "重试"; case StringId.XtraMessageBoxIgnoreButtonText: return "忽略"; case StringId.TextEditMenuUndo: return "&Undo"; case StringId.TextEditMenuCut: return "Cu&t"; case StringId.TextEditMenuCopy: return "&Copy"; case StringId.TextEditMenuPaste: return "&Paste"; case StringId.TextEditMenuDelete: return "&Delete"; case StringId.TextEditMenuSelectAll: return "Select &All"; case StringId.FilterShowAll: return "(Select All)"; case StringId.FilterGroupAnd: return "And"; case StringId.FilterGroupNotAnd: return "Not And"; case StringId.FilterGroupNotOr: return "Not Or"; case StringId.FilterGroupOr: return "Or"; 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.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 blank"; case StringId.FilterClauseIsNull: 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.FilterClauseDoesNotContain: return "Does not contain"; case StringId.FilterClauseDoesNotEqual: return "Does not equal"; case StringId.FilterClauseNotLike: return "Is not like"; case StringId.FilterEmptyEnter: return "<enter a value>"; case StringId.FilterEmptyParameter: return "<enter a parameter>"; case StringId.FilterMenuAddNewParameter: return "Add a new parameter ..."; case StringId.FilterEmptyValue: return "<empty>"; case StringId.FilterMenuConditionAdd: return "Add Condition"; case StringId.FilterMenuGroupAdd: return "Add Group"; case StringId.FilterMenuClearAll: return "Clear All"; case StringId.FilterMenuRowRemove: return "Remove Group"; case StringId.FilterToolTipNodeAdd: return "Adds a new condition to this group"; case StringId.FilterToolTipNodeRemove: return "Removes this condition"; case StringId.FilterToolTipNodeAction: return "Actions"; case StringId.FilterToolTipValueType: return "Compare with a value / another field"s value"; 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.ContainerAccessibleEditName: return "Editing control"; case StringId.FilterCriteriaToStringGroupOperatorAnd: return "And"; case StringId.FilterCriteriaToStringGroupOperatorOr: return "Or"; 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.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"; case StringId.FilterCriteriaToStringBinaryOperatorMinus: return "-"; case StringId.FilterCriteriaToStringBinaryOperatorModulo: return "%"; case StringId.FilterCriteriaToStringBinaryOperatorMultiply: return "*"; case StringId.FilterCriteriaToStringBinaryOperatorNotEqual: return "<>"; case StringId.FilterCriteriaToStringBinaryOperatorPlus: return "+"; case StringId.FilterCriteriaToStringBetween: return "Between"; case StringId.FilterCriteriaToStringIn: return "In"; case StringId.FilterCriteriaToStringIsNotNull: return "Is Not Null"; case StringId.FilterCriteriaToStringNotLike: return "Not Like"; case StringId.FilterCriteriaToStringFunctionIif: return "Iif"; case StringId.FilterCriteriaToStringFunctionIsNull: return "IsNull"; case StringId.FilterCriteriaToStringFunctionLen: return "Len"; case StringId.FilterCriteriaToStringFunctionLower: return "Lower"; case StringId.FilterCriteriaToStringFunctionNone: return "None"; case StringId.FilterCriteriaToStringFunctionSubstring: return "Substring"; case StringId.FilterCriteriaToStringFunctionTrim: return "Trim"; case StringId.FilterCriteriaToStringFunctionUpper: return "Upper"; case StringId.FilterCriteriaToStringFunctionCustom: return "Custom"; case StringId.FilterCriteriaToStringFunctionLocalDateTimeThisYear: case StringId.FilterCriteriaToStringFunctionLocalDateTimeThisMonth: case StringId.FilterCriteriaToStringFunctionLocalDateTimeLastWeek: case StringId.FilterCriteriaToStringFunctionLocalDateTimeThisWeek: case StringId.FilterCriteriaToStringFunctionLocalDateTimeYesterday: case StringId.FilterCriteriaToStringFunctionLocalDateTimeToday: case StringId.FilterCriteriaToStringFunctionLocalDateTimeNow: case StringId.FilterCriteriaToStringFunctionLocalDateTimeTomorrow: case StringId.FilterCriteriaToStringFunctionLocalDateTimeDayAfterTomorrow: case StringId.FilterCriteriaToStringFunctionLocalDateTimeNextWeek: case StringId.FilterCriteriaToStringFunctionLocalDateTimeTwoWeeksAway: case StringId.FilterCriteriaToStringFunctionLocalDateTimeNextMonth: case StringId.FilterCriteriaToStringFunctionLocalDateTimeNextYear: return id.ToString().Substring("FilterCriteriaToStringFunctionLocalDateTime".Length); case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalBeyondThisYear: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisYear: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisMonth: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalNextWeek: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLaterThisWeek: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalTomorrow: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalToday: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalYesterday: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisWeek: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalLastWeek: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisMonth: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalEarlierThisYear: case StringId.FilterCriteriaToStringFunctionIsOutlookIntervalPriorThisYear: return "Is" + id.ToString().Substring("FilterCriteriaToStringFunctionIsOutlookInterval".Length); case StringId.FilterCriteriaInvalidExpression: return "The specified expression contains invalid symbols (line {0}, character {1})."; case StringId.FilterCriteriaInvalidExpressionEx: return "The specified expression is invalid."; case StringId.Apply: return "Apply"; case StringId.PreviewPanelText: return "Preview:"; case StringId.TransparentBackColorNotSupported: return "This control does not support transparent background colors"; case StringId.FilterOutlookDateText: return "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.FilterDateTextAlt: return "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 "DateTime constants"; case StringId.FilterDateTimeOperatorMenuCaption: return "DateTime operators"; } return ""; } } }
Devexpress(DXperience) 10.1.6 自己简单的方式来汉化
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。