yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Using a dictionary is an auto updater?

Is there a way to use a dictionary is an auto updater?

I need the "Description = " to be in a different language. Can I use a dictionary? Will the dictionary be on the serer? (Note that users already have the application, so the discretionary on the user desktop is useless for this purpose).

Alternatively, if I can not, what file format can be used for double byte languages?

Alternatively, can this field include HTML text or a clickable URL?

Thanks

-Yishai
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Using a dictionary is an auto updater?

Hello Yishai,
I need the "Description = " to be in a different language. Can I use a dictionary? Will the dictionary be on the serer? (Note that users already have the application, so the discretionary on the user desktop is useless for this purpose).
A solution to your problem would be to localize the "Description" strings you need. After reading the article I mentioned in the previous sentence, please follow the "localized" link from the article to learn about localizing strings.
Also, here is the tutorial that can guide you. The strings you localize in your dictionary will be included in the updates configuration project output files. A file will be generated for each language.

In the end you can place the files generated by your update configuration project on the server so every user will have its auto-updater application localized. The strings you localize in your dictionary will be included in the updates configuration project output file.
Alternatively, if I can not, what file format can be used for double byte languages?
The dictionary generated by Advanced Installer has an UTF-8 encoding and can be edited with Notepad++. If you change the signature, the dictionary won't work properly.
Alternatively, can this field include HTML text or a clickable URL?
Yes, it can. Please follow this link to find out about character formatting in an update configuration project.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Re: Using a dictionary is an auto updater?

Still some questions.

I started a new update configuration file to create the configuration file.

Added Japaneses and added my own custom directory so i can define the value of the "description" string. It looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DICTIONARY type="multilanguage" ignore="en">
  <ENTRY id="UpdaterEditor.Section.DescriptionUpdate">
    <STRING lang="en" value="english text "/>
    <STRING lang="ja" value="japanse text"/>
  </ENTRY>
...
</DICTIONARY>
I include the dictionary in the translation dictionaries list.

Now I am on the update description (http://www.advancedinstaller.com/user-g ... ption.html) screen. What I want to localize is the description field itself (not the word description). In typical dialog elements I can control the varibale used but no there, so I assume it will use the right key ("UpdaterEditor.Section.DescriptionUpdate").

I run AA. It build the en & jp updates configuration files. The description value, however, the value used for the description in the updates configuration files is the file typed in the description field, i.e. not taken from the dictionary.

So, the dictionary is included and the language is built, but it seems to be ignored. What am i doing wrong?

Thanks

-Yishai
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Using a dictionary is an auto updater?

Hello Yishai,

In order for the auto-updater application to get the right configuration file containing the appropriate localized description string, you would also have to localize the Updates URL path field from the main project's Updater Page. Since the update configuration project has a built file for each language, for the translations to work, the path pointing to each of them must be localized as well.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Re: Using a dictionary is an auto updater?

Hi Mihai

The problem is not what the updater gets. The problem is that the configuration file in the ja folder does contain the original text and not the localized text. (To make sure I am clear on this. in the ja folder, where the localized version of the application is built, also has a configuration file. This file is the same as the English version and the filed does no use the value form the dictionary).

-Yishai
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Using a dictionary is an auto updater?

Hi Yishai,

I am not sure why this is happening since you included the dictionary your posted above and also the localization identifier from the project matches the one from the dictionary( UpdaterEditor.Section.DescriptionUpdate ).
After building the update configuration project, a configuration file should be built in the ja folder containing the localized value on the last line. Something like:

Code: Select all

Description=japanse text
Can you please send us the .AIP (configuration project) and the .AIL (dictionary file) to support at advancedinstaller dot com so we can investigate them?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Using a dictionary is an auto updater?

Hello Yishai,

I have looked into your AIP and here is what you need to do to solve the issue:
  • Right-click in the field you want to localize and select the "Localization..." menu.
  • If the options "Always translate this string" and "Using specified localization identifier" are not selected, enable them.
  • The text box contains the identifier based on which this property is localized.
  • Rebuild the project
For more information about the steps above and to find out how they make sense in whole localization context, please follow our tutorial.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Re: Using a dictionary is an auto updater?

Hi Mihai

Well, the filed "description" does not have a"Localization..." menu... I'll send you the screen shot separately. Where you able to create a localized configuration file using my project?

-Yishai
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Using a dictionary is an auto updater?

Hello Yishai,

From your screenshot, I noticed you are using version 7.2.1. This behavior is caused by a bug in Advanced Installer prior to version 8.0. Please send us your license details via e-mail so we can provide the fix.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”