This is a migrated thread and some comments may be shown as answers.

Localize inner texts in chart

4 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maxim
Top achievements
Rank 1
Maxim asked on 02 Jul 2013, 08:38 AM
I have report with enabled localization for English (default) and German. When I change some inner text labels (such as "chart1.PlotArea.EmptySeriesMessage.TextBlock.Text", "chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text" etc) they change in Report.resx and Report.de.resx simultaneously. Why? How can I specify different texts for different languages?

4 Answers, 1 is accepted

Sort by
0
Pavel
Top achievements
Rank 1
answered on 05 Jul 2013, 05:39 AM
Any news on the issue? Can you suggest any workaround for this? Thank you!
0
Stef
Telerik team
answered on 05 Jul 2013, 12:21 PM
Hello everyone,

Please check the Localizing Reports help article. You need to specify the language before localizing your report definition.

I hope this helps.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Pavel
Top achievements
Rank 1
answered on 05 Jul 2013, 01:30 PM

Hello, Stef!

The report is localized to the full extent and it’s done just right as in the suggested article.

I believe that the problem is that some elements contain predefined (hardcoded in your library) values that are considered as default, e.g. "There is no or empty series"

The issue can be reproduced easily:
1. say, we have two languages: English (default) and German(German)
2. open any chart and select default language in localization, so you'd see for chart1.PlotArea.EmptySeriesMessage.TextBlock.Text value "There is no or empty series"
3. change current language to German and change text to "No data(German)"
4. change current language to default and you'd see, that it contains "No data(German)", not "There is no or empty series"
5. change the text from "No data(German)" to "There is no or empty series" again
6. change current language to German and see that "No data(German)" is no more there, but it again "There is no or empty series" (that's the most annoying)

In order to workaround this we add an extra space after "There is no or empty series" in default language so it's "There is no or empty series ".

Is it a by design behaviour?
0
Stef
Telerik team
answered on 10 Jul 2013, 01:19 PM
Hello Pavel,

There are obsolete properties which are not localized as expected. Since a resource file (resx) is automatically created for each language to store the translated text, you can control the entered string from the generated resx files, which should ease the localization process.

As the Chart item is obsolete, we recommend switching to the new Graph item.

Let us know if you have any further questions.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Maxim
Top achievements
Rank 1
Answers by
Pavel
Top achievements
Rank 1
Stef
Telerik team
Share this question
or