彩票走势图

【Stimulsoft Reports Silverlight教程】查看器本地化

翻译|使用教程|编辑:王香|2018-12-13 09:55:28.000|阅读 274 次

概述:此示例项目显示如何为查看器应用所需的本地化。首先,您应该加载将用于显示查看器的所有本地化。

# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>

相关链接:

下载Stimulsoft Reports Silverlight最新版本

此示例项目显示如何为查看器应用所需的本地化。首先,您应该加载将用于显示查看器的所有本地化。要应用其中一个本地化,您可以使用StiSettings.Set()静态方法:

public MainPage()
{
    #region Load Localizations
    var asm = System.Reflection.Assembly.GetExecutingAssembly();
 
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.ar.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.be.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.bg.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.cro.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.cz.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.de.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.en.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.es.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.fa.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.fr.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.hu.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.it.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.ka.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.lt.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.nl.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.pl.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.pt-BR.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.ro.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.ru.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.ser.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.sk.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.sv.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.tr.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.ua.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.zh-CHS.xml");
    StiConfig.LoadLocalization(asm, "ViewerLocalization.Localization.zh-CHT.xml");
    #endregion
 
    // Set Localization
    StiSettings.Set("Localization", "Current", "de");
 
    InitializeComponent();
}

下面的屏幕截图中,您可以看到示例代码的结果。

Stimulsoft

购买Stimulsoft正版授权,请点击“”哟!

GrapeCity年末福利大放送

标签:报表报表控件SilverlightStimulsoft本地化

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@pclwef.cn


为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP