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

Standalone imageManager globalization

9 Answers 110 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 25 Mar 2011, 10:39 AM
Hi,

I have a standalone ImageManger on the page which is not taking the correct globalization settings from the thread.

I have

Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE")
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE")

In Code behind but it is falling back to the default culture from web.config.

How can I set the dialog language correctly?

Marc

9 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 29 Mar 2011, 01:55 PM
Hello Marc,

To localize RadEditor and its dialogs you should set the Language property and copy the localization files in the App_GlobalResources folder. See this article for more information: Using Global Resource Files.

Kind regards,
Rumen
the Telerik team
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 29 Mar 2011, 02:09 PM
Hi Rumen,

I am talking about a standalone configuration here...not about a RadEditor integrated Image Manager.

Marc
0
Rumen
Telerik team
answered on 29 Mar 2011, 03:03 PM
Try the following:

DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), imageManagerParameters);
...
//Set the language
imageManager.Parameters["Language"] = "fr-FR";



Greetings,
Rumen
the Telerik team
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 30 Mar 2011, 08:44 AM
Very good Rumen this works.

Some additional places where text is not displayed correctly:

1. ImageManager pager got two texts, see screenshot.
2. Where can I get the resx for German from the demo http://demos.telerik.com/aspnet-ajax/window/examples/localization/defaultcs.aspx

Thanks for your time.
Marc
0
Rumen
Telerik team
answered on 31 Mar 2011, 12:37 PM
Hi Marc,

1) I was unable to reproduce the problem. I have attached my test project and video demonstrating my test http://screencast.com/t/rsjQUyexY.
2) The requested files are available in the C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q2 2010\Live Demos\App_GlobalResources installation directory. For your convenience I have attached them to my reply.

All the best,
Rumen
the Telerik team
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 31 Mar 2011, 01:45 PM
It is no problem to apply the RadWindow resx to a RadWindow with

<Localization Maximize="<%$ Resources:RadWindow, Maximize %>" Minimize="<%$ Resources:RadWindow, Minimize %>"
            Close="<%$ Resources:RadWindow, Close %>" PinOff="<%$ Resources:RadWindow, PinOff %>"
            PinOn="<%$ Resources:RadWindow, PinOn %>" Reload="<%$ Resources:RadWindow,Reload %>"
            Restore="<%$ Resources:RadWindow, Restore%>" Cancel="<%$ Resources:RadWindow, Cancel %>"
            OK="<%$ Resources:RadWindow, OK %>" No="<%$ Resources:RadWindow, No %>" Yes="<%$ Resources:RadWindow, Yes %>" />


But howto apply this to the RadWindows which are used in the RadEditor??

Marc
0
Rumen
Telerik team
answered on 31 Mar 2011, 03:55 PM
You can see how to change the localization of the Close button of the standalone image manager in this article: Changing the localization of RadWindow for ASP.NET AJAX.

We will also provide a way to localize the close button of RadEditor dialogs trough the provided resx files in one of the upcoming builds of Telerik.Web.UI.dll

Best wishes,
Rumen
the Telerik team
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 01 Apr 2011, 07:27 AM
OK this also goes for RadEditor dialogs

FileBrowser pager slider tooltips: "Increase", "Decrease"
FileBrowser grid column resize: "Drag to resize"

Marc
0
Rumen
Telerik team
answered on 05 Apr 2011, 11:59 AM
Hi Marc,

I logged this issue in our bug tracking system. You can find the PITS Issue and check its status at Public URL.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Rumen
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or