When you configure run-time language options for a stand-alone application, LabVIEW localizes text for items such as default run-time menus, default menu items for custom run-time menus, descriptions of error codes, and dialog boxes. However, the text for programmer-derived items such as labels and control descriptions is not localized.
Use the Run-Time Languages page of the Shared Library Properties dialog box to configure language options for a shared library.
You can configure the language options for a application in the following ways. The methods appear in order of precedence.
- Run the application with the –lang language command-line argument, where language is the English name of the language you want to use.
- Add the following line to the .ini file for the application:
AppLanguage= language, where language is the English name of the language you want to use.
- (Windows) If you do not specify the language you want to use in the command line or the .ini file of the application, the application uses the operating system language.
- If the application does not support the operating system language, the application uses the default language for the application. You can use the Default language option on the Run-Time Languages page of the Application Properties dialog box to configure the default language for the application.
- You can configure run-time languages for an application in the build specification. In the Project Explorer window, right-click Build Specifications, select Properties from the shortcut menu, and navigate to the Run-Time Languages page of the Application Properties dialog box to configure language options for the application. If you previously hid Build Specifications in the Project Explorer window, you must display the item again to access it.
- If you do not specify any language options, the application uses the first available supported language in alphabetical order. The Supported languages option on the Run-Time Languages page of the Application Properties dialog box lists all supported languages. If the application cannot use any of the supported languages because the required language files have been deleted, corrupted, or are not readable, LabVIEW cannot load the application.
 |
Note The LabVIEW Run-Time Engine is multilingual, so you do not have to include multiple versions of it with an application, shared library, or installer in order to use localized text. The Supported languages option on the Run-Time Languages page of the Application Properties dialog box lists all supported languages. |
You can use the Application:Language property to determine the default language for an application programmatically.