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

Localizing RadEditor by Using Global Resource Files

44 Answers 1188 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 20 Sep 2007, 01:16 PM


The Localization of the new RadEditor "Prometheus" now works with resource files and not with XML files as before. This change was made as resources represent the standard ASP.NET 2.0 mechanism for doing this with extensive built-in support in Visual Studio. As a result, it is a much easier approach for the developer in creating or changing a localization. Another major advantage of this is it is also much easier to deploy and maintain.

The RadEditor "Prometheus" localization is contained in resource files .resx which are within the product dll. Please, note that only the English localization is built-in the control dll.

To create your own localizations for the editor, you need to create the App_Global Resources folder in the root of your web application and copy the English resx files. These files are:

  • RadEditor.Main.resx
  • RadEditor.Tools.resx

and they can be downloaded from this forum sticky note.

After you have copied the resx files, you must duplicate each copy of these files and rename them using the syntax shown in the few examples below:

  • RadEditor.Tools.<Your_Language>.resx
  • RadEditor.Main.<Your_Language>.resx

All resx file contain two columns: Name and Value as it is shown below:

The image “http://www.telerik.com/help/radcontrols/prometheus/images/Localization.png” cannot be displayed, because it contains errors.

The image “http://www.telerik.com/help/radcontrols/prometheus/images/hs-note.gif” cannot be displayed, because it contains errors. It is mandatory to set the ReservedResource string in the Name column of the RadEditor.Tools.<Language>.resx file. Without this string the resource files will not be recognized.

Once you do that you can localize the strings in the Value column. You need to localize the strings in the Value column of your new resx files.

The next step is to set the Language property of RadEditor to the name of the <localization> string in the RadEditor.Tools.<language>.resx file:
Inline in the RadEditor's declaration:
<telerik:radeditor runat="server" ID="RadEditor1" Language="it-IT"></telerik:radeditor>
In the CodeBehind:
C#: RadEditor1.Language = "it-IT";
VB.NET: RadEditor1.Language = "it-IT"

The image “http://www.telerik.com/help/radcontrols/prometheus/images/hs-note.gif” cannot be displayed, because it contains errors. If you provide a new localization for RadEditor "Prometheus" which works properly, we will gladly reward you for your work.



44 Answers, 1 is accepted

Sort by
0
Philipp Becker
Top achievements
Rank 2
answered on 07 Nov 2007, 02:29 PM
I need to be able to set the resource directory to another folder to get this working in DNN properly. Is that supported?
0
Rumen
Telerik team
answered on 07 Nov 2007, 04:41 PM
Hi Philipp,

RadEditor uses the standard ASP.NET 2.0 mechanism for loading it localization from the App_Global Resources folder. If you want to change the resource location then you should write your custom resource provider as it is described in the following MSDN article:

Extending the ASP.NET 2.0 Resource-Provider Model


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philipp Becker
Top achievements
Rank 2
answered on 07 Nov 2007, 04:46 PM
That's not the point. My point is that if I deliver custom modules for the dotnetnuke framework utilizing Teleriks controls I would usually have â folder called "APP_Localresources" beneath my module folder where I load all resources for my module. This is a design issue in dotnetnuke.

When I distribute a custom module I have no possibility to add resources to the app_Global resources folder from within the installation process fo my module. Those have to reside in my module folder.
0
Lini
Telerik team
answered on 08 Nov 2007, 04:11 PM
Hi,

Perhaps it will be possible to compile the resx files into assemblies and load them from the bin folder. You can deploy the resources assembly along with the Telerik.Web.UI.dll file.

The other problem that you need to solve is, that the editor needs two HTTP Handlers in the web.config file. I don't think that there is a way to modify the Web.config handlers configuration from a PA installer. However, you should be able to add them using the following code:

HttpModulesSection HttpModules = (HttpModulesSection)Configuration.GetSectionGroup("system.web").Sections["httpModules"];  
HttpModules.Modules.Add(new HttpModuleAction(name, assemblyQualifiedName));  
Configuration.Save(); 

You can include the code in one of the module's controls. Note that you only need to add the handlers once and that it will recycle the application (since the web.config file will be updated).

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
garfield
Top achievements
Rank 1
answered on 07 Feb 2008, 08:29 AM
Has RadEditor been translated to spanish, or has anybody submited translated localization files?

