ShortcutsDlg: Modifying translated "standard" texts? - Advanced Installer Community

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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

ShortcutsDlg: Modifying translated "standard" texts?

Hello everyone.

In the dialog "ShortcutsDlg" the German translation of...

"Start Menu Programs Folder"

...is...

"Verzeichnis Start Menü Programme"

...(literally translated "Folder Start Menu Programs" in English), which seems wrong. Better would be "Start Menü" (or "Start Menü Programme" or "Start Menü Programme Ordner").

To change this text I could modify the original dictionary provided by AI, but I would lose the changes when installing a newer version of AI.

Is there a way to override the default translations in a custom dictionary?



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hi Clemens,

The text of this checkbox can be localized through a custom dictionary. Please note that the User Guide contains the Localize EULA and Readme text how-to. You can adapt this how-to for the text you want to translate in order to use your own translations.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hello Cosmin,

thank you, I will try that.



With best regards

Clemens Anhuth
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hello Cosmin,

sorry I have to get back to you on this one:

At the link you provided two of the dialogs in "Dialogs" are being handled.

The case I am interested in is the progress dialog shown when deinstalling the software. This dialog seems to use this string from ui_en_GB.ail:

Code: Select all

<STRING id="Error.20" value="Please wait while Windows configures [ProductName]"/>
(The complaint I got about this is that the text doesn't clearly say "yes, we are deinstalling [ProductName] now...".)

I considered wether I should simply put that line into one of my dictionaries, but the format of the lines in my own dictionary seems just too different:

Code: Select all

<ENTRY id="Property.ProductName">
  <STRING lang="en_GB" value="My Product"/>
  <STRING lang="de" value=""/>
</ENTRY>
Am I overlooking something?


With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hi Clemens,

Please note that this message cannot be localized because it is a string used internally by the MSI. A solution for what you want is to modify this string in the Advanced Installer dictionaries you use. This way, the modified string will be included in the MSI when you build your project. Another solution would be to manually edit the MSI with Orca in order to change the string.

Note that this message is also used during a repair. Therefore, if you modify this string for the uninstall process, the same string will be used for the repair.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hello Cosmin,

I guess I should have tried first. Converting...

Code: Select all

  <STRING id="Error.20" value="Please wait while Windows configures [ProductName]"/>
...to...

Code: Select all

  <ENTRY id="Error.20">
    <STRING lang="en_GB" value="Please wait while [ProductName] is being deinstalled..."/>
    <STRING lang="de"    value="Bitte warten Sie während [ProductName] deinstalliert wird..."/>
  </ENTRY>
...works as it should.


By the way, when building an installer on the command line, like...

Code: Select all

AdvancedInstaller.exe /build MyProduct.aip
...does it something vastly different than when interactively using AI?

I am asking because modifying the original file ui_en_GB.ail got me an installer with the changed texts when building the installer on the command line, but when building the installer with AI interactively the old texts were being used. Suspecting the cache (which AI doesn't seem to use when run on the command line) I removed the cache directory of the project, but this didn't change things.



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hi,

Please note that the command line uses the same dictionaries used by the GUI (the ones in the Advanced Installer installation folder). Therefore, the strings should be the same in both cases. However, if you have multiple Advanced Installer versions installed, then perhaps you are building the package with different versions.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hello Cosmin.
cosmin wrote:Please note that the command line uses the same dictionaries used by the GUI (the ones in the Advanced Installer installation folder). Therefore, the strings should be the same in both cases. However, if you have multiple Advanced Installer versions installed, then perhaps you are building the package with different versions.
This is not the case, I only have AI V6.4 installed.


With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ShortcutsDlg: Modifying translated "standard" texts?

Hi Clemens,

Please try this:
- close all instances of Advanced Installer
- delete the cache of the project
- use the "AdvancedInstaller.com" command line (not "AdvancedInstaller.exe") to build the project
- after the package is built open the project with Advanced Installer and built it
- compare the two MSI packages

If the behavior is the same, please send us the AIP you are using and its custom dictionaries to support at advancedinstaller dot com so we can investigate them. Also, please specify the strings which are not retrieved correctly from the modified dictionaries.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”