Localization of Findbar and Toolbar

Stimulsoft Reports.WPF discussion
Post Reply
ClausM
Posts: 6
Joined: Thu Aug 12, 2010 4:10 am
Location: austria

Localization of Findbar and Toolbar

Post by ClausM »

Hello,

as the topic states the following problem arouse:

Image

Taking a look at the picture, you will see two marked areas that differ in localization (German: red, English: green). Though, the intention was to have them localized using the same language. Oddly enough the problem occurs only with the first report that is generated on every program launch. Every following report is using the correct language.

We integrated the Stimulsoft Report.WPF framework (.NET version 3.5 with C#) within this program and use the viewer component to show the various reports. Also the localization file that is used was loaded with the following lines

Stream languageDE = ReflectionHelper.GetEmbeddedResource(ASSEMBLYNAME, RESOURCESFOLDER, "de.xml");
Stimulsoft.Report.StiConfig.LoadLocalization(languageDE);

And the loading itself works flawlessly, I replaced the file various times with the ones from the demo applications and got the expected results. Also I discovered that if a settings file (Stimulsoft.Report.settings) occupies a node “ …” this language is used for the green areas (default seems to be English).

After trying quite a few variations of files and code and searching google for a while, I was hoping to get an answer here.

Thanks in advance,

Claus

Additional facts:
Windows XP SP3, Stimulsoft Report.WPF SWPF_2010.08.10 (.NET Framework 3.5 – C#)

Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

Localization of Findbar and Toolbar

Post by Anton Lozovskiy »

Hello,

We can not reproduce your problem. Please send a sample application which reproduces the problem so that we can test it.

Thank you.
ClausM
Posts: 6
Joined: Thu Aug 12, 2010 4:10 am
Location: austria

Localization of Findbar and Toolbar

Post by ClausM »

Hello AntonLoz,

thanks for your reply, after some moving around the LoadLocalization method it appears to be working. Obviously the time when loading the locale file was the crucial part. Before this the locale was loaded just before the ShowWithWPF() was called, this appears to cause the confusion.

When to call it exactly, I can't say, just that we placed it very early during the splash screen now.

Again, thanks and best regards,

Claus
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Localization of Findbar and Toolbar

Post by Jan »

Hello Claus,

Can you show (or send to support@stimulsoft.com) part of code with LoadLocalization method before and after? If you use method LoadLocalization("de.xml") with localization placed in file it work?

Thank you.
ClausM
Posts: 6
Joined: Thu Aug 12, 2010 4:10 am
Location: austria

Localization of Findbar and Toolbar

Post by ClausM »

Hello Jan,

I am sorry, I cannot post (or send) some code to determine the exact time when the LoadLocalization method is called - it would require nearly the whole program to trace it. The approximate time was during the initialization ...
The new time of the call is during the splashscreen before any other stimulsoft component is called. For testing reasons I also put the localization file directly into the output folder calling LoadLocalization("de.xml") directly, which worked well (equally to the stream input).

If you have any further questions, please ask,

Best regards,

Claus
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Localization of Findbar and Toolbar

Post by Andrew »

Hello,

We cannot reproduce this issue. If we collect some information about this issue we will let you know.

Thank you.
Post Reply