How do I change text on OPSWAT Client UI?

From version 7.6.452.0 and beyond, OPSWAT Client’s User Interface (UI) can be customized.

To customize the OPSWAT Client UI, you can follow the below steps

  1. Download the default rebranding package here and extract it

  2. Change value of the parameter “custom_ui.enabled” to 1 in config.json file. By default, its value is 0 (not apply custom text on the OPSWAT Client user interface)

    {
    "custom_ui": {
    "enabled": 1
    }
    }
  3. Customize the OPSWAT Client UI

    1. You can customize text for the OPSWAT Client UI in the file OPSWATUI_langs.po in the brand\translations folder. Each text on the OPSWAT Client UI is presented as a group of 3 lines in the OPSWATUI_langs.po file as the below sample.

      msgctxt "owc::AppManagementFeaturePrv|"
      msgid "was successfully updated to the latest version."
      msgstr ""

      In which, the first 2 lines with the ‘msgctxt' and ‘msgid’ prefix should not be modified. Your customized text should be updated in the 3rd line with the prefix ‘msgstr'. If you don’t update text for the prefix ‘msgstr’, the OPSWAT Client will use the default text in the prefix 'msgid’.
      For example, the above text object is customized

      msgctxt "owc::AppManagementFeaturePrv|"
      msgid "was successfully updated to the latest version."
      msgstr "Your customized message for the text: was successfully updated to the latest version."
    2. After you have done the step 3.a for any text you would like to customize, use Qt External to generate Qt langs objects

      • Download Qt Linguist package and extract it

      • Open command promt and go to the folder where Qt Linguist package was extracted.

      • Use command

        lrelease.exe "${path to the customized rebranding package}\brand\translations\OPSWATUI_langs.po"

      Note: the above command is used to generate an object file "OPSWATUI_langs.qm" in '\translations'
      folder and must be in '\translations' with the same name "OPSWATUI_langs".
      Example:
      images/download/attachments/5707428/example.jpg

  4. Zip all the files and folder again (with modified config.json in step 2 and translations\OPSWATUI_langs.qm in step 3) and make sure they are not nested in a folder

  5. Upload the rebranding package to your account. If you are using MetaAccess to manage your accout, please contact OPSWAT Support for assistant. If you are using OPSWAT Central Management to manage your devices, you can follow the below steps.

  • Log into Central Management Console

  • Navigate to Settings > Global Settings > Device Agent tab > Agent section

  • Upload the modified rebranding package to the setting “Make OPSWAT Client user interface available to end-users

images/download/attachments/5707428/image-20210419-064022.png
  • Click Save and confirm your PIN to save your changes.

8. After uploading the rebranding package to your account, wait for few minutes then check the OPSWAT Client UI again

This article was last updated on 2021-04-18