This page last changed on Jan 03, 2012 by jed.wheeler@involver.com.

Overview

The localize tag is used to display localized output on an SML feature tab. The tag requires a name parameter.

Attributes

name type required description
name string true a string listed in your phrasebook file as name that will correspond to a translation for the users locale

Examples

Simple Example

The following example assumes that you have localization configured and that your phrasebook file contains an entry for name of "my_string" and a translation of "my string is translated"

{% localize name:"my_string" %}

=> my string is translated

Complex Example

For some translations, you may need to pass some type of variable information to localize. This example assumes that you have localization configured and that your phrasebook file contains an entry for name of "my_string" and a translation of "Hello, my name is #[my_name]".

{% localize name:"my_string" my_name:"Bob" %}

=> Hello, my name is Bob

Document generated by Confluence on Feb 12, 2013 09:09