Custom Installer with multilanguage support

Advertisement

McC
Joined:
Posts:
8

Custom Installer with multilanguage support

Hi,

i have to create a custom installation with multi language support. I've tried the example Inno Setup Source code found in the Installation documentation first, and it compiled without problem, but without other languages than english either.
Then i've tried the Inno Source code from the current WinSCP source code. There i get a reference to files like "translations\WinSCP.en.isl", which is not found. I didn't find files liek that in the source code either, so i wonder where they come from and if they are needed to create a multi language installer? Or is it possible just to let the setup include the WinSCP.en, .de, .etc ... files and set a default selection for the configuration?
Thanks in advance for any help,
Jan

Reply with quote

Advertisement

McC

Another thing: The winscpsetup.iss file contained in the latest source code uses an object like {cm:something}. Where does that come from, do i have to do anything with this one, too?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Custom Installer with multilanguage support

The files can be generated from data in "translations" module of CSV. I can send the generated files to you, if you send me an email.

Reply with quote

McC

That would be great. I just found the language folder in the CVS directory, but i can't find .isl files there.
I can't see your mail address here, mine is mccancey(at)web.de, would be great if you could send me the .isl files.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

For what version? I would be glad if for 4.0.3, because I may have problems generating the files for older versions.

Reply with quote

McC

i should say i only need the translations of the application itself, not the setup. Since the setup has to be done with SMS in a silent background installation nobody will see the setup interface anyway

Reply with quote

Advertisement

McC

Do i need the .isl files at all if i only want to have some translations selectable in the installed application itself? Or are they just for the installer gui?

Reply with quote

McC
Joined:
Posts:
8

The more i look at it the more i have the impression that i only nee the three values for german as they are generated in the iss code here:

    #define Lang Copy(FileName, Pos(".", FileName)+1)
    #define LangName ReadIni(MessagesPath(Lang), "LangOptions", "LanguageName")
    #define LangID ReadIni(MessagesPath(Lang), "LangOptions", "LanguageID")

As i understand it, english is installed anyway without adding any translation, right?

And back to the cm object, i get compiler errors saying the custom messages are not defined. Where is the definition of those messages?

Reply with quote

martin
Site Admin
martin avatar

McC wrote:

Do i need the .isl files at all if i only want to have some translations selectable in the installed application itself? Or are they just for the installer gui?
Just for the setup GUI. So you do not need me to generate them?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

McC wrote:

The more i look at it the more i have the impression that i only nee the three values for German as they are generated in the iss code here:
You can "hardcode" these, if you have 2 languages only.

And back to the cm object, i get compiler errors saying the custom messages are not defined. Where is the definition of those messages?
These are defined in the ISL. But again, there are only messages for setup GUI, so if you do not need them, just modify the ISS file

Reply with quote

Advertisement

You can post new topics in this forum