Bitrix API

LocalizableMessage implements LocalizableMessageInterface

This class is used to defer the localization of a phrase until it is actually needed.

It allows you to get the localized text in any language at any point before the end of the hit.

This class should only be instantiated when the message is actually going to be displayed. Otherwise, unnecessary load may be created in the constructor method.

Tags
see
Loc::getMessage()

Table of Contents

Interfaces

LocalizableMessageInterface

Methods

__construct()  : mixed
__toString()  : mixed
localize()  : string|null

Methods

__construct()

public __construct(string $code[, array<string|int, mixed>|null $replace = null ][, string|null $language = null ][, string|null $phraseSrcFile = null ]) : mixed
Parameters
$code : string
$replace : array<string|int, mixed>|null = null
$language : string|null = null
$phraseSrcFile : string|null = null

localize()

public localize(string $language) : string|null
Parameters
$language : string
Return values
string|null

        
On this page

Search results