Display messages in different language.
Hi all,
I wanted to display user-messages in different languages once the user selects a particular language of installation at run-time.
I get the selected language-id by reading the macro
$LANGUAGE.
I tried defining own strings like this.
StrCmp $LANGUAGE "1033" 0 +2
!define LANG_ENG "English"
StrCmp $LANGUAGE "1036" 0 +2
!define LANG_FRN "French"
and in the header file
!ifdef LANG_ENG
!define TITLE "Language du programme d'installation"
!define INFO "Sélectionner la langue de préférence:"
!endif
!ifdef LANG_FRN
!define TITLE "Language of Installation"
!define INFO "Select the language of installation:"
!endif
When I try to output message like this, i dont get any results.
MessageBox MB_OK $(TITLE)
MessageBox MB_OK $(INFO)
Also the compiler gives the foll warning:
LangString "TITLE" is not set in language table of language 1033
LangString "INFO" is not set in language table of language 1033
I don't know where is the fault.
Also
Can u please give me one example source code.
Lets suppose my custom string in english is
RMV_STRING Remove Complete
RMV_STRING1 Remove in progress
....
.....
..... almost 100 messages
and the corresponding string in French is as
RMV_STRING Désinstallation terminée
........
like wise the string in 15 other languages are also available.
Now as these are my custom messages, I want these to be displayed as a message box in the language, the user has choosen the language of installation.
Can anyone give me a simple solution that will work for this.
Thanks in advance
VCR