CKFinder 3 – PHP Connector Documentation
Translator Class Reference

Public Member Functions

 __construct ($langCode=null)
 
 translateErrorMessage ($errorNumber, $replacements=[])
 

Protected Member Functions

 setLocale ($locale)
 

Protected Attributes

 $translations
 

Detailed Description

The Translator class.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $langCode = null)

Translator constructor.

Parameters
null | string$langCode

Member Function Documentation

◆ setLocale()

setLocale (   $locale)
protected

Sets locale for translations.

Parameters
string$locale

◆ translateErrorMessage()

translateErrorMessage (   $errorNumber,
  $replacements = [] 
)

Translates an error message for a given error code.

Parameters
int$errorNumbererror number
array$replacementsarray of replacements to use in the translated message
Returns
string

The documentation for this class was generated from the following file: