With Giotto, it is possible to personalize content based on both the language of the users using the platform and the recipients who view the received communications.
There are 3 elements that can be translated based on the language of the person viewing them:
- System strings (viewed by the contacts);
- Multilingual customizations (viewed by the contacts);
- Template localization (viewed by the platform users).
If the Magnews Inspire template is used, the content translation is available as a native feature without writing code.
System strings (translate:system.*)
The text of the service links is contained in a variable that can be customized depending on the language of the contact viewing the communication.
The content of the different translations can be modified on the platform in the section Management > Settings > Languages > Text customization.
The variables that can be configured are as follows:
[translate:system.viewwebversion] [translate:system.viewmobileversion] [translate:system.subscribe] [translate:system.unsubscribe] [translate:system.editprofile] [translate:system.forwardthismailtoafriend] [translate:system.sharethismail]
Multilingual customization
Giotto allows you to define variables that can be called in the text and automatically translated according to the language of the contact viewing the communication. The default language will be the default language of the communication itself.
Name | Description |
---|---|
mn:localize | Declares content that will be localized according to the language of the contact reading the communication. |
mn:key | Declares the translation of the word in various languages. |
[translate:key_to_translate] | Inserts the word to be localized in the text. |
<meta mn:localize mn:key='hello' mn:ita='Ciao' mn:eng='Hello' mn:fra='Salut' /> [translate:hello]
Template localization
It is possible to localize the user interface so that each user can view it in their own language.
The languages available for localization are Italian, English, and French.
If no translation is provided, the default text will be displayed.
<meta mn:param mn:name="title" mn:label="Titolo" mn:label.eng="Title"
mn:tab="Generale" mn:tab.eng="General"
mn:section="Sezione" mn:section.eng="Section"
mn:help="Aiuto" mn:help.eng="Help"
mn:default="Questo é un titolo" mn:default.eng="This is a title"/> [param:title]
if you want to localize the parameters of a select, you will need to insert them in a specific option tag.
<span mn:param mn:name="myselect" mn:type="select" mn:label="Scegli un valore" mn:label.eng="Select a value"> <option value="value1" mn:label.eng="First value">Primo valore</option> <option value="value2" mn:label.eng="Second value">Secondo valore</option> </span> [param:myselect]