zoukankan      html  css  js  c++  java
  • devexpress 控制面板汉化方式 参考信息

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraGrid.Localization;
    
    namespace DemoZhcn
    {
        class GermanGridLocalizer: GridLocalizer
            {
                public override string Language { get { return "zh-Hans"; } }
                public override string GetLocalizedString(GridStringId id)
                {
                    string ret = "";
                    switch (id)
                    {
                        // ...  
                        case GridStringId.GridGroupPanelText: return "Ziehen Sie eine Spaltenüberschrift in diesen Bereich, um nach dieser zu gruppieren";
                        case GridStringId.MenuColumnClearSorting: return "Sortierung entfernen";
                        case GridStringId.MenuGroupPanelHide: return "Gruppierungsfeld ausblenden";
                        case GridStringId.MenuColumnRemoveColumn: return "Spalte entfernen";
                        case GridStringId.MenuColumnFilterEditor: return "Filter &bearbeiten";
                        case GridStringId.MenuColumnFindFilterShow: return "Suche einblenden";
                        case GridStringId.MenuColumnAutoFilterRowShow: return "Zeige Auto Filterzeile";
                        case GridStringId.MenuColumnSortAscending: return "Aufsteigend sortieren";
                        case GridStringId.MenuColumnSortDescending: return "Absteigend sortieren";
                        case GridStringId.MenuColumnGroup: return "Gruppieren fur dieses Feld";
                        case GridStringId.MenuColumnUnGroup: return "Gruppierung aufheben";
                        case GridStringId.MenuColumnColumnCustomization: return "Laufzeit benutzerdefinierte Spalte";
                        case GridStringId.MenuColumnBestFit: return "Optimale Breite";
                        case GridStringId.MenuColumnFilter: return "Kann gruppieren";
                        case GridStringId.MenuColumnClearFilter: return "Filter aufheben";
                        case GridStringId.MenuColumnBestFitAllColumns: return "Optimale Breite (alle Spalten)";
                        // ...  
                        default:
                            ret = base.GetLocalizedString(id);
                            break;
                    }
                    return ret;
                }
            }
    
            public class GermanEditorsLocalizer : Localizer
            {
                public override string Language { get { return "zh-Hans"; } }
                public override string GetLocalizedString(StringId id)
                {
                    switch (id)
                    {
                        // ... 
                        case StringId.NavigatorTextStringFormat: return "Zeile {0} von {1}";
                        case StringId.PictureEditMenuCut: return "Ausschneiden";
                        case StringId.PictureEditMenuCopy: return "Kopieren";
                        case StringId.PictureEditMenuPaste: return "Einfugen";
                        case StringId.PictureEditMenuDelete: return "Loschen";
                        case StringId.PictureEditMenuLoad: return "Laden";
                        case StringId.PictureEditMenuSave: return "Speichern";
                        // ... 
                    }
                    return "";
                }
            }
    
        }
  • 相关阅读:
    android的UriMatcher类
    学习Scanner类
    android应用开发 listview
    EditText 和 TextView 的属性详解
    Android适配器Adapter学习
    AlertDialog.Builder对话框类的用法
    Android ArrayAdapter 详解
    ThreadPoolExecutor线程池大小设置与BlockingQueue的三种实现区别
    【Android】滑动屏幕效果GestureDetector、OnGestureListener、ViewFlipper
    Windows Phone 7常用的开发技巧&学习总结
  • 原文地址:https://www.cnblogs.com/wordgao/p/4490733.html
Copyright © 2011-2022 走看看