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

Localization issue

12 Answers 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Li
Top achievements
Rank 1
Li asked on 19 Jun 2012, 12:17 PM
Hi Telerik Team,

if I add en and de to the supported cultures to my project ans the system language is german, I never get english strings on any Telerik control although I set the en as culture and uiculture:
<param name="uiculture" value="en" />
<param name="culture" value="en" />

Setting it in code does not work either:
Thread.CurrentThread.CurrentCulture = new CultureInfo("en");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");

I do not get english stringsonce I added de to the supported cultures with german system language.

Is this a Telerik bug or am I doing anything wrong?

Thanks and kind regards,
Li

12 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 19 Jun 2012, 12:43 PM
Hi Li,

 I would recommend you to check this documentation article where a detailed instructions on how to set a default startup language are provided. 

Regards,
Didie
the Telerik team

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

0
Li
Top achievements
Rank 1
answered on 20 Jun 2012, 07:28 AM
I did all things which are described, but we have to support english and german, If i enter both cultures to the supported cultures and the system language is german, there are never shown english strings if I set the culture to "en".  The article does not solve this problem.

Kind regards,
Li
0
Dimitrina
Telerik team
answered on 20 Jun 2012, 09:49 AM
Hello Li,

 I am not sure what do you mean by "I added de to the supported cultures with german system language". Would you please clarify?
Have you tried to add "en" to the supported cultures.

All the best,
Didie
the Telerik team

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

0
Li
Top achievements
Rank 1
answered on 20 Jun 2012, 11:24 AM
Hi Didie,

I did the folowing:
- added supported cultures "en" and "de". In the projecect file
<SupportedCultures>en;de</SupportedCultures>

- I set the neutral language of the project in the assembly information to English.

I use a PC with German system setting.

In the code of my app I set the Culture to "en" before I instantiate my Page
Thread.CurrentThread.CurrentCulture = new CultureInfo("en");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");

With "I do not get english strings once I added de to the supported cultures with german system language.", I mean, that I get English strings when I remove the "de" entry in the supported cultures, but when I add it, so that I have "en" AND "de", I always get German strings and never English ones. I hope, this is more clear now.

Kind regards,
Li
0
Dimitrina
Telerik team
answered on 21 Jun 2012, 12:37 PM
Hi Li,

 Thank you for the clarifications.

I have created a test project to test what happens after I changed my system settings to German. I have attached the project for a reference as I was not able to reproduce such an error.

Would you please run it on your machine to check if you are able to see the english texts.

Kind regards,
Didie
the Telerik team

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

0
Li
Top achievements
Rank 1
answered on 22 Jun 2012, 10:40 AM
Hi Didie,

I unzipped your project and after opening, I had to add the references for the Telerik dlls again, they are pointing to the dlls in your folder Libs in the project. I did not change any other thing.
I ran your project and I am not able to see the English strings. Only the German ones are displayed.

Kind regards,
Li
0
Li
Top achievements
Rank 1
answered on 29 Jun 2012, 09:35 PM
Hi,

is there any help or hints you can give me for this issue?

Kind regards,
Li
0
Dimitrina
Telerik team
answered on 03 Jul 2012, 09:19 AM
Hello Li,

 Unfortunately we are still not able to reproduce such an issue locally.

I have attached screenshots of the System Language Settings on my machine. Would you please check them and let me know in case you have a different setting which I should additionally set?

Greetings,
Didie
the Telerik team

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

0
Li
Top achievements
Rank 1
answered on 03 Jul 2012, 09:17 PM
Hi Didie,

thanks for your efforts.
My system settings are the same than yours, I recognized, that all texts in the screenshots are English, mine are German.
I do not know, whether this is relevant.

Maybe it would be good, if I send a sample project to you (in the ticket system?) and you try whether you can see the English strings. We tried this the other way around, but perhaps this will help us to find the solution.

Thanks a lot,
Kind regards, Li
0
Dimitrina
Telerik team
answered on 04 Jul 2012, 09:12 AM
Hello Li,

 You could open a support thread and send us a test project.

All the best,
Didie
the Telerik team

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

0
Michael
Top achievements
Rank 1
Veteran
Iron
answered on 24 Oct 2012, 06:51 AM
Hy Li,

do you found a solution for that problem.
Im in the same situation.

I tried the attached project - thx didie - but i also see the german string.

I changed my system language zu spain, english and german.
Also i changed the CultureInfo in Application_Startup function in code behind.

Nothing happens - only german string.

Is there anything i can do?
0
Dimitrina
Telerik team
answered on 24 Oct 2012, 08:27 AM
Hello,

May I ask you to open a support thread and send us a test project?

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Li
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Li
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Veteran
Iron
Share this question
or