Documentation

block.ts.php

CiviCRM's Smarty gettext plugin

Tags
author

Piotr Szotkowski shot@caltha.pl

author

Michal Mach mover@artnet.org

copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Functions

smarty_block_ts()  : string|null
Smarty block function providing gettext support

Functions

smarty_block_ts()

Smarty block function providing gettext support

smarty_block_ts(array<string|int, mixed> $params, string $text, CRM_Core_Smarty &$smarty, bool &$repeat) : string|null

See CRM_Core_I18n class documentation for details.

Parameters
$params : array<string|int, mixed>

Template call's parameters.

$text : string

{ts} block contents from the template.

$smarty : CRM_Core_Smarty

The Smarty object.

$repeat : bool

Repeat is true for the opening tag, false for the closing tag

Return values
string|null

the string, translated by gettext


        
On this page

Search results