Generate localization resource files - HxGN SDx - Update 63 - Administration & Configuration

Administration and Configuration of HxGN SDx

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

The view and markup view control supports the localization of the client user interface into different languages. The strings used for the display of each language in the user interface are stored in a JSON file in the site directory.

Some aspects of the user interface uses Web Client localization. To generate a localization resource file for the Web Client, see Generate localization resource files.

The following language JSON files are delivered with the software:

  • Dutch (translation-nl.json)

  • English (translation-en.json)

  • French (translation-fr.json)

  • German (translation-de.json)

  • Russian (translation-ru.json)

  • Simplified Chinese (translation-zh_CN.json)

To create a new language JSON file:

  1. Locate the English language translation-en.json file. For example, located at: C:\SDx Server Files\WebClient_Sites\[Site Name]\viewers\pdftron\ui\i18n.

  2. Copy the translation-en.json file, and save to another folder.

  3. Rename the copied translation-en.json file to match the new language being translated. For example, if you are translating to Swedish, rename the file to translation-sv.json.

  4. Open the translation-sv.json file, and translate the PDFTron strings into the new language. For example, edit using Notepad ++.

    • Each entry in the JSON file consists of a key-value pair. The key must not be translated as it is used to retrieve the translation. Only the value should be translated.

    • Any placeholders used in the original text value (indicated by a number inside {{}}) should remain in the translated text in the appropriate location.

  5. Save the new language translation-sv.json file to the same location as the existing en.json file.

    A browser setup for the Swedish language now reads the translation-sv.json file and displays the translated strings in PDFTron.