nicoco007
Posts: 6
Joined: Mon Dec 30, 2013 5:59 am

Translate HyperlinkFont?

I have recently been trying to translate my installer to French, but I have a problem. There is a HyperlinkFont control, in the Surface theme, which contains angle brackets ("<" and ">"), and I have not found a way to use them correcly in the dictionnary XML file, as the string does not appear in User Interface > Translations > Project Strings (I did enable User Interface in the Localization Options).

I have tried to simply put "You must agree to the <a>Licenses terms and conditions</a> before you can install [ProductName].", but that returns an error when building saying the characters "<" and ">" are invalid. I have also tried using < and > to escape the angle brackets, but then there is no text at all in the installer.

How am I supposed to translate the string "You must agree to the <a>Licenses terms and conditions</a> before you can install [ProductName]" in an XML file?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Translate HyperlinkFont?

Hello and welcome to Advanced Installer forums,

Indeed, we have some untranslated French strings in our application, but we'll update them in the future (users can also help us to achieve this if they wish).

In order to achieve what you want you can follow the steps below:
- go in the Translations page, "Default Strings" tab
- click on the "French (France)" column to bring the untranslated strings to the top
- double-click on the rows that you want to translate (under the "French" column) and introduce your translation

As far as I can see you need to translate the string with the Metro.Control.Text.WelcomeDlg#YouMustAgreeCtrl Localization ID.

You can also take a look on the Translation issue - can't translate all views thread which debates a similar issue.

If there is anything else I can help with, please let me know.

Happy New Year,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nicoco007
Posts: 6
Joined: Mon Dec 30, 2013 5:59 am

Re: Translate HyperlinkFont?

Hi Dan,

Thanks for the quick reply. The thing is, I was able to translate all the strings that are not in the Default Strings tab, using a custom dictionary, except for this specific one, as it I have found no way to put the "<" and ">" characters in the .ail file. Is there any way of using these charaters in .ail (XML) files that you may know of?
redseujac
Posts: 32
Joined: Thu Feb 10, 2011 7:16 pm

Re: Translate HyperlinkFont?

I had the same problem translating those strings. The solution is as follows:

English string:
"You must agree to the <a href="">Licenses terms and conditions</a> before you can install [ProductName]."

French String:
"Vous devez accepter les <a href="">Termes du Contrat de licence</a> si vous voulez installer [ProductName]."

I have set the exact characters in bold and red representing the <a> before and the </a> after the link terms.

Hope this helps...

Best regards

Jacques
nicoco007
Posts: 6
Joined: Mon Dec 30, 2013 5:59 am

Re: Translate HyperlinkFont?

Thank you so much! That solved my problem!

Return to “Common Problems”