French dictionary fails to import with "not well-formed - 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!

marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

French dictionary fails to import with "not well-formed

Hi there,
I'm creating a multi-language setup, and I have some custom transalations, so I createda dictionary and started translating the message to French.

When I try to re-import that Dictionary, i get the following:

---------------------------
Error
---------------------------
Exception - Parse error in file [I:\InstallCommon\CommonDictionary.ail] at line 27 column 77 (not well-formed (invalid token)).
---------------------------
OK
---------------------------

The Line 27, column 77 is where my first french phrase with an accent is located "é".

Does that mean that I cannot use accents on my Dictionaries?

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

Hi,

Advanced Installer dictionaries have a specific format, therefore, when you create a custom dictionary, you need to make sure that it's structure is similar to the original.

Please note that we have a tutorial for creating a new dictionary:
http://www.advancedinstaller.com/user-g ... guage.html

Let me know if the problem persists after you make sure that the dictionary has a correct format.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Hi Cosmin,

I've read the tutorial and thats the way i created my dictionary. Its not a completely new language, I'm just using it to add strings that do not belong to the current french dictionary (for custom dialogs, msgboxes etc).

The Dictonary is in the correct format. I created by following that link you sent me. If I remove all the accents from the translations, it will import with no errors.

here is what i have on my dictionary:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DICTIONARY type="multilanguage" ignore="en">
<ENTRY id="Property.ARPCOMMENTS">
<STRING lang="en" value="This installer database contains the logic and data required to install [|ProductName]."/>
<STRING lang="fr" value=""/>
</ENTRY>
<ENTRY id="Control.Text.LicenseAgreementDlg#AgreementText">
<STRING lang="en" value="I:\InstallCommon\licenseagr.rtf"/>
<STRING lang="fr" value="I:\InstallCommon\licenseagr_f.rtf"/>
</ENTRY>

<ENTRY id="Property.BADPASSWORDTEXT">
<STRING lang="en" value="The password you have entered is incorrect. You must enter the correct password to continue."/>
<STRING lang="fr" value="Le mot de passe que vous avez saisi est incorrect. Vous devez entrer un mot de passe correct pour continuer."/>
</ENTRY>

<ENTRY id="Property.SHAREPTEXISTMSG">
<STRING lang="en" value="No Microsoft SharePoint installation found, the setup will abort."/>
<STRING lang="fr" value="Aucune installation de Microsoft SharePoint n'a éte trouve, le programme d'installation s'interrompra."/>
</ENTRY>

<ENTRY id="LaunchCondition.ISPROJECAINSTALLED">
<STRING lang="en" value="Setup has detect that you have a previous PSA installed on this machine. In order to install this Software, you have to uninstall PSA first, and then run the Setup again."/>
<STRING lang="fr" value="L'installation a detecte une version anterieure de PSA sur cet ordinateur. Afin d'installer this Software, vous devez d'abord desinstaller PSA,puis reprendre l'installation."/>
</ENTRY>

<ENTRY id="Property.LANGUAGESETUP">
<STRING lang="en" value="en-US"/>
<STRING lang="fr" value="fr-CA"/>
</ENTRY>

</DICTIONARY>

I removed all other accents and just left one so you could try to reproduce the problem.

What is wrong with this dictionary?
Thanks,
Marcelo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please make sure that you used UTF-8 encoding for the dictionary (in Notepad you use the "Save As" menu and in the "Encoding" combo you select "UTF-8").

Note that in Advanced Installer you will add this dictionary using the "Add" button ("Translations" page, "Dictionaries" tab).

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

Return to “Common Problems”