473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Develop MultiLingual Application (Arabic & English) in VB.NET

Hi Guys,

I need to develop a MultiLingual Application (Arabic & English) in VB.NET, as far as Labels and captions are concerned in User Interface I am done with that using Resource Manager Class & resource File (Code given below).
But I am having issue with text boxes as we need them for both English as well as Arabic (depending upon the language selected, in arabic they will be Right aligned).
I'll appriciate if someone can guide me with proper approach.

Code for labels and captions is as follows:

Step 1: Generated 2 resource files (one for Arabic & one for English) using Resgen.exe.

Step 2: CODE

'--Load required resource file
Public Shared rm As ResourceManager = ResourceManager.CreateFileBasedResourceManager(Ara bic, Application.StartupPath, Nothing)

'''Set the text
Private Sub frmUpload_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
'****Set UI language
gobjUpload.Text = rm.GetString("frmUpload")
lblFront.Text = rm.GetString("lblFront")
lblRear.Text = rm.GetString("lblRear")
lblMICR.Text = rm.GetString("lblMICR")
lblMICRErr.Text = rm.GetString("lblMICRErr")
cmdUpdateMICR.Text = rm.GetString("cmdUpdateMICR")
cmdNextMICRError.Text = rm.GetString("cmdNextMICRError")
cmdNewBatch.Text = rm.GetString("cmdNewBatch")
cmdScanBatch.Text = rm.GetString("cmdScanBatch")
cmdDeleteInst.Text = rm.GetString("cmdDeleteInst")
cmdPreviousInst.Text = rm.GetString("cmdPreviousInst")
cmdNextInst.Text = rm.GetString("cmdNextInst")
cmdCloseBatch.Text = rm.GetString("cmdCloseBatch")
cmdUploadBatch.Text = rm.GetString("cmdUploadBatch")
cmdExit.Text = rm.GetString("cmdExit")
'****End: Set UI language
End Sub
Aug 9 '07 #1
2 5410
RedSon
5,000 Expert 4TB
I have never done this before but there should be a way to find the system langauge code page at run time. Instead of looking at the project properties try looking into the system settings.
Aug 9 '07 #2
I have never done this before but there should be a way to find the system langauge code page at run time. Instead of looking at the project properties try looking into the system settings.

Hi RedSon thnx for ur reply...
but I have already checked system settings and set the system locale to english as well as arabic depending upon the requirement...
but still the problem is with text box, as i m not able to write in arabic and in left to right format...

I also checked the LOCALIZABLE and LANGUAGE property of VB.NET form and set it to Arabic, but still when we execute the program it types in english...
Aug 10 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Aditya Ivaturi | last post by:
We have a CMS which is written is based on php & mysql. Recently we received a request to support multiple languages so that sites in that particular laguage can be created. I did some search on...
3
by: smjmitchell | last post by:
Hi, I am writing an application in VB6.0 that will have the option to select the language. For instance when Spanish is selected all the text on the program interface will display in Spanish. ...
2
by: zahid | last post by:
Hello, Dear Friends, I have to make such type of interface,you can say it a html form. in which a admin can write arabic data and can insert that data or recordsin database in ASP. and i have to...
54
by: Vincent | last post by:
I would like to have my website translated in several languages and take advantage of language negotiation to let the user choose its preferred version of the site. I read with most interest the...
18
by: j1c | last post by:
What do I need to do in my ASP pages to display Arabic content? Does anything need to be done to the webserver too ? tx
7
by: J?rg Keller | last post by:
Hi all I have to localize an Access 2002 application: The application using several form, tables etc. is currently only in English. Now the frontend has to be bilingual, so the user can choose...
0
by: balaki | last post by:
Hi All, I have a Multilingual VB6 application, which rightnow supports French language. When I debug the code, it works in French, by changing the regional settings - locale to French(France)....
2
by: raju | last post by:
Hai all, I am working on the multilingual application, in asp.net. In that we are displaying contents in some other language (user selected language). In that page, we are having some textbox...
1
by: Abhijit D. Babar | last post by:
I have to create a multilingual application in Visual c++ .net 2008. I have a Windows form application and i want to run this on multilingual support. So how can i do this. Which change i have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.