Configure Languages and Texts¶
For PLOSSYS Administrator, you can add a new language or change specific texts in an existent language.
Add a New Language¶
-
Change to the
/opt/seal/seal-plossysadmin/public/assets/i18n
directory. -
Copy an existent language file, such as
en.json
to a new language file,<language>.json
, for example,fr.json
. -
Translate the values of the keys in the new language file,
<language>.json
. -
For the already existing languages, add the new language to the language selection. For this, create an additional language file for the already existing language
<already_existing_language>-diff.json
, for example,en-diff.json
or edit the file if it already exists. Here, add the following section for the language token and the text shown in the selection:{ "SEAL_HEADER": { "LANGUAGE": { "language_token": "language_selection_text" } } }
Example - add French
{ "SEAL_HEADER": { "LANGUAGE": { "fr": "Français" } } }
Hint - merge
The diff files are merged to the language files. So only the differences are to be specified here. The values in the diff files take priority.
-
In the configuration of the
seal-plossysadmin
service, add the new language<language>
to theAVAILABLE_LANGUAGES
key. -
Close PLOSSYS Administrator.
-
Restart the following service:
seal-plossysadmin
-
Open PLOSSYS Administrator.
Change a Text in an Existent Language¶
-
Change to the
/opt/seal/seal-plossysadmin/public/assets/i18n
directory. -
Create an additional language file for the language
<language>-diff.json
, for example,en-diff.json
or edit the file if it already exists. -
Copy the section to be changed from the language file,
<language>.json
to the additional language file,<language>-diff.json
and change the value.Example - change translation for
adjustPunchType
{ "PRINTERS": { "DETAILS": { "adjustPunchType": "Punching" } } }
Hint - merge
The diff files are merged to the language files. So only the differences are to be specified here. The values in the diff files take priority.
-
Close and reopen PLOSSYS Administrator.