Involver Developer Network : localize
This page last changed on Jan 03, 2012 by jed.wheeler@involver.com.
OverviewThe localize tag is used to display localized output on an SML feature tab. The tag requires a name parameter. Attributes
ExamplesSimple ExampleThe 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 ExampleFor 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 |