diff --git a/PHPCI/Controller/PluginController.php b/PHPCI/Controller/PluginController.php index de9f5e0f..bf29d1ee 100644 --- a/PHPCI/Controller/PluginController.php +++ b/PHPCI/Controller/PluginController.php @@ -10,6 +10,7 @@ namespace PHPCI\Controller; use b8; +use PHPCI\Helper\Lang; use PHPCI\Model\Build; use PHPCI\Plugin\Util\ComposerPluginInformation; use PHPCI\Plugin\Util\FilesPluginInformation; @@ -63,7 +64,7 @@ class PluginController extends \PHPCI\Controller $this->view->plugins = $pluginInfo->getInstalledPlugins(); - $this->layout->title = 'Plugins'; + $this->layout->title = Lang::get('plugins'); return $this->view->render(); } diff --git a/PHPCI/Languages/lang.en-gb.php b/PHPCI/Languages/lang.en-gb.php index dc1f9578..1f0e9433 100644 --- a/PHPCI/Languages/lang.en-gb.php +++ b/PHPCI/Languages/lang.en-gb.php @@ -256,4 +256,21 @@ PHPCI', '30_mins' => '30 Minutes', '1_hour' => '1 Hour', '3_hours' => '3 Hours', + + // Plugins + 'cannot_update_composer' => 'PHPCI cannot update composer.json for you as it is not writable.', + 'x_has_been_removed' => '%s has been removed.', + 'x_has_been_added' => '%s has been added to composer.json for you and will be installed next time + you run composer update.', + 'enabled_plugins' => 'Enabled Plugins', + 'provided_by_package' => 'Provided By Package', + 'installed_packages' => 'Installed Packages', + 'suggested_packages' => 'Suggested Packages', + 'title' => 'Title', + 'description' => 'Description', + 'version' => 'Version', + 'install' => 'Install »', + 'remove' => 'Remove »', + 'search_packagist_for_more' => 'Search Packagist for more packages', + 'search' => 'Search »', ); diff --git a/PHPCI/View/Plugin/index.phtml b/PHPCI/View/Plugin/index.phtml index 15e20590..5571f7a9 100644 --- a/PHPCI/View/Plugin/index.phtml +++ b/PHPCI/View/Plugin/index.phtml @@ -1,26 +1,27 @@ + -
PHPCI cannot update composer.json for you as it is not writable.
+ -has been removed.
+ -has been added to composer.json for you and will be installed next time you run composer update.
+| Name | -Class | -Provided by Package | ++ | + |
|---|
| Title | -Version | ++ | - Remove » + | @@ -73,14 +74,14 @@
|---|
| Title | -Description | ++ | - + | @@ -106,14 +107,14 @@
|---|
| Title | -Description | ++ | ').text(thisRes.name)); thisRow.append($(' | ').text(thisRes.description)); - var inst = $('').data('name', thisRes.name).addClass('btn btn-small btn-success').html('Install »'); + var inst = $('').data('name', thisRes.name).addClass('btn btn-small btn-success').html(Lang.get('install')); inst.on('click', versionChooser); @@ -201,7 +202,7 @@ |
|---|