Creating String Resource Files

TestStand uses the Engine.GetResourceString method to obtain the string messages to display in TestStand Sequence Editor and TestStand User Interface windows and dialog boxes. The Engine.GetResourceString method uses a string category and a tag name as arguments and searches for the string resource in all string resource files in the following predefined order of directories:

  1. <TestStand Public>\Components\Language\<current language>
  2. <TestStand Public>\Components\Language\English
  3. <TestStand Public>\Components\Language
  4. <TestStand>\Components\Language\<current language>
  5. <TestStand>\Components\Language\English
  6. <TestStand>\Components\Language

Select Configure»Station Options to launch the Station Options dialog box and click the Localization tab to change the current language setting.

To customize a string resource file for a supported language or to create a resource file for a new language, copy an existing language file from the <TestStand>\Components\Language\<current language> directory, place the file in the <TestStand Public>\Components\Language\<current language> directory, and modify the file. To create a resource string file that applies to all languages, place the resource file in the base <TestStand Public>\Components\Language directory.

Note The TestStand Engine loads resource files when you start TestStand. When you make changes to the resource files, you must restart TestStand for the changes to take effect, or you must call the Engine.ReloadStringResourceFiles method.