We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Multilanguage MSI, customized dialogs

The MSI for my project is currently in english and contains several custom dialogs. Now I need to create a multilanguage MSI, so when it gets executed on a german OS I want my custom dialogs to appear in german.
What do I have to do? The default dialogs translate fine, but everything I customized needs to be translated somehow...
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

We have a tutorial about how to create your package in more languages, please see:
http://www.advancedinstaller.com/user-g ... uages.html

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi Gigi,

Thanks for your reply. Unfortunately I cannot get it to work. Let's say I modified the FolderDlg dialog. Usually in the bottom left corner it says "Advanced Installer", I changed this string to something else. When I now build a multilanguage package it shows the correct string on an english OS, but on a german OS it still says Advanced Installer.

I followd the tutorial, but the .ail file created only contained:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DICTIONARY type="multilanguage" ignore="de">
</DICTIONARY>
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Here is how you can localize that string:

Switch to "Translations" page and select the additional language. Click on the "Select..." button and choose "Enable per-element localization options". Create the dictionary (from "Create..." button).

Switch to "Dialogs" page and select the "Advanced Installer" logo. In the properties list select the "Text" field and open the "Localization" dialog (the button next to "..."). In this dialog you will see the localization identifier. Now add this identifier in the dictionary file like this:

Code: Select all

<ENTRY id="Control.Text.VerifyReadyDlg#Logo">
    <STRING lang="en" value="Advanced Installer"/>
    <STRING lang="de" value="Advanced Installer in German"/>
  </ENTRY>[code]

Reopen the project so the dictionary modifications are reflected in the AIP. Build the project.

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi Gigi,

Thanks, this is exactly what I was looking for. However, I am now translating all my custom dialogs, but as soon as there is the charactar 'ä' in the translated string I get an error when opening the project:

Exception - Parse error in file [c:\german.ail] at line 65 column 38 (not well-formed (invalid token)).

Once I remove the character 'ä' it works fine, however, this limits me in the words I can use in my translation.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

When you edit the dictionary file (AIL) make sure you save it in UTF-8 encoding.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”