Page 1 of 1

Localization of Findbar and Toolbar

Posted: Thu Aug 12, 2010 6:01 am
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#)


Localization of Findbar and Toolbar

Posted: Fri Aug 13, 2010 6:08 am
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.

Localization of Findbar and Toolbar

Posted: Fri Aug 13, 2010 6:59 am
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

Localization of Findbar and Toolbar

Posted: Fri Aug 13, 2010 3:11 pm
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.

Localization of Findbar and Toolbar

Posted: Mon Aug 16, 2010 2:13 am
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

Localization of Findbar and Toolbar

Posted: Tue Aug 17, 2010 3:35 am
by Andrew
Hello,

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

Thank you.