RadEditor : Languages

7 posts, 1 answers
  1. Suzi
    Suzi avatar
    85 posts
    Member since:
    Mar 2008

    Posted 07 Jul 2008 Link to this post

    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,

  2. Answer
    Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 08 Jul 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 18 Sep 2008 Link to this post

    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,
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 18 Sep 2008 Link to this post

    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.
  6. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 18 Sep 2008 Link to this post

    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,
  7. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 22 Sep 2008 Link to this post

    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.
  8. Marcelo
    Marcelo avatar
    1 posts
    Member since:
    Oct 2011

    Posted 15 Jan 2014 Link to this post

    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.
     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017