Thanks
0
Rumen
Telerik team
answered on 07 Feb 2008, 11:27 AM
Hello garfield,

I searched in our storage and was able to find localization files for RadEditor 6.x Classic only. They are available for download in the My Licenses section under your Client.net account.

For your convenience I have attached the requested Spanish localization.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philipp Becker
Top achievements
Rank 2
answered on 05 May 2008, 02:43 PM
So from what I investigated localization cannot be used in dnn out of the box - even the current beta provider for RadEditor does not solve what appears to be the problem.

DNN explicitly denies resx compilation, so while you can set the language of the editor to the one being used in dnn, it does simply not affect the rendered language, simply because the editor cannot find a resource for the requested language.
0
Lini
Telerik team
answered on 07 May 2008, 02:10 PM
Hello Philipp,

You are correct. DotNetNuke uses resource (.resx) file in a way that is different from the .NET framework. That is why resource files are not compiled by default. However, I think that enabling their compilation will not lead to any problems (other than a bit slower start for the site). You can try it for yourself - simply remove the line

<remove extension=".resx" />

from the DNN Web.config file.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philipp Becker
Top achievements
Rank 2
answered on 07 May 2008, 02:13 PM
That does not work for two reasons:

1. The Core has now decided to no longer work with rex headers in resourcefiles

2. The Core also works with portal wide localizations, e.g. resx files in the format resources.portal-0.resx

For both reasons compilation of resx files will fail.
0
Philipp Becker
Top achievements
Rank 2
answered on 07 May 2008, 02:15 PM
You might consider to optionally support the old scenario using xml localization by setting. Maybe two settings:

- usexmllocalization
- resourcefilelocation
0
Lini
Telerik team
answered on 09 May 2008, 04:20 PM
Hi Philipp,

Thanks for the suggestion. We are considering having two localization mechanisms in the editor - RESX and XML files. If we decide to bring back the XML localization, the earliest we will be able to implement it in the next major release.

Regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Heinz
Top achievements
Rank 1
answered on 11 Jun 2008, 09:38 AM
Did I get this right? That means that I cannot use RadEditor in German DNN-installations, because there is no way to get German localization to run?
So where is the Telerik commitment to DNN? I think RadEditor is one of the most important parts of the suite in DNN environments. 
0
Lini
Telerik team
answered on 12 Jun 2008, 02:37 PM
Hi,

It is not impossible to use German or any other RadEditor localization in DNN. Here is what you need to do (assuming you have already deployed the editor in your portal):

1. open the DNN web.config file and remove the line:

<remove extension=".resx"/>

2. Download the latest hotfix build from our site (My Licenses > My Purchases > RadControls for ASP.NET AJAX > Downloads). Currently this is RadControls_for_ASP.NET_AJAX_2008_1_515_dev_hotfix.zip

3. Extract the App_GlobalResources folder from the hotfix archive in the App_GlobalResources folder of your DNN site. This will install the german localization files for RadEditor.

After that, the editor will automatically switch to German if the portal or page settings say that de-DE is the current localization.

The same steps apply for all languages. I am attaching a screenshot of the RadEditor in a french localized DNN portal.

All the best,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philipp Becker
Top achievements
Rank 2
answered on 12 Jun 2008, 02:51 PM
Not sure if you have read my previous post correctly. Resx compilation will fail in almost every use case because:

  • many language packs for dnn dot NOT include Resx headers anymore to reduce load time
  • if one creates only a single portal specific translation key, the resourcefile in question is being renamed to contain the portal id in its filename

both these issues lead to complation exceptions.

0
Eric Villemure
Top achievements
Rank 1
answered on 13 Jun 2008, 05:48 PM
Hi, is it possible to have the Spanish translation for the RadEditor in aspx format?

Thanks
0
Lini
Telerik team
answered on 16 Jun 2008, 08:17 AM
Hi Philip,

