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

Overview

The add_localization tag is used to display localized output on an SML feature tab either independently of the ?phrasebook_manager or to locally over-ride the translation proved in the phrasebook manager. The tag requires a name parameter.

Attributes

name type required description
name string true a string listed in your phrasebook file as a name that will correspond to a translation for the users locale.
value string true a string to be used in place of a translation listed in your phrasebook file.
locale string false the locale that this override will apply to. if blank, this override applies to all locales.

Example

The following example assumes that you have localization configured and that your phrasebook file contains the entry for name of "my_string" and a translation of "my string is translated" and that your current locale is set to en_US

{% localize name:"my_string" %}
=> my string is translated based on the value provided in the phrasebook
{% add_localization name:"my_string" value:"my string needs a different translation then the one in the phrasebook" locale:"en_US" %}
{% localize name:"my_string" %}
=> my string needs a different translation then the one in the phrasebook

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