风自飘零水自流

如果上天让我再次碰到包包,我绝对不会让她从我手中溜掉!~

DevExpress GridControl界面汉化(c#)

GridLocalizer.Active = new GridCN();
 

 

 

 

 public class GridCN : GridLocalizer
        {

            // public override string GetLocalizedString(GridStringId id)
            public override string GetLocalizedString(GridStringId id)
            {
                switch (id)
                {
                    case GridStringId.CardViewNewCard:
                        return "";
                        break;
                    case GridStringId.CardViewQuickCustomizationButton:
                        return "";
                        break;
                    case GridStringId.CardViewQuickCustomizationButtonFilter:
                        return "";
                        break;
                    case GridStringId.CardViewQuickCustomizationButtonSort:
                        return "";
                        break;
                    case GridStringId.ColumnViewExceptionMessage:
                        return "数据录入有误,请更正!";
                        break;
                    case GridStringId.CustomFilterDialog2FieldCheck:
                        return "Field";
                        break;
                    case GridStringId.CustomFilterDialogCancelButton:
                        return "取消";
                        break;
                    case GridStringId.CustomFilterDialogCaption:
                        return "条件为:";
                        break;
                    case GridStringId.CustomFilterDialogConditionBlanks:
                        return "空值";
                        break;
                    case GridStringId.CustomFilterDialogConditionEQU:
                        return "等于=";
                        break;
                    case GridStringId.CustomFilterDialogConditionGT:
                        return "大于>";
                        break;
                    case GridStringId.CustomFilterDialogConditionGTE:
                        return "大于或等于>=";
                        break;
                    case GridStringId.CustomFilterDialogConditionLike:
                        return "包含";
                        break;
                    case GridStringId.CustomFilterDialogConditionLT:
                        return "小于<";
                        break;
                    case GridStringId.CustomFilterDialogConditionLTE:
                        return "小于或等于>=";
                        break;
                    case GridStringId.CustomFilterDialogConditionNEQ:
                        return "不等于<>";
                        break;
                    case GridStringId.CustomFilterDialogConditionNonBlanks:
                        return "非空值";
                        break;
                    case GridStringId.CustomFilterDialogConditionNotLike:
                        return "不包含";
                        break;
                    case GridStringId.CustomFilterDialogFormCaption:
                        return "自定义筛选条件";
                        break;
                    case GridStringId.CustomFilterDialogOkButton:
                        return "确定(&O)";
                        break;
                    case GridStringId.CustomFilterDialogRadioAnd:
                        return "和(&A)";
                        break;
                    case GridStringId.CustomFilterDialogRadioOr:
                        return "或者(&O)";
                        break;
                    case GridStringId.CustomizationBands:
                        return "Bands";
                        break;
                    case GridStringId.CustomizationCaption:
                        return "字段隐藏窗口";
                        break;
                    case GridStringId.CustomizationColumns:
                        return "Columns";
                        break;
                    case GridStringId.FileIsNotFoundError:
                        return "文件 {0} 没找到!";
                        break;
                    case GridStringId.GridGroupPanelText:
                        return "拖动列标题到这进行分组";
                        break;
                    case GridStringId.GridNewRowText:
                        return "新增资料";
                        break;
                    case GridStringId.GridOutlookIntervals:
                        return "";
                        break;
                    case GridStringId.MenuColumnBestFit:
                        return "自动宽度";
                        break;
                    case GridStringId.MenuColumnBestFitAllColumns:
                        return "自动宽度(全部)";
                        break;
                    case GridStringId.MenuColumnClearFilter:
                        return "清除筛选条件";
                        break;
                    case GridStringId.MenuColumnColumnCustomization:
                        return "显示/隐藏字段";
                        break;
                    case GridStringId.MenuColumnFilter:
                        return "筛选";
                        break;
                    case GridStringId.MenuColumnGroup:
                        return "进行分组";
                        break;
                    case GridStringId.MenuColumnGroupBox:
                        return "分组区";
                        break;
                    case GridStringId.MenuColumnSortAscending:
                        return "升序排序";
                        break;
                    case GridStringId.MenuColumnSortDescending:
                        return "降序排序";
                        break;
                    case GridStringId.MenuColumnUnGroup:
                        return "取消分组";
                        break;
                    case GridStringId.MenuFooterAverage:
                        return "平均值";
                        break;
                    case GridStringId.MenuFooterAverageFormat:
                        return "平均值={0:#.##}";
                        break;
                    case GridStringId.MenuFooterCount:
                        return "列数";
                        break;
                    case GridStringId.MenuFooterCountFormat:
                        return "{0}";
                        break;
                    case GridStringId.MenuFooterMax:
                        return "最大值";
                        break;
                    case GridStringId.MenuFooterMaxFormat:
                        return "最大值={0}";
                        break;
                    case GridStringId.MenuFooterMin:
                        return "最小";
                        break;
                    case GridStringId.MenuFooterMinFormat:
                        return "最小值={0}";
                        break;
                    case GridStringId.MenuFooterNone:
                        return "没有";
                        break;
                    case GridStringId.MenuFooterSum:
                        return "求和";
                        break;
                    case GridStringId.MenuFooterSumFormat:
                        return "求和={0:#.##}";
                        break;
                    case GridStringId.MenuGroupPanelClearGrouping:
                        return "取消所有分组";
                        break;
                    case GridStringId.MenuGroupPanelFullCollapse:
                        return "收缩全部分组";
                        break;
                    case GridStringId.MenuGroupPanelFullExpand:
                        return "展开全部分组";
                        break;
                    case GridStringId.PopupFilterAll:
                        return "(所有)";
                        break;
                    case GridStringId.PopupFilterBlanks:
                        return "(空值)";
                        break;
                    case GridStringId.PopupFilterCustom:
                        return "(自定义)";
                        break;
                    case GridStringId.PopupFilterNonBlanks:
                        return "(非空值)";
                        break;
                    case GridStringId.PrintDesignerBandedView:
                        return "";
                        break;
                    case GridStringId.PrintDesignerBandHeader:
                        return "";
                        break;
                    case GridStringId.PrintDesignerCardView:
                        return "";
                        break;
                    case GridStringId.PrintDesignerDescription:
                        return "";
                        break;
                    case GridStringId.PrintDesignerGridView:
                        return "";
                        break;
                    case GridStringId.WindowErrorCaption:
                        return "错误";
                        break;
                }
                return "";
            }
        }

阅读更多
文章标签: c# string class
博主设置当前文章不允许评论。

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