The "Multi-Languages" module enables you to store your data in more than one language by adding to your system as many locales as needed. It also allows you to make fields of the
Wysiwyg types multilingual for any entity in the system and assign user roles different read/edit permissions to these multilingual fields separately for each locale.
The "Multi-Languages" module is automatically installed with TreoCore, but if you do not have it, then go to
Administration > Module Manager, find this module in the "Store" list and click
Select the desired version in the installation pop-up window that appears and click the
Install button. The module background will turn green and it will be moved to the "Installed" section of the Module Manager. Click
Run update to confirm its installation.
Please, note that running the system update will lead to the logout of all users.
To update/remove the "Multi-Languages" module from the system, use the corresponding options from its single record actions drop-down list in
Administration > Module Manager.
Moreover, the "Multi-Languages" module is also installed together with TreoPIM and it is TreoPIM dependent, i.e. if TreoPIM is still installed in the system, the "Multi-Languages" module cannot be removed.
To configure the multi-languages settings, go to
Administration > Multi-Languages:
By default, the
Is active checkbox and the
Input Language List field are deactivated, as shown on the screenshot above.
To enable the function for inputting the field values in multiple languages, select the
Is active checkbox and choose the desired languages from the drop-down list that appears once you click the
Input language list field:
To change the languages for which the multilingual fields must be filled (e.g. delete the previously defined locales, add new ones), also use the
Input Language List setting.
When turning off a certain language or completely removing the "Multi-Languages" module, the input field and its value will be removed both from the database and system interface. You will be notified about it with the following warning message:
If this language is turned on again or the module is re-installed, the input fields will be restored to the system interface, but with no data in them. So please, be careful with these actions.
On the same "Multi-Languages" module configuration page, you can automatically update the layouts for all entities to include locale fields on the ones where the main multilingual field is already displayed. To do this, click the
Update Layouts button and confirm your decision in the pop-up that appears:
Once the action is applied, the missing locale fields are added at the bottom of the entity records overview. To customize the field order display, go to the Layout Manager and make the desired changes for each entity separately. Moreover, you can configure each layout for each multilingual field separately as described below.
Multilingual Field Creation
Currently the following field types can be made multilingual in the TreoPIM system:
|Boolean||Checkbox for the product attribute that can be added for each active locale|
|Enum||Field type for storing drop-down list values for each active locale with the ability to select only one of the variants|
|Multi-Enum||Field type for storing drop-down list values for each active locale with the ability to select one or more variants|
|Text||Field type for storing long text values in multiple languages|
|Varchar||Field type for storing short text values (up to 255 characters) in multiple languages|
|Wysiwyg||Field type for storing long multiline texts in multiple languages, which contains separate built-in text editors for each active locale|
To create a field that can be made multilingual, go to
Administration > Entity Manager and click
Fields for the desired entity:
In the new window that opens, all fields of the selected entity are displayed. Click the
Add Field button, select one of the field types that can be made multilingual:
On the entity field creation page that opens, specify all necessary parameters for this field and select the
Multi-Language checkbox to enable automatic creation of multilingual fields via cloning the given main field:
As a result, several entity field records will be created – the main one and locale fields in as many languages as there are activated on the "Multi-Languages Settings" page:
Names and labels of multilingual fields include names of their locales: "en_US", "de_DE", etc.
If your system is already integrated with an external system, and you make a simple field multilingual (i.e. set a
Multi-Languagecheckbox for it), you may need to change the mapping to ensure correct work with the external systems.
Multilingual Fields Editing
To edit a multilingual field, either main or locale, click its name on the entity fields list view page and make necessary changes on the page that opens:
By default, the locale fields inherit all settings from their main multilingual field, i.e. if the
Audited checkbox is selected in the main multilingual field on its creation and/or editing, it is automatically selected for the locale fields. However, once a locale field is edited, it loses its inheritance and is assigned its individual value. To discard all changes in the locale fields and return the values of the main multilingual field, use the
Reset to default button on the locale field detail view page:
Please, note if the main multilingual field is mandatory, so are its all locale fields and the
Required checkbox disappears from the locale field detail view page:
Moreover, input of values in the given multilingual fields is also required for all languages activated in the TreoCore system. Learn more about TreoCore and its advantages here.
DYNAMIC LOGIC panel settings are not inherited – it is configured separately for each multilingual field:
Multilingual Field Display on the Layout
To display the newly created multilingual field(s), go to
Administration > Layout Manager and click the desired entity in the list to unfold the list of layouts available for this entity. Click the layout you wish to configure (e.g.
List) and enable the created field by its drag-and-drop from the right column to the left:
Please, note that adding the main multilingual field to the layout does not lead to automatic adding of its locale fields – each field is added separately for each layout type.
Save to complete the operation. The added field will be displayed on the configured layout type for the given entity:
To customize the fields display for other layout types of the entity, make similar changes to the desired layout types in the Layout Manager, as described above.
In the same way, multilingual fields can also be added to the search filters list in the Layout Manager:
To activate the mass update of the entity records by multilingual fields, click
Mass Update and drag-and-drop the desired fields one by one to the
Please, note that mass update for multilingual
Multi-Enum fields is performed on the basis of their main field values, and the corresponding values in their locale fields are updated automatically.
Multilingual Fields Removal
To remove the entity field with the activated
Multi-Language checkbox, click
Remove on the entity fields list view page and confirm your decision in the pop-up that appears:
Please, note that locale fields cannot be removed apart from their main multilingual field. To do this, you need to either remove the selection of the
Multi-Language checkbox on the main field editing page or remove the main multilingual field from the system as it is described above.
Please, note that if the "Multi-Languages" module is deactivated and/or removed from the system, main multilingual fields for the configured entities remain together with their values, but their locale fields and values disappear. Also, these fields lose their multilingual character (the
Multi-Languagecheckbox is removed). When the module is activated again, all the locale multilingual fields and their values are restored. However, re-installing the module leads to restoring only locale fields, but not their values. The exception is multilingual fields of the
Varchartype – their values are also restored for locale fields.
One of the advantages of the "Multi-Languages" module is that it supports the ability to grant separate roles different read/edit permissions to multilingual fields. To do this, go to
Administration > Roles > 'Role name' and on the role detail view page click the
FIELD LEVEL panel of the role edit view page that opens, find the entity you wish to configure, click
+ next to it and in the pop-up that appears click the multilingual field to be used as a filter for the given entity:
Please, note that you can add as many fields as needed, selecting them one by one.
For the added multilingual fields configure read/edit rights via the corresponding drop-down lists:
- to remove the unnecessary field(s).
Once the "Multi-Languages" module is installed and configured by the administrator, user can work with multilingual fields in accordance with his role rights that are predefined by the administrator.
The possible values of the
Multi-Enum fields are specified for each language by the administrator. For the
Enum fields the default values, assigned by the administrator, are displayed, and for the
Multi-Enum fields, users can select the desired options from the existing values:
Please, note that colorful highlights of the
Multi-Enum field values are enabled by the "Colored Fields" module.
For the fields of the
Wysiwyg types, the additional input fields are displayed in accordance with the layout configuration for all languages that have been activated in the module settings:
In addition to operating with multilingual fields, installing TreoPIM to your system will allow you to make attributes of the
Wysiwyg type multilingual – there is the
Multi-Language checkbox on their detail view pages:
To create a multilingual attribute, select the
Multi-Language checkbox and fill in the required multilingual fields for all active locales:
When a multilingual attribute is linked to a product record, the value of its main locale is displayed on the
PRODUCT ATTRIBUTES panel within the product detail view page:
To edit the given attribute's locale values, use the
Edit option from its single record actions menu and make the desired changes in the pop-up that appears:
Alternatively, use the
View option from its single record actions menu and click the
Edit button in the quick detail pop-up.
Multilingual Fields and Attributes Filtering
Select the desired locale option to filter the product data display accordingly.
Please, note that once a locale filter is applied, the
PRODUCT ATTRIBUTES panel contains multilingual attributes of the given locale only.
Show Generic Fields checkbox selected to have the main multilingual field displayed as well or remove its selection to have only locale multilingual fields displayed.
Install the "Multi-Languages" module now to keep your fields and their values up-to-date in as many languages as needed!