devexpress xtraReport 汉化功能

时间:2022-10-27 19:21:16

最近在用Devexpress 的报表,使用环境为 lightswitch .默认是没有安装的中文汉化卫星程序集的,因此一种是到DEV官网申请一个汉化包,二十分种左右就能收到相应的压缩包,自己可以放到对应的安装目录。然后就简单了,自动会汉化。但自带的汉化有些翻译错(很明显)


那只好自己把相应的资源反编译再自己定义个本地化类来处理了。

主要用到如下:

  public class MyPreviewLocalizer : DevExpress.XtraPrinting.Localization.PreviewLocalizer
    {
        public override string GetLocalizedString(DevExpress.XtraPrinting.Localization.PreviewStringId id)
        {
            switch (id)
            {
                case PreviewStringId.BarText_MainMenu: return "主菜单";
                case PreviewStringId.BarText_StatusBar: return "状态条";
                case PreviewStringId.BarText_Toolbar: return "工具条";
                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 "来自";
                case PreviewStringId.ExportOption_ConfirmationDoesNotMatchForm_Msg: return "确认密码不匹配。请从头开始,再次输入该密码。";
                case PreviewStringId.ExportOption_ConfirmOpenPasswordForm_Caption: return "确认文档打开密码";
                case PreviewStringId.ExportOption_ConfirmOpenPasswordForm_Name: return "文档打开密码:";
                case PreviewStringId.ExportOption_ConfirmOpenPasswordForm_Note: return "请确认文档打开口令。一定要记下该密码。它将需要打开的文档。";
                case PreviewStringId.ExportOption_ConfirmPermissionsPasswordForm_Caption: return "确认权限密码";
                case PreviewStringId.ExportOption_ConfirmPermissionsPasswordForm_Name: return "权限密码:";
                case PreviewStringId.ExportOption_ConfirmPermissionsPasswordForm_Note: return "请确认权限密码。一定要记下该密码。你将会需要它在将来更改这些设置。";
                case PreviewStringId.ExportOption_HtmlCharacterSet: return "个性化设置:";
                case PreviewStringId.ExportOption_HtmlEmbedImagesInHTML: return "在 HTML 中嵌入图像";
                case PreviewStringId.ExportOption_HtmlExportMode: return "输出模式:";
                case PreviewStringId.ExportOption_HtmlExportMode_DifferentFiles: return "不同的文件";
                case PreviewStringId.ExportOption_HtmlExportMode_SingleFile: return "排成一列";
                case PreviewStringId.ExportOption_HtmlExportMode_SingleFilePageByPage: return "逐页排成一列";
                case PreviewStringId.ExportOption_HtmlPageBorderColor: return "页面边界颜色:";
                case PreviewStringId.ExportOption_HtmlPageBorderWidth: return "页面边界宽度:";
                case PreviewStringId.ExportOption_HtmlPageRange: return "页面范围:";
                case PreviewStringId.ExportOption_HtmlRemoveSecondarySymbols: return "删除回车";
                case PreviewStringId.ExportOption_HtmlTitle: return "标题:";
                case PreviewStringId.ExportOption_ImageExportMode: return "输出模式:";
                case PreviewStringId.ExportOption_ImageExportMode_DifferentFiles: return "不同的文件";
                case PreviewStringId.ExportOption_ImageExportMode_SingleFile: return "单个文件";
                case PreviewStringId.ExportOption_ImageExportMode_SingleFilePageByPage: return "单文件页";
                case PreviewStringId.ExportOption_ImageFormat: return "图象格式:";
                case PreviewStringId.ExportOption_ImagePageBorderColor: return "页边框颜色:";
                case PreviewStringId.ExportOption_ImagePageBorderWidth: return "页边框宽度:";
                case PreviewStringId.ExportOption_ImagePageRange: return "页范围:";
                case PreviewStringId.ExportOption_ImageResolution: return "分辨率 (dpi):";
                case PreviewStringId.ExportOption_NativeFormatCompressed: return "压缩";
                case PreviewStringId.ExportOption_PdfChangingPermissions_AnyExceptExtractingPages: return "除了提取页面";
                case PreviewStringId.ExportOption_PdfChangingPermissions_CommentingFillingSigning: return "注释、 填写表单域和签名的现有签名域";
                case PreviewStringId.ExportOption_PdfChangingPermissions_FillingSigning: return "在表单域中填写及签署的现有签名域";
                case PreviewStringId.ExportOption_PdfChangingPermissions_InsertingDeletingRotating: return "插入、 删除和旋转页面";
                case PreviewStringId.ExportOption_PdfChangingPermissions_None: return "无";
                case PreviewStringId.ExportOption_PdfCompressed: return "压缩";
                case PreviewStringId.ExportOption_PdfConvertImagesToJpeg: return "转换为 Jpeg 图像";
                case PreviewStringId.ExportOption_PdfDocumentApplication: return "应用:";
                case PreviewStringId.ExportOption_PdfDocumentAuthor: return "作者:";
                case PreviewStringId.ExportOption_PdfDocumentKeywords: return "关键字:";
                case PreviewStringId.ExportOption_PdfDocumentSubject: return "主题:";
                case PreviewStringId.ExportOption_PdfDocumentTitle: return "标题:";
                case PreviewStringId.ExportOption_PdfImageQuality: return "图象质量:";
                case PreviewStringId.ExportOption_PdfImageQuality_High: return "高";
                case PreviewStringId.ExportOption_PdfImageQuality_Highest: return "最高";
                case PreviewStringId.ExportOption_PdfImageQuality_Low: return "低";
                case PreviewStringId.ExportOption_PdfImageQuality_Lowest: return "最低";
                case PreviewStringId.ExportOption_PdfImageQuality_Medium: return "中等";
                case PreviewStringId.ExportOption_PdfNeverEmbeddedFonts: return "不插入这些字体:";
                case PreviewStringId.ExportOption_PdfPageRange: return "页面范围:";
                case PreviewStringId.ExportOption_PdfPasswordSecurityOptions: return "密码安全:";
                case PreviewStringId.ExportOption_PdfPasswordSecurityOptions_DocumentOpenPassword: return "文档打开密码";
                case PreviewStringId.ExportOption_PdfPasswordSecurityOptions_None: return "(无)";
                case PreviewStringId.ExportOption_PdfPasswordSecurityOptions_Permissions: return "权限";
                case PreviewStringId.ExportOption_PdfPrintingPermissions_HighResolution: return "高分辨率";
                case PreviewStringId.ExportOption_PdfPrintingPermissions_LowResolution: return "低分辨率 (150 dpi)";
                case PreviewStringId.ExportOption_PdfPrintingPermissions_None: return "无";
                case PreviewStringId.ExportOption_PdfShowPrintDialogOnOpen: return "打开时显示打印对话框";
                case PreviewStringId.ExportOption_PdfSignature_EmptyCertificate: return "无";
                case PreviewStringId.ExportOption_PdfSignature_Issuer: return "发行人:";
                case PreviewStringId.ExportOption_PdfSignatureOptions: return "数字签名:";
                case PreviewStringId.ExportOption_PdfSignatureOptions_Certificate: return "证书";
                case PreviewStringId.ExportOption_PdfSignatureOptions_ContactInfo: return "联系信息";
                case PreviewStringId.ExportOption_PdfSignatureOptions_Location: return "位置";
                case PreviewStringId.ExportOption_PdfSignatureOptions_None: return "(无)";
                case PreviewStringId.ExportOption_PdfSignatureOptions_Reason: return "原因";
                case PreviewStringId.ExportOption_RtfExportMode: return "导出模式:";
                case PreviewStringId.ExportOption_RtfExportMode_SingleFile: return "单个文件";
                case PreviewStringId.ExportOption_RtfExportMode_SingleFilePageByPage: return "单文件页";
                case PreviewStringId.ExportOption_RtfExportWatermarks: return "导出水印";
                case PreviewStringId.ExportOption_RtfPageRange: return "页范围:";
                case PreviewStringId.ExportOption_TextEncoding: return "编码:";
                case PreviewStringId.ExportOption_TextExportMode: return "文本导出模式:";
                case PreviewStringId.ExportOption_TextExportMode_Text: return "文本";
                case PreviewStringId.ExportOption_TextExportMode_Value: return "值";
                case PreviewStringId.ExportOption_TextSeparator: return "文本分隔器:";
                case PreviewStringId.ExportOption_TextSeparator_TabAlias: return "选项卡";
                case PreviewStringId.ExportOption_XlsExportHyperlinks: return "导出超链接";
                case PreviewStringId.ExportOption_XlsExportMode: return "导出模式:";
                case PreviewStringId.ExportOption_XlsExportMode_DifferentFiles: return "不同的文件";
                case PreviewStringId.ExportOption_XlsExportMode_SingleFile: return "单个文件";
                case PreviewStringId.ExportOption_XlsPageRange: return "页范围:";
                case PreviewStringId.ExportOption_XlsRawDataMode: return "原始数据模式";
                case PreviewStringId.ExportOption_XlsSheetName: return "工作表名称:";
                case PreviewStringId.ExportOption_XlsShowGridLines: return "显示栅格线";
                case PreviewStringId.ExportOption_XlsUseNativeFormat: return "以相应格式输出值";
                case PreviewStringId.ExportOption_XlsxExportMode: return "出口模式:";
                case PreviewStringId.ExportOption_XlsxExportMode_DifferentFiles: return "不同的文件";
                case PreviewStringId.ExportOption_XlsxExportMode_SingleFile: return "单个文件";
                case PreviewStringId.ExportOption_XlsxExportMode_SingleFilePageByPage: return "单文件页";
                case PreviewStringId.ExportOption_XlsxPageRange: return "页范围:";
                case PreviewStringId.ExportOption_XpsCompression: return "压缩:";
                case PreviewStringId.ExportOption_XpsCompression_Fast: return "快速";
                case PreviewStringId.ExportOption_XpsCompression_Maximum: return "最大";
                case PreviewStringId.ExportOption_XpsCompression_Normal: return "正常";
                case PreviewStringId.ExportOption_XpsCompression_NotCompressed: return "不压缩";
                case PreviewStringId.ExportOption_XpsCompression_SuperFast: return "超级快";
                case PreviewStringId.ExportOption_XpsDocumentCategory: return "类别:";
                case PreviewStringId.ExportOption_XpsDocumentCreator: return "创建者:";
                case PreviewStringId.ExportOption_XpsDocumentDescription: return "说明:";
                case PreviewStringId.ExportOption_XpsDocumentKeywords: return "关键字:";
                case PreviewStringId.ExportOption_XpsDocumentSubject: return "主题:";
                case PreviewStringId.ExportOption_XpsDocumentTitle: return "标题:";
                case PreviewStringId.ExportOption_XpsDocumentVersion: return "版本:";
                case PreviewStringId.ExportOption_XpsPageRange: return "页面范围:";
                case PreviewStringId.ExportOptionsForm_CaptionCsv: return "Csv输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionHtml: return "Html输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionImage: return "图象输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionMht: return "Mht输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionNativeOptions: return "本机格式选项";
                case PreviewStringId.ExportOptionsForm_CaptionPdf: return "Pdf输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionRtf: return "Rtf输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionTxt: return "文本输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionXls: return "Xls输出选项";
                case PreviewStringId.ExportOptionsForm_CaptionXlsx: return "XLSX导出选项";
                case PreviewStringId.ExportOptionsForm_CaptionXps: return "XPS导出选项";
                case PreviewStringId.FolderBrowseDlg_ExportDirectory: return "选择一个文件夹保存输出文档:";
                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 "颜色...";
                case PreviewStringId.MenuItem_Background: return "背景...";
                case PreviewStringId.MenuItem_Copy: return "复制";
                case PreviewStringId.MenuItem_CsvDocument: return "CSV文件";
                case PreviewStringId.MenuItem_Exit: return "退出";
                case PreviewStringId.MenuItem_Export: return "输出到";
                case PreviewStringId.MenuItem_File: return "文件";
                case PreviewStringId.MenuItem_GraphicDocument: return "图象文件";
                case PreviewStringId.MenuItem_HtmDocument: return "HTML文件";
                case PreviewStringId.MenuItem_MhtDocument: return "MHT文件";
                case PreviewStringId.MenuItem_PageLayout: return "页面布局";
                case PreviewStringId.MenuItem_PageSetup: return "页面调整";
                case PreviewStringId.MenuItem_PdfDocument: return "PDF文件";
                case PreviewStringId.MenuItem_Print: return "打印...";
                case PreviewStringId.MenuItem_PrintDirect: return "打印";
                case PreviewStringId.MenuItem_RtfDocument: return "RTF文件";
                case PreviewStringId.MenuItem_Send: return "以...格式发送";
                case PreviewStringId.MenuItem_TxtDocument: return "文本文件";
                case PreviewStringId.MenuItem_View: return "视图";
                case PreviewStringId.MenuItem_ViewContinuous: return "继续";
                case PreviewStringId.MenuItem_ViewFacing: return "朝向";
                case PreviewStringId.MenuItem_ViewStatusbar: return "状态条";
                case PreviewStringId.MenuItem_ViewToolbar: return "工具条";
                case PreviewStringId.MenuItem_Watermark: return "水印...";
                case PreviewStringId.MenuItem_XlsDocument: return "Excel文件";
                case PreviewStringId.MenuItem_XlsxDocument: return "兑换 XLSX 文件";
                case PreviewStringId.MenuItem_ZoomPageWidth: return "页面宽度";
                case PreviewStringId.MenuItem_ZoomTextWidth: return "文本宽度";
                case PreviewStringId.MenuItem_ZoomTwoPages: return "两页";
                case PreviewStringId.MenuItem_ZoomWholePage: return "整个页面";
                case PreviewStringId.MPForm_Lbl_Pages: return "页面";
                case PreviewStringId.Msg_CannotAccessFile: return "这个进程无法读取文件\"{0}\",因为它正在被另一个进程使用。";
                case PreviewStringId.Msg_CannotLoadDocument: return "指定的文件不能加载,因为它不包含有效的 XML 数据或超出允许的大小。";
                case PreviewStringId.Msg_CantFitBarcodeToControlBounds: return "对于条码来说控件的边界太小。";
                case PreviewStringId.Msg_Caption: return "打印";
                case PreviewStringId.Msg_CreatingDocument: return "建立文档...";
                case PreviewStringId.Msg_CustomDrawWarning: return "警告!";
                case PreviewStringId.Msg_EmptyDocument: return "该文档不包含任何页。";
                case PreviewStringId.Msg_ErrorTitle: return "错误";
                case PreviewStringId.Msg_FileDoesNotContainValidXml: return "指定的文件不包含有效的 XML 数据中的 PRNX 格式。停止加载。";
                case PreviewStringId.Msg_FileReadOnly: return "文件\"{0}\"设置为只读,请用不同的文件名再试。";
                case PreviewStringId.Msg_FontInvalidNumber: return "字体大小不能设置为0或者负数。";
                case PreviewStringId.Msg_GoToNonExistentPage: return "在此文档中有没有页面编号为 {0}。";
                case PreviewStringId.Msg_IncorrectPageRange: return "这不是有效的页面范围";
                case PreviewStringId.Msg_IncorrectZoomFactor: return "数字大小必须界于{0},{1}之间。";
                case PreviewStringId.Msg_InvalidBarcodeData: return "二进制数据不能超过 1033 字节。";
                case PreviewStringId.Msg_InvalidBarcodeText: return "文本中有无效字符。";
                case PreviewStringId.Msg_InvalidBarcodeTextFormat: return "无效的文本格式";
                case PreviewStringId.Msg_InvalidMeasurement: return "这不是一个有效的度量值。";
                case PreviewStringId.Msg_InvPropName: return "无效的属性名称";
                case PreviewStringId.Msg_NeedPrinter: return "没有安装打印机。";
                case PreviewStringId.Msg_NoParameters: return "不存在指定的参数: {0}。";
                case PreviewStringId.Msg_NotSupportedFont: return "尚不支持该字体";
                case PreviewStringId.Msg_OpenFileQuestion: return "你想打开该文件吗?";
                case PreviewStringId.Msg_OpenFileQuestionCaption: return "输出";
                case PreviewStringId.Msg_PageMarginsWarning: return "一个或多个页边距被设置到也可打印的页面范围之外,是否要继续?";
                case PreviewStringId.Msg_PathTooLong: return "路径太长。尝试较短的名称。";
                case PreviewStringId.Msg_SearchDialogFinishedSearching: return "完成对整个文档的搜索";
                case PreviewStringId.Msg_SearchDialogReady: return "准备就绪";
                case PreviewStringId.Msg_SearchDialogTotalFound: return "总共发现:";
                case PreviewStringId.Msg_SeparatorCannotBeEmptyString: return "分隔符不能为空字符串。";
                case PreviewStringId.Msg_UnavailableNetPrinter: return "网络打印机无法使用。";
                case PreviewStringId.Msg_WrongPageSettings: return "当前打印机不支持所选择页面大小。一定要继续吗?";
                case PreviewStringId.Msg_WrongPrinter: return "打印机的名字是无效的。请检查打印机的设置。";
                case PreviewStringId.NoneString: return "(无)";
                case PreviewStringId.OpenFileDialog_Filter: return "预览的文档文件 (* {0}) | * {0} |所有文件 (*.*) | *.*";
                case PreviewStringId.OpenFileDialog_Title: return "打开";
                case PreviewStringId.PageInfo_PageDate: return "[已打印数据]";
                case PreviewStringId.PageInfo_PageNumber: return "[页#]";
                case PreviewStringId.PageInfo_PageNumberOfTotal: return "[页#,共#页]";
                case PreviewStringId.PageInfo_PageTime: return "[打印耗时]";
                case PreviewStringId.PageInfo_PageTotal: return "[页 #]";
                case PreviewStringId.PageInfo_PageUserName: return "[用户名]";
                case PreviewStringId.ParametersRequest_Caption: return "参数";
                case PreviewStringId.ParametersRequest_Reset: return "重置";
                case PreviewStringId.ParametersRequest_Submit: return "提交";
                case PreviewStringId.PreviewForm_Caption: return "预览";
                //case PreviewStringId.PrinterStatus_Error :  return "错误";
                case PreviewStringId.RibbonPreview_ClosePreview_Caption: return "关闭打印预览";
                case PreviewStringId.RibbonPreview_ClosePreview_STipContent: return "关闭该文档的打印预览";
                case PreviewStringId.RibbonPreview_ClosePreview_STipTitle: return "关闭打印预览";
                case PreviewStringId.RibbonPreview_Customize_Caption: return "选项";
                case PreviewStringId.RibbonPreview_Customize_STipContent: return "打开可打印的组件编辑器对话框,并可以改变打印选项。";
                case PreviewStringId.RibbonPreview_Customize_STipTitle: return "选项";
                case PreviewStringId.RibbonPreview_DocumentMap_Caption: return "书签";
                case PreviewStringId.RibbonPreview_DocumentMap_STipContent: return "打开文档结构图为你导航文档的结构。";
                case PreviewStringId.RibbonPreview_DocumentMap_STipTitle: return "文档结构图";
                case PreviewStringId.RibbonPreview_EditPageHF_Caption: return "页眉/页脚";
                case PreviewStringId.RibbonPreview_EditPageHF_STipContent: return "编辑该文档的页眉和页脚";
                case PreviewStringId.RibbonPreview_EditPageHF_STipTitle: return "页眉和页脚";
                case PreviewStringId.RibbonPreview_ExportCsv_Caption: return "CSV文件";
                case PreviewStringId.RibbonPreview_ExportCsv_Description: return "逗号分隔值文本";
                case PreviewStringId.RibbonPreview_ExportCsv_STipContent: return "将该文档以CSV格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportCsv_STipTitle: return "以CSV格式输出";
                case PreviewStringId.RibbonPreview_ExportFile_Caption: return "输出";
                case PreviewStringId.RibbonPreview_ExportFile_STipContent: return "将当前文档以一个可用的格式输出,并将其保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportFile_STipTitle: return "输出...";
                case PreviewStringId.RibbonPreview_ExportGraphic_Caption: return "图象文件";
                case PreviewStringId.RibbonPreview_ExportGraphic_Description: return "BMP、 GIF、 JPEG、 PNG、 TIFF、 EMF、 WMF";
                case PreviewStringId.RibbonPreview_ExportGraphic_STipContent: return "将该文档以图象格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportGraphic_STipTitle: return "以图象格式输出";
                case PreviewStringId.RibbonPreview_ExportHtm_Caption: return "HTML文件";
                case PreviewStringId.RibbonPreview_ExportHtm_Description: return "Web页面";
                case PreviewStringId.RibbonPreview_ExportHtm_STipContent: return "将该文档以HTML格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportHtm_STipTitle: return "以HTML格式输出";
                case PreviewStringId.RibbonPreview_ExportMht_Caption: return "MHT文件";
                case PreviewStringId.RibbonPreview_ExportMht_Description: return "单一文件的Web页";
                case PreviewStringId.RibbonPreview_ExportMht_STipContent: return "将该文档以MHT格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportMht_STipTitle: return "以MHT格式输出";
                case PreviewStringId.RibbonPreview_ExportPdf_Caption: return "PDF文件";
                case PreviewStringId.RibbonPreview_ExportPdf_Description: return "Adobe便携式文档格式";
                case PreviewStringId.RibbonPreview_ExportPdf_STipContent: return "将该文档以PDF格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportPdf_STipTitle: return "以PDF格式输出";
                case PreviewStringId.RibbonPreview_ExportRtf_Caption: return "RTF文件";
                case PreviewStringId.RibbonPreview_ExportRtf_Description: return "多本文格式";
                case PreviewStringId.RibbonPreview_ExportRtf_STipContent: return "将该文档以RTF格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportRtf_STipTitle: return "以RTF格式输出";
                case PreviewStringId.RibbonPreview_ExportTxt_Caption: return "文本文件";
                case PreviewStringId.RibbonPreview_ExportTxt_Description: return "纯文本";
                case PreviewStringId.RibbonPreview_ExportTxt_STipContent: return "将该文档以文本格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportTxt_STipTitle: return "以文本格式输出";
                case PreviewStringId.RibbonPreview_ExportXls_Caption: return "Excel文件";
                case PreviewStringId.RibbonPreview_ExportXls_Description: return "Microsoft Excel工作薄";
                case PreviewStringId.RibbonPreview_ExportXls_STipContent: return "将该文档以XLS格式输出并保存到磁盘文件上。";
                case PreviewStringId.RibbonPreview_ExportXls_STipTitle: return "以XLS格式输出";
                case PreviewStringId.RibbonPreview_ExportXlsx_Caption: return "XLSX 文件";
                case PreviewStringId.RibbonPreview_ExportXlsx_Description: return "Microsoft Excel 2007 工作簿";
                case PreviewStringId.RibbonPreview_ExportXlsx_STipContent: return "将文档导出到 XLSX 并将其保存到磁盘上的文件。";
                case PreviewStringId.RibbonPreview_ExportXlsx_STipTitle: return "导出到 XLSX";
                case PreviewStringId.RibbonPreview_ExportXps_Caption: return "XPS 文件";
                case PreviewStringId.RibbonPreview_ExportXps_Description: return "XPS";
                case PreviewStringId.RibbonPreview_FillBackground_Caption: return "页面颜色";
                case PreviewStringId.RibbonPreview_FillBackground_STipContent: return "为文档页面背景选择颜色。";
                case PreviewStringId.RibbonPreview_FillBackground_STipTitle: return "背景颜色";
                case PreviewStringId.RibbonPreview_Find_Caption: return "查找";
                case PreviewStringId.RibbonPreview_Find_STipContent: return "显示查找对话框,查找文档中的文本。";
                case PreviewStringId.RibbonPreview_Find_STipTitle: return "查找";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMargins_Description: return "上:{0}下:{1}左:{2}右:{3}";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsModerate_Caption: return "中等";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsModerate_Description: return "中等";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsNarrow_Caption: return "窄";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsNarrow_Description: return "窄";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsNormal_Caption: return "正常";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsNormal_Description: return "正常";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsWide_Caption: return "宽";
                case PreviewStringId.RibbonPreview_GalleryItem_PageMarginsWide_Description: return "宽";
                case PreviewStringId.RibbonPreview_GalleryItem_PageOrientationLandscape_Caption: return "横向";
                case PreviewStringId.RibbonPreview_GalleryItem_PageOrientationPortrait_Caption: return "纵向";
                case PreviewStringId.RibbonPreview_GalleryItem_PaperSize_Description: return "{0} x {1}";
                case PreviewStringId.RibbonPreview_HandTool_Caption: return "抓取工具";
                case PreviewStringId.RibbonPreview_HandTool_STipContent: return "调用抓取工具手动拖拽查看页面。";
                case PreviewStringId.RibbonPreview_HandTool_STipTitle: return "抓取工具";
                case PreviewStringId.RibbonPreview_Magnifier_Caption: return "放大";
                case PreviewStringId.RibbonPreview_Magnifier_STipContent: return "调用放大镜工具";
                case PreviewStringId.RibbonPreview_Magnifier_STipTitle: return "放大镜";
                case PreviewStringId.RibbonPreview_MultiplePages_Caption: return "多页";
                case PreviewStringId.RibbonPreview_MultiplePages_STipContent: return "选择页面布局以便在预览中排放文档页面。";
                case PreviewStringId.RibbonPreview_MultiplePages_STipTitle: return "多页查看";
                case PreviewStringId.RibbonPreview_Open_Caption: return "打开";
                case PreviewStringId.RibbonPreview_PageGroup_Background: return "页面背景";
                case PreviewStringId.RibbonPreview_PageGroup_Close: return "关闭";
                case PreviewStringId.RibbonPreview_PageGroup_Document: return "文档";
                case PreviewStringId.RibbonPreview_PageGroup_Export: return "输出";
                case PreviewStringId.RibbonPreview_PageGroup_Navigation: return "导航";
                case PreviewStringId.RibbonPreview_PageGroup_PageSetup: return "页面调整";
                case PreviewStringId.RibbonPreview_PageGroup_PageSetup_STipContent: return "显示页面调整对话框。";
                case PreviewStringId.RibbonPreview_PageGroup_PageSetup_STipTitle: return "页面调整";
                case PreviewStringId.RibbonPreview_PageGroup_Print: return "打印";
                case PreviewStringId.RibbonPreview_PageGroup_Zoom: return "缩放";
                case PreviewStringId.RibbonPreview_PageMargins_Caption: return "页边距";
                case PreviewStringId.RibbonPreview_PageMargins_STipContent: return "为整个文档选择页边距大小。点击定制页边距为文档应用指定的页边距大小。";
                case PreviewStringId.RibbonPreview_PageMargins_STipTitle: return "页边距";
                case PreviewStringId.RibbonPreview_PageOrientation_Caption: return "方位";
                case PreviewStringId.RibbonPreview_PageOrientation_STipContent: return "在纵向和横向布局之间转换页面。";
                case PreviewStringId.RibbonPreview_PageOrientation_STipTitle: return "页面方向";
                case PreviewStringId.RibbonPreview_PageSetup_Caption: return "定制页边距...";
                case PreviewStringId.RibbonPreview_PageSetup_STipContent: return "显示页面调整对话框。";
                case PreviewStringId.RibbonPreview_PageSetup_STipTitle: return "页面调整";
                case PreviewStringId.RibbonPreview_PageText: return "打印预览";
                case PreviewStringId.RibbonPreview_PaperSize_Caption: return "大小";
                case PreviewStringId.RibbonPreview_PaperSize_STipContent: return "选择文档的页面大小。";
                case PreviewStringId.RibbonPreview_PaperSize_STipTitle: return "页面大小";
                case PreviewStringId.RibbonPreview_Parameters_Caption: return "参数";
                case PreviewStringId.RibbonPreview_Parameters_STipContent: return "打开参数窗格,使您可以为报表参数输入值。";
                case PreviewStringId.RibbonPreview_Parameters_STipTitle: return "参数";
                case PreviewStringId.RibbonPreview_Pointer_Caption: return "指针";
                case PreviewStringId.RibbonPreview_Pointer_STipContent: return "显示鼠标指针。";
                case PreviewStringId.RibbonPreview_Pointer_STipTitle: return "鼠标指针";
                case PreviewStringId.RibbonPreview_Print_Caption: return "打印";
                case PreviewStringId.RibbonPreview_Print_STipContent: return "在打印前选择打印机,打印份数以及其他打印选项。";
                case PreviewStringId.RibbonPreview_Print_STipTitle: return "打印(Ctrl+P)";
                case PreviewStringId.RibbonPreview_PrintDirect_Caption: return "快速打印";
                case PreviewStringId.RibbonPreview_PrintDirect_STipContent: return "将文档不作任何修改直接送往默认打印机。";
                case PreviewStringId.RibbonPreview_PrintDirect_STipTitle: return "快速打印";
                case PreviewStringId.RibbonPreview_Save_Caption: return "保存";
                case PreviewStringId.RibbonPreview_Scale_Caption: return "比例";
                case PreviewStringId.RibbonPreview_Scale_STipContent: return "按实际大小的百分比伸展或收缩打印输出。";
                case PreviewStringId.RibbonPreview_Scale_STipTitle: return "比例";
                case PreviewStringId.RibbonPreview_SendCsv_Caption: return "CSV文件";
                case PreviewStringId.RibbonPreview_SendCsv_Description: return "逗号分隔值文本";
                case PreviewStringId.RibbonPreview_SendCsv_STipContent: return "以CSV格式输出文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendCsv_STipTitle: return "在电子邮件中以CSV格式发送";
                case PreviewStringId.RibbonPreview_SendFile_Caption: return "在电子邮件中以...格式发送";
                case PreviewStringId.RibbonPreview_SendFile_STipContent: return "以一种可用格式输出当前文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendFile_STipTitle: return "在电子邮件中以...格式发送";
                case PreviewStringId.RibbonPreview_SendGraphic_Caption: return "图象文件";
                case PreviewStringId.RibbonPreview_SendGraphic_STipContent: return "以图象格式输出文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendGraphic_STipTitle: return "在电子邮件中以图象格式发送";
                case PreviewStringId.RibbonPreview_SendMht_Caption: return "MHT文件";
                case PreviewStringId.RibbonPreview_SendMht_Description: return "单文件网页";
                case PreviewStringId.RibbonPreview_SendMht_STipContent: return "以MHT格式输出文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendMht_STipTitle: return "在电子邮件中以MHT格式发送";
                case PreviewStringId.RibbonPreview_SendPdf_Caption: return "PDF文件";
                case PreviewStringId.RibbonPreview_SendPdf_Description: return "Adobe便携式文档格式";
                case PreviewStringId.RibbonPreview_SendPdf_STipContent: return "以PDF格式输出文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendPdf_STipTitle: return "在电子邮件中以PDF格式发送";
                case PreviewStringId.RibbonPreview_SendRtf_Caption: return "RTF文件";
                case PreviewStringId.RibbonPreview_SendRtf_Description: return "多文本格式";
                case PreviewStringId.RibbonPreview_SendRtf_STipContent: return "以RTF格式输出文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendRtf_STipTitle: return "在电子邮件中以RTF格式发送";
                case PreviewStringId.RibbonPreview_SendTxt_Caption: return "文本文件";
                case PreviewStringId.RibbonPreview_SendTxt_Description: return "纯文本";
                case PreviewStringId.RibbonPreview_SendTxt_STipContent: return "以文本格式输出文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendTxt_STipTitle: return "在电子邮件中以文本格式发送";
                case PreviewStringId.RibbonPreview_SendXls_Caption: return "Excel文件";
                case PreviewStringId.RibbonPreview_SendXls_Description: return "Microsoft Excel工作薄";
                case PreviewStringId.RibbonPreview_SendXls_STipContent: return "以XLS格式输出文档,并且将其附到电子邮件中。";
                case PreviewStringId.RibbonPreview_SendXls_STipTitle: return "在电子邮件中以XLS格式发送";
                case PreviewStringId.RibbonPreview_SendXlsx_Caption: return "兑换 XLSX 文件";
                case PreviewStringId.RibbonPreview_SendXlsx_Description: return "Microsoft Excel 2007 工作簿";
                case PreviewStringId.RibbonPreview_SendXlsx_STipContent: return "将文档导出到 XLSX 并将其附加到电子邮件。";
                case PreviewStringId.RibbonPreview_SendXps_Caption: return "XPS 文件";
                case PreviewStringId.RibbonPreview_SendXps_Description: return "XPS";
                case PreviewStringId.RibbonPreview_ShowFirstPage_Caption: return "第一页";
                case PreviewStringId.RibbonPreview_ShowFirstPage_STipContent: return "查看文档第一页。";
                case PreviewStringId.RibbonPreview_ShowFirstPage_STipTitle: return "第一页(Ctrl+Home)";
                case PreviewStringId.RibbonPreview_ShowLastPage_Caption: return "最后一页";
                case PreviewStringId.RibbonPreview_ShowLastPage_STipContent: return "查看文档最后一页。";
                case PreviewStringId.RibbonPreview_ShowLastPage_STipTitle: return "最后一页(Ctrl+End)";
                case PreviewStringId.RibbonPreview_ShowNextPage_Caption: return "下一页";
                case PreviewStringId.RibbonPreview_ShowNextPage_STipContent: return "查看文档下一页。";
                case PreviewStringId.RibbonPreview_ShowNextPage_STipTitle: return "下一页(PageDown)";
                case PreviewStringId.RibbonPreview_ShowPrevPage_Caption: return "上一页";
                case PreviewStringId.RibbonPreview_ShowPrevPage_STipContent: return "查看文档上一页。";
                case PreviewStringId.RibbonPreview_ShowPrevPage_STipTitle: return "上一页(PageUp)";
                case PreviewStringId.RibbonPreview_Watermark_Caption: return "水印";
                case PreviewStringId.RibbonPreview_Watermark_STipContent: return "在页面的目录后插入文本或者图象的镜象。这通常用于指示一个文档被特殊处理过。";
                case PreviewStringId.RibbonPreview_Watermark_STipTitle: return "水印";
                case PreviewStringId.RibbonPreview_Zoom_Caption: return "缩放";
                case PreviewStringId.RibbonPreview_Zoom_STipContent: return "改变文档预览的缩放等级。";
                case PreviewStringId.RibbonPreview_Zoom_STipTitle: return "缩放";
                case PreviewStringId.RibbonPreview_ZoomExact_Caption: return "精确度:";
                case PreviewStringId.RibbonPreview_ZoomIn_Caption: return "放大";
                case PreviewStringId.RibbonPreview_ZoomIn_STipContent: return "放大以便得到文档的近视图。";
                case PreviewStringId.RibbonPreview_ZoomIn_STipTitle: return "放大";
                case PreviewStringId.RibbonPreview_ZoomOut_Caption: return "缩小";
                case PreviewStringId.RibbonPreview_ZoomOut_STipContent: return "缩小以便在一个减小的尺寸上看到页面的更多部分。";
                case PreviewStringId.RibbonPreview_ZoomOut_STipTitle: return "缩小";
                case PreviewStringId.SaveDlg_FilterBmp: return "BMP比特图格式";
                case PreviewStringId.SaveDlg_FilterCsv: return "CSV文档";
                case PreviewStringId.SaveDlg_FilterEmf: return "EMF 增强的视窗图元元件";
                case PreviewStringId.SaveDlg_FilterGif: return "GIF图形交换格式";
                case PreviewStringId.SaveDlg_FilterHtm: return "HTML文档";
                case PreviewStringId.SaveDlg_FilterJpeg: return "JPEG可交换文件格式";
                case PreviewStringId.SaveDlg_FilterMht: return "MHT文档";
                case PreviewStringId.SaveDlg_FilterPdf: return "PDF文档";
                case PreviewStringId.SaveDlg_FilterPng: return "PNG流式网络图形格式";
                case PreviewStringId.SaveDlg_FilterRtf: return "多文本文档";
                case PreviewStringId.SaveDlg_FilterTiff: return "TIFF标签图像文件格式";
                case PreviewStringId.SaveDlg_FilterTxt: return "文本文档";
                case PreviewStringId.SaveDlg_FilterWmf: return "WMF 视窗图元文件";
                case PreviewStringId.SaveDlg_FilterXls: return "Excel文档";
                case PreviewStringId.SaveDlg_FilterXps: return "XPS 文档";
                case PreviewStringId.SaveDlg_Title: return "存储为";
                case PreviewStringId.SB_PageInfo: return "{0}在 {1}之中";
                case PreviewStringId.SB_PageNone: return "空";
                case PreviewStringId.SB_TTip_Stop: return "停止";
                case PreviewStringId.SB_ZoomFactor: return "缩放比例:";
                case PreviewStringId.ScalePopup_AdjustTo: return "调整至:";
                case PreviewStringId.ScalePopup_FitTo: return "调整到";
                case PreviewStringId.ScalePopup_GroupText: return "缩放比例";
                case PreviewStringId.ScalePopup_NormalSize: return "%正常大小";
                case PreviewStringId.ScalePopup_PagesWide: return "页面范围";
                case PreviewStringId.ScrollingInfo_Page: return "页面";
                case PreviewStringId.Shapes_Arrow: return "箭头";
                case PreviewStringId.Shapes_BottomArrow: return "底部箭头";
                case PreviewStringId.Shapes_Brace: return "大括号";
                case PreviewStringId.Shapes_EightPointStar: return "8 角星";
                case PreviewStringId.Shapes_Ellipse: return "椭圆";
                case PreviewStringId.Shapes_FivePointStar: return "5 角星";
                case PreviewStringId.Shapes_FourPointStar: return "4 角星";
                case PreviewStringId.Shapes_Hexagon: return "六角形";
                case PreviewStringId.Shapes_HorizontalLine: return "水平线";
                case PreviewStringId.Shapes_Line: return "线";
                case PreviewStringId.Shapes_Octagon: return "八角形";
                case PreviewStringId.Shapes_Pentagon: return "五角形";
                case PreviewStringId.Shapes_Polygon: return "多边形";
                case PreviewStringId.Shapes_SixPointStar: return "6 角星";
                case PreviewStringId.Shapes_SlantLine: return "斜线";
                case PreviewStringId.Shapes_Square: return "正方形";
                case PreviewStringId.Shapes_Star: return "星形";
                case PreviewStringId.Shapes_ThreePointStar: return "3 角星";
                case PreviewStringId.Shapes_TopArrow: return "顶部箭头";
                case PreviewStringId.Shapes_Triangle: 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_Open: return "打开文档";
                case PreviewStringId.TB_TTip_PageSetup: return "页面调整";
                case PreviewStringId.TB_TTip_Parameters: return "参数";
                case PreviewStringId.TB_TTip_PreviousPage: return "上一页";
                case PreviewStringId.TB_TTip_Print: return "打印";
                case PreviewStringId.TB_TTip_PrintDirect: return "快速打印";
                case PreviewStringId.TB_TTip_Save: return "保存文档";
                case PreviewStringId.TB_TTip_Scale: return "比例";
                case PreviewStringId.TB_TTip_Search: return "搜索";
                case PreviewStringId.TB_TTip_Send: return "通过电子邮件发送...";
                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.WatermarkTypePicture: return "(图片)";
                case PreviewStringId.WatermarkTypeText: 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 "尽快";
                case PreviewStringId.WMForm_Watermark_Confidential: return "机密";
                case PreviewStringId.WMForm_Watermark_Copy: return "复制";
                case PreviewStringId.WMForm_Watermark_DoNotCopy: return "不复制";
                case PreviewStringId.WMForm_Watermark_Draft: return "草图";
                case PreviewStringId.WMForm_Watermark_Evaluation: return "评价";
                case PreviewStringId.WMForm_Watermark_Original: return "创新";
                case PreviewStringId.WMForm_Watermark_Personal: return "个人";
                case PreviewStringId.WMForm_Watermark_Sample: return "示例";
                case PreviewStringId.WMForm_Watermark_TopSecret: return "最高机密";
                case PreviewStringId.WMForm_Watermark_Urgent: return "紧迫";
                case PreviewStringId.WMForm_ZOrderRgrItem_Behind: return "后方";
                case PreviewStringId.WMForm_ZOrderRgrItem_InFront: return "前方";
                default: return base.GetLocalizedString(id);
            }
        }
    }
    public class MyPrintingLocalizer:PrintingLocalizer
    {
        
        public override string GetLocalizedString(PrintingStringId id)
        {
         
            switch(id)
            {
                case PrintingStringId.PaperKind_Prc32KBigRotated: return "中国大32K旋转";
                case PrintingStringId.PdfPasswordSecurityOptions_Title: return "PDF 密码安全";
                case PrintingStringId.WatermarkPageRangePages: return "页";
                case PrintingStringId.PageSetupOrientationLandscape: return "横向";
                case PrintingStringId.RepeatPassword_PermissionsPassword: return "权限密码:";
                case PrintingStringId.PaperKind_PersonalEnvelope: return "个人信封 (6 3/4) ";
                case PrintingStringId.PrintDirect_Hint: return "使用系统的默认打印机的默认页面设置与打印文档。";
                case PrintingStringId.PaperKind_Standard9x11: return "标准 9 x 11";
                case PrintingStringId.PaperKind_A3Transverse: return "A3 横向";
                case PrintingStringId.PageSetupPrinterCaption: return "打印机";
                case PrintingStringId.PaperKind_Ledger: return "总帐";
                case PrintingStringId.PaperKind_Letter: return "信";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber6Rotated: return "中国信封 编号6 旋转 ";
                case PrintingStringId.SendFile_Hint: return "出口中可用的格式之一的文档并将其附加到电子邮件。";
                case PrintingStringId.Scaling_Adjust_End_Label: return "正常大小";
                case PrintingStringId.ZoomToPageHeight: return "页面高度";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber9: return "中国信封 编号9 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber8: return "中国信封 编号8 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber7: return "中国信封 编号7 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber6: return "中国信封 编号6 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber5: return "中国信封 编号5 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber4: return "中国信封 编号4 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber3: return "中国信封 编号3 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber2: return "中国信封 编号2 ";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber1: return "中国信封 编号1 ";
                case PrintingStringId.PaperKind_JapanesePostcardRotated: return "日本明信片旋转";
                case PrintingStringId.PaperKind_A3Rotated: return "A3 旋转";
                case PrintingStringId.Watermark: return "水印";
                case PrintingStringId.PaperKind_Prc32K: return "中国32K ";
                case PrintingStringId.PaperKind_Prc16K: return "中国16K ";
                case PrintingStringId.PaperKind_Number14Envelope: return "编号 14 信封";
                case PrintingStringId.RepeatPassword_OpenPassword_Note: return "请确认文档打开口令。一定要记下该密码。它将需要打开的文档。";
                case PrintingStringId.ZoomValueItemFormat: return "{0}%";
                case PrintingStringId.PaperKind_Quarto: return "季刊";
                case PrintingStringId.PageSetupPrinterComment: return "评论:";
                case PrintingStringId.PaperKind_B4JisRotated: return "JIS B4 旋转";
                case PrintingStringId.PaperKind_Number12Envelope: return "编号 12 信封";
                case PrintingStringId.Scaling_Fit_End_Label: return "页宽";
                case PrintingStringId.ExportXpsToWindow: return "XPS 文件";
                case PrintingStringId.PdfPasswordSecurityOptions_ChangingPermissions: return "允许的更改:";
                case PrintingStringId.ExportPdfToWindow: return "PDF 文件";
                case PrintingStringId.PaperKind_B6Envelope: return "B6 信封";
                case PrintingStringId.WatermarkPageRangeAllPages: return "所有";
                case PrintingStringId.PaperKind_GermanStandardFanfold: return "德国标准折叠式";
                case PrintingStringId.PaperKind_JapaneseDoublePostcard: return "日本双明信片";
                case PrintingStringId.PaperKind_LetterPlus: return "附加信";
                case PrintingStringId.PaperKind_C5Envelope: return "C5 信封";
                case PrintingStringId.Search_EmptyResult: return "您的搜索不匹配的任何文本。";
                case PrintingStringId.PaperKind_C3Envelope: return "C3 信封";
                case PrintingStringId.PaperKind_C4Envelope: return "C4 信封";
                case PrintingStringId.PdfSignatureEditorWindow_Location: return "位置:";
                case PrintingStringId.Search_Hint: return "显示查找对话框搜索,以查找指定的文本,在整个文档。";
                case PrintingStringId.Scaling_Hint: return "拉伸或收缩文档内容到其实际大小的百分比的。";
                case PrintingStringId.RepeatPassword_PermissionsPassword_Title: return "确认权限密码";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber4Rotated: return "中国信封 编号4 旋转 ";
                case PrintingStringId.OK: return "OK";
                case PrintingStringId.PaperKind_JapaneseEnvelopeChouNumber3Rotated: return "日本信封chou 编号3 旋转";
                case PrintingStringId.PageSetup_Hint: return "调整文档的页面设置。";
                case PrintingStringId.PaperKind_B5Envelope: return "B5 信封";
                case PrintingStringId.ExportTxtToWindow: return "文本文件";
                case PrintingStringId.WatermarkPageRange: return "页面范围";
                case PrintingStringId.Open: return "打开";
                case PrintingStringId.Save: return "保存";
                case PrintingStringId.Zoom: return "缩放";
                case PrintingStringId.RepeatPassword_OpenPassword: return "文档打开密码:";
                case PrintingStringId.ExportCsvToWindow: return "CSV 文件";
                case PrintingStringId.ExportMhtToWindow: return "MHT 文件";
                case PrintingStringId.PdfSignatureEditorWindow_Title: return "签名选项";
                case PrintingStringId.ParametersSubmit: return "提交";
                case PrintingStringId.PdfPasswordSecurityOptions_PrintingPermissions: return "允许打印:";
                case PrintingStringId.PageSetupPaperSize: return "纸张尺寸:";
                case PrintingStringId.PageSetupOrientationPortrait: return "纵向";
                case PrintingStringId.WatermarkPosition: return "位置";
                case PrintingStringId.ParametersReset: return "重置";
                case PrintingStringId.Parameters_Hint: return "显示或隐藏参数面板,可以自定义的报表参数值。";
                case PrintingStringId.WatermarkTransparency: return "的透明度:";
                case PrintingStringId.PdfPasswordSecurityOptions_RestrictPermissions: return "限制编辑和打印文档的";
                case PrintingStringId.Parameters: return "参数";
                case PrintingStringId.PageSetupPrinterPort: return "端口:";
                case PrintingStringId.PageSetupPrinterType: return "类型:";
                case PrintingStringId.ToolBarCaption: return "打印预览";
                case PrintingStringId.LastPage: return "最后一页";
                case PrintingStringId.Scaling: return "规模";
                case PrintingStringId.WatermarkImageTiling: return "平铺";
                case PrintingStringId.PdfPasswordSecurityOptions_EnableCopying: return "启用复制文本、 图像和其他内容";
                case PrintingStringId.PdfPasswordSecurityOptions_RequireOpenPassword: return "需要密码才能打开的文档";
                case PrintingStringId.PaperKind_JapaneseEnvelopeKakuNumber3: return "日本信封Kaku3 ";
                case PrintingStringId.PaperKind_JapaneseEnvelopeKakuNumber2: return "日本信封Kaku 编号2 ";
                case PrintingStringId.WatermarkPageRangeHint: return ",例如: 1,3,5-12";
                case PrintingStringId.PageSetupWindowTitle: return "页面设置";
                case PrintingStringId.PaperKind_Number10Envelope: return "编号 10 信封";
                case PrintingStringId.PaperKind_B6JisRotated: return "JIS B6 旋转";
                case PrintingStringId.PaperKind_Number11Envelope: return "编号 11 信封 ";
                case PrintingStringId.ExportFile: return "导出的文档...";
                case PrintingStringId.ExportXlsx: return "XLSX 文件";
                case PrintingStringId.PaperKind_GermanLegalFanfold: return "德国法律文书折叠式";
                case PrintingStringId.PdfPasswordSecurityOptions_Permissions: return "权限";
                case PrintingStringId.WatermarkText: return "文本:";
                case PrintingStringId.WatermarkTextDirection: return "方向:";
                case PrintingStringId.SendXls: return "XLS 文件";
                case PrintingStringId.SendXps: return "XPS 文件";
                case PrintingStringId.SendRtf: return "RTF 文件";
                case PrintingStringId.SendTxt: return "文本文件";
                case PrintingStringId.SendPdf: return "PDF 文件";
                case PrintingStringId.SendMht: return "MHT 文件";
                case PrintingStringId.SendCsv: return "CSV 文件";
                case PrintingStringId.PaperKind_C65Envelope: return "C65 信封";
                case PrintingStringId.Save_Hint: return "保存的报告文件。";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber9Rotated: return "中国信封 编号9 旋转";
                case PrintingStringId.PaperKind_JapaneseEnvelopeYouNumber4Rotated: return "日本信封You 编号4 旋转";
                case PrintingStringId.ExportImageToWindow: return "图像文件";
                case PrintingStringId.PdfPasswordSecurityOptions_OpenPasswordHeader: return "文档打开口令";
                case PrintingStringId.PageSetupPrinter: return "打印机:";
                case PrintingStringId.DocumentMap: return "文档结构图";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber3Rotated: return "中国信封 编号3 旋转";
                case PrintingStringId.LastPage_Hint: return "定位到文档最后一页。";
                case PrintingStringId.ExportFileToWindow: return "导出文档窗口...";
                case PrintingStringId.RibbonPageGroup_Document: return "文档";
                case PrintingStringId.NextPage_Hint: return "定位到文档的下一页。";
                case PrintingStringId.PaperKind_A6Rotated: return "A6 旋转";
                case PrintingStringId.PaperKind_B4Envelope: return "B4 信封";
                case PrintingStringId.StatusBarCaption: return "状态栏";
                case PrintingStringId.Scaling_Adjust_Start_Label: return "调整到";
                case PrintingStringId.PageSetup: return "页面设置......";
                case PrintingStringId.WatermarkTextColor: return "颜色:";
                case PrintingStringId.FirstPage_Hint: return "定位到文档第一页。";
                case PrintingStringId.PaperKind_Prc32KBig: return "中国大32K";
                case PrintingStringId.DecreaseZoom: return "缩小";
                case PrintingStringId.Cancel: return "取消";
                case PrintingStringId.WatermarkImageSizeMode: return "大小模式:";
                case PrintingStringId.PaperKind_Executive: return "执行";
                case PrintingStringId.PaperKind_LetterSmall: return "小型信";
                case PrintingStringId.PaperKind_LetterExtra: return "附加的信";
                case PrintingStringId.DefaultPrintJobDescription: return "文档";
                case PrintingStringId.PaperKind_USStandardFanfold: return "美国标准复写簿";
                case PrintingStringId.PrintPreviewWindowCaption: return "打印预览";
                case PrintingStringId.PageSetupMarginsLeft: return "左:";
                case PrintingStringId.PaperKind_DLEnvelope: return "DL信封";
                case PrintingStringId.RepeatPassword_ConfirmationPasswordDoesNotMatch: return "确认密码不匹配。请从头开始,再次输入该密码。";
                case PrintingStringId.ExportFileToWindow_Hint: return "出口当前文档中,并在新的浏览器窗口中显示的结果。";
                case PrintingStringId.RibbonPageGroup_Watermark: return "水印";
                case PrintingStringId.PdfSignatureEditorWindow_ContactInformation: return "联系信息:";
                case PrintingStringId.PdfPasswordSecurityOptions_EnableScreenReaders: return "启用屏幕阅读器设备,方便视障人士的文本访问";
                case PrintingStringId.PrintPdf_Hint: return "打印当前文档通过 PDF。";
                case PrintingStringId.PaperKind_LetterExtraTransverse: return "附加的横向信";
                case PrintingStringId.PaperKind_LetterRotated: return "旋转信";
                case PrintingStringId.PaperKind_LegalExtra: return "附加法律文书";
                case PrintingStringId.PaperKind_A4Transverse: return "A4 横向";
                case PrintingStringId.Scaling_Fit_Start_Label: return "适合";
                case PrintingStringId.WatermarkPositionBehind: return "背后";
                case PrintingStringId.PaperKind_JapaneseEnvelopeChouNumber4Rotated: return "日本信封chou 编号4 旋转";
                case PrintingStringId.ZoomDisplayFormat: return "缩放: {0:0} %";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber8Rotated: return "中国信封 编号8 旋转 ";
                case PrintingStringId.TextWatermarkTitle: return "文字水印";
                case PrintingStringId.PreviousPage_Hint: return "导航到的文档的上一个页面。";
                case PrintingStringId.PdfPasswordSecurityOptions_OpenPassword: return "文档打开密码:";
                case PrintingStringId.ZoomToWholePage: return "整页";
                case PrintingStringId.WatermarkLoadImage: return "图像:";
                case PrintingStringId.PaperKind_B5Transverse: return "JIS B5 横向";
                case PrintingStringId.Search: return "搜索";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber1Rotated: return "中国信封 编号1 旋转";
                case PrintingStringId.Refresh: return "刷新";
                case PrintingStringId.PaperKind_LetterTransverse: return "横向信";
                case PrintingStringId.Information: return "信息";
                case PrintingStringId.PaperKind_JapaneseEnvelopeYouNumber4: return "日本信封You 编号4 ";
                case PrintingStringId.PageSetupPaperCaption: return "纸";
                case PrintingStringId.ExportXlsxToWindow: return "XLSX 文件";
                case PrintingStringId.ExportHtmToWindow: return "HTML 文件";
                case PrintingStringId.PaperKind_A4Rotated: return "A4旋转";
                case PrintingStringId.PdfSignatureEditorWindow_Certificate: return "证书:";
                case PrintingStringId.IncreaseZoom_Hint: return "放大以获得文档的特写视图。";
                case PrintingStringId.PaperKind_InviteEnvelope: return "邀请信";
                case PrintingStringId.Scaling_ComboBoxEdit_Validation_Error: return "值是不是有效";
                case PrintingStringId.PageSetupMarginsBottom: return "底:";
                case PrintingStringId.PagesArePrepared: return "页面都是准备好了。继续打印?";
                case PrintingStringId.PageSetupMillimeters: return "毫米";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber10Rotated: return "中国信封 编号10 旋转 ";
                case PrintingStringId.ZoomToPageWidth: return "页面宽度";
                case PrintingStringId.NextPage: return "下页";
                case PrintingStringId.WatermarkClearAll: return "清除所有";
                case PrintingStringId.PageSetupOrientationCaption: return "方向:";
                case PrintingStringId.PaperKind_Prc32KRotated: return "中国32K旋转";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber2Rotated: return "中国信封 编号2 旋转 ";
                case PrintingStringId.PaperKind_Prc16KRotated: return "中国16K旋转";
                case PrintingStringId.PageSetupMarginsRight: return "右:";
                case PrintingStringId.PdfSignatureEditorWindow_Reason: return "的理由:";
                case PrintingStringId.ExportImage: return "图像文件";
                case PrintingStringId.Scaling_ComboBoxEdit_Validation_OutOfRange_Error: return "值超出范围";
                case PrintingStringId.PaperKind_JapaneseEnvelopeKakuNumber3Rotated: return "日本信封Kaku3 旋转";
                case PrintingStringId.Print_Hint: return "指定的页面设置和打印文档。";
                case PrintingStringId.ExportXlsToWindow: return "XLS 文件";
                case PrintingStringId.PageSetupInches: return "英寸";
                case PrintingStringId.PreviousPage: return "前一页";
                case PrintingStringId.DecreaseZoom_Hint: return "缩小以查看更多的在减少大小页面。";
                case PrintingStringId.PictureWatermarkTitle: return "图片水印";
                case PrintingStringId.MsgCaption: return "DXPrinting";
                case PrintingStringId.WatermarkFontSize: return "大小:";
                case PrintingStringId.WatermarkFontBold: return "加粗";
                case PrintingStringId.WatermarkFontName: return "字体:";
                case PrintingStringId.PaperKind_JapaneseDoublePostcardRotated: return "日本双明信片旋转";
                case PrintingStringId.GoToPage: return "页数:";
                case PrintingStringId.RibbonPageCaption: return "预览";
                case PrintingStringId.Zoom_Hint: return "更改文档预览当前缩放因子。";
                case PrintingStringId.DocumentMap_Hint: return "显示文档结构图面板,其中反映了文档的结构和位置您可以在报表的书签导航。";
                case PrintingStringId.PageSetupMarginsTop: return "顶:";
                case PrintingStringId.PaperKind_JapanesePostcard: return "日本明信片";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber7Rotated: return "中国信封 编号7 旋转 ";
                case PrintingStringId.PaperKind_B5: return "B5";
                case PrintingStringId.PaperKind_B4: return "B4";
                case PrintingStringId.PaperKind_A2: return "A2";
                case PrintingStringId.PaperKind_A3: return "A3";
                case PrintingStringId.PaperKind_A6: return "A6";
                case PrintingStringId.PaperKind_A4: return "A4";
                case PrintingStringId.PaperKind_A5: return "A5";
                case PrintingStringId.IncreaseZoom: return "放大";
                case PrintingStringId.ExportRtfToWindow: return "RTF 文件";
                case PrintingStringId.PaperKind_B5JisRotated: return "JIS B5 旋转";
                case PrintingStringId.PdfPasswordSecurityOptions_PermissionsPassword: return "更改权限密码:";
                case PrintingStringId.PaperKind_A3Extra: return "A3 附加";
                case PrintingStringId.WatermarkImageVerticalAlignment: return "垂直对齐方式:";
                case PrintingStringId.Msg_EmptyDocument: return "文档不包含任何页。";
                case PrintingStringId.FirstPage: return "第一页";
                case PrintingStringId.RibbonPageGroup_Export: return "出口";
                case PrintingStringId.RepeatPassword_OpenPassword_Title: return "确认文档打开口令";
                case PrintingStringId.PaperKind_ItalyEnvelope: return "意大利信封";
                case PrintingStringId.ZoomToTwoPages: return "两页";
                case PrintingStringId.PaperKind_BPlus: return "精湛/高超/A3";
                case PrintingStringId.PaperKind_B6Jis: return "JIS B6";
                case PrintingStringId.PaperKind_Folio: return "对折";
                case PrintingStringId.RibbonPageGroup_File: return "文件";
                case PrintingStringId.RibbonPageGroup_Zoom: return "缩放";
                case PrintingStringId.PaperKind_APlus: return "接受/接受/A4";
                case PrintingStringId.PaperKind_A4Small: return "小型A4 ";
                case PrintingStringId.PaperKind_IsoB4: return "Iso B4";
                case PrintingStringId.PaperKind_Legal: return "法律文书";
                case PrintingStringId.PreparingPages: return "准备页......";
                case PrintingStringId.PaperKind_A5Rotated: return "A5 旋转";
                case PrintingStringId.PaperKind_A4Extra: return "A4 其他";
                case PrintingStringId.PrintDirect: return "快速打印";
                case PrintingStringId.ExportFile_Hint: return "导出文档中可用的格式之一,并将其保存到磁盘上的文件。";
                case PrintingStringId.ExportCsv: return "CSV 文件";
                case PrintingStringId.ExportHtm: return "HTML 文件";
                case PrintingStringId.ExportMht: return "MHT 文件";
                case PrintingStringId.ExportTxt: return "文本文件";
                case PrintingStringId.ExportPdf: return "PDF 文件";
                case PrintingStringId.ExportRtf: return "RTF 文件";
                case PrintingStringId.ExportXps: return "XPS 文件";
                case PrintingStringId.ExportXls: return "XLS 文件";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber10: return "中国信封 编号10 ";
                case PrintingStringId.PaperKind_A5Transverse: return "A5 横向";
                case PrintingStringId.PaperKind_Statement: return "声明";
                case PrintingStringId.WatermarkImageHorizontalAlignment: return "水平对齐方式:";
                case PrintingStringId.RepeatPassword_PermissionsPassword_Note: return "请确认权限密码。一定要记下该密码。你将会需要它在将来更改这些设置。";
                case PrintingStringId.PaperKind_C6Envelope: return "C6 信封";
                case PrintingStringId.PaperKind_A5Extra: return "A5 附加";
                case PrintingStringId.StopPageBuilding: return "停止";
                case PrintingStringId.ClosePreview: return "密切";
                case PrintingStringId.PaperKind_CSheet: return "C 表格";
                case PrintingStringId.PaperKind_Number9Envelope: return "编号 9 信封";
                case PrintingStringId.PaperKind_JapaneseEnvelopeKakuNumber2Rotated: return "日本信封Kaku 编号2 旋转";
                case PrintingStringId.PaperKind_A3ExtraTransverse: return "A3旋转附件";
                case PrintingStringId.PaperKind_Custom: return "自定义";
                case PrintingStringId.WatermarkTitle: return "水印";
                case PrintingStringId.WatermarkPositionInFront: return "在前面";
                case PrintingStringId.WatermarkFontItalic: return "斜体";
                case PrintingStringId.Watermark_Hint: return "插入重影的文本和/或图像后面的页面内容。";
                case PrintingStringId.Open_Hint: return "打开报告文档。";
                case PrintingStringId.PaperKind_B5Extra: return "ISO B5 额外";
                case PrintingStringId.PaperKind_A4Plus: return "A4 附加";
                case PrintingStringId.RibbonPageGroup_Print: return "打印";
                case PrintingStringId.CurrentPageDisplayFormat: return "页面: {0} {1} 的";
                case PrintingStringId.SendImage: return "图像文件";
                case PrintingStringId.PaperKind_Standard10x11: return "标准 10 x 11";
                case PrintingStringId.PaperKind_Standard10x14: return "标准 10 x 14";
                case PrintingStringId.PaperKind_Standard11x17: return "标准 11 x 17";
                case PrintingStringId.PaperKind_Standard15x11: return "标准 15 x 11";
                case PrintingStringId.PaperKind_Standard12x11: return "标准 12 x 11";
                case PrintingStringId.PaperKind_TabloidExtra: return "附加小报";
                case PrintingStringId.Error: return "错误";
                case PrintingStringId.Print: return "打印...";
                case PrintingStringId.Exception_NoPrinterFound: return "已在计算机上找到了没有打印机";
                case PrintingStringId.PageSetupMarginsCaptionFormat: return "在 {0} 中的边距";
                case PrintingStringId.PrintPdf: return "打印通过 Pdf......";
                case PrintingStringId.PaperKind_PrcEnvelopeNumber5Rotated: return "中国信封 编号5 旋转";
                case PrintingStringId.PaperKind_JapaneseEnvelopeChouNumber3: return "日本信封chou 编号3 ";
                case PrintingStringId.PaperKind_JapaneseEnvelopeChouNumber4: return "日本信封chou 编号4 ";
                case PrintingStringId.PaperKind_ESheet: return "E 表格";
                case PrintingStringId.PaperKind_MonarchEnvelope: return "君主信封";
                case PrintingStringId.PaperKind_DSheet: return "D 工作表";
                case PrintingStringId.RibbonPageGroup_Navigation: return "导航";
                case PrintingStringId.WatermarkImageLoadError: return "文件已损坏";
                case PrintingStringId.PaperKind_Tabloid: return "小报";
                case PrintingStringId.PaperKind_Note: return "笔记";
                case PrintingStringId.SendXlsx: return "发送 XLSX 文件";
                case PrintingStringId.SendFile: return "发送电子邮件...";
                case PrintingStringId.True: return "是";
                case PrintingStringId.False: return "否";
                default: return base.GetLocalizedString(id) ;

            }

        }


确保本地化设置在初始之前

  public SilverlightControl1()
        {
            DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new MyPreviewLocalizer();
            DevExpress.Xpf.Printing.PrintingLocalizer.Active = new MyPrintingLocalizer();
            InitializeComponent();
            this.Loaded += SilverlightControl1_Loaded;
        }