Function ze\lang::phrase()

In PHP:
ze\lang::phrase(
$code, $replace = false, $moduleClass = 'zenario_common_features', $languageId = false, $isHTML = false
)
In Twig frameworks:
ze('lang', 'phrase', code, replace, moduleClass, languageId, isHTML)

Description

Given a string containing either plain text or a phrase code, pass it through the phrases system.

Parameters

$code

A string containing either plain text or a phrase code. Phrase codes are distinguished by starting with an underscore.

$replace

An array containing any merge fields to use. The values in the merge fields should already be escaped.

$moduleClass

The module which the phrase belongs to. The common features module will be used if you don't specify this.

$languageId

The language you wish to translate the phrase into. The language of the current visitor will be used if you don't specify this.