Generate localization resource files for the GVC - HxGN SDx - Update 64 - Administration & Configuration

Administration and Configuration of HxGN SDx

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

The GVC 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 GVC 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 GVC:

  • American English (en-US.json)

  • Deutsch (Deutschland) (de-DE.json)

  • Japanese (ja-JP.json)

  • Portuguese (pt-PT.json)

  • Russian (ru-RU.json)

  • Simplified Chinese (zh-CN.json)

To create a new language JSON file:

  1. Locate the delivered language resource files. For example, located at: C:\SDx Server Files\WebClient_Sites\[Site Name]\gvc_resources\locales\.

  2. If your language resource file appears in the folder, open the file, and translate the GVC strings into the new language. For example, edit using Notepad++.

    • If your language resource file does not appear in the folder, copy one of the language resource files and save it to another folder. Rename the file using the matching language code and save the new file to the same location as the delivered .json files. Make your updates to this file.

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

  3. Save the updated .json file to the same location as the delivered .json files.

    The file name must match the language code. The default locale (en-US.json) is used if no .json files are found matching the locale of the user.

    A browser setup for the language now reads the .json file and displays the translated strings in the GVC viewer.