Download the PHP package cinghie/yii2-multilanguage without Composer
On this page you can find all versions of the php package cinghie/yii2-multilanguage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cinghie/yii2-multilanguage
More information about cinghie/yii2-multilanguage
Files in cinghie/yii2-multilanguage
Package yii2-multilanguage
Short Description Multi Language support for Yii2 Framework.
License BSD-3-Clause
Homepage https://github.com/cinghie/yii2-multilanguage
Informations about the package yii2-multilanguage
Yii2 MultiLanguage
Multi Language support for Yii2 Framework based on this post on Official Forum:
http://www.yiiframework.com/forum/index.php/topic/56027-yii2-multilingual-website-url-rules/
Installation
The preferred way to install this extension is through composer.
Either run
or add this line to the require section of your composer.json
file.
Configuration
Set in Configuration File:
Make sure you have set the parameter 'language': the default language will be that
Set URL Manager in 'component' Configuration File:
Images
Copy the img folder from the project root to your web folders to see flag's images
Widgets
You can load the MultiLanguage Widget in the your view like this:
There are 4 params in the Widget:
- Widget Type can be classic or selector
- Image Type can be classic or rounded
- Width in pixel of the flags
- The Calling Controller (Do not Edit)
Changelog
- Version 2.0.2 - Adding options to add current Lang on widgets
- Version 2.0.1 - Adding Ca, Ch, In, Ne, Ru, Us flags
- Version 2.0.0 - Refactoring project adding Yii2 Locale URLs: https://github.com/codemix/yii2-localeurls
- Version 1.2.0 - Minor improvements
- Version 1.1.2 - Fixing error to extends yii Widget problem
- Version 1.1.1 - Update Copyright and license
- Version 1.1.0 - Bug Fixed not home View
- Version 1.0.0 - Initial Release