New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Localization

Spellchecker localized in English

Spellchecker localized in German

RadSpell could be easily localized by switching the Language property. This will affect the dialog labels, buttons, and error messages, not the spellchecking language.

In the sample above we have placed two TextBoxes and two spell checkers, one localized in English and one localized in French.

The default installation of RadSpell comes with localization files for English, French and German languages. If you want to localize it for your specific language (Hebrew for example) you need to create new localization file. You can also check the Localization section of the Code Library to see if someone has already posted the language pack you are looking for.

Since localization is done in the standard ASP.NET way with Global Resources you need to copy the *.resx files for RadSpell to your App_GlobalResources folder. You can find the built-in language packs in your Telerik UI installation folder (usually C:\Program Files [(x86) if on a 64bit Windows]\Telerik\UI for ASP.NET AJAX [QX YYYY]\App_GlobalResources ). You need to copy the RadSpell.Dialog.resx file along with the language specific files you are going to use (for example - RadSpell.Dialog.de-DE.resx).

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page CodeFile="DefaultVB.aspx.vb" Language="vb" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Spell.Localization.DefaultVB" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-narrow">
        <strong>Spellchecker localized in English</strong><br />
        <asp:TextBox ID="textBox1" runat="server" width="100%" Height="100px" TextMode="MultiLine">Thisz is a server side TextBox with some delibirate mistakees.</asp:TextBox>
        <br />
        <telerik:RadSpell RenderMode="Lightweight" ID="spell1" runat="server" ControlToCheck="textBox1" DictionaryLanguage="en-US"
            Language="en-US"></telerik:RadSpell>
    </div>
    <div class="demo-container size-narrow">
        <strong>Spellchecker localized in German</strong>
        <asp:TextBox ID="textBox2" runat="server" width="100%" Height="100px" TextMode="MultiLine">Dies ist eine Textbox mit ainigen absichtlichen fehlern.</asp:TextBox>
        <br />
        <telerik:RadSpell RenderMode="Lightweight" ID="spell2" runat="server" ControlToCheck="textBox2" Language="de-DE"
            DictionaryLanguage="de-DE" SpellCheckProvider="EditDistanceProvider"></telerik:RadSpell>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance