How To Change Language Text And Charset At Run Time
Posted: Tue Dec 20, 2005 12:46 am
I am wanting to learn the details of changing the language text and font charset at run time.
For example, in the multi-language sample project i see that a combo box sets variable $LANGUAGE$. This makes sense but i don't understand how all of the text labels are linked into the language translation texts. How can I place a new label on a dialog and have the text and font charset changed at run time?
Can you give me a short sample of how I might accomplish this in script:
if $LANGUAGE$ = "English" then
Label5.Caption = "some western english text"
Dialog5.Label5.Font.Charset = western
ELSE IF $LANGUAGE$ = "Russian" then
Dialog5.Label5.Caption = "some cyrillic gliph text"
Label5.Font.Charset = cyrillic
ELSE IF ETC...
Or is my process incorrect for installAWARE? What is the proper way to do this?
For example, in the multi-language sample project i see that a combo box sets variable $LANGUAGE$. This makes sense but i don't understand how all of the text labels are linked into the language translation texts. How can I place a new label on a dialog and have the text and font charset changed at run time?
Can you give me a short sample of how I might accomplish this in script:
if $LANGUAGE$ = "English" then
Label5.Caption = "some western english text"
Dialog5.Label5.Font.Charset = western
ELSE IF $LANGUAGE$ = "Russian" then
Dialog5.Label5.Caption = "some cyrillic gliph text"
Label5.Font.Charset = cyrillic
ELSE IF ETC...
Or is my process incorrect for installAWARE? What is the proper way to do this?