jdannenb
5th December 2006 11:01 UTC
Multilanguage titel for validation error dialog
Hi, me again...
My installer supports german and english language.
I have a custom dialog with standard validation turned on (MinLen = 1).
If this constraint is violated, the error dialog with correct language is shown...so far everything is fine.
BUT:
The caption of the error dialog shows the german word "Fehler", even if I'am running the english version.
How can I change this to "Error", if I am running the english version? My guess was the Settings-Section of my custom dialog, but InstallOptions' documentation says nothing about this.
Greez
Jens
bholliger
5th December 2006 12:10 UTC
Hi Jens!
Well, in my environment it shows "Error". Therefore I guess it's OS dependent.
If you want to circumvent this problem, just put the code in the ValidatePage function. And you're the master. The caption is inherited from the caption of the main dialog.
!define DIALOG1 "ioa.ini"
!define TEXTFIELD "Field 3"
:
:
Function ValidatePage
!insertmacro MUI_INSTALLOPTIONS_READ $tmp "${DIALOG1}" "${TEXTFIELD}" "State"
${If} $tmp == ""
MessageBox MB_ICONEXCLAMATION "$(TEXT_TOO_SHORT)"
Abort
${EndIf}
:
:
:
FunctionEnd
Have a nice day!
Mahlzeit,
Bruno