DevExpress 타사 제어 한화

163517 단어 DevExpress

DevExpress의 한화는 일반적으로 세 가지 형식으로 나뉜다.


1. 이미 한화된 자원 패키지를 이용한다.2. 로컬 대상 클래스를 사용하고 코드를 이용하여 한화한다.3. 자원 패키지와 코드 결합.

여기에서 한화 방법


   1.먼저 아래의 코드를 이 클래스가 생성한 Dll을 프로젝트에 가져오거나 dll을 생성하지 않고 프로젝트에 넣으면 됩니다.     2.당신의 FromLoad() 또는 program.cs에서 이 종류를 실례화하면 구체적인 코드는 다음과 같다. new ChineseLanguage.Chinese();  

코드는 다음과 같다.

using System;   

using DevExpress.XtraEditors.Controls;   

using DevExpress.XtraGrid.Localization;

using DevExpress.XtraBars.Customization;

using DevExpress.XtraBars.Localization;

using DevExpress.XtraNavBar;

using DevExpress.XtraPrinting.Localization;

using DevExpress.XtraReports.Localization;

using DevExpress.XtraTreeList.Localization;

using DevExpress.XtraVerticalGrid.Localization;





namespace ChineseLanguage

{

    public class Chinese

    {

        public Chinese()

        {

            Localizer.Active = new XtraEditors_CN();

            GridLocalizer.Active = new XtraGrid_CN();

            BarLocalizer.Active = new XtraBar_CN();

            BarLocalizer.Active.Customization = new    XtraBarsCustomizationLocalization_CN();

            NavBarLocalizer.Active = new XtraNavBar_CN();

            PreviewLocalizer.Active = new XtraPrinting_CN();

            ReportLocalizer.Active = new XtraReports_CN();

            TreeListLocalizer.Active = new XtraTreeList_CN();

            VGridLocalizer.Active = new XtraVerticalGrid_CN();

        }

    }





    public class XtraEditors_CN :Localizer

    {

        public XtraEditors_CN()

        {

            //

            // TODO:            

            //

        }

        public override string Language

        {

            get

            {

                return "    ";

            }

        }



        public override string GetLocalizedString(StringId id)   

        {   

            switch(id)     

            { 

                case StringId.TextEditMenuCopy:return "  (&C)";

                case StringId.TextEditMenuCut:return "  (&T)";

                case StringId.TextEditMenuDelete:return "  (&D)";

                case StringId.TextEditMenuPaste:return "  (&P)";

                case StringId.TextEditMenuSelectAll:return "  (&A)";

                case StringId.TextEditMenuUndo:return "  (&U)";

                case StringId.UnknownPictureFormat:return "      ";

                case StringId.DateEditToday:return "  ";

                case StringId.DateEditClear:return "  ";

                case StringId.DataEmpty:return "   ";

                case StringId.ColorTabWeb:return "  ";

                case StringId.ColorTabSystem:return "  ";

                case StringId.ColorTabCustom:return "   ";

                case StringId.CheckUnchecked:return "   ";

                case StringId.CheckIndeterminate:return "   ";

                case StringId.CheckChecked:return "   ";

                case StringId.CaptionError:return "    ";

                case StringId.Cancel:return "  ";

                case StringId.CalcError:return "    ";

                case StringId.CalcButtonBack:return base.GetLocalizedString(id);

                case StringId.CalcButtonC:return base.GetLocalizedString(id);

                case StringId.CalcButtonCE:return base.GetLocalizedString(id);;

                case StringId.CalcButtonMC:return base.GetLocalizedString(id);

                case StringId.CalcButtonMR:return base.GetLocalizedString(id);

                case StringId.CalcButtonMS:return base.GetLocalizedString(id);

                case StringId.CalcButtonMx:return base.GetLocalizedString(id);

                case StringId.CalcButtonSqrt:return base.GetLocalizedString(id);

                case StringId.OK:return "  ";

                case StringId.PictureEditMenuCopy:return "  (&C)";

                case StringId.PictureEditMenuCut:return "  (&T)";

                case StringId.PictureEditMenuDelete:return "  (&D)";

                case StringId.PictureEditMenuLoad:return "  (&L)";

                case StringId.PictureEditMenuPaste:return "  (&P)";

                case StringId.PictureEditMenuSave:return "  (&S)";

                case StringId.PictureEditOpenFileError:return "      ";

                case StringId.PictureEditOpenFileErrorCaption:return "    ";

                case StringId.PictureEditOpenFileFilter:return "    (*.bmp)|*.bmp|GIF   (*.gif)|*.gif|JPEG(*.jpg;*.jpeg)|*.jpg;*.jpeg|ICO(*.ico)|*.ico|      |*.bmp;*.gif;*.jpeg;*.jpg;*.ico|    (*.*)|*.*";

                case StringId.PictureEditOpenFileTitle:return "  ";

                case StringId.PictureEditSaveFileFilter:return "    (*.bmp)|*.bmp|GIF  (*.gif)|*.gif|JPEG(*.jpg)|*.jpg";

                case StringId.PictureEditSaveFileTitle:return "   ";

                case StringId.TabHeaderButtonClose:return "  ";

                case StringId.TabHeaderButtonNext:return "   ";

                case StringId.TabHeaderButtonPrev:return "   ";

                case StringId.XtraMessageBoxAbortButtonText:return "  (&A)";

                case StringId.XtraMessageBoxCancelButtonText:return "  (&C)";

                case StringId.XtraMessageBoxIgnoreButtonText:return "  (&I)";

                case StringId.XtraMessageBoxNoButtonText:return " (&N)";

                case StringId.XtraMessageBoxOkButtonText:return "  (&O)";

                case StringId.XtraMessageBoxRetryButtonText:return "  (&R)";

                case StringId.XtraMessageBoxYesButtonText:return " (&Y)";

                case StringId.ImagePopupEmpty:return "( )";

                case StringId.ImagePopupPicture:return "(  )";

                case StringId.InvalidValueText:return "    ";

                case StringId.LookUpEditValueIsNull:return "[   ]";

                case StringId.LookUpInvalidEditValueType:return "       ";

                case StringId.MaskBoxValidateError:return "       .       ?   -            .   -       .    -       . ";

                case StringId.NavigatorAppendButtonHint:return "  ";

                case StringId.NavigatorCancelEditButtonHint:return "    ";

                case StringId.NavigatorEditButtonHint:return "  ";

                case StringId.NavigatorEndEditButtonHint:return "    ";

                case StringId.NavigatorFirstButtonHint:return "   ";

                case StringId.NavigatorLastButtonHint:return "    ";

                case StringId.NavigatorNextButtonHint:return "   ";

                case StringId.NavigatorNextPageButtonHint:return "   ";

                case StringId.NavigatorPreviousButtonHint:return "   ";

                case StringId.NavigatorPreviousPageButtonHint:return "   ";

                case StringId.NavigatorRemoveButtonHint:return "  ";

                case StringId.NavigatorTextStringFormat:return "  {0}/{1}";

                case StringId.None:return "";

                case StringId.NotValidArrayLength:return "       .";

            }

            return base.GetLocalizedString(id);

        }



    }

    

    

