Table Of Contents

Get Localized String (G Dataflow)

Last Modified: January 12, 2018

Retrieves a string from a language-specific dictionary using a unique identifier.

Programming Patterns

Creating Localized String Dictionaries

connector_pane_image
datatype_icon

key

Identifier used to locate a string in the dictionary.

Each entry in the dictionary is associated with a key. Copy and paste the key for the string you want to localize into key.

datatype_icon

fallback

String used if the node cannot find an entry that corresponds to the given key in the dictionary.

datatype_icon

culture

Language of the desired dictionary.

In most cases, leave this input unwired. If culture is unwired, the node uses the language of the end user's application and the base path to determine which dictionary to load.

Specifying a Culture

Wire this input if you want to specify a culture instead of using the language of the end user's application. If wired, this input must match the name of the folder on disk containing the desired dictionary in order to successfully locate the dictionary. The names of folders generated using Export Strings follow standard Microsoft locale names, such as en-US or zh-CN.

datatype_icon

base path

Absolute file path to the VI from which the desired dictionary was generated.

The value of culture determines the specific folder in which the node attempts to locate the dictionary. Within that folder, the node attempts to locate a file with the same name as the VI specified in base path and with the suffix .strings.xml.

For example, if base path is C:\Projects\Testing\MainUI.gvi and culture is de-DE, the node attempts to locate the following file: C:\Projects\Testing\de-DE\MainUI.gvi.strings.xml.

datatype_icon

localized string

String retrieved from the language-specific dictionary.

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics