smarty_block_translate

Translates a string based on the current user’s chosen locale.

Summary
smarty_block_translateTranslates a string based on the current user’s chosen locale.
AuthorRich Joslin
Licensehttp://communit.as/docs/license
Functions
smarty_block_translateTranslates a string based on the current user’s chosen locale.
See Also

Author

Rich Joslin

Functions

smarty_block_translate

Translates a string based on the current user’s chosen locale.  Uses Cts_Translate::translate.

Arguments

$paramsAn array of variables.  (TBD)
$contentThis is everything between the block start and end tags in the template.
&$smartyTBD
&$repeatTBD

Params

TBD

Returns

A translated string.

Execution Example

<!-- as used in a Smarty view template -->
{translate}This text will be translated based on the user's chosen locale.{/translate}

See Also

  • <Cts_Translate/translate>
Close