how chang language to zh-chs

Stimulsoft Reports.Silverlight discussion
Locked
dingfeng_wu
Posts: 1
Joined: Fri May 06, 2011 4:08 am
Location: zh-chs

how chang language to zh-chs

Post by dingfeng_wu »

:biggrin:
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

how chang language to zh-chs

Post by Andrew »

Hello,

Please see the attached image.

Thank you.
Attachments
987.2.png
987.2.png (95.21 KiB) Viewed 2514 times
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

how chang language to zh-chs

Post by Andrew »

..in addition

"Copy the localization .xml files to the Localization folder in your project. All languages will be automatically detected in WebDesignerSL. To change the default localization set the following property:


"
Thank you.
hotcat
Posts: 10
Joined: Wed Mar 02, 2011 12:59 am

how chang language to zh-chs

Post by hotcat »

Hello

I use the following code:
report = new StiReport();
.....
report.Design();

How I use the localization language?

Thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

how chang language to zh-chs

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

public MainPage()
{
	System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
        StiConfig.LoadLocalization(asm, "SilverlightApplication1.Localization.zh-CHS.xml");
        //StiConfig.LoadLocalization(asm, "SilverlightApplication1.Localization.zh-CHT.xml");
	InitializeComponent();
}
Thank you.
Locked