DevExpress汉化,TcxLocalizer控件的使用

+ View Code?
12345678 //ini 汉化文件的使用方法: var  cxLocalizer1: TcxLocalizer;begin  cxLocalizer1.FileName := '你的路径\DevChs.ini';  cxLocalizer1.Active := True;  cxLocalizer1.Locale := 2052;end;

 https://www.cnblogs.com/kinglandsoft/p/10636590.html?tdsourcetag=s_pctim_aiomsg

关于电子表格的汉化。只需要把下面文件替换即可。不要重新安装控件。重新编译即可(18.2.1)

DevExpress汉化,TcxLocalizer控件的使用DevExpress汉化,TcxLocalizer控件的使用
{********************************************************************}
{                                                                    }
{           Developer Express Visual Component Library               }
{           ExpressSpreadSheet                                       }
{                                                                    }
{           Copyright (c) 2001-2018 Developer Express Inc.           }
{           ALL RIGHTS RESERVED                                      }
{                                                                    }
{   The entire contents of this file is protected by U.S. and        }
{   International Copyright Laws. Unauthorized reproduction,         }
{   reverse-engineering, and distribution of all or any portion of   }
{   the code contained in this file is strictly prohibited and may   }
{   result in severe civil and criminal penalties and will be        }
{   prosecuted to the maximum extent possible under the law.         }
{                                                                    }
{   RESTRICTIONS                                                     }
{                                                                    }
{   THIS SOURCE CODE AND ALL RESULTING INTERMEDIATE FILES            }
{   (DCU, OBJ, DLL, ETC.) ARE CONFIDENTIAL AND PROPRIETARY TRADE     }
{   SECRETS OF DEVELOPER EXPRESS INC. THE REGISTERED DEVELOPER IS    }
{   LICENSED TO DISTRIBUTE THE EXPRESSSPREADSHEET CONTROL AND ALL    }
{   ACCOMPANYING VCL CONTROLS AS PART OF AN EXECUTABLE PROGRAM ONLY. }
{                                                                    }
{   THE SOURCE CODE CONTAINED WITHIN THIS FILE AND ALL RELATED       }
{   FILES OR ANY PORTION OF ITS CONTENTS SHALL AT NO TIME BE         }
{   COPIED, TRANSFERRED, SOLD, DISTRIBUTED, OR OTHERWISE MADE        }
{   AVAILABLE TO OTHER INDIVIDUALS WITHOUT EXPRESS WRITTEN CONSENT   }
{   AND PERMISSION FROM DEVELOPER EXPRESS INC.                       }
{                                                                    }
{   CONSULT THE END USER LICENSE AGREEMENT FOR INFORMATION ON        }
{   ADDITIONAL RESTRICTIONS.                                         }
{                                                                    }
{********************************************************************}

unit dxSpreadSheetStrs;

{$I cxVer.Inc}

interface

uses
  dxCore, cxClasses, dxSpreadSheetTypes, dxSpreadSheetGraphics, Graphics;

