Solved

Bilingual programming in vb

Posted on 2000-04-04
4
358 Views
Last Modified: 2012-06-27
I have developed a database program in visual basic and I want to make it bilingual(i.e. English & Arabic).how can I do so?
0
Comment
Question by:teja040400
  • 2
4 Comments
 
LVL 1

Expert Comment

by:vujos
ID: 2683405
Hi,

If you have programmed in VB 5 you will remember one of the examples included in the package was ATM where usage of resource file is explained.

What resource files are and how to use them you can find some answers at

http://www.citilink.com/~jgarrick/vbasic/tips/resfiles.html

http://support.microsoft.com/download/support/mslfiles/RESFILE.EXE

If you do not hawe VB5 let me know and I will send you an example as email attachment.

Hope this helps.
0
 
LVL 14

Expert Comment

by:Matti
ID: 2683739
Hi!

Do you need the interface be Arabic or English Or does it only need to support
Arabic and Eglisch database etrys or perhaps both?

Is the OS Arabic Windows or Englisch
or Both? What is the platform version, where you need this app work?(Win95, Win98,NT4, Win2000 or all)

Buttons & Text type controls are quite easyly programaple to use diferent locales.
Menus NOT subcalssing whit menus may
be very problematic and in case of malfunction it may speard globaly in user interface.


 
Matti

0
 
LVL 1

Accepted Solution

by:
j3877 earned 50 total points
ID: 2685677
If you're developing a database application, then just have a function that reads a value from a Language table - my simple prototype:



DATABASE: FOO
TABLE: LANGUAGE
FIELDS: ENGLISH, ARABIC, ID

Example:

ID:1
English: Hello World
Arabic: ---INSERT ARABIC HERE---

ID:2
English: &Exit
Arabic: &---ARABIC---

This way, in your program, you need only set a variable saying what language is needed, and you can have multiple languages on just one distribution. Easy!


(I assume you know how to go through each control on the form? No???

Language = "English"
For Each CommandButton (or control) in me

Control.caption = GetLanguageValue(Control.tag)
0
 
LVL 1

Expert Comment

by:j3877
ID: 2685697
(forgot to put "next Control" in my answer... oops)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now