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

RAD Editor Spell Check dictionary change from US-English

18 Answers 270 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
M Tahir
Top achievements
Rank 1
M Tahir asked on 03 Feb 2010, 04:41 PM
We have installed Rad Editor (RAD controls for ASPNET AJAX) on our sharepoint server in our company. it was installed over a year ago with the Spell checker dictionary being the default US-English.  Recently one of the users has raised a call asking for a GB English dictionary.  I have downloaded the GB-English dictionary and know where to copy it to but am totally ignorant on how it needs to be changed so that the user, using intranet, can get the GB-English dictionary.  I've read the articles on this website but they dont make much sense.  Can somone in simple instructions tell me how to go about this as reading throught the article on 'enabling Spell checker' got me confused in that I didn't know where 'Radspell Declaration' was etc.  Any help will me much appreciated.

Taz.

18 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 04 Feb 2010, 08:14 AM
Hello M Tahir,
Could you confirm exactly which version of RadEditor for MOSS you are using? This will help me to provide you with the correct solution of your problem.

Sincerely yours,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
M Tahir
Top achievements
Rank 1
answered on 04 Feb 2010, 10:00 AM
Hi Stanimir, looking at the installation files I see the following files:

RadControls_for_ASP.NET_AJAX_2008_3_1125_dev.exe
Also installed are:
.Net 2.0 SDK
Microsoft ASP.NET 2.0 AJAX Extensions.

On the sharepoint server there is a folder to the following:
C:\Documents and Settings\All Users\Start Menu\Programs\telerik\RadControls for ASPNET AJAX Q3 2008

The RadEditorMOSS.wsp file, I cannot find the exact version but the file details for the 'date modified' is 26 November 2008, 10:02:06

Hope this is enough to make out the exact version and I look forward to your reply.
Regards.
Taz.







0
Stanimir
Telerik team
answered on 04 Feb 2010, 11:19 AM
Hi M Tahir,

To enable multi-language spellchecking you should modify the ToolsFile.xml / ListToolsFile.xml files, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.  You need to add the multi-language definition, along with the languages you need to appear in the dropdown:
<languages>
  <language code="en-US" title="English"></language>
  <language code="en_GB" title="English UK"></language>
</languages>


You should also put the en_GB.tdf dictionary in the \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.x.x.x__1f131a624888eeed\Resources\App_Data\RadSpell folder

Sincerely yours,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
M Tahir
Top achievements
Rank 1
answered on 04 Feb 2010, 04:10 PM
I tried that but the Editor doesnt seem to work when I add the lines to the two mentioned xml files.  Where exactly are these lines to be added, I've tried adding them within the <root> </root> section and outside it. Here are the contents of the file ListToolsFile.xml:

<root>
  <tools name="EnhancedToolbar">
    <tool name="Cut" shortcut="CTRL+X" />
    <tool name="Copy" shortcut="CTRL+C" />
    <tool name="Paste" shortcut="CTRL+V" />
    <tool name="FormatStripper" />
    <tool separator="true" />
    <tool name="Undo" shortcut="CTRL+Z"/>
    <tool name="Redo" shortcut="CTRL+Y"/>
    <tool separator="true" />
    <tool name="MOSSInsertTable" />
    <tool name="MOSSInsertTableElement">
      <tool name="InsertRowAbove" />
      <tool name="InsertRowBelow" />
      <tool name="InsertColumnLeft" />
      <tool name="InsertColumnRight" />
    </tool>
    <tool name="MOSSDeleteTableElement">
      <tool name="DeleteRow" />
      <tool name="DeleteColumn" />
    </tool>
    <tool name="SplitCell" />
    <tool name="MergeColumns" />
    <tool separator="true" />
    <tool name="MOSSLinkManager" />
    <tool name="ImageManager" />
  </tools>
  <tools name="BasicToolbar">
    <tool name="FontName" />
    <tool name="FontSize" />
    <tool separator="true" />
    <tool name="Bold" shortcut="CTRL+B" />
    <tool name="Italic" shortcut="CTRL+I" />
    <tool name="Underline" shortcut="CTRL+U" />
    <tool separator="true" />
    <tool name="JustifyLeft" shortcut="CTRL+L" />
    <tool name="JustifyCenter" shortcut="CTRL+E" />
    <tool name="JustifyRight" shortcut="CTRL+R" />
    <tool separator="true" />
    <tool name="InsertOrderedList" />
    <tool name="InsertUnorderedList" />
    <tool name="Indent" />
    <tool name="Outdent" shortcut="CTRL+M" />
    <tool separator="true" />
    <tool name="ForeColor" />
    <tool name="BackColor" />
    <tool separator="true" />
    <tool name="MOSSLeftToRight" />
    <tool name="MOSSRightToLeft" />
  </tools>
  <contextMenus>
    <contextMenu forElement="*">
      <tool name="Cut"/>
      <tool name="Copy"/>
      <tool name="Paste"/>
    </contextMenu>
  </contextMenus>
