Call us! 512-349-0334 or (877) INDUSOFT

Add a Language to the Translation Table in InduSoft Web Studio

The Translation Table of InduSoft Web Studio HMI software is used to manage the languages into which you want to translate your project. Adding a language to the table can be as simple as selecting it from a list and then automatically translating your project texts.

  1. Open the Translation Table worksheet by doing one of the following.
    • On the Insert tab of the ribbon, in the Global group, click Translation; or
    • In the Global tab of the Project Explorer, double-click Translation.

The Translation Table worksheet is opened for editing.

  1. Make sure the Enable Translation option is selected. If this option is cleared, then the entire Translation Table worksheet is disabled and the language cannot be changed during run time.
  2. In the Target languages area, click Add. The Languages dialog is displayed.
  3. In the Languages dialog, select the language to which you want to translate your project and then click OK. The language is added to the Select list, and a new worksheet is created for the language. The Source column of the worksheet is automatically populated with all of the translatable text strings in your project, and the Target column is blank.
  4. Configure Date order and Date separator as needed for the target language. For example, for English-United States (i.e., American English), Date order is typically MDY and Date separator is typically /, resulting in a date format of MM/DD/YYYY. In many European languages, however, Date order is typically YMD and Date separator is typically ., resulting in a date format of YYYY.MM.DD.
  5. Use the Filters to search the worksheet for specific text items; as you type a few characters, the list is dynamically filtered to show only the items that match.

Note: The ampersand character (&) is ignored when filtering rows. This is to improve the handling of text in program dialogs, where ampersands are used to indicate keyboard accelerators.

  1. For each text item in the Source column, enter the translation in the Target column. You can manually translate the items one by one, or you can automatically translate multiple items using Google Translate.
    • Highlight the cells in the Source column to select them, and then press Ctrl-C to copy those items to the clipboard. You can also click the column header to select the entire column.
    • In your web browser, go to translate.google.com.
    • Select the From and To languages.
    • Click in the text box on the left, and then press Ctrl-V to paste the items from the clipboard. The items are pasted as separate lines.
    • Click Translate. The translation appears on the right. Again, the items are translated as separate lines.
    • Highlight the translated items to select them, and then press Ctrl-C to copy the items to the clipboard.
    • In InduSoft Web Studio, highlight the empty cells in the Target column to select them. You can also click the column header to select the entire column.
    • Press Ctrl-V to paste the translated items from the clipboard into the Target column. Because the translated items were copied as separate lines, they should be correctly pasted into the rows of the worksheet.
  1. Review the translated items in the Target column, to confirm the translations and to make sure they match the untranslated items in the Source column.

Tip: If you want to keep the original, untranslated text for a specific item, leave the Source column blank.

  1. Save and close the worksheet.

Changes made to the translation table will not take effect until you either call the SetLanguage function or restart the project runtime.

Tip: The translation table is saved as a tab-delimited text file in your project folder, at […]\Documents\InduSoft Web Studio v7.1 Projects\project_name\Web\Translation.trn. You can open and directly edit this file with Microsoft Excel, if you choose to do so.

Comments are closed.