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

Localization

6 Answers 307 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 23 Mar 2011, 11:28 PM
Some radcontrols have the possibility to change the language which is used in dialogs, labels and on buttons. RadGridView is a good example. You can make/copy your own language-resource-file (from the localization folder).
Is there a way to change the language used in the RichTextBox-dialogs?

6 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 24 Mar 2011, 03:26 PM
Hi Rieni De Rijke,

Localization of RadRichTextBox is already fully supported, although this is not well documented for now. You could refer to the this thread for more info and sample resource file.

Don't hesitate to contact us if you have other questions or need further assistance.

Greetings,

Boby
the Telerik team
0
Rieni De Rijke
Top achievements
Rank 1
answered on 29 Mar 2011, 10:37 PM
Thank you for your answer. I could make a nice resx -file.
But, when I want to use this file like this ...

	    LocalizationManager.Manager = new LocalizationManager()
            {
                ResourceManager = NorskTelerik.ResourceManager
            };


...I need a NorskTelerik.Designer.cs  -file.
Do you know how I could generate such a ...Designer.cs -file from my NorskTelerik.resx?
Or... could I do without such a file.

	    

0
Iva Toteva
Telerik team
answered on 31 Mar 2011, 11:12 AM
Hi Rieni De Rijke,

The designer file is automatically generated for you if you set the Access Modifier of the resource file to "Public". 
Normally, you would have one public resource file and several no-code-generation ones, containing the translations in different languages. If you include the default resource file (the one Bobby included in his post), you can set its modifier to public and the file containing the Norwegian translation of the resources to "no code-generation".
Please find attached a simple demo which illustrates the second approach. Because of my poor knowledge of Norwegian, the only translated strings are the cut-copy-paste and the hyperlink-related ones in the context menu.

Kind regards,
Iva
the Telerik team
0
Rieni De Rijke
Top achievements
Rank 1
answered on 01 Apr 2011, 09:47 PM
Thank you for your help.

1. This IS the wpf-forum isn't it? I would realy appreciate getting the examples (great!) for Wpf. I don't have the Silverlight-dll's so most of the samples won't work for me.
2. Where could I set the Access Modifier of the resource file to "Public"? 
3. I got it halfway to work, but even when I change things like the "Documents_FindReplaceDialog_Header" to norwegian, the text in the dialog stays english. Where and how would you change the language for all the dialogs? The contextmenu for the RadRichText seems to get the right language.
0
Accepted
Iva Toteva
Telerik team
answered on 07 Apr 2011, 08:29 AM
Hi Rieni De Rijke,
  1. The approach with WPF is just the same as with Silverlight. Please find attached another demo, this time for WPF.
  2. When you open the resource file in Visual Studio, in the toolbar at the top, you have options such as Add Resource, Remove Resource and the one at the end is Access Modifier.
  3. In the project I am sending, there was no problem with the localization of the FindReplaceDialog. Hopefully, you would be able to fix the behavior in your application following the example attached.
Greetings,
Iva
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
0
Rieni De Rijke
Top achievements
Rank 1
answered on 07 Apr 2011, 08:52 PM
Thank you for the example and the answers. It works fine!
Tags
RichTextBox
Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Boby
Telerik team
Rieni De Rijke
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or