Last post May 30, 2011 02:16 AM by adeelehsan
May 30, 2011 01:42 AM|ismail.nasar|LINK
Dear All ,
we have an web application now we like to add new regional languges like PASHTO or Persian or URDU (which has option which languge do u like ) how to add these funcation could u any one tell me ,,, so do we need to change in Database tooo or not
May 30, 2011 02:16 AM|Lateef045|LINK
There are multiple ways you can achieve this.
1. Use the Resource files. You will have to create the resource files for each language you want to implement. Also note that the the data supplied by the user will not be translated automatically. i.e. if a user adds some text in English, then the data
will only be available in English. If he enters in Urdu then the data is in Urdu only. You will have to modify your database columns from type varchar to Nvarchar.
2. Use the Google Translator. Google gives a simpel script that you will have to place on each of your page. Note that Google does not translate 100% accurately. Also I dont think there is Urdu and Pashto in Google Translator.
Use resource files. They are the best option for you.
May 30, 2011 02:16 AM|adeelehsan|LINK
Normally you need to create multiple resource (.resx) files, one for each language. This will contain text for the static controls. If you also want to make contents multilingual, then you might need to store them in the database. Whenever the user changes
the languages, you need to fetch the related contents from the db according to the language.
You can also use the in built globalization capabilities of ASP.NET.
See the following link for more info: