Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 4th, 2005, 04:47 AM
dominicshaw dominicshaw is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 17 dominicshaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 55 m 33 sec
Reputation Power: 0
Exclamation Multi-Lingual Program, Best Practice?

Hi guys,

I want to put together the ability to add in multiple languages into a program I have written. The opening screen of this program is basically going to be a set of flags. Once a flag is selected the language will be loaded and all buttons and text in the program should run from that language.

What is the best practice in putting something like this together? Has anyone done it before? What problems am I likely to encounter?

Any suggestions on this would be very very helpful since I haven't been able to find much on the subject.

Thanks in advance,

Dominic

Reply With Quote
  #2  
Old July 5th, 2005, 08:15 AM
mvagh2 mvagh2 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 324 mvagh2 User rank is Corporal (100 - 500 Reputation Level)mvagh2 User rank is Corporal (100 - 500 Reputation Level)mvagh2 User rank is Corporal (100 - 500 Reputation Level)mvagh2 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 16 h 26 m 36 sec
Reputation Power: 5
Hi,

If it's purely VB (no web etc. with HTML and such) I would create a table with all the strings in the various languages. The "flag" of choice would then constitute the first part of the key to the records. The second part - the actual string - I would place in the Tag property of the various controls. Read them and fill them on opening the forms.

Table InterfaceText
key LanguageCode Long
key TextCode Long
fld TextToDisplay Text

This leads to entries like: -
1 1 Main Form
2 1 Hauptformular
3 1 Hoofdscherm
1 2 Please make a choice from the menu
2 2 Treffen Sie bitte eine Wahl vom Menü
2 3 Maak aub een keuze uit het menu

where LanguageCode = 1 is English (obviously), 2 = German, 3 = Dutch and so on.

It's pretty easy this way to add or modify entries. Even an additional language is easily done. The only thing is to have enough space in the control to actually display the string.

Hope this helps.

Regards,

Michiel

Reply With Quote
  #3  
Old July 6th, 2005, 03:57 AM
dominicshaw dominicshaw is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 17 dominicshaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 55 m 33 sec
Reputation Power: 0
Hi,

Thanks very much for the reply.

I think you're method is sound, but now I have a new question! Having set this up, given a language like Arabic, how do you go about implimenting this? Obviously I can set the field types to nvarchar so that the special characters are supported, but what about reading it backwards and things like that?

Other programs must have to handle many different languages and formats, reading backwards or forwards. Does anyone know how this is done?

Reply With Quote
  #4  
Old July 6th, 2005, 04:11 AM
mvagh2 mvagh2 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 324 mvagh2 User rank is Corporal (100 - 500 Reputation Level)mvagh2 User rank is Corporal (100 - 500 Reputation Level)mvagh2 User rank is Corporal (100 - 500 Reputation Level)mvagh2 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 16 h 26 m 36 sec
Reputation Power: 5
Hi,

There are methods and propertties relating to all sorts of controls handling these problems. For instance the property "readingorder" may be applied to get a right-to-left reading order for controls. Lots of other things (Like "KanjiConversionMode" etc.) are available. But I'm no export on that.

Michiel

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Multi-Lingual Program, Best Practice?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT