Download the PHP package demondogsl/yii2-translate-manager without Composer
On this page you can find all versions of the php package demondogsl/yii2-translate-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download demondogsl/yii2-translate-manager
More information about demondogsl/yii2-translate-manager
Files in demondogsl/yii2-translate-manager
Package yii2-translate-manager
Short Description Translation management extension for Yii 2 ported to Bootstrap 5 by Cristian Garcia Copete
License MIT
Informations about the package yii2-translate-manager
Demon Dog SL - Translate Manager
This Extension is based in lajax/yii2-translate-manager that was ported for works with Bootstrap 5 by KrishDemonDog.
Introduction
This extension provides a simple translating interface for the multilingual elements of your project. This extension offers:
- Scan - Automatically detect new elements of the language. Duplications are filtered out automatically during project scanning.
- Optimize - Unused language elements will be removed from the database.
- Import - Import your translations from
.json
or.xml
file. - Export - Export your translations to
.json
or.xml
file. - You can exclude files, folders or categories to prevent them from being translated.
Contributing
Please read and follow the instructions in the Contributing guide.
Installation
Via Composer
Migration
Run the following command in Terminal for database migration:
Config
Turn on the Translate Manager:
- In your project file, Yii2 Advanced
/backend/config/main.php
Yii2 Basic/config/web.php
add Translate Manager inmodules
.
IMPORTANT Optional values overwrite Default Values.
-
In our migration we added table
language_force_translation
for translate your ENUM values of your tables, if you want use it only add next code. -
In your project file, Yii2 Advanced
/backend/config/main.php
Yii2 Basic/config/web.php
add Translate Manager incomponents
. -
In your project file, Yii2 Advanced
/backend/config/main.php
Yii2 Basic/config/web.php
add Translate Manager inbootstrap
. - In your project file, Yii2 Advanced
/backend/config/main.php
Yii2 Basic/config/web.php
add I18n incomponents
and yourlanguage
.
Usage
Register Translate Manager scripts
To translate static messages in JavaScript files it is necessary to register the files. You have two ways to do it.
Call the following method in each action:
Or create a Controller that extends Yii Controller
IMPORTANT All your Controllers must extend this New Controller
Activate Translate Mode
This is Optional.
Display a button to switch text to translation mode.
Examples of use
-
JavaScript
-
PHP
- Translate Mode Button
IMPORTANT Translate Mode Button does not support the translation of HTML attributes
Translate Manager URL
Change log
Please see Changelog for more information on what has changed recently.
License
Same licence as lajax/yii2-translate-manager
The MIT License (MIT). Please see License for more information.
Screenshots
Languages
Scan
Optimize
Export
Translate Interface
Translate Mode Button
Translate Mode Button Translation
Links
All versions of yii2-translate-manager with dependencies
yiisoft/yii2-jui Version ^2.0
yiisoft/yii2-bootstrap5 Version ^2.0