+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Changing spellchecker language globally

Changing spellchecker language globally

5 posts, 1 answered
  1. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    23 Apr 2010
    Link to this post
    I am wondering if it is possible to change the spellchecker language across the site in an easy way?

    From searching through the forums, if I am not mistaken, I need to amend all Telerik:RadEditor controls  with the following:

    In the ascx/aspx:
    <Languages>
        <telerik:SpellCheckerLanguage Code="en-GB" Title="GB" />
    </Languages>

    in the code behind:
    rotected void Page_Load(object sender, EventArgs e)
    {
     if (!Page.IsPostBack)
      {
         RadEditor1.Languages.Add(new SpellCheckerLanguage("en-GB", "GB"));
      }
    }


    Please confirm, thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Apr 2010
    Link to this post
    Hi Richard,

    You have to map the external templates for the views you want to modify How to map a template and add the spell checker. There is not global file that you could change and apply the language to all RadEditor declarations.

    Sincerely yours,
    Ivan Dimitrov
    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.
  3. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    23 Apr 2010
    Link to this post
    Just as I thought :( Thank you
  4. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    23 Apr 2010
    Link to this post
    I notice that there is a "en-US.tdf" that is located in ~\App_Data\RadSpell\

    Is it possible to open this up and replace the contents with the en-GB.tdf contents?

    It just seems an overkill to download and map the external template views just to change the dictionary.

    Thanks
    Ri
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Apr 2010
    Link to this post
    Hello Richard,

    Replacing the content of the tdf file should do the trick, because en-US.tdf is always loaded unless you set the Language property of the RadEditor control explicitly.

    Regards,
    Ivan Dimitrov
    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.
    Answered
Register for webinar
5 posts, 1 answered