Skip to end of metadata
Go to start of metadata

From system version 4.0.25, the translation of elements defined in the system takes place in the tab Administration -> System Configuration -> Translations (see Zarządzanie tłumaczeniami).

Translations of elements defined in the system (Custom messages files) they are used for translations:

  • Document classes,
  • views,
  • reports,
  • e-mail notification theme.

Configuration


First, enter the path to the folder where the translations are located. We set this in the system parameters tab (Administration -> System configuration -> System parameters). Where in the General panel, enter the path of the folder with translations (full path to the folder or relative to the server) to the field PATH_TO_CUSTOM_BUNDLE. In this case, this is the full path: / home / customMessages. For Windows, an example path: E://suncode_dev3.1//tomcat7//webapps//PlusWorkflow//bundles//custom//

Parameter PATH_TO_CUSTOM_BUNDLE is visible only to an admin user. Other users won't be able to see this parameter.

 

Translation files

 

The default file with translations is the customMessages.18n file. For each translation, create a file with an appropriately appended language shortcut (a subpage with a list of supported languages can be found on the main page of the translation instructions: Instruction -Translation). All three files must be on the disk.

Base name

PL

EN

customMessages.i18n

customMessages_pl.i18n

customMessages_en.i18n

The sequence of downloading translations from files works on the following principles:

Let's assume that the following translation files are available:

  • customMessages_en.i18n
  • customMessages_pl.i18n
  • customMessages.i18n

If the user's language is English (en), the sequence in which the translations will be downloaded will be as follows:

  1. customMessages_en.i18n
  2. customMessages.i18n

Translations are stored in the form: key = value in files *.i18n.

The key is created on the basis of the name given in the system, eg for a created document class called "Test Document" you create a key by replacing the space in the name with an underscore. 

 

customMessages_pl.i18n
 Dokument_Testowy=Dokument Testowy
customMessages_en.i18n
 Dokument_Testowy=Test Document

Key:

When you translate more than one word in the key, add the underscore "_" instead of how it is entered in the space system "" (eg for the document class named "Text Document" set Test_document). 

 

 

  • No labels