Page 1 of 1

Exporting localization strings

Posted: Fri Dec 21, 2012 2:09 pm
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?

Re: Exporting localization strings

Posted: Sat Dec 22, 2012 1:53 pm
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.

Re: Exporting localization strings

Posted: Sun Dec 23, 2012 9:26 pm
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?

Re: Exporting localization strings

Posted: Wed Dec 26, 2012 6:09 am
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 1423 times
Thank you.