Download the PHP package police666/yii2-multi-language without Composer
On this page you can find all versions of the php package police666/yii2-multi-language. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download police666/yii2-multi-language
More information about police666/yii2-multi-language
Files in police666/yii2-multi-language
Download police666/yii2-multi-language
More information about police666/yii2-multi-language
Files in police666/yii2-multi-language
Vendor police666
Package yii2-multi-language
Short Description This will help multi-language for Yii2
License MIT
Homepage https://navatech.vn
Package yii2-multi-language
Short Description This will help multi-language for Yii2
License MIT
Homepage https://navatech.vn
Please rate this library. Is it a good library?
Informations about the package yii2-multi-language
yii2-multi-language
This module allow you to create multi language use database. By default, Yii use Yii::t() for multi language. But you must stored the sentences on file, and it never suggested keywords for you. Now you can store it on mySql.
Requirements
Install & config:
Install
Preferred way to install this extension through composer
Either run
composer require navatech/yii2-multi-language "^2.0"
Or add to require
section of composer.json
then run composer update
"navatech/yii2-multi-language" : "^2.0"
Config:
[php]
'language' => 'en', //TODO Change this to 2 characters
.....................
'bootstrap' => [
'log',
'multiLanguage',
],
'components' => [
'multiLanguage' => [
'class' => '\navatech\language\Component',
],
],
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module',
],
'language' => [
'class' => '\navatech\language\Module',
/*TODO uncommented if you want to custom view*/
//'viewPath' => '@app/vendor/navatech/yii2-multi-language/src/views',
/*TODO uncommented if you want to change suffix of translated table / model.
should be one word, lowercase only.*/
//'suffix' => 'translate',
],
],
Run Yii Migration, you will have two default language (English & Vietnamese):
Usage
All versions of yii2-multi-language with dependencies
PHP Build Version
Package Version
Requires
navatech/yii2-navatech-base Version
1.0.0.2
kartik-v/yii2-grid Version 3.1.*
kartik-v/yii2-editable Version 1.7.*
kartik-v/yii2-grid Version 3.1.*
kartik-v/yii2-editable Version 1.7.*
The package police666/yii2-multi-language contains the following files
Loading the files please wait ....