public override string GetLocalizedString(DevExpress.XtraGrid.Localization.GridStringId id) { Utils.CollectUsedResource("GridStringId." + id.ToString()); if (ModelUserContext.CurrentLanguage == Localizer.lngEn && id != GridStringId.FindControlClearButton) { return(base.GetLocalizedString(id)); } return(XtraStrings.Get("GridStringId." + id.ToString(), base.GetLocalizedString(id))); }
public override string GetLocalizedString(DevExpress.XtraGrid.Localization.GridStringId id) { switch (id) { // 汉化 case GridStringId.CustomFilterDialogCancelButton: return("取消"); case GridStringId.CustomFilterDialogCaption: return("字段名称"); //case GridStringId.CustomFilterDialogConditionBlanks: return "空"; //case GridStringId.custom: return "等于"; //case GridStringId.CustomFilterDialogConditionLike: return "包含"; //case GridStringId.CustomFilterDialogConditionGT: return "大于"; //case GridStringId.CustomFilterDialogConditionGTE: return "大于等于"; //case GridStringId.CustomFilterDialogConditionLT: return "小于"; //case GridStringId.CustomFilterDialogConditionLTE: return "小于等于"; //case GridStringId.CustomFilterDialogConditionNEQ: return "不等于"; //case GridStringId.CustomFilterDialogConditionNonBlanks: return "非空值"; //case GridStringId.CustomFilterDialogConditionNotLike: return "不包含"; case GridStringId.CustomFilterDialogFormCaption: return("筛选条件"); case GridStringId.CustomFilterDialogRadioAnd: return("并且"); case GridStringId.CustomFilterDialogRadioOr: return("或者"); case GridStringId.MenuColumnBestFit: return("自动适应大小"); case GridStringId.MenuColumnBestFitAllColumns: return("全部自动适应大小"); case GridStringId.MenuColumnClearFilter: return("清除筛选条件"); case GridStringId.MenuColumnSortAscending: return("升序"); case GridStringId.MenuColumnSortDescending: return("降序"); case GridStringId.MenuFooterAverage: return("求平均值"); case GridStringId.MenuFooterAverageFormat: return("平均值={0}"); case GridStringId.MenuFooterCount: return("求记录数"); case GridStringId.MenuFooterCountFormat: return("记录数={0}"); case GridStringId.PopupFilterAll: return("[全部]"); case GridStringId.PopupFilterBlanks: return("[空]"); case GridStringId.PopupFilterCustom: return("[自定义]"); case GridStringId.PopupFilterNonBlanks: return("[非空值]"); case GridStringId.MenuFooterNone: return("清除"); case GridStringId.MenuFooterMax: return("最大值"); case GridStringId.MenuFooterMaxFormat: return("最大值={0}"); case GridStringId.MenuFooterMin: return("最小值"); case GridStringId.MenuFooterMinFormat: return("最小值={0}"); case GridStringId.MenuFooterSum: return("求总和"); case GridStringId.MenuFooterSumFormat: return("总和={0}"); case GridStringId.MenuGroupPanelClearGrouping: return("清除分组"); case GridStringId.MenuGroupPanelFullCollapse: return("全部收缩"); case GridStringId.MenuGroupPanelFullExpand: return("全部展开"); case GridStringId.CustomizationColumns: return("CustomizationColumns"); case GridStringId.CustomizationCaption: return("字段收藏夹"); case GridStringId.MenuColumnColumnCustomization: return("字段收藏功能"); case GridStringId.MenuColumnGroup: return("以此字段分组"); case GridStringId.GridGroupPanelText: return("[ 分组栏 ]"); case GridStringId.MenuColumnClearSorting: return("清除排序"); case GridStringId.MenuColumnFilterEditor: return("筛选编辑器"); case GridStringId.MenuColumnGroupBox: return(@"显示/隐藏分组栏"); case GridStringId.FilterBuilderApplyButton: return("应用查询条件"); case GridStringId.FilterBuilderCancelButton: return("取消"); case GridStringId.FilterBuilderCaption: return("筛选条件编辑器"); case GridStringId.FilterBuilderOkButton: return("确定"); case GridStringId.MenuColumnUnGroup: return("取消分组"); // ... } return(base.GetLocalizedString(id)); }
public string GetDefLocalizedString(DevExpress.XtraGrid.Localization.GridStringId id) { string s = base.GetLocalizedString(id); return(s); }
public override string GetLocalizedString(DevExpress.XtraGrid.Localization.GridStringId id) { switch (id) { case GridStringId.FindControlFindButton: return("查找"); case GridStringId.FindControlClearButton: return("清除"); case GridStringId.FileIsNotFoundError: return("文件{0}找不到"); case GridStringId.ColumnViewExceptionMessage: return(" 要修正当前值吗?"); case GridStringId.CustomizationCaption: return("自定义"); case GridStringId.CustomizationColumns: return("列"); case GridStringId.CustomizationBands: return("带宽"); case GridStringId.PopupFilterAll: return("(全部)"); case GridStringId.PopupFilterCustom: return("(自定义)"); case GridStringId.PopupFilterBlanks: return("(空白)"); case GridStringId.PopupFilterNonBlanks: return("(无空白)"); case GridStringId.CustomFilterDialogFormCaption: return("用户自定义自动过滤器"); case GridStringId.CustomFilterDialogCaption: return("显示符合下列条件的行:"); case GridStringId.CustomFilterDialogRadioAnd: return("于(&A)"); case GridStringId.CustomFilterDialogRadioOr: return("或(&O)"); case GridStringId.CustomFilterDialogOkButton: return("确定(&O)"); case GridStringId.CustomFilterDialogClearFilter: return("清除过滤器(&L)"); case GridStringId.CustomFilterDialogCancelButton: return("取消(&C)"); case GridStringId.CustomFilterDialog2FieldCheck: return("字段"); case GridStringId.MenuFooterSum: return("和"); case GridStringId.MenuFooterMin: return("最小值"); case GridStringId.MenuFooterMax: return("最大值"); case GridStringId.MenuFooterCount: return("计数"); case GridStringId.MenuFooterAverage: return("平均值"); case GridStringId.MenuFooterNone: return("无"); case GridStringId.MenuFooterSumFormat: return("和={0:#.##}"); case GridStringId.MenuFooterMinFormat: return("最小值={0}"); case GridStringId.MenuFooterMaxFormat: return("最大值={0}"); case GridStringId.MenuFooterCountFormat: return("{0}"); case GridStringId.MenuFooterCountGroupFormat: return("计数={0}"); case GridStringId.MenuFooterAverageFormat: return("平均={0:#.##}"); case GridStringId.MenuFooterCustomFormat: return("统计值={0}"); case GridStringId.MenuColumnSortAscending: return("升序排列"); case GridStringId.MenuColumnSortDescending: return("降序排列"); case GridStringId.MenuColumnClearSorting: return("清除排序设置"); case GridStringId.MenuColumnGroup: return("根据此列分组"); case GridStringId.FilterPanelCustomizeButton: return("自定义"); case GridStringId.MenuColumnUnGroup: return("不分组"); case GridStringId.MenuColumnColumnCustomization: return("列选择"); case GridStringId.MenuColumnBestFit: return("最佳匹配"); case GridStringId.MenuColumnFilter: return("允许筛选数据"); case GridStringId.MenuColumnFilterEditor: return("设定数据筛选条件"); case GridStringId.MenuColumnClearFilter: return("清除过滤器"); case GridStringId.MenuColumnBestFitAllColumns: return("最佳匹配(所有列)"); case GridStringId.MenuGroupPanelFullExpand: return("全部展开"); case GridStringId.MenuGroupPanelFullCollapse: return("全部收合"); case GridStringId.MenuGroupPanelClearGrouping: return("清除分组"); case GridStringId.PrintDesignerBandedView: return("打印设置 (Banded View)"); case GridStringId.PrintDesignerGridView: return("打印设置(网格视图)"); case GridStringId.PrintDesignerCardView: return("打印设置(卡视图)"); case GridStringId.PrintDesignerBandHeader: return("起始带宽"); case GridStringId.PrintDesignerDescription: return("为当前视图设置不同的打印选项"); case GridStringId.MenuColumnGroupBox: return("分组依据框"); case GridStringId.CardViewNewCard: return("新建卡"); case GridStringId.CardViewQuickCustomizationButton: return("自定义"); case GridStringId.CardViewQuickCustomizationButtonFilter: return("过滤器 "); case GridStringId.CardViewQuickCustomizationButtonSort: return("排序方式:"); case GridStringId.GridGroupPanelText: return("拖动列标题至此,根据该列分组"); case GridStringId.GridNewRowText: return("在此处添加一行"); case GridStringId.FilterBuilderOkButton: return("确定(&O)"); case GridStringId.FilterBuilderCancelButton: return("取消(&C)"); case GridStringId.FilterBuilderApplyButton: return("应用(&A)"); case GridStringId.FilterBuilderCaption: return("数据筛选条件设定:"); case GridStringId.GridOutlookIntervals: return("更早;上个月;三周之前;两周之前;上周;;;;;;;;昨天;今天;明天;;;;;;;;下周;两周后;三周后;下个月;一个月之后;"); } System.Diagnostics.Debug.WriteLine(id.ToString() + "的默认值(" + this.GetType().ToString() + ")=" + base.GetLocalizedString(id)); return(base.GetLocalizedString(id)); }