As I said earlier, we will provide an alternate way to localize the editor in the next major release. For now you will have to use the default english localization if your DNN language pack does not work with .resx compilation. Alternatively, you can do a global find & replace in the .resx files and add the missing header for those that need it. I think this should allow you to run the DNN site without problems. Here is a sample header you can use:

  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">  
    <xsd:element name="root" msdata:IsDataSet="true">  
      <xsd:complexType> 
        <xsd:choice maxOccurs="unbounded">  
          <xsd:element name="data">  
            <xsd:complexType> 
              <xsd:sequence> 
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> 
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> 
              </xsd:sequence> 
              <xsd:attribute name="name" type="xsd:string" /> 
              <xsd:attribute name="type" type="xsd:string" /> 
              <xsd:attribute name="mimetype" type="xsd:string" /> 
            </xsd:complexType> 
          </xsd:element> 
          <xsd:element name="resheader">  
            <xsd:complexType> 
              <xsd:sequence> 
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> 
              </xsd:sequence> 
              <xsd:attribute name="name" type="xsd:string" use="required" /> 
            </xsd:complexType> 
          </xsd:element> 
        </xsd:choice> 
      </xsd:complexType> 
    </xsd:element> 
  </xsd:schema> 
  <resheader name="ResMimeType">  
    <value>text/microsoft-resx</value> 
  </resheader> 
  <resheader name="Version">  
    <value>1.0.0.0</value> 
  </resheader> 
  <resheader name="Reader">  
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutralPublicKeyToken=b77a5c561934e089</value>  
  </resheader> 
  <resheader name="Writer">  
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutralPublicKeyToken=b77a5c561934e089</value>  
  </resheader> 


Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tango
Top achievements
Rank 1
answered on 28 Jun 2008, 05:10 PM
Hi,

I have dowloading your last trial version Telerik.DNN.Modules_2008_1_515_trial.zip
and use the resx files from RadControls_for_ASP.NET_AJAX_2008_1_619_trial_hotfix.zip  in the  App_GlobalResources.

I can't use your editor in french language because when I try to remove <remove extension=".resx"> in web.config file, I have a lot of errors in many modules when the application starts.

Do you have an idea to translate correctly your editor ?

Tango
0
Lini
Telerik team
answered on 01 Jul 2008, 07:07 AM
Hi,

Which french localization files are you using? I tried with the "French Language Pack [04.08.00] Core" from the DNN site and did not have any problems. What are the errors you see (exception details, stack trace)? Are they caused only by specific (third party) modules or all modules (even the ones that come with the DNN installation)?


All the best,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tango
Top achievements
Rank 1
answered on 02 Jul 2008, 07:04 AM
Hi,

I have this problem with the Catalook module. (http://www.dnnsoft.com)

If I remove <remove extension=".resx"> all catalooks module are broken and all the site is very slow.

Tango
0
tango
Top achievements
Rank 1
answered on 03 Jul 2008, 10:23 AM
Hi,

I have a new problem :  when I try to insert two telerik rad ajax editor in the same form, all drop down list (css style, links...) don't work .

I would like buy your editor but without remove  .resx  ligne in web.config and without bug when I try to add more than one editor in the same form.

Can you add also an option to allow a registered user to save document, images... in a private directory (*\portals\[portalnumber]\mediausers\[username]\   [document or media or image or template] )

Thanks for your support

Tango
0
Lini
Telerik team
answered on 03 Jul 2008, 10:47 AM
Hello,

Unfortunately, I could not find a free trial version of these modules so I can test them locally. At the moment, you have two options:

1) you can leave the <remove extension=".resx"> line and continue using the editor with english only language until we bring back the XML localization files support

2) you can try the workaround from my last message to Philip - add a valid resource file header to the Catalook module's localization files so they compile correctly.


Starting with the next release, we will make the German and French DNN localizations available through separate assemblies (Telerik.Web.UI.resources.dll) so it will be possible to have a localized editor even with the <remove ...> line in the web.config file. Once again I would like to apologize for the inconvenience.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tango
Top achievements
Rank 1
answered on 04 Jul 2008, 08:57 AM
Thanks,

I will wait your next trial to buy your product. Can you solve also the problem when more than one editor is use in the same form (all drop down lists are not available).
Also if you can have an enhancement to allow a registered user to have a private directory to publish contents (images, document, template, media...)

Great regards

Tango
0
Lini
Telerik team
answered on 08 Jul 2008, 03:15 PM
Hello Tango,

The editor provider has a property EnableUploadUserFolders. When you set it to true (from the Web.config provider definition), the editor will automatically create a separate folder for each user so they can upload content separately.

