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(),
],
~~~
Afficher le fichier
Open project: lajax/yii2-translate-manager
Class Usage Examples
Méthodes publiques
Méthodes publiques
Method Details
saveAttributes()
public méthode
Saveing new language element by category.
translateAttributes()
public méthode
Translates a message to the specified language.
Property Details
$category public_oe property
$translateAttributes public_oe property
public array|string $translateAttributes |
Résultat |
array | string |
|