    public class XtraGrid_CN :GridLocalizer 

    {

        public override string Language

        {

            get

            {

                return "    ";

            }

        }

        

        public override string GetLocalizedString(GridStringId id)

        {

            switch(id)

            {

                case GridStringId.CardViewNewCard:return "   ";

                case GridStringId.CardViewQuickCustomizationButton:return "     ";

                case GridStringId.CardViewQuickCustomizationButtonFilter:return "  ";

                case GridStringId.CardViewQuickCustomizationButtonSort:return "  ";    

                case GridStringId.ColumnViewExceptionMessage:return "      ?";

                case GridStringId.CustomFilterDialog2FieldCheck:return "  ";

                case GridStringId.CustomFilterDialogCancelButton:return "  ";

                case GridStringId.CustomFilterDialogCaption:return "   :";

                case GridStringId.CustomFilterDialogConditionBlanks:return "  ";

                case GridStringId.CustomFilterDialogConditionEQU:return "  =";

                case GridStringId.CustomFilterDialogConditionGT:return "  >";

                case GridStringId.CustomFilterDialogConditionGTE:return "     >=";

                case GridStringId.CustomFilterDialogConditionLike: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 "      (&L)";

                case GridStringId.CustomFilterDialogOkButton:return "  (&O)";

                case GridStringId.CustomFilterDialogRadioAnd:return " (&A)";

                case GridStringId.CustomFilterDialogRadioOr:return "  (&O)";

                case GridStringId.CustomizationBands:return "  ";

                case GridStringId.CustomizationCaption:return "       ";

                case GridStringId.CustomizationColumns:return " ";

                case GridStringId.FileIsNotFoundError:return "  {0}   !";

                case GridStringId.GridGroupPanelText:return "            ";

                case GridStringId.GridNewRowText:return "        ";

                case GridStringId.GridOutlookIntervals:return "     ;   ;   ;   ;  ;;;;;;;;  ;  ;  ; ;;;;;;;  ;   ;   ;   ;     ;";

                case GridStringId.MenuColumnBestFit:return "        ";

                case GridStringId.MenuColumnBestFitAllColumns:return "          ";

                case GridStringId.MenuColumnClearFilter:return "      ";

                case GridStringId.MenuColumnColumnCustomization:return "  /    ";

                case GridStringId.MenuColumnFilter:return "  ";

                case GridStringId.MenuColumnGroup:return "     ";

                case GridStringId.MenuColumnGroupBox:return "   ";

                case GridStringId.MenuColumnSortAscending:return "    ";

                case GridStringId.MenuColumnSortDescending:return "    ";

                case GridStringId.MenuColumnUnGroup:return "    ";

                case GridStringId.MenuFooterAverage:return "  ";

                case GridStringId.MenuFooterAverageFormat:return "  ={0:#.##}";

                case GridStringId.MenuFooterCount:return "  ";

                case GridStringId.MenuFooterCountFormat:return "{0}";

                case GridStringId.MenuFooterMax:return "   ";

                case GridStringId.MenuFooterMaxFormat:return "   ={0}";

                case GridStringId.MenuFooterMin:return "  ";

                case GridStringId.MenuFooterMinFormat:return "   ={0}";

                case GridStringId.MenuFooterNone:return "  ";

                case GridStringId.MenuFooterSum:return "  ";

                case GridStringId.MenuFooterSumFormat:return "  ={0:#.##}";

                case GridStringId.MenuGroupPanelClearGrouping:return "      ";

                case GridStringId.MenuGroupPanelFullCollapse:return "      ";

                case GridStringId.MenuGroupPanelFullExpand:return "      ";

                case GridStringId.PopupFilterAll:return "(  )";

                case GridStringId.PopupFilterBlanks:return "(  )";

                case GridStringId.PopupFilterCustom:return "(   )";

                case GridStringId.PopupFilterNonBlanks:return "(   )";

                case GridStringId.PrintDesignerBandedView:return "    (    )";

                case GridStringId.PrintDesignerBandHeader:return "   ";

                case GridStringId.PrintDesignerCardView:return "    (    )";

                case GridStringId.PrintDesignerDescription:return "              .";

                case GridStringId.PrintDesignerGridView:return "    (    )";

                case GridStringId.WindowErrorCaption:return "  ";

            }

            return base.GetLocalizedString(id);

        }

    }



    

