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

A question about localization

2 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 23 Jun 2011, 12:04 PM
Hi

I am doing some research on what we will need to do to localize our product in the future.

I have read your information on localizing a RadGrid, and it seems straightforward.

I do have one question, which I will get to in minute.

It seems you require the setting of the Culture attribute within the grid defintion.

We are currently looking at allowing the user to switch languages on-the-fly.

To do this with non-telerik controls I have to make sure the Culture and UICulture settings on the page are set to auto.

I then use the tool available in Visual Studio to Generate Local resources for my page.

This causes meta tags to be applied to the native asp tags.

If I do all this and create separate language versions of my resx files I can change languages
by using the language options setting in my browser.

How do  I cause Telerik controls to switch languages dynamically?

TIA

2 Answers, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 1
answered on 23 Jun 2011, 12:41 PM
Doh!!!!

Fixed my own problem.

I just set the Culture attribute during page load to System.Globalization.CultureInfo.CurrentUICulture.

Problem solved.

Sorry for bother you.

I hope this helps others.
0
Sebastian
Telerik team
answered on 23 Jun 2011, 02:20 PM
Hello Tim,

Yes, that's the current localization mechanism required by the grid. This will change with Q2 2011, see my last message in this code library post for more info.

Best regards,
Sebastian
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Tim
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or