01-26-2022, 10:40 AM
Thanks, but from the information you can not read the set language.
I have now found a solution, but I don't think it is the best way.
I have inserted an IWEdit and an IWTimer on the Form.
The procedure IWAppFormCreate gets the following two lines:
AddToInitProc('document.getElementById("IWEDIT1").value=navigator.language;');
AddToInitProc('AddChangedControl("IWEDIT1");');
At IWTimer1AsyncTimer I can then read the text from the IWEdit and set my program to the language.
Maybe there is a way to write the navigator.language directly into a variable of the form instead of into an IWEdit.
I have now found a solution, but I don't think it is the best way.
I have inserted an IWEdit and an IWTimer on the Form.
The procedure IWAppFormCreate gets the following two lines:
AddToInitProc('document.getElementById("IWEDIT1").value=navigator.language;');
AddToInitProc('AddChangedControl("IWEDIT1");');
At IWTimer1AsyncTimer I can then read the text from the IWEdit and set my program to the language.
Maybe there is a way to write the navigator.language directly into a variable of the form instead of into an IWEdit.