resourcestring
  // Popup Menu
  sdxBuiltInPopupMenuBringToFront = '置于顶层(&R)';
  sdxBuiltInPopupMenuClearContents = '清除内容(&N)';
  sdxBuiltInPopupMenuCopy = '复制&';
  sdxBuiltInPopupMenuCustomizeObject = '自定义对象(&U)...';
  sdxBuiltInPopupMenuCut = '剪切(&T)';
  sdxBuiltInPopupMenuDelete = '删除(&D)';
  sdxBuiltInPopupMenuDeleteDialog = '删除(&D)...';
  sdxBuiltInPopupMenuFormatCells = '设置单元格格式(&F)...';
  sdxBuiltInPopupMenuHide = '隐藏(&H)';
  sdxBuiltInPopupMenuInsert = '插入(&I)';
  sdxBuiltInPopupMenuInsertDialog = '插入(&I)...';
  sdxBuiltInPopupMenuMergeCells = '合并单元格(&M)';
  sdxBuiltInPopupMenuPaste = '粘贴(&P)';
  sdxBuiltInPopupMenuPasteSpecial = '选择性粘贴';
  sdxBuiltInPopupMenuPasteSpecialAll = '粘贴(&P)';
  sdxBuiltInPopupMenuPasteSpecialFormulas = '公式(&F)';
  sdxBuiltInPopupMenuPasteSpecialFormulasAndColumnWidths = '保持原列宽(&W)';
  sdxBuiltInPopupMenuPasteSpecialFormulasAndFormatting = '公式和数字格式(&O)';
  sdxBuiltInPopupMenuPasteSpecialFormulasAndStyles = '保持原格式(&K)';
  sdxBuiltInPopupMenuPasteSpecialShowDialog = '选择性粘贴...';
  sdxBuiltInPopupMenuPasteSpecialValues = '值(&V)';
  sdxBuiltInPopupMenuPasteSpecialValuesAndFormatting = '值和数字格式(&A)';
  sdxBuiltInPopupMenuPasteSpecialValuesAndStyles = '值和原格式(&E)';

  sdxBuiltInPopupMenuRename = '重命名(&R)...';
  sdxBuiltInPopupMenuSendToBack = '置于底层(&K)';
  sdxBuiltInPopupMenuSplitCells = '取消合并单元格(&N)';
  sdxBuiltInPopupMenuUnhide = '取消隐藏(&U)';
  sdxBuiltInPopupMenuUnhideDialog = '取消隐藏(&U)...';
  sdxBuiltInPopupMenuCreateHyperlink = '超链接(&H)...';
  sdxBuiltInPopupMenuEditHyperlink = '编辑超链接(&H)...';
  sdxBuiltInPopupMenuOpenHyperlink = '打开超链接(&O)';
  sdxBuiltInPopupMenuRemoveHyperlink = '移除超链接(&R)';
  sdxBuiltInPopupMenuDeleteComment = '删除批注(&M)';
  sdxBuiltInPopupMenuEditComment = '编辑批注(&E)...';
  sdxBuiltInPopupMenuHideComment = '隐藏批注(&H)';
  sdxBuiltInPopupMenuInsertComment = '插入批注(&M)...';
  sdxBuiltInPopupMenuShowComment = '显示批注(&O)';
  sdxBuiltInPopupMenuProtectSheet = '&Protect Sheet...';
  sdxBuiltInPopupMenuUnprotectSheet = 'Un&protect Sheet...';

  // Rename Sheet Dialog
  sdxRenameDialogCaption = '重命名工作表';
  sdxRenameDialogSheetName = '工作表名:';

  // File Dialog
  sdxFileDialogAllSupported = '所有支持的格式';

  // Actions
  sdxActionAddGroup = '组合';
  sdxActionAutoFill = '自动填充';
  sdxActionCellEditing = '编辑单元格';
  sdxActionCellsMerge = '合并单元格';
  sdxActionChangeConditionalFormatting = '修改条件格式';
  sdxActionChangePrintingOptions = '更改打印选项';
  sdxActionCreateDefinedName = '创建定义的名称';
  sdxActionChangeContainer = '更改容器对象';
  sdxActionChangeGroup = '更改组合';
  sdxActionChangeHyperlink = '修改超链接';
  sdxActionChangeRowColumn = '修改行/列';
  sdxActionClearCells = '清空单元格';
  sdxActionCutCells = '剪切单元格';
  sdxActionDeleteCells = '删除单元格';
  sdxActionDeleteComment = '删除批注';
  sdxActionDeleteGroup = '取消组合';
  sdxActionDragAndDrop = '拖放';
  sdxActionEditComment = '编辑批注';
  sdxActionExpandCollapseGroup = '显示/隐藏明细';
  sdxActionFillCells = '填充单元格';
  sdxActionFormatCells = '设置单元格格式';
  sdxActionInsertCells = '插入单元格';
  sdxActionMoveCells = '移动单元格';
  sdxActionPasteCells = '粘贴单元格';
  sdxActionReplace = '替换';
  sdxActionSortCells = '对单元格排序';

  // Hyperlink
  sdxDefaultHyperlinkScreenTip = '%s - 单击一次可跟踪超链接。'#13#10'单击并按住不放可选择此单元格。';
  sdxDefaultHyperlinkShortScreenTip = '%s - 单击一次可跟踪超链接。';
  scxSelectionInDocument = '<< 文档里选中的 >>';
  sdxHyperlinkExecuteError = '不能打开 "%s" 。';

  // Clipboard
  sdxClipboardFormatHTML = 'HTML Format';
  sdxClipboardFormatImage = '图片';
  sdxClipboardFormatText = '文本';

  // Printing
  sdxSetSingleCellAsPrintAreaConfirmation =
    'You have selected a single cell for print area.' + #13#10#13#10 +
    'If this is correct, click OK.' + #13#10 +
    'If you selected a single cell by mistake, click Cancel, select the cells you want to include, and then click "Set Print Area" again';
  sdxCell = 'Cell: ';
  sdxComment = 'Comment: ';

  // FormulaBar
  sdxFormulaBarCancelHint = 'Cancel';
  sdxFormulaBarEnterHint = 'Enter';
  sdxFormulaBarFormulaBarHint = 'Formula Bar';
  sdxFormulaBarInsertFunctionHint = 'Insert Function';
  sdxFormulaBarNameBoxHint = 'Name Box';
  sdxFormulaBarSelectionInfo = '%dR x %dC';

implementation

procedure AddSpreadSheetResourceStringNames(AProduct: TdxProductResourceStrings);
begin
  AProduct.Add('sdxBuiltInPopupMenuBringToFront', @sdxBuiltInPopupMenuBringToFront);
  AProduct.Add('sdxBuiltInPopupMenuClearContents', @sdxBuiltInPopupMenuClearContents);
  AProduct.Add('sdxBuiltInPopupMenuCopy', @sdxBuiltInPopupMenuCopy);
  AProduct.Add('sdxBuiltInPopupMenuCustomizeObject', @sdxBuiltInPopupMenuCustomizeObject);
  AProduct.Add('sdxBuiltInPopupMenuCut', @sdxBuiltInPopupMenuCut);
  AProduct.Add('sdxBuiltInPopupMenuDelete', @sdxBuiltInPopupMenuDelete);
  AProduct.Add('sdxBuiltInPopupMenuDeleteDialog', @sdxBuiltInPopupMenuDeleteDialog);
  AProduct.Add('sdxBuiltInPopupMenuFormatCells', @sdxBuiltInPopupMenuFormatCells);
  AProduct.Add('sdxBuiltInPopupMenuHide', @sdxBuiltInPopupMenuHide);
  AProduct.Add('sdxBuiltInPopupMenuInsert', @sdxBuiltInPopupMenuInsert);
  AProduct.Add('sdxBuiltInPopupMenuInsertDialog', @sdxBuiltInPopupMenuInsertDialog);
  AProduct.Add('sdxBuiltInPopupMenuMergeCells', @sdxBuiltInPopupMenuMergeCells);
  AProduct.Add('sdxBuiltInPopupMenuPaste', @sdxBuiltInPopupMenuPaste);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecial', @sdxBuiltInPopupMenuPasteSpecial);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialAll', @sdxBuiltInPopupMenuPasteSpecialAll);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialFormulas', @sdxBuiltInPopupMenuPasteSpecialFormulas);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialFormulasAndColumnWidths', @sdxBuiltInPopupMenuPasteSpecialFormulasAndColumnWidths);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialFormulasAndFormatting', @sdxBuiltInPopupMenuPasteSpecialFormulasAndFormatting);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialFormulasAndStyles', @sdxBuiltInPopupMenuPasteSpecialFormulasAndStyles);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialShowDialog', @sdxBuiltInPopupMenuPasteSpecialShowDialog);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialValues', @sdxBuiltInPopupMenuPasteSpecialValues);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialValuesAndFormatting', @sdxBuiltInPopupMenuPasteSpecialValuesAndFormatting);
  AProduct.Add('sdxBuiltInPopupMenuPasteSpecialValuesAndStyles', @sdxBuiltInPopupMenuPasteSpecialValuesAndStyles);

  AProduct.Add('sdxBuiltInPopupMenuRename', @sdxBuiltInPopupMenuRename);
  AProduct.Add('sdxBuiltInPopupMenuSendToBack', @sdxBuiltInPopupMenuSendToBack);
  AProduct.Add('sdxBuiltInPopupMenuSplitCells', @sdxBuiltInPopupMenuSplitCells);
  AProduct.Add('sdxBuiltInPopupMenuUnhide', @sdxBuiltInPopupMenuUnhide);
  AProduct.Add('sdxBuiltInPopupMenuUnhideDialog', @sdxBuiltInPopupMenuUnhideDialog);
  AProduct.Add('sdxBuiltInPopupMenuCreateHyperlink', @sdxBuiltInPopupMenuCreateHyperlink);
  AProduct.Add('sdxBuiltInPopupMenuEditHyperlink', @sdxBuiltInPopupMenuEditHyperlink);
  AProduct.Add('sdxBuiltInPopupMenuOpenHyperlink', @sdxBuiltInPopupMenuOpenHyperlink);
  AProduct.Add('sdxBuiltInPopupMenuRemoveHyperlink', @sdxBuiltInPopupMenuRemoveHyperlink);
  AProduct.Add('sdxBuiltInPopupMenuInsertComment', @sdxBuiltInPopupMenuInsertComment);
  AProduct.Add('sdxBuiltInPopupMenuDeleteComment', @sdxBuiltInPopupMenuDeleteComment);
  AProduct.Add('sdxBuiltInPopupMenuEditComment', @sdxBuiltInPopupMenuEditComment);
  AProduct.Add('sdxBuiltInPopupMenuHideComment', @sdxBuiltInPopupMenuHideComment);
  AProduct.Add('sdxBuiltInPopupMenuShowComment', @sdxBuiltInPopupMenuShowComment);
  AProduct.Add('sdxBuiltInPopupMenuProtectSheet', @sdxBuiltInPopupMenuProtectSheet);
  AProduct.Add('sdxBuiltInPopupMenuUnprotectSheet', @sdxBuiltInPopupMenuUnprotectSheet);

  AProduct.Add('sdxRenameDialogCaption', @sdxRenameDialogCaption);
  AProduct.Add('sdxRenameDialogSheetName', @sdxRenameDialogSheetName);

  AProduct.Add('sdxFileDialogAllSupported', @sdxFileDialogAllSupported);

  AProduct.Add('sdxActionAutoFill', @sdxActionAutoFill);
  AProduct.Add('sdxActionAddGroup', @sdxActionAddGroup);
  AProduct.Add('sdxActionCellEditing', @sdxActionCellEditing);
  AProduct.Add('sdxActionCellsMerge', @sdxActionCellsMerge);
  AProduct.Add('sdxActionChangeConditionalFormatting', @sdxActionChangeConditionalFormatting);
  AProduct.Add('sdxActionChangePrintingOptions', @sdxActionChangePrintingOptions);
  AProduct.Add('sdxActionCreateDefinedName', @sdxActionCreateDefinedName);
  AProduct.Add('sdxActionChangeContainer', @sdxActionChangeContainer);
  AProduct.Add('sdxActionChangeGroup', @sdxActionChangeGroup);
  AProduct.Add('sdxActionChangeHyperlink', @sdxActionChangeHyperlink);
  AProduct.Add('sdxActionChangeRowColumn', @sdxActionChangeRowColumn);
  AProduct.Add('sdxActionClearCells', @sdxActionClearCells);
  AProduct.Add('sdxActionCutCells', @sdxActionCutCells);
  AProduct.Add('sdxActionDeleteCells', @sdxActionDeleteCells);
  AProduct.Add('sdxActionDeleteComment', @sdxActionDeleteComment);
  AProduct.Add('sdxActionDeleteGroup', @sdxActionDeleteGroup);
  AProduct.Add('sdxActionDragAndDrop', @sdxActionDragAndDrop);
  AProduct.Add('sdxActionMoveCells', @sdxActionMoveCells);
  AProduct.Add('sdxActionEditComment', @sdxActionEditComment);
  AProduct.Add('sdxActionExpandCollapseGroup', @sdxActionExpandCollapseGroup);
  AProduct.Add('sdxActionFillCells', @sdxActionFillCells);
  AProduct.Add('sdxActionFormatCells', @sdxActionFormatCells);
  AProduct.Add('sdxActionInsertCells', @sdxActionInsertCells);
  AProduct.Add('sdxActionPasteCells', @sdxActionPasteCells);
  AProduct.Add('sdxActionReplace', @sdxActionReplace);
  AProduct.Add('sdxActionSortCells', @sdxActionSortCells);

  AProduct.Add('sdxDefaultHyperlinkScreenTip', @sdxDefaultHyperlinkScreenTip);
  AProduct.Add('sdxDefaultHyperlinkShortScreenTip', @sdxDefaultHyperlinkShortScreenTip);
  AProduct.Add('scxSelectionInDocument', @scxSelectionInDocument);
  AProduct.Add('sdxHyperlinkExecuteError', @sdxHyperlinkExecuteError);

  AProduct.Add('sdxClipboardFormatImage', @sdxClipboardFormatImage);
  AProduct.Add('sdxClipboardFormatHTML', @sdxClipboardFormatHTML);
  AProduct.Add('sdxClipboardFormatText', @sdxClipboardFormatText);

  AProduct.Add('sdxSetSingleCellAsPrintAreaConfirmation', @sdxSetSingleCellAsPrintAreaConfirmation);
  AProduct.Add('sdxComment', @sdxComment);
  AProduct.Add('sdxCell', @sdxCell);

  AProduct.Add('sdxFormulaBarCancelHint', @sdxFormulaBarCancelHint);
  AProduct.Add('sdxFormulaBarEnterHint', @sdxFormulaBarEnterHint);
  AProduct.Add('sdxFormulaBarFormulaBarHint', @sdxFormulaBarFormulaBarHint);
  AProduct.Add('sdxFormulaBarInsertFunctionHint', @sdxFormulaBarInsertFunctionHint);
  AProduct.Add('sdxFormulaBarNameBoxHint', @sdxFormulaBarNameBoxHint);
  AProduct.Add('sdxFormulaBarSelectionInfo', @sdxFormulaBarSelectionInfo);
end;

initialization
  dxResourceStringsRepository.RegisterProduct('ExpressSpreadSheet 2', @AddSpreadSheetResourceStringNames);

finalization
  dxResourceStringsRepository.UnRegisterProduct('ExpressSpreadSheet 2', @AddSpreadSheetResourceStringNames);
end.
DevExpress汉化,TcxLocalizer控件的使用 View Code

 

上一篇:如何从MVC中的Javascript代码向控制器传递值


下一篇:.Net界面开发神器—DevExpress官方汉化包免费下载!还在等什么?