Documentation

block.localize.php

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Functions

smarty_block_localize()  : string
Smarty block function for multilingualizing upgrade SQL queries.

Functions

smarty_block_localize()

Smarty block function for multilingualizing upgrade SQL queries.

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

The string passed in $text is repeated locale-number times, with the param field (if provided) appended with a different locale every time.

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

Confusing variable that means it's either the opening tag or you can use it to signal back not to repeat.

Return values
string

multilingualized query


        
On this page

Search results