Exporting localization strings

Stimulsoft Reports.NET discussion
Post Reply
groo
Posts: 9
Joined: Tue Dec 11, 2012 1:39 pm

Exporting localization strings

Post by groo »

From what I've seen in the help and forums, in order to use localized strings from a .resx file I have to create my own implementation of IStiGlobalizationManager, which will fetch values from the ResourceManager as needed, something like:

Code: Select all

public string GetString(string name)
{
    // use the .resx file
    return this.resourceManager.GetString(name, Culture);
}
Now, what I cannot find is: is it possible to "export" all strings from an existing report so that I can create these .resx files?

Or do I have to manually set each Globalized Name in the Stimulsoft designer, and then again manually define it in the Visual Studio resource file?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Exporting localization strings

Post by HighAley »

Hello.

Please, read the article in our Knowledge Base http://stimulsoft.helpserve.com/index.p ... ticleid=45
You could find there a sample project.

Thank you.
groo
Posts: 9
Joined: Tue Dec 11, 2012 1:39 pm

Re: Exporting localization strings

Post by groo »

Thanks!

Actually I already have that example (I got it along with other demos when I installed Stimulsoft). But that's a finished project, and my question is actually how to get there. It seems that there is a lot of work involved to use the GlobalizationManager:

1. For each element, I have to manually define a unique "globalized name" in its properties.
2. For each "globalized name", I have to define it again in the Visual Studio resources file.

I was wondering if Stimulsoft designer already does some part of this, or if I need to do all this by hand?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Exporting localization strings

Post by HighAley »

Hello.

There is another globalization tool in the Designer.
You could localize your report by editing it. There is an article in our Blog.

The two buttons were added since this article. You could create Globalization Strings from your report and set created Globalization strings in the report.
GlobalizationStringsGetSet.png
GlobalizationStringsGetSet.png (42.14 KiB) Viewed 1419 times
Thank you.
Post Reply