Localization problem - 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!

Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Localization problem

Hi,

I added a shortcut to an installed file (Readme RTF) then I opened the properties of the shortcut, right click on Name field > Localization > Click on Always translate this string > Click on Using specified localization identifier. Then I took this identifier and add it in my .ail dictionary file as follows :
<ENTRY id="Shortcut.Name.Antigua_Readme">
<STRING lang="de" value="Antigua Liesmich anzeigen"/>
<STRING lang="fr" value="Voir le fichier LisezMoi d'Antigua"/>
</ENTRY>

But in Runtime, it's not translated : The shortcut is created with "Shortcut.Name.Antigua_Readme" as label of the shortcut.

I have other shortcuts and used the same procedure for the description field and these are working great. It was the first time I use this procedure for name field and this seems not working.

Any suggestions ?

Thanks in advance.

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

Re: Localization problem

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the AIP which shows this behavior to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Localization problem

Hi Phil,

We tested the AIP you sent with your dictionary and I'm afraid that we could not reproduce the problem. The only way we can obtain the behavior you encountered is to not include the dictionary file. Therefore, I think that the dictionary was not included correctly in your project.

Please follow these steps:
- go to the "Dictionaries" tab of the "Translations" page
- remove your custom dictionary from the list
- re-add it by using the "Add" button
- save and close the project
- reopen and build the project

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Localization problem

OKay. I found the problem : First, I added the translation in the .ail file but I didn't close and re-open the project and 2nd, there is a single quote in the translation ('). If I remove it, it's working !

It could be fine to fix the first problem.

How to resolve the 2nd one ?

Another question : what is exactly the difference between Build and Rebuild in Media section (I've read the help but what do you mean by cached archives...) ?

Regards,

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

Re: Localization problem

Hi Phil,
It could be fine to fix the first problem.
We already have on our TODO list an improvement which will allow Advanced Installer to load a dictionary file. This improvement will be available in a future version of Advanced Installer.
there is a single quote in the translation ('). If I remove it, it's working
I tested the translation you are using and there is no problem with it (I tested the dictionary you sent and the string is correct and it is supported). Can you please give me more details about this? What is the exact behavior?
what is exactly the difference between Build and Rebuild in Media section
By default Advanced Installer creates a cache when you build a project for the first time. This cache will be used by future builds to obtain a faster build speed. Therefore, the second build will be faster because it will use the cache.

However, if you rebuild the project, the cache will not be used. This means that the project will be rebuilt completely.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Localization problem

Hi,
there is a single quote in the translation ('). If I remove it, it's working
I tested the translation you are using and there is no problem with it (I tested the dictionary you sent and the string is correct and it is supported). Can you please give me more details about this? What is the exact behavior?
As far as I've seen, if I let the single quote (d'Antigua) in the following entry, the shortcut is not translated, instead "Shortcut.Name.Antigua_Readme" is created as shortcut in the Start > Programs menu. If I write only "Voir le fichier LisezMoi"in the entry, it's translated. Actually it's what I've done in the end.
<ENTRY id="Shortcut.Name.Antigua_Readme">
<STRING lang="de" value="Antigua Liesmich anzeigen"/>
<STRING lang="fr" value="Voir le fichier LisezMoi d'Antigua"/>
</ENTRY>

Regards,

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

Re: Localization problem

Hi Phil,

Have you tried re-adding the dictionary and closing and re-opening the project? Note that I tested the string "Voir le fichier LisezMoi d'Antigua" multiple times with your dictionary and with new dictionaries and there is no problem with the quote in "d'Antigua". Can you please send us to support at advancedinstaller dot com the complete dictionary you are using so we can investigate it?

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

Return to “Common Problems”