Skip to content

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

  1. Change to the /opt/seal/seal-plossysadmin/public/assets/i18n directory.

  2. Copy an existent language file, such as en.json to a new language file, <language>.json, for example, fr.json.

  3. Translate the values of the keys in the new language file, <language>.json.

  4. 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.

  5. In the configuration of the seal-plossysadmin service, add the new language <language> to the AVAILABLE_LANGUAGES key.

  6. Close PLOSSYS Administrator.

  7. Restart the following service:

    • seal-plossysadmin
  8. Open PLOSSYS Administrator.


Change a Text in an Existent Language

  1. Change to the /opt/seal/seal-plossysadmin/public/assets/i18n directory.

  2. Create an additional language file for the language <language>-diff.json, for example, en-diff.json or edit the file if it already exists.

  3. 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.

  4. Close and reopen PLOSSYS Administrator.


Back to top