2017 © Pedro Peláez
 

yii2-extension yii2-multilanguage

Multi Language support for Yii2 Framework.

image

pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  • Tuesday, June 14, 2016
  • by pjhl
  • Repository
  • 2 Watchers
  • 6 Stars
  • 1,543 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 12 Versions
  • 17 % Grown

The README.md

Yii2 Multi Language extension

This extension allows you to do multi-language sites on yii2. Instead, an informal specification uses the article "Multi-regional and multilingual sites" (Google)., (*1)

Note: extension is under development., (*2)

Эта инструкция доступна на русском языке., (*3)

Features

  • Supports an unlimited number of languages.
  • Page language inserted into the link as a directory.
  • Correct work with the settings yii\web\UrlManager: enablePrettyUrl and showScriptName.
  • Site works correctly in subdirectories (eg, http://example.com/sub/directory/frontend/web/ru/site/login).
  • The ability to select the language in the cookie. In this case, the script will make a redirect.
  • Redirects just for GET-requests. POST, Ajax XHR will work correctly.
  • There is helper to change the language (it is easy to use links or bootstrap dropdown).
  • CRUD-actions to quickly develop the admin modules.
  • Support of <link rel="alternate" ... (TODO: make help).
  • http://example.com/en/
  • http://example.com/ru/
  • http://example.com/en/site/login
  • http://example.com/ru/site/login

This type of links with the settings enablePrettyUrl = true; showScriptName = false. Examples of other settings yii\web\UrlManager can be found here (TODO: make help)., (*4)

Installing and configuring extensions

Run tests

php -S localhost:8090 -t advanced
composer run-script test

Before starting the test, you must have installed codeception., (*5)

Task list

  • [ ] Rewrite Controller->findModel(...)
  • [ ] Make a working example of the module "page"
  • [ ] Cover the test more code
  • [ ] Problem with text site/error. Session Flash Data (?)
  • [ ] Detect language by IP (country) (?)

The Versions

14/06 2016

dev-master

9999999-dev https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

language yii2 i18n translate multi lang мультиязычность lingual перевод локализация

14/06 2016

dev-dev

dev-dev https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

language yii2 i18n translate multi lang мультиязычность lingual перевод локализация

14/06 2016

0.2.1

0.2.1.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

language yii2 i18n translate multi lang мультиязычность lingual перевод локализация

04/06 2016

0.2.0

0.2.0.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

11/11 2015

0.1.1

0.1.1.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

11/11 2015

0.0.6

0.0.6.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

11/11 2015

0.1.0

0.1.0.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

31/10 2015

0.0.5

0.0.5.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

30/10 2015

0.0.4

0.0.4.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

30/10 2015

0.0.3

0.0.3.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

12/10 2015

0.0.1

0.0.1.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность

12/10 2015

0.0.2

0.0.2.0 https://github.com/pjhl/yii2-multilanguage

Multi Language support for Yii2 Framework.

  Sources   Download

MIT

The Requires

 

language yii2 translate multilanguage lang мультиязычность