International Dictionaries and User Interface

ASPX Source Code

SourceCode:
<%@ Register Assembly="ASPNetSpell" Namespace="ASPNetSpell" TagPrefix="ASPNetSpell" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
  <ASPNetSpell:SpellTextBox ID="SpellTextBox1" runat="server" Height="100px" 
        Width="258px">Borjour la monde.   </ASPNetSpell:SpellTextBox>
    

        <ASPNetSpell:SpellButton ID="SpellButton1" runat="server" /><br />    <br />

        
Dictionary:<asp:DropDownList ID="UserSelectedDictionary" runat="server" 
        AutoPostBack="True">
	<asp:ListItem>Deutsch</asp:ListItem>
		<asp:ListItem>English (Australia)</asp:ListItem> 
		<asp:ListItem>English (Canada)</asp:ListItem> 
		<asp:ListItem selected="True">English (International)</asp:ListItem>
		<asp:ListItem>English (Legal)</asp:ListItem> 
		<asp:ListItem>English (Medical)</asp:ListItem>
		<asp:ListItem>English (Scientific)</asp:ListItem>  
		<asp:ListItem>English (UK)</asp:ListItem> 
		<asp:ListItem>English (USA)</asp:ListItem> 
		<asp:ListItem>Espanol</asp:ListItem>
		<asp:ListItem>Francais</asp:ListItem> 
		<asp:ListItem>Italiano</asp:ListItem> 
		<asp:ListItem>Nederlands</asp:ListItem> 
		<asp:ListItem>Portugues</asp:ListItem>
		<asp:ListItem>Svenska</asp:ListItem>
		<asp:ListItem>Dansk</asp:ListItem>   
    </asp:DropDownList><br />

User Interface Language:<asp:DropDownList ID="UserSelectedUILanguage" 
        runat="server" AutoPostBack="True">
<asp:ListItem value="af">Afrikaans</asp:ListItem>
		<asp:ListItem value="sq">Albanian</asp:ListItem>
		<asp:ListItem value="ar">Arabic</asp:ListItem>
		<asp:ListItem value="be">Belorussian</asp:ListItem>
		<asp:ListItem value="bg">Bulgarian</asp:ListItem>
		<asp:ListItem value="ca">Catalan</asp:ListItem>
		<asp:ListItem value="cn">Chinese (Modern)</asp:ListItem>
		<asp:ListItem value="tw">Chinese (Traditional)</asp:ListItem>
		<asp:ListItem value="hr">Croatian</asp:ListItem>
		<asp:ListItem value="template">Customizable</asp:ListItem>		
		<asp:ListItem value="cs">Czech</asp:ListItem>
		<asp:ListItem value="da">Danish</asp:ListItem>
		<asp:ListItem value="nl">Dutch</asp:ListItem>
		<asp:ListItem value="en" selected="True">English</asp:ListItem>		
		<asp:ListItem value="simple">English (Simplified)</asp:ListItem>
		<asp:ListItem value="et">Estonian</asp:ListItem>
		<asp:ListItem value="tl">Filipino</asp:ListItem>
		<asp:ListItem value="fi">Finnish</asp:ListItem>
		<asp:ListItem value="fr">French</asp:ListItem>
		<asp:ListItem value="gl">Galician</asp:ListItem>
		<asp:ListItem value="de">German</asp:ListItem>
		<asp:ListItem value="el">Greek</asp:ListItem>
		<asp:ListItem value="iw">Hebrew</asp:ListItem>
		<asp:ListItem value="hi">Hindi</asp:ListItem>
		<asp:ListItem value="hu">Hungarian</asp:ListItem>
		<asp:ListItem value="is">Icelandic</asp:ListItem>
		<asp:ListItem value="id">Indonesian</asp:ListItem>
		<asp:ListItem value="ga">Irish</asp:ListItem>
		<asp:ListItem value="it">Italian</asp:ListItem>
		<asp:ListItem value="ja">Japanese</asp:ListItem>
		<asp:ListItem value="ko">Korean</asp:ListItem>
		<asp:ListItem value="lv">Latvian</asp:ListItem>
		<asp:ListItem value="lt">Lithuanian</asp:ListItem>
		<asp:ListItem value="mk">Macedonian</asp:ListItem>
		<asp:ListItem value="ms">Malay</asp:ListItem>
		<asp:ListItem value="mt">Maltese</asp:ListItem>
		<asp:ListItem value="no">Norwegian</asp:ListItem>
		<asp:ListItem value="fa">Persian</asp:ListItem>
		<asp:ListItem value="pl">Polish</asp:ListItem>
		<asp:ListItem value="pt">Portuguese</asp:ListItem>
		<asp:ListItem value="ro">Romanian</asp:ListItem>
		<asp:ListItem value="ru">Russian</asp:ListItem>
		<asp:ListItem value="sr">Serbian</asp:ListItem>
		<asp:ListItem value="sk">Slovak</asp:ListItem>
		<asp:ListItem value="sl">Slovenian</asp:ListItem>
		<asp:ListItem value="es">Spanish</asp:ListItem>
		<asp:ListItem value="sw">Swahili</asp:ListItem>
		<asp:ListItem value="sv">Swedish</asp:ListItem>
		<asp:ListItem value="th">Thai</asp:ListItem>
		<asp:ListItem value="tr">Turkish</asp:ListItem>
		<asp:ListItem value="uk">Ukrainian</asp:ListItem>
		<asp:ListItem value="vi">Vietnamese</asp:ListItem>
		<asp:ListItem value="cy">Welsh</asp:ListItem>
		<asp:ListItem value="yi">Yiddish</asp:ListItem>

    </asp:DropDownList>
    </div>
    </form>
</body>
</html>

C# Source Code

SourceCode:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SpellButton1.DictionaryLanguage = UserSelectedDictionary.SelectedValue;
        SpellTextBox1.DictionaryLanguage = UserSelectedDictionary.SelectedValue;

        SpellButton1.UserInterfaceLanguage = UserSelectedUILanguage.SelectedValue;
        SpellTextBox1.UserInterfaceLanguage = UserSelectedUILanguage.SelectedValue;
    }
}

VB.Net Source Code

SourceCode:
Imports System.Collections.Generic
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls

Public Partial Class _Default
	Inherits System.Web.UI.Page
	Protected Sub Page_Load(sender As Object, e As EventArgs)
		SpellButton1.DictionaryLanguage = UserSelectedDictionary.SelectedValue
		SpellTextBox1.DictionaryLanguage = UserSelectedDictionary.SelectedValue

		SpellButton1.UserInterfaceLanguage = UserSelectedUILanguage.SelectedValue
		SpellTextBox1.UserInterfaceLanguage = UserSelectedUILanguage.SelectedValue
	End Sub
End Class