Solved

Bilingual programming in vb

Posted on 2000-04-04
4
385 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 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