    public class XtraBar_CN :BarLocalizer

    {

        public override string Language

        {

            get

            {

                return "    ";

            }

        }



        public override string GetLocalizedString(BarString id)

        {

            switch(id)

            {

                case BarString.AddOrRemove:return "       (&A)";

                case BarString.CustomizeButton:return "   (&C)";

                case BarString.CustomizeWindowCaption:return "   ";

                case BarString.MenuAnimationFade:return "  ";

                case BarString.MenuAnimationNone:return " ";

                case BarString.MenuAnimationRandom:return "  ";

                case BarString.MenuAnimationSlide:return "  ";

                case BarString.MenuAnimationSystem:return "(     )";

                case BarString.MenuAnimationUnfold:return  "  ";

                case BarString.NewToolbarCaption:return "     ";

                case BarString.None:return "";

                case BarString.RenameToolbarCaption:return "    ";

                case BarString.ResetBar:return "         '{0}'         ?";

                case BarString.ResetBarCaption:return "   ";

                case BarString.ResetButton:return "     (&R)";

                case BarString.ToolBarMenu:return "  (&R)$  (&D)$!  (&N)$!  (&L)$     (&T)$        (&O)$     (&A)$!    (&G)$   (&M)";

                case BarString.ToolbarNameCaption:return "     (&T):";



            }

            return base.GetLocalizedString(id);

        }

    }





    public class XtraBarsCustomizationLocalization_CN : CustomizationControl

    {

        private System.ComponentModel.Container components = null;



        public XtraBarsCustomizationLocalization_CN()

        {

            // This call is required by the Windows.Forms Form Designer.

            InitializeComponent();



            // TODO: Add any initialization after the InitForm call



        }



        protected override void Dispose(bool disposing)

        {

            if (disposing)

            {

                if (components != null)

                {

                    components.Dispose();

                }

            }

            base.Dispose(disposing);

        }



        #region Component Designer generated code

        /// <summary> 

        /// Required method for Designer support - do not modify 

        /// the contents of this method with the code editor.

        /// </summary>

        private void InitializeComponent()

