Trait kartik\base\TranslationTrait

Implemented bykartik\base\Html5Input, kartik\base\InputWidget, kartik\base\Module, kartik\base\Widget, kartik\select2\Select2, kartik\tree\Module, kartik\tree\TreeView, kartik\tree\TreeViewInput
Available since version1.8.7

TranslationTrait manages methods for all translations used in Krajee extensions

Public Methods

Hide inherited methods

MethodDescriptionDefined By
initI18N() Yii i18n messages configuration for generating translations kartik\base\TranslationTrait

Method Details

initI18N() public method

Yii i18n messages configuration for generating translations

public void initI18N ( $dir '', $cat '' )
$dir string

The directory path where translation files will exist

$cat string

The message category