</root>

In which file(s) is the original spell language specified in (the US-en)? maybe if I change the US-en lines in these files to GB-en RADeditor will pick up the GB-en dictionary, but its knowing where the files are. Look forward to your answer.
Regards.
0
Stanimir
Telerik team
answered on 05 Feb 2010, 08:02 AM
Hello M Tahir,
First you need to make sure that you have the AjaxSpellCheck tool in your toolbar.
Here is how the provided by you code should look.
<root>
    <tools name="EnhancedToolbar">
        <tool name="AjaxSpellCheck" />
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C" />
        <tool name="Paste" shortcut="CTRL+V" />
        <tool name="FormatStripper" />
        <tool separator="true" />
        <tool name="Undo" shortcut="CTRL+Z"/>
        <tool name="Redo" shortcut="CTRL+Y"/>
        <tool separator="true" />
        <tool name="MOSSInsertTable" />
        <tool name="MOSSInsertTableElement">
            <tool name="InsertRowAbove" />
            <tool name="InsertRowBelow" />
            <tool name="InsertColumnLeft" />
            <tool name="InsertColumnRight" />
        </tool>
        <tool name="MOSSDeleteTableElement">
            <tool name="DeleteRow" />
            <tool name="DeleteColumn" />
        </tool>
        <tool name="SplitCell" />
        <tool name="MergeColumns" />
        <tool separator="true" />
        <tool name="MOSSLinkManager" />
        <tool name="ImageManager" />
    </tools>
    <tools name="BasicToolbar">
        <tool name="FontName" />
        <tool name="FontSize" />
        <tool separator="true" />
        <tool name="Bold" shortcut="CTRL+B" />
        <tool name="Italic" shortcut="CTRL+I" />
        <tool name="Underline" shortcut="CTRL+U" />
        <tool separator="true" />
        <tool name="JustifyLeft" shortcut="CTRL+L" />
        <tool name="JustifyCenter" shortcut="CTRL+E" />
        <tool name="JustifyRight" shortcut="CTRL+R" />
        <tool separator="true" />
        <tool name="InsertOrderedList" />
        <tool name="InsertUnorderedList" />
        <tool name="Indent" />
        <tool name="Outdent" shortcut="CTRL+M" />
        <tool separator="true" />
        <tool name="ForeColor" />
        <tool name="BackColor" />
        <tool separator="true" />
        <tool name="MOSSLeftToRight" />
        <tool name="MOSSRightToLeft" />
    </tools>
    <contextMenus>
        <contextMenu forElement="*">
            <tool name="Cut"/>
            <tool name="Copy"/>
            <tool name="Paste"/>
        </contextMenu>
    </contextMenus>
    <languages>
        <language code="en-US" title="English"></language>
        <language code="en_GB" title="English UK"></language>
    </languages>
</root>


Best wishes,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
M Tahir
Top achievements
Rank 1
answered on 08 Feb 2010, 12:17 PM
Thanks for that Stanmir, for some strange reason the dictionary is not being picked up by Rad Editor.  The following error message appears but I have copied the dictionary to that location, is there anything else that needs be done so that the GB dictionary is picked up.
-----error message-----
RenderWebPart:'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\5.3.1.0__1f131a624888eeed\Resources\App_Data\RadSpell\en_GB.tdf' is missing. The spellchecking functionality of RadEditor requires a dictionary file named 'en_GB.tdf' in the 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\5.3.1.0__1f131a624888eeed\Resources\App_Data\RadSpell\' folder. Please, ensure that all needed dictionary files from the original RadEditor distribution are present. See the help for more details Controls > RadEditor > Spellchecker
at Telerik.Web.UI.RadEditor.EnsureDictionaryExists(String dictionaryPath, String languageCode) at Telerik.Web.UI.RadEditor.EnsureDictionaries(String dictionaryPath) at Telerik.Web.UI.RadEditor.GetSerializedSpellDialogParameters() at Telerik.Web.UI.RadEditor.GetSerializedSpellCheckParameters(JavaScriptSerializer serializer) at Telerik.Web.UI.RadEditor.DescribeComponent(ScriptComponentDescriptor descriptor) at Telerik.Web.UI.RadWebControl.Telerik.Web.IControl.DescribeComponent(ScriptComponentDescriptor descriptor) at Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control) at Telerik.Web.UI.RadEditor.GetScriptDescriptors() at Telerik.Web.UI.RadWebControl.System.Web.UI.IScriptControl.GetScriptDescriptors() at System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) at System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl) at Telerik.Web.UI.RadEditor.RegisterScriptDescriptors() at Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at Telerik.SharePoint.RadEditorWebPart.RenderWebPart(HtmlTextWriter output)
---end of error message -----

