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

RadEditor : Languages

6 Answers 345 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Suzi
Top achievements
Rank 1
Suzi asked on 07 Jul 2008, 01:39 PM
RadEditor into an application. For the moment RadEditor can be in us-Us, fr-FR and de-DE. But the application can be also in spanish(es-ES), ...
For the moment I coded this :

protected void Page_Load(object sender, EventArgs e){if (!this.IsPostBack){

RadEditor1.Language = Request.Cookies[CIndex.UICulture].Value;

}


But if  (Request.Cookies[CIndex.UICulture].Value == "es-ES") , RadEditor cannot translate in Spanish. I would like to use English as default language. I don't know how to check if RadEditor can translate. I am looking something like that :

if(!Radeditor.Languages.Contains(Request.Cookies[CIndex.UICulture].Value))
{
    RadEditor1.Language = "us-US";
}
else
{
    RadEditor1.Language = Request.Cookies[CIndex.UICulture].Value;
}

But my list Radeditor.Languages is empty. I don't know why. I don't use SpellCheking.

Thank you in advance,

6 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 08 Jul 2008, 08:39 AM
Hi Suzi,

You can check the available localization folders in the RadControls/Editor/Localization folder with the following code:

        string path = Server.MapPath(@"~/RadControls/Editor/Localization/");
       
        // Make a reference to a directory.
        DirectoryInfo di = new DirectoryInfo(path);

        // Get a reference to each directory in that directory.
        DirectoryInfo[] diArr = di.GetDirectories();

        // Display the names of the directories.
        foreach (DirectoryInfo dri in diArr)
        {
            Response.Write(dri.Name + "<br>");

            /*make a check whether there is a localization in the RadControls/Editor/Localization folder for the current web application language*/

            if (dri.Name == null )
            {
                RadEditor1.Language = "en-EN";
            }
        }

This is just a basic solution. You should enhance it to fit your scenario.


By the way, we have Spanish localization for RadEditor. If you would like I can send it to you.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Fabian Schulz
Top achievements
Rank 1
answered on 18 Sep 2008, 10:34 AM
Hello,
could you send me those Spanish localization resources for the editor, please?

Or is there a page where one can download them?

Thank you,
0
Rumen
Telerik team
answered on 18 Sep 2008, 03:57 PM
Hi Fabian,

Please, check the following sticky note: RadEditor for ASP.NET AJAX Localizations.


Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fabian Schulz
Top achievements
Rank 1
answered on 18 Sep 2008, 06:27 PM
Thanks for your answer. But there is no Spanish translation in the sticky note.
But Rumen from Telerik stated earlier in the thread that there is a Spanish translation avaible, that he could send on request.
Could you please send me that translation?
Thanks,
0
Rumen
Telerik team
answered on 22 Sep 2008, 01:32 PM
Hi Fabian,

You can find attached the requested Spanish localization for RadEditor for ASP.NET AJAX.

Please, note that it is based on the Spanish XML localization that we have for RadEditor Classic v6.x and it is not up-to-date. If anybody update the Spanish localization using as a base the English localization, we will gladly add 3000 Telerik points to his account.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marcelo
Top achievements
Rank 1
answered on 15 Jan 2014, 02:47 PM
He there, I need the same file but for Html.Telerik().Editor().
I just create a resource file called:
EditorLocalization.es-ES.resx
EditorLocalization.pt-BR.resx

EditorLocalization.resx
...but I don't know what to put inside...

Thanks.
 
Tags
Editor
Asked by
Suzi
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Fabian Schulz
Top achievements
Rank 1
Marcelo
Top achievements
Rank 1
Share this question
or