C# Multilingual Support
The computer is now in use in almost all partsof the world so much work is in progress to give support to languagesother than English. Many major languages of the world like Arabic,Hindi and Chinese are not written in Roman Script, so special featuresare provided for dealing with these languages. This article will tellhow to implement multilingual application using C#. Our Example Scriptwill be Arabic. But it can be generalized to any major language of theworld.

To display different languages and script, onehas to install support for the script. Windows 2000 has support fordisplaying many scripts. Script is the writing style of language .Forexample, English and many western languages are written in RomanScript. Arabic, Farsi, Urdu are written in Arabic Script. Hindi,Bengali, Tamil are written in Indic Script. Every script has its ownfeatures. Arabic Script is written from left to right and characterschanges their shape according to the context.
To install support for Arabic or any otherScript. Open Control Panel –> Regional Options –> LanguageSetting for the System and check your desired Script(Arabic in ourcase). After checking Arabic click on OK and Arabic Script support isinstalled on our computer and you can have input locale in Arabic,Farsi and Urdu.
For input, keyboard for Arabic, Farsi andOther languages can be installed from Control Panel —> Keyboard–> Input Locale –> Add.
So it is the configuration for displayingmultilingual text. Now we will start C# IDE and explore its features.Throughout the article we will only concentrate on the code written formultilingual features. The code for form creation, adding controls toform and event handling will be generated by the IDE and will not bediscussed.
FIRST EXAMPLE OF MESSAGE BOX
Create a Windows Application. Place a buttonin the centre of form. Set the name and text properties of the buttonto btnMessage and “Show Message” respectively. For displaying MessageBox, add following code to the Click event of btnMessage.
protected void btnMessage_Click (object sender, System.EventArgs e)
{
MessageBox.Show(“English Text Example”,”English Title”);
}

On Pressing F5, Form will be displayed and on clicking Show Message. Message Box will be displayed.
Continues…
Pages: 1 2












No comments yet... Be the first to leave a reply!