The problem with dropdowns is probably related to the skin you are using - more specifically, it does not have a XHTML doctype. Since our editor is built to work primarily on XHTML pages, there are still some glitches when it is in a non-XHTML page. However, we are constantly improving the support for pages with no doctype and I am sure that the problem with dropdowns will be fixed very soon.

Regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tango
Top achievements
Rank 1
answered on 08 Jul 2008, 11:57 PM

Hi,

thanks for your response.

but I can't do anything I want. Can you consider something bellow in a release ?

SelectImagesPathGuest ="images/Guest"
UploadImagesPathGuest ="images/Guest"

SelectImagePathAdmin ="*PortalRoot*, 
UploadImagesPathAdmin ="*images/*user*"

SelectImagePathHost ="*PortalRoot*"
UploadPathHost ="*PortalRoot*"

SelectImagePathRegisteredUser ="SharedLibraryForRegisteredUsers, images/*user*"
UploadPathRegisteredUser="images/*users*"

SelectImagePathRoles =" MyRole, images/MyRole/*user*"
UploadImagePathRoles =" MyRole, images/MyRole/*user*"

Great Regards

Tango

0
Lini
Telerik team
answered on 09 Jul 2008, 11:35 AM
Hi Tango,

I have added your request to our database. We will consider adding a special token *User* or *Group* to the ImagesPaths editor property. Note that in DNN there is no separate property for upload paths - we use the DNN permissions to decide whether a user has read/write rights to a folder.

Kind regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Daniel Mettler
Top achievements
Rank 2
Iron
answered on 18 Sep 2008, 09:26 AM
Hi

Philipp posted: "We are considering having two localization mechanisms in the editor - RESX and XML files. If we decide to bring back the XML localization, the earliest we will be able to implement it in the next major release."

RadControls for ASP.NET AJAX Q2 2008 are out. I couln't find any changes related to this issue. What's the current status? Is it now possible to localize RadEditor in DNN without removing the <remove extension=".resx"/> node?

Thanks
0
Lini
Telerik team
answered on 19 Sep 2008, 10:54 AM
Hi,

The new localization mechanism was not implemented in the Q2 release. Our biggest priority for the Q2 release was improving the editor dialogs and we had to postpone some other tasks, including the localization problems, for the next major release Q3. Please accept our apologies for the delay.

Greetings,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Philipp Becker
Top achievements
Rank 2
answered on 01 Nov 2008, 01:31 PM
I can't find this topic in the release notes for the Q3 beta. Again postponed?
0
Rumen
Telerik team
answered on 03 Nov 2008, 02:11 PM
Hi Philipp,

We were concentrated on implementing other features and bug fixes and we were not have enough time to implement the new localization mechanism. It is still in our ToDo list and our developers will try to implement it in one of the upcoming versions of the control.

Unfortunately, I cannot provide an exact time estimate on when it will become available.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sébastien
Top achievements
Rank 1
answered on 24 Dec 2008, 03:18 PM
Hi everybody,

I just buy the Radeditor for DNN and today I find out this problem. I  can't delete <remove extension=".resx" /> otherwise the CATALOOK module doesn't work properly.

To bad for my customer.

Let us know when you correction will be available...

Thanks

Sébastien
0
Tervel
Telerik team
answered on 29 Dec 2008, 12:29 PM
Hi Sébastien,

The current inhouse editor version features the ability to load its localization .resx files from an external location - which addresses your problem.
The next update of Telerik RadControls for ASP.NET AJAX (Q3 SP2 2008) will feature this new functionality. The update is scheduled for mid-January 2009.

Kind regards,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Syed Furqan
Top achievements
Rank 1
answered on 30 Jan 2009, 12:53 PM
Hello,

I need the resource files for Japanese Language. Any help would be appreciated.

Furqan
0
Rumen
Telerik team
answered on 02 Feb 2009, 03:07 PM
Hi Syed,

Please, find attached the requested localization.
You can see the following sticky note for more information: RadEditor for ASP.NET AJAX Localizations.

Greetings,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Syed Furqan
Top achievements
Rank 1
answered on 03 Feb 2009, 09:49 AM
Thanks Rumen.
0
tango
Top achievements
Rank 1
answered on 04 Feb 2009, 08:46 PM
I have download the last trial, but I don't find documentation for DNN.

