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

Localization

9 Answers 293 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 08 Oct 2012, 12:01 PM
Hello,

how can I translate all controls (Application wide) to German for exmaple?
In the following post the use of the Telerik.Windows.Controls.resources.dll is not explained.

http://www.telerik.com/help/wpf/common-localization.html

Thank you for your help!

Manuel

9 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 09 Oct 2012, 12:41 PM
Hello Manuel,

 Please check this forum thread where this is already discussed. You may check the sample project for WPF in the thread for reference. Don't hesitate to contact us if you have other questions.

All the best,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Manuel
Top achievements
Rank 1
answered on 09 Oct 2012, 01:18 PM
Sorry, I don't get it!
The thread is of 2009 and the using the resx file and not the dll.

Can you provide an example please?

0
Yoan
Telerik team
answered on 10 Oct 2012, 03:04 PM
Hi Manuel,

Indeed, you are right. Here are the steps that you need to follow:
  1. Add folder to your project named for example "Resources".
  2. Copy and Paste the language resources that you want in it. ("Telerik.Windows.Controls.resources.dll")
  3. Set the current culture like this in MainWindow.xaml.cs :
Thread.CurrentThread.CurrentCulture = new CultureInfo("de");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
For your convenience I have attached sample project that illustrate this approach. 

Please, excuse us for the inconvenience. We will update the WPF documentation.


Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Manuel
Top achievements
Rank 1
answered on 15 Oct 2012, 03:21 PM
Yoan,

thank you for your help!

Is there a way to debug it?
Your example works great, my solution doesn't!

I added the resource dll file, an VS creates to output file and puts it in the "de" folder.
I added to code "new CultureInfo("de-DE") as well, the dates and currency are now in the correct format.
Only the telerik texts are still in english.

Any ideas?
Manuel
0
Yoan
Telerik team
answered on 16 Oct 2012, 03:20 PM
Hello Manuel, 

Please verify that you have folders with names - "en" and "de" in the directory  where your referenced  binaries are. You should then have "Telerik.Windows.Controls.resources.dll" assembly in each of them. If that not helps you, please send me demo project showing the issue.

Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Manuel
Top achievements
Rank 1
answered on 16 Oct 2012, 03:55 PM

Yoan,

thank you for the suggestion!

Yes, I have a 'de' directory in the startup project.
Even in the output directory I have a 'de' directory. (e.g.: \bin\Debug\de\\bin\Debug\de\Telerik.Windows.Controls.resources.dll)
I checked the file as well, this is the German resource file.

In my solution I have different projects. In all output directories I have this 'de' folder.

 
Any ideas?

0
Yoan
Telerik team
answered on 17 Oct 2012, 12:48 PM
Hi Manuel,

 Please prepare small demo project showing the issue and send it to me in order to investigate it.

Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Manuel
Top achievements
Rank 1
answered on 17 Oct 2012, 01:31 PM
Dear Yoan,

I made a support ticked and attached a demo app.

Regards,
Manuel
0
Accepted
Yoan
Telerik team
answered on 19 Oct 2012, 02:27 PM
Hi Manuel,

 I already answered your support ticket on the subject. Because this maybe be helpful for others, I will paste my answer here as well: 

Thank you for sending me a sample project. It turns out that the problem is that you are using binaries for .Net version 4.5 and resource file - "Telerik.Windows.Controls.resources.dll" with .Net version 4.0. Please try with the binaries for .Net 4.0 and tell me is that solves your problem.


Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Manuel
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Manuel
Top achievements
Rank 1
Share this question
or