LangContpl

 

 

It is highly recommended that the BoTran2Lang Control be dropped on a generic window running directly off the main frame of the Main EXE procedure.  This guarantees proper operation that may be affected across dll's.

 

 

LangControl1         

 

BoTran2Lang Control as dropped            

 

LangControl2

 

Modified in IDE

 

Please note that you can modify the text in the Radio's to reflect the languages stored in the BTL file. You can hide or delete the extra Radio's that you do not need. 

 

LangControlRun   

 

Modified control at runtime being Translated. 

 

Please note that when you change languages at runtime, a window will not be translated until the next time you open it.  Any open windows will remain untranslated, as they have already been translated when they were opened.  That goes for the currently opened "Language Change procedure" as well.  The only exception is the frame, which will be automatically translated when a new language is selected. 

 

Changing Languages is dynamic, so as soon as the radio is selected

 

1.The Global variable is changed to the new language

2.   The Language is stored in the ini file

3.BoTran2 Class switches Languages in the file, and the Global queue is reloaded with the new language if you are using the queue based class. 
4.Then the Main Frame is translated back to default and translated to new language. 
5.Then any Locale stuff selected in the Global templates is done.
6.In ABC the Global Errors will be updated to new language. 

 

You can see this in the embeds when viewed as source.