I would like allow a webuser to publish in a personal directory. How can I configure it if it's possible?

Tango
0
Rumen
Telerik team
answered on 05 Feb 2009, 07:48 AM
Hi Tango,

The editor provider has a property EnableUploadUserFolders. When you set it to true (from the Web.config provider definition), the editor will automatically create a separate folder for each user so they can upload content separately.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Per Holmqvist
Top achievements
Rank 2
answered on 03 Jun 2009, 12:44 PM
Hi Rumen,

In a previous reply you recommended using the Extending the ASP.NET 2.0 Resource-Provider Model wich I think seams like a great soloution.
I've downloaded the samples but couldn't find the SQL script.
It says in the documentation "You must first run the SQL script to create the database" but I can't find any script on that....
Do you have an exampleDataBase to attach so we can solve this out?

Great regards Pelle
0
Tervel
Telerik team
answered on 03 Jun 2009, 12:49 PM
Hi Per,

The page you refer to is from Microsoft's MSDN. We are not sure what might be missing there, but unfortunately Telerik has no control over the contents and the download attachments of this article.

Best regards,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Per Holmqvist
Top achievements
Rank 2
answered on 03 Jun 2009, 01:09 PM
Hi and thanks for a prompt respond.

I am aware that it is an MSDN article, but if I understand correct the support for the old localisation is still missing wich gives DNN users no other choice if other modules need the configsettings.
it was actually Telerik that recomended the souloution, that's why I thought you had tried it yourself and therefore had an exampleDB?
0
Lini
Telerik team
answered on 03 Jun 2009, 02:43 PM
Hi,

Actually, we have already implemented a workaround for DNN by introducing a new built-in localization provider for the Telerik controls. What you need to do is simply set the LocalizationPath property in the editor configuration file and put the editor .resx files in a convenient location. Here is an example of this from our online demos - http://demos.telerik.com/aspnet-ajax/editor/examples/localization/defaultcs.aspx.

Using the above method, the editor will no longer use the ASP.NET Resource Provider and will load the .resx files independently and it will not conflict with the DNN localization mechanism.

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ashwani
Top achievements
Rank 1
answered on 03 Mar 2011, 02:29 PM
Hi team,

i am using telerik editor in DNN 5.4, i am facing few problem with this editor.
like:

1)Inline editor does not show design/html buttons when in international locales.
( how can i implement localization for editor..i.e. resource file??? some help link)
2) Image uploader/manager does not show tree or files when in edit mode.

3)Few instance of editor add <BR/> tag automatic..

thanks in advance..

0
Rumen
Telerik team
answered on 07 Mar 2011, 02:43 PM
Hi Ashwani,

If you use the Professional DNN provider of RadEditor that comes with the DNN 5.4 installation, you should note that it is implementation of the DNN developers and it is not supported by Telerik. Our suggestion is to post the question about how to register the external skin files of RadEditor in DNN in the DNN forums. For example in this one: Taming (customizing) The new Telerik RadEditor.

You can see how to create a custom localization in this article: Creating a New Language.

Kind regards,
Rumen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Christian Weber
Top achievements
Rank 1
answered on 07 Mar 2011, 04:48 PM
Hello
The correct transaltion for AddToDictionary (in the File RadEditor.Main.resx in de-DE) would be "Zum Wörterbuch hinzufügen" instead of "Fügen zum Wörterbuch hin".
And for SpellCheckEnd it would be "Rechtschreibungsnachprüfung beenden".
cheers
0
Rumen
Telerik team
answered on 09 Mar 2011, 12:37 PM
Hi Christian,

Thank you for your suggestions. I will update the RadEditor localization with the provided new German strings.

Best regards,
Rumen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Editor
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Answers by
Philipp Becker
Top achievements
Rank 2
Rumen
Telerik team
Lini
Telerik team
garfield
Top achievements
Rank 1
Heinz
Top achievements
Rank 1
Eric Villemure
Top achievements
Rank 1
tango
Top achievements
Rank 1
Daniel Mettler
Top achievements
Rank 2
Iron
Sébastien
Top achievements
Rank 1
Tervel
Telerik team
Syed Furqan
Top achievements
Rank 1
Per Holmqvist
Top achievements
Rank 2
Ashwani
Top achievements
Rank 1
Christian Weber
Top achievements
Rank 1
Share this question
or