PHP Class lajax\translatemanager\behaviors\TranslateBehavior
Installation:
~~~
[
'class' => lajax\translatemanager\behaviors\TranslateBehavior::className(),
'translateAttributes' => ['names of multilingual fields'],
],
~~~
or If the category is the database table name.
~~~
[
'class' => lajax\translatemanager\behaviors\TranslateBehavior::className(),
'translateAttributes' => ['names of multilingual fields'],
'category' => static::tableName(),
],
~~~
Datei anzeigen
Open project: lajax/yii2-translate-manager
Class Usage Examples
Public Properties
Public Methods
Method Details
saveAttributes()
public method
Saveing new language element by category.
translateAttributes()
public method
Translates a message to the specified language.
Property Details
$category public_oe property
$translateAttributes public_oe property
public array|string $translateAttributes |
return |
array | string |
|