Can I build one Setup Project with different language?
e.g. English, German, Chinese, Japanese...
Hi,
Just an idea: Store the language (Captions of controls, texts, ...) in
XML files (e.g. English.xml, German.xml, ...). Give every node an
attribute which contains the name of the control it refers
(id="cmdButton1 "). Let the user choose the language, load the file and
get the captions via the names from the file.
Example:
myControls = <AllControls>
For each <CurrentControl in myControls
if(<CurrentCont rol.Name= <FileID>) Then
<CurrentControl .Text= <File.InnerText >
End if
Next
I haven't tested this and I don't know if there's a better way, but it
should work...
>Can I build one Setup Project with different language?
>e.g. English, German, Chinese, Japanese...
>
Hi,
>
Just an idea: Store the language (Captions of controls, texts, ...) in
XML files (e.g. English.xml, German.xml, ...). Give every node an
attribute which contains the name of the control it refers
(id="cmdButton1 "). Let the user choose the language, load the file and
get the captions via the names from the file.
>
Example:
myControls = <AllControls>
For each <CurrentControl in myControls
if(<CurrentCont rol.Name= <FileID>) Then
<CurrentControl .Text= <File.InnerText >
End if
Next
>
I haven't tested this and I don't know if there's a better way, but it
should work...
>
Comment