Localization Expressions

If you need to supply a localized value into web part property or to some other setting where localization expressions are supported, you can use expressions in following formats:

 

Format

Description

Sample Value

Basic format:

 

{$key$}

Displays value of the given string specified in the Site Manager -> Development -> UI Cultures section or in the resx files in the CMSResources folder.

{$myform.firstname$}

In-place localization:

 

{$=default_string|culture_code=translation|culture_code=translation|etc.$}

Displays the strings defined in the expression.

 

On the left, you can see an example that displays Hallo for German culture, Ciao for Italian and Hello for all other cultures (default value).

{$=Hello|de-de=Hallo|it-it=Ciao$}

 

See also: Appendix A - Macro expressions