        {

            this.tpOptions.SuspendLayout();

            this.tpCommands.SuspendLayout();

            this.tpToolbars.SuspendLayout();

            ((System.ComponentModel.ISupportInitialize)(this.toolBarsList)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.lbCommands)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.lbCategories)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptionsShowFullMenus.Properties)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showFullMenusAfterDelay.Properties)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showTips.Properties)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_ShowShortcutInTips.Properties)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.tabControl)).BeginInit();

            this.tabControl.SuspendLayout();

            ((System.ComponentModel.ISupportInitialize)(this.tbNBDlgName.Properties)).BeginInit();

            this.pnlNBDlg.SuspendLayout();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_largeIcons.Properties)).BeginInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_MenuAnimation.Properties)).BeginInit();

            this.SuspendLayout();

            



            this.btClose.Text = "  ";

            this.btResetBar.Text = "    (&R)";

            this.btRenameBar.Text = "   (&E)";

            this.btNewBar.Text = "  (&N)";

            this.btDeleteBar.Text = "  (&D)";

            this.btOptions_Reset.Text = "      (&R)";

            this.btNBDlgCancel.Text = "  ";

            this.btNBDlgOk.Text = "  ";

            this.tpOptions.Size = new System.Drawing.Size(354, 246);

            this.tpOptions.Text = "  (&O)";

            this.tpCommands.Text = "  (&C)";

            this.tpToolbars.Text = "   (&B)";            

            this.cbOptionsShowFullMenus.Properties.Caption = "        (&N)";

            this.cbOptions_showFullMenusAfterDelay.Properties.Caption = "               (&U)";

            this.cbOptions_largeIcons.Properties.Caption = "   (&L)";

            this.cbOptions_showTips.Properties.Caption = "           (&T)";

            this.cbOptions_ShowShortcutInTips.Properties.Caption = "           (&H)";

            this.lbDescCaption.Text = "    ";

            this.lbOptions_Other.Text = "  ";

            this.lbOptions_PCaption.Text = "         ";

            this.lbCategoriesCaption.Text = "  :";

            this.lbCommandsCaption.Text = "  :";

            this.lbToolbarCaption.Text = "   :";

            this.lbOptions_MenuAnimation.Text = "      (&M):";

            this.lbNBDlgCaption.Text = "     (&T)";

            this.lbCommands.Appearance.BackColor = System.Drawing.SystemColors.Window;

            this.lbCommands.Appearance.Options.UseBackColor = true;

            this.Name = "XtraBarsCustomizationLocalization_CN";

            this.tpOptions.ResumeLayout(false);

            this.tpCommands.ResumeLayout(false);

            this.tpToolbars.ResumeLayout(false);

            ((System.ComponentModel.ISupportInitialize)(this.toolBarsList)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.lbCommands)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.lbCategories)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptionsShowFullMenus.Properties)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showFullMenusAfterDelay.Properties)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showTips.Properties)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_ShowShortcutInTips.Properties)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.tabControl)).EndInit();

            this.tabControl.ResumeLayout(false);

            ((System.ComponentModel.ISupportInitialize)(this.tbNBDlgName.Properties)).EndInit();

            this.pnlNBDlg.ResumeLayout(false);

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_largeIcons.Properties)).EndInit();

            ((System.ComponentModel.ISupportInitialize)(this.cbOptions_MenuAnimation.Properties)).EndInit();

            this.ResumeLayout(false);



        }

        #endregion

    }





    public class XtraNavBar_CN :NavBarLocalizer

    {

        public override string Language

        {

            get

            {

                return "    ";

            }

        }

        

        public override string GetLocalizedString(NavBarStringId id)

        {

            switch(id)

            {

                case NavBarStringId.NavPaneChevronHint:return "    ";

                case NavBarStringId.NavPaneMenuAddRemoveButtons:return "       (&A)";

                case NavBarStringId.NavPaneMenuShowFewerButtons:return "       (&F)";

                case NavBarStringId.NavPaneMenuShowMoreButtons:return "       (&M)";

            }

            return base.GetLocalizedString(id);

        }

    }





    public class XtraPrinting_CN :PreviewLocalizer

    {

        public override string Language

        {

            get

            {

                return "    ";

            }

        }



        public override string GetLocalizedString(PreviewStringId id)

        {

            switch(id)

            {

                case PreviewStringId.Button_Apply:return "  ";

                case PreviewStringId.Button_Cancel:return "  ";

                case PreviewStringId.Button_Help:return "  ";

                case PreviewStringId.Button_Ok:return "  ";

                case PreviewStringId.EMail_From:return "From";

                case PreviewStringId.Margin_BottomMargin:return "   ";

                case PreviewStringId.Margin_Inch:return "  ";

                case PreviewStringId.Margin_LeftMargin:return "   ";

                case PreviewStringId.Margin_Millimeter:return "  ";

                case PreviewStringId.Margin_RightMargin:return "   ";

                case PreviewStringId.Margin_TopMargin:return "   ";

                case PreviewStringId.MenuItem_BackgrColor:return "  (&C)";

                case PreviewStringId.MenuItem_Background:return "  (&B)";

                case PreviewStringId.MenuItem_CsvDocument:return "CSV  ";

                case PreviewStringId.MenuItem_Exit:return "  (&X)";

                case PreviewStringId.MenuItem_Export:return "  (&E)";

                case PreviewStringId.MenuItem_File: return "  (&F)";

                case PreviewStringId.MenuItem_GraphicDocument:return "    ";

                case PreviewStringId.MenuItem_HtmDocument:return "HTML  ";

                case PreviewStringId.MenuItem_MhtDocument:return "MHT  ";

                case PreviewStringId.MenuItem_PageSetup:return "    (&U)";

                case PreviewStringId.MenuItem_PdfDocument:return "PDF  ";

                case PreviewStringId.MenuItem_Print:return "  (&P)";

                case PreviewStringId.MenuItem_PrintDirect:return "    (&R)";

                case PreviewStringId.MenuItem_RtfDocument:return "RTF  ";

                case PreviewStringId.MenuItem_Send:return "  (&D)";

                case PreviewStringId.MenuItem_TxtDocument:return "TXT  ";

                case PreviewStringId.MenuItem_View:return "  (&V)";

                case PreviewStringId.MenuItem_ViewStatusbar:return "   (&S)";

                case PreviewStringId.MenuItem_ViewToolbar:return "   (&T)";

                case PreviewStringId.MenuItem_Watermark:return "  (&W)";

                case PreviewStringId.MenuItem_XlsDocument:return "XLS  ";

                case PreviewStringId.MPForm_Lbl_Pages:return " ";

                case PreviewStringId.Msg_CreatingDocument:return "      ";

                case PreviewStringId.Msg_CustomDrawWarning:return "  !";

                case PreviewStringId.Msg_EmptyDocument:return "       .";

                case PreviewStringId.Msg_FontInvalidNumber:return "       0   ";

                case PreviewStringId.Msg_IncorrectPageRange:return "         ";

                case PreviewStringId.Msg_NeedPrinter:return "       .";

                case PreviewStringId.Msg_NotSupportedFont:return "        ";

                case PreviewStringId.Msg_PageMarginsWarning:return "               .    ?";

                case PreviewStringId.Msg_WrongPageSettings:return "             .       ?";

                case PreviewStringId.Msg_WrongPrinter:return "        .             .";

                case PreviewStringId.PageInfo_PageDate:return "[Date Printed]";

                case PreviewStringId.PageInfo_PageNumber:return "[Page #]";

                case PreviewStringId.PageInfo_PageNumberOfTotal:return "[Page # of Pages #]";

                case PreviewStringId.PageInfo_PageTime:return "[Time Printed]";

                case PreviewStringId.PageInfo_PageUserName:return "[User Name]";

                case PreviewStringId.PreviewForm_Caption:return "  ";

                case PreviewStringId.SaveDlg_FilterBmp:return "BMP Bitmap Format";

                case PreviewStringId.SaveDlg_FilterCsv:return "CSV  ";

                case PreviewStringId.SaveDlg_FilterGif:return "GIF Graphics Interchange Format";

                case PreviewStringId.SaveDlg_FilterHtm:return "HTML  ";

                case PreviewStringId.SaveDlg_FilterJpeg:return "JPEG File Interchange Format";

                case PreviewStringId.SaveDlg_FilterMht:return "MHT  ";

                case PreviewStringId.SaveDlg_FilterPdf:return "PDF  ";

                case PreviewStringId.SaveDlg_FilterPng:return "PNG Portable Network Graphics Format";

                case PreviewStringId.SaveDlg_FilterRtf:return "RTF  ";

                case PreviewStringId.SaveDlg_FilterTiff:return "TIFF Tag Image File Format";

                case PreviewStringId.SaveDlg_FilterTxt:return "TXT  ";

                case PreviewStringId.SaveDlg_FilterWmf:return "WMF Windows Metafile";

                case PreviewStringId.SaveDlg_FilterXls:return "Excel  ";

                case PreviewStringId.SaveDlg_Title:return "   ";

                case PreviewStringId.SB_CurrentPageNo:return "    :";

                case PreviewStringId.SB_PageInfo:return "{0}/{1}";

                case PreviewStringId.SB_PageNone:return " ";

                case PreviewStringId.SB_TotalPageNo:return "   :";

                case PreviewStringId.SB_ZoomFactor:return "    :";

                case PreviewStringId.ScrollingInfo_Page:return " ";

                case PreviewStringId.TB_TTip_Backgr:return "   ";

                case PreviewStringId.TB_TTip_Close:return "  ";

                case PreviewStringId.TB_TTip_Customize:return "   ";

                case PreviewStringId.TB_TTip_EditPageHF:return "    ";

                case PreviewStringId.TB_TTip_Export:return "    ";

                case PreviewStringId.TB_TTip_FirstPage:return "  ";

                case PreviewStringId.TB_TTip_HandTool:return "    ";

                case PreviewStringId.TB_TTip_LastPage:return "  ";

                case PreviewStringId.TB_TTip_Magnifier:return "  /  ";

                case PreviewStringId.TB_TTip_Map:return "    ";

                case PreviewStringId.TB_TTip_MultiplePages:return "  ";

                case PreviewStringId.TB_TTip_NextPage:return "   ";

                case PreviewStringId.TB_TTip_PageSetup:return "    ";

                case PreviewStringId.TB_TTip_PreviousPage:return "   ";

                case PreviewStringId.TB_TTip_Print:return "  ";

                case PreviewStringId.TB_TTip_PrintDirect:return "    ";

                case PreviewStringId.TB_TTip_Search:return "  ";

                case PreviewStringId.TB_TTip_Send:return "  E-Mail";

                case PreviewStringId.TB_TTip_Watermark:return "  ";

                case PreviewStringId.TB_TTip_Zoom:return "  ";

                case PreviewStringId.TB_TTip_ZoomIn:return "  ";

                case PreviewStringId.TB_TTip_ZoomOut:return "  ";

                case PreviewStringId.WMForm_Direction_BackwardDiagonal:return "    ";

                case PreviewStringId.WMForm_Direction_ForwardDiagonal:return "    ";

                case PreviewStringId.WMForm_Direction_Horizontal:return "  ";

                case PreviewStringId.WMForm_Direction_Vertical:return "  ";

                case PreviewStringId.WMForm_HorzAlign_Center:return "  ";

                case PreviewStringId.WMForm_HorzAlign_Left:return "  ";

                case PreviewStringId.WMForm_HorzAlign_Right:return "  ";

                case PreviewStringId.WMForm_ImageClip:return "  ";

                case PreviewStringId.WMForm_ImageStretch:return "  ";

                case PreviewStringId.WMForm_ImageZoom:return "  ";

                case PreviewStringId.WMForm_PageRangeRgrItem_All:return "  ";

                case PreviewStringId.WMForm_PageRangeRgrItem_Pages:return "  ";

                case PreviewStringId.WMForm_PictureDlg_Title:return "    ";

                case PreviewStringId.WMForm_VertAlign_Bottom:return "  ";

                case PreviewStringId.WMForm_VertAlign_Middle:return "  ";

                case PreviewStringId.WMForm_VertAlign_Top:return "  ";

                case PreviewStringId.WMForm_Watermark_Asap:return "ASAP";

                case PreviewStringId.WMForm_Watermark_Confidential:return "CONFIDENTIAL";

                case PreviewStringId.WMForm_Watermark_Copy:return "COPY";

                case PreviewStringId.WMForm_Watermark_DoNotCopy:return "DO NOT COPY";

                case PreviewStringId.WMForm_Watermark_Draft:return "DRAFT";

                case PreviewStringId.WMForm_Watermark_Evaluation:return "EVALUATION";

                case PreviewStringId.WMForm_Watermark_Original:return "ORIGINAL";

                case PreviewStringId.WMForm_Watermark_Personal:return "PERSONAL";

                case PreviewStringId.WMForm_Watermark_Sample:return "SAMPLE";

                case PreviewStringId.WMForm_Watermark_TopSecret:return "TOP SECRET";

                case PreviewStringId.WMForm_Watermark_Urgent:return "URGENT";

                case PreviewStringId.WMForm_ZOrderRgrItem_Behind:return "   ";

                case PreviewStringId.WMForm_ZOrderRgrItem_InFront:return "   ";

            }

            return base.GetLocalizedString(id);

        }

    }





    public class XtraReports_CN :ReportLocalizer

    {

        public override string Language

        {

            get

            {

                return "    ";

            }

        }



        public override string GetLocalizedString(ReportStringId id)

        {

            switch(id)

            {

                case ReportStringId.BandDsg_QuantityPerPage:return "      ";

                case ReportStringId.BandDsg_QuantityPerReport:return "      ";

                case ReportStringId.BCForm_Lbl_Binding:return "  ";

                case ReportStringId.BCForm_Lbl_Property:return "  ";

                case ReportStringId.CatAppearance:return "  ";

                case ReportStringId.CatBehavior:return "  ";

                case ReportStringId.CatData:return "  ";

                case ReportStringId.CatLayout:return "  ";

                case ReportStringId.CatNavigation:return "  ";

                case ReportStringId.CatPageSettings:return "    ";

                case ReportStringId.Cmd_AlignToGrid:return "     ";

                case ReportStringId.Cmd_BottomMargin:return "    ";

                case ReportStringId.Cmd_BringToFront:return "     ";

                case ReportStringId.Cmd_Copy:return "  ";

                case ReportStringId.Cmd_Cut:return "  ";

                case ReportStringId.Cmd_Delete:return "  ";

                case ReportStringId.Cmd_Detail:return "  ";

                case ReportStringId.Cmd_DetailReport:return "    ";

                case ReportStringId.Cmd_GroupFooter:return "   ";

                case ReportStringId.Cmd_GroupHeader:return "   ";

                case ReportStringId.Cmd_InsertBand:return "    ";

                case ReportStringId.Cmd_InsertDetailReport:return "      ";

                case ReportStringId.Cmd_InsertUnboundDetailReport:return "   ";

                case ReportStringId.Cmd_PageFooter:return "  ";

                case ReportStringId.Cmd_PageHeader:return "  ";

                case ReportStringId.Cmd_Paste:return "  ";

                case ReportStringId.Cmd_Properties:return "  ";

                case ReportStringId.Cmd_ReportFooter:return "   ";

                case ReportStringId.Cmd_ReportHeader:return "   ";

                case ReportStringId.Cmd_RtfClear:return "  ";

                case ReportStringId.Cmd_RtfLoad:return "    ";

                case ReportStringId.Cmd_SendToBack:return "     ";

                case ReportStringId.Cmd_TableDelete:return "  (&L)";

                case ReportStringId.Cmd_TableDeleteCell:return "   (&L)";

                case ReportStringId.Cmd_TableDeleteColumn:return " (&C)";

                case ReportStringId.Cmd_TableDeleteRow:return " (&R)";

                case ReportStringId.Cmd_TableInsert:return "  (&I)";

                case ReportStringId.Cmd_TableInsertCell:return "   (&C)";

                case ReportStringId.Cmd_TableInsertColumnToLeft:return "  (&L)";

                case ReportStringId.Cmd_TableInsertColumnToRight:return "  (&R)";

                case ReportStringId.Cmd_TableInsertRowAbove:return "  (&A)";

                case ReportStringId.Cmd_TableInsertRowBelow:return "  (&B)";

                case ReportStringId.Cmd_TopMargin:return "    ";

                case ReportStringId.Cmd_ViewCode:return "    ";

                case ReportStringId.FindForm_Msg_FinishedSearching:return "      ";

                case ReportStringId.FindForm_Msg_TotalFound:return "    :";

                case ReportStringId.FSForm_Btn_Delete:return "  ";

                case ReportStringId.FSForm_GrBox_Sample:return "  ";

                case ReportStringId.FSForm_Lbl_Category:return "  ";

                case ReportStringId.FSForm_Lbl_CustomGeneral:return "             ";

                case ReportStringId.FSForm_Lbl_Prefix:return "  ";

                case ReportStringId.FSForm_Lbl_Suffix:return "  ";

                case ReportStringId.FSForm_Msg_BadSymbol:return "     ";

                case ReportStringId.FSForm_Tab_Custom:return "   ";

                case ReportStringId.FSForm_Tab_StandardTypes:return "    ";

                case ReportStringId.Msg_CantFitBarcodeToControlBounds:return "          ";

                case ReportStringId.Msg_CreateReportInstance:return "                 。        ?";

                case ReportStringId.Msg_CreateSomeInstance:return "";

                case ReportStringId.Msg_CyclicBoormarks:return "      ";

                case ReportStringId.Msg_DontSupportMulticolumn:return "";

                case ReportStringId.Msg_FileCorrupted:return "      ,               。";

                case ReportStringId.Msg_FileNotFound:return "      ";

                case ReportStringId.Msg_FillDataError:return "         。   :";

                case ReportStringId.Msg_IncorrectArgument:return "        ";

                case ReportStringId.Msg_IncorrectBandType:return "     ";

                case ReportStringId.Msg_InvalidBarcodeText:return "          ";

                case ReportStringId.Msg_InvalidBarcodeTextFormat:return "       ";

                case ReportStringId.Msg_InvalidMethodCall:return "               ";

                case ReportStringId.Msg_InvalidReportSource:return "       ";

                case ReportStringId.Msg_InvPropName:return "      ";

                case ReportStringId.Msg_ScriptError:return "        : {0}";

                case ReportStringId.Msg_ScriptExecutionError:return "             {0}:  {1}    {0}    ,       。";

                case ReportStringId.Msg_WrongReportClassName:return "             -          ";

                case ReportStringId.MultiColumnDesignMsg1:return "        ";

                case ReportStringId.MultiColumnDesignMsg2:return "";

                case ReportStringId.PanelDesignMsg:return "         ";

                case ReportStringId.RepTabCtl_Designer:return "  ";

                case ReportStringId.RepTabCtl_HtmlView:return "HTML  ";

                case ReportStringId.RepTabCtl_Preview:return "  ";

                case ReportStringId.SSForm_Btn_Close:return "  ";

                case ReportStringId.SSForm_Caption:return "     ";

                case ReportStringId.SSForm_Msg_FileFilter:return "Report StyleSheet files (*.repss)|*.repss|All files (*.*)|*.*";

                case ReportStringId.SSForm_Msg_InvalidFileFormat:return "       ";

                case ReportStringId.SSForm_Msg_MoreThanOneStyle:return "             ";

                case ReportStringId.SSForm_Msg_NoStyleSelected:return "       ";

                case ReportStringId.SSForm_Msg_SelectedStylesText:return "      ";

                case ReportStringId.SSForm_Msg_StyleNamePreviewPostfix:return "  ";

                case ReportStringId.SSForm_Msg_StyleSheetError:return "StyleSheet  ";

                case ReportStringId.SSForm_TTip_AddStyle:return "    ";

                case ReportStringId.SSForm_TTip_ClearStyles:return "    ";

                case ReportStringId.SSForm_TTip_LoadStyles:return "        ";

                case ReportStringId.SSForm_TTip_PurgeStyles:return "    ";

                case ReportStringId.SSForm_TTip_RemoveStyle:return "    ";

                case ReportStringId.SSForm_TTip_SaveStyles:return "       ";

                case ReportStringId.UD_FormCaption:return "XtraReport  ";

                case ReportStringId.UD_Msg_ReportChanged:return "        ,      ?";

                case ReportStringId.UD_ReportDesigner:return "XtraReport  ";

                case ReportStringId.UD_TTip_AlignBottom:return "        ";

                case ReportStringId.UD_TTip_AlignHorizontalCenters:return "          ";

                case ReportStringId.UD_TTip_AlignLeft:return "        ";

                case ReportStringId.UD_TTip_AlignRight:return "        ";

                case ReportStringId.UD_TTip_AlignToGrid:return "     ";

                case ReportStringId.UD_TTip_AlignTop:return "        ";

                case ReportStringId.UD_TTip_AlignVerticalCenters:return "          ";

                case ReportStringId.UD_TTip_BringToFront:return "     ";

                case ReportStringId.UD_TTip_CenterHorizontally:return "    ";

                case ReportStringId.UD_TTip_CenterVertically:return "    ";

                case ReportStringId.UD_TTip_EditCopy:return "  ";

                case ReportStringId.UD_TTip_EditCut:return "  ";

                case ReportStringId.UD_TTip_EditPaste:return "  ";

                case ReportStringId.UD_TTip_FileOpen:return "    ";

                case ReportStringId.UD_TTip_FileSave:return "    ";

                case ReportStringId.UD_TTip_FormatAlignLeft:return "   ";

                case ReportStringId.UD_TTip_FormatAlignRight:return "   ";

                case ReportStringId.UD_TTip_FormatBackColor:return "    ";

                case ReportStringId.UD_TTip_FormatBold:return "  ";

                case ReportStringId.UD_TTip_FormatCenter:return "  ";

                case ReportStringId.UD_TTip_FormatFontName:return "  ";

                case ReportStringId.UD_TTip_FormatFontSize:return "  ";

                case ReportStringId.UD_TTip_FormatForeColor:return "    ";

                case ReportStringId.UD_TTip_FormatItalic:return "  ";

                case ReportStringId.UD_TTip_FormatJustify:return "    ";

                case ReportStringId.UD_TTip_FormatUnderline:return "   ";            

                case ReportStringId.UD_TTip_HorizSpaceConcatenate:return "      ";

                case ReportStringId.UD_TTip_HorizSpaceDecrease:return "      ";

                case ReportStringId.UD_TTip_HorizSpaceIncrease:return "      ";

                case ReportStringId.UD_TTip_HorizSpaceMakeEqual:return "         ";

                case ReportStringId.UD_TTip_Redo:return "  ";

                case ReportStringId.UD_TTip_SendToBack:return "     ";

                case ReportStringId.UD_TTip_SizeToControl:return "       ";

                case ReportStringId.UD_TTip_SizeToControlHeight:return "       ";

                case ReportStringId.UD_TTip_SizeToControlWidth:return "       ";

                case ReportStringId.UD_TTip_SizeToGrid:return "        ";

                case ReportStringId.UD_TTip_Undo:return "  ";

                case ReportStringId.UD_TTip_VertSpaceConcatenate:return "      ";

                case ReportStringId.UD_TTip_VertSpaceDecrease:return "      ";

                case ReportStringId.UD_TTip_VertSpaceIncrease:return "      ";

                case ReportStringId.UD_TTip_VertSpaceMakeEqual:return "         ";         

            }

            return base.GetLocalizedString(id);

        }

    }



    

    public class XtraTreeList_CN :TreeListLocalizer

    {

        public override string Language

        {

            get

            {

                return "    ";

            }

        }



        public override string GetLocalizedString(TreeListStringId id)

        {

            switch(id)

            {

                case TreeListStringId.ColumnCustomizationText:return "      ";

                case TreeListStringId.ColumnNamePrefix:return "    ";

                case TreeListStringId.InvalidNodeExceptionText:return "       ?";

                case TreeListStringId.MenuColumnBestFit:return "    ";

                case TreeListStringId.MenuColumnBestFitAllColumns:return "    (   )";

                case TreeListStringId.MenuColumnColumnCustomization:return "   ";

                case TreeListStringId.MenuColumnSortAscending:return "    ";

                case TreeListStringId.MenuColumnSortDescending:return "    ";

                case TreeListStringId.MenuFooterAllNodes:return "    ";

                case TreeListStringId.MenuFooterAverage:return "  ";

                case TreeListStringId.MenuFooterAverageFormat:return "   ={0:#.##}";

                case TreeListStringId.MenuFooterCount:return "  ";

                case TreeListStringId.MenuFooterCountFormat:return "{0}";

                case TreeListStringId.MenuFooterMax:return "   ";

                case TreeListStringId.MenuFooterMaxFormat:return "   ={0}";

                case TreeListStringId.MenuFooterMin:return "   ";

                case TreeListStringId.MenuFooterMinFormat:return "   ={0}";

                case TreeListStringId.MenuFooterNone:return " ";

                case TreeListStringId.MenuFooterSum:return "  ";

                case TreeListStringId.MenuFooterSumFormat:return "  ={0:#.##}";

                case TreeListStringId.MultiSelectMethodNotSupported:return "OptionsBehavior.MultiSelect    ,        .";

                case TreeListStringId.PrintDesignerDescription:return "                 .";

                case TreeListStringId.PrintDesignerHeader:return "    ";

            }

            return base.GetLocalizedString(id);

        }

    }



    

    public class XtraVerticalGrid_CN :VGridLocalizer

    {

        public override string Language

        {

            get

            {

                return "    ";

            }

        }

        public override string GetLocalizedString(VGridStringId id)

        {

            switch(id)

            {

                case VGridStringId.InvalidRecordExceptionText:return "      ?";

                case VGridStringId.RowCustomizationDeleteCategoryText:return "  ";

                case VGridStringId.RowCustomizationNewCategoryFormLabelText:return "  ";

                case VGridStringId.RowCustomizationNewCategoryFormText:return "    ";

                case VGridStringId.RowCustomizationNewCategoryText:return "  ";

                case VGridStringId.RowCustomizationTabPageCategoriesText:return "  ";

                case VGridStringId.RowCustomizationTabPageRowsText:return " ";

                case VGridStringId.RowCustomizationText:return "   ";

                case VGridStringId.StyleCreatorName:return "     ";

            }

            return base.GetLocalizedString(id);

        }

    }



}

 

좋은 웹페이지 즐겨찾기