Description

Translate an english string to its equivalent in the current language.

Return Type

A String value.  

The translated string.

Syntax

object.Localized (Text, [Module])

The Localized Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McApplication.
TextRequired. A String value.

A string to be translated.

ModuleOptional. A String value.

The module for which the translation should be done. This is used to resolve possible conflicts when a single english word has different translations for different contexts.

Remarks

This function returns the translated string as opposed to LocalizeString which translates in place.

Notes

The current language can be set in the Regional Options of the Control Panel, or on the command line using /loc LCID. LCID is a number representing the locale id (1033 for US English for example). Supported LCID's have a subfolder in the Resources folder containing foreign dictionaries.