Hi.
Sorry for my english...
I hope this is the correct forum to post this. If not, sorry in advance.
I'm trying to make a setup that will choose automatically the language (at start) depending on the result of GetUILanguage.
I made this function in (code) section:
Function SetLanguageFile(Param: String): String;
begin
if GetUILanguage = <number> then
Result := 'compiler:Languages\Language1.isl'
else
Result := 'compiler:Languages\Language2.isl';
end;
The problem is that in [Languages]
section I can't use it like this:
Name: "Language"; MessagesFile: "{code: SetLanguageFile}"
The compiler says: Unknown filename prefix "{code:"
I can't use the Unicode version of Inno and I can't use LanguageCodePage (from language file).
My question: is there a way to make the setup choose automatically (with this function or any other)...?
Thank you in advance for any reply.