Thanks a lot for your help Stanmir.
0
Stanimir
Telerik team
answered on 08 Feb 2010, 12:26 PM
Hi M Tahir,
Check the access rights for en_GB.tdf. Also you can send me the file and I will try to reproduce the issue on our test server.

All the best,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
M Tahir
Top achievements
Rank 1
answered on 08 Feb 2010, 01:59 PM
Stanmir,
I cannot attach the files with this message, I get a message saying only JPG, GIF etc can be added, I tried renaming the zip file to .JPG but it still wont allow it.  Any other way I can send you the Zip file?
Regards.

P.S. The permissions seem to be OK
0
Stanimir
Telerik team
answered on 08 Feb 2010, 02:07 PM
Hi M.,
Send them to stanimir.patarinski@telerik.com. Just make sure that you mention the current thread number (278809).

Sincerely yours,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Stanimir
Telerik team
answered on 08 Feb 2010, 03:14 PM
Hello M Tahir,
I reviewed your ToolsFile.xml. There is a mistake in it.
Change <language code="en_GB" title="English UK"></language> to <language code="en-GB" title="English UK"></language>

Kind regards,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
M Tahir
Top achievements
Rank 1
answered on 09 Feb 2010, 02:18 PM
Thanks a lot Stanimir, that worked perfectly but I'm not too sure about the dictionary itself.  For example:

Colour (in UK) is spelt Color in US English, also Flavour (uk), Flavor (US).  I tried a few more words but for the UK words I seemed to get misspelt message even when I choose the GB-en dictionary.  Any ideas if this is an issue with the dictionary and the lack of words in it or does the user have to add these words in during the spell check process?

Thanks.
Regards.
0
Stanimir
Telerik team
answered on 10 Feb 2010, 08:51 AM
Hello M Tahir,
Review the following article. I hope that it will be helpful http://www.telerik.com/help/aspnet-ajax/editor-create-new-dictionary.html.

Kind regards,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
M Tahir
Top achievements
Rank 1
answered on 15 Feb 2010, 03:21 PM
Hi Stanimir,

I've been playing about with the dictionary and it looks like the en-GB is still not being recognised.  I've attached a screenshot which shows the UK English dictionary being shown in RadEditor but for the spellcheck the en-US is still being used.  To double check I spell checked the word 'Colour' in the UK english dictionary (as shown in the pic) but I was given a list of options including US english 'Color'.  I added that word to the dictionary and checked the folder where the dictionarys are stored and I get a text file in there called "en-US-custom.txt" and in that file I found the word 'Colour'.  The text file where the word is copied to also suggests that the en-GB is not being picked up.

Just to make sure I removed the US dictionary totally from the ToolsFile.xml and the ListToolsFile.xml without any luck.  For your information I have added the lines you sent to both of these files.

I look forward to your reply.
Best Regards.  
0
M Tahir
Top achievements
Rank 1
answered on 15 Feb 2010, 03:23 PM
Just an addition to the last post...I edited the en-GB dictionary and it DOES have the word 'Colour' in it, therefore it should have given me the all OK if the UK spell check worked.
Regards.
Taz,
0
Stanimir
Telerik team
answered on 16 Feb 2010, 07:24 AM
Hi M Tahir,
Could you send me your configuration files and the en-GB.tdf file? I will see them and tell you, if any thing is wrong in them.

All the best,
Stanimir
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
Stanimir
Telerik team
answered on 16 Feb 2010, 11:22 AM
Hi M Tahir,
I received the configuration files. Unfortunately I was not able to reproduce the issue. For your convenience I attache a small movie with my test. Please inform me if I am doing anything wrong. I test the issue in webpart scenario. Also I deleted the en-US-Custom.txt, which was in the Resources\App_Data\RadSpell folder.

I tested the problem with the latest version of RadEditor for MOSS, which now is 5.6.2. So you might consider upgrading to it.

Kind regards,
Stanimir
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
M Tahir
Top achievements
Rank 1
answered on 16 Feb 2010, 12:31 PM
Thanks for that Stanimir, I'm doing exactly the same.  I guess upgrading to the new version has its costs (not a free upgrade)?

Taz.
0
M Tahir
Top achievements
Rank 1
answered on 16 Feb 2010, 12:43 PM
Stanimir, I've managed to get it to work, I just renamed the en-GB dictionary to en-US and modified the two .xml files accordingly.  Seems to be working for the time being :-)

Don't know why I didn't think of that before :-D

Regards.
Taz.

Tags
WebParts for SharePoint
Asked by
M Tahir
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
M Tahir
Top achievements
Rank 1
Share this question
or