diff --git a/bundles/TranslateManagerAsset.php b/bundles/TranslateManagerAsset.php
index 340c4fe..5ececfa 100644
--- a/bundles/TranslateManagerAsset.php
+++ b/bundles/TranslateManagerAsset.php
@@ -30,6 +30,6 @@ class TranslateManagerAsset extends AssetBundle
*/
public $depends = [
'yii\web\YiiAsset',
- 'yii\bootstrap\BootstrapAsset',
+ 'yii\bootstrap5\BootstrapAsset',
];
}
diff --git a/composer.json b/composer.json
index a37bf68..33172d3 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
"name": "lajax/yii2-translate-manager",
- "description": "Translation management extension for Yii 2",
+ "description": "Translation management extension for Yii 2 with Bootstrap 5",
"type": "yii2-extension",
"keywords": ["yii2", "extension", "translate", "language", "module"],
"license": "MIT",
@@ -15,13 +15,10 @@
}
],
"require": {
- "yiisoft/yii2": "~2.0.0",
+ "yiisoft/yii2": "~2.0.45",
"yiisoft/yii2-jui": "~2.0.0",
- "yiisoft/yii2-bootstrap": "~2.0.0"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "^2.1"
- },
+ "yiisoft/yii2-bootstrap5": "~2.0.2"
+ },
"autoload": {
"psr-4": {
"lajax\\translatemanager\\": ""
diff --git a/views/language/dialog.php b/views/language/dialog.php
index 7b9f098..13f2398 100644
--- a/views/language/dialog.php
+++ b/views/language/dialog.php
@@ -4,7 +4,7 @@
*
* @since 1.2
*/
-use yii\bootstrap\ActiveForm;
+use yii\bootstrap5\ActiveForm;
use yii\helpers\Html;
/* @var $this yii\web\View */
diff --git a/views/language/import.php b/views/language/import.php
index b4f49b1..6070d06 100644
--- a/views/language/import.php
+++ b/views/language/import.php
@@ -1,7 +1,7 @@
-
\ No newline at end of file
+
diff --git a/views/language/list.php b/views/language/list.php
index defccc4..8cb1055 100644
--- a/views/language/list.php
+++ b/views/language/list.php
@@ -52,10 +52,16 @@
'template' => '{view} {update} {translate} {delete}',
'buttons' => [
'translate' => function ($url, $model, $key) {
- return Html::a('', ['language/translate', 'language_id' => $model->language_id], [
- 'title' => Yii::t('language', 'Translate'),
- 'data-pjax' => '0',
- ]);
+ return Html::a('
+ ',
+ ['language/translate', 'language_id' => $model->language_id], [
+ 'title' => Yii::t('language', 'Translate'),
+ 'data-pjax' => '0',
+ ]
+);
+
},
],
],
@@ -63,4 +69,4 @@
]);
Pjax::end();
?>
-
\ No newline at end of file
+
diff --git a/views/layouts/language.php b/views/layouts/language.php
index 57bb1c4..b81b8d8 100644
--- a/views/layouts/language.php
+++ b/views/layouts/language.php
@@ -5,8 +5,8 @@
* @since 1.0
*/
use yii\helpers\Html;
-use yii\bootstrap\Nav;
-use yii\bootstrap\NavBar;
+use yii\bootstrap5\Nav;
+use yii\bootstrap5\NavBar;
use yii\widgets\Breadcrumbs;
use lajax\translatemanager\bundles\TranslateManagerAsset;