From bfca6bc27af880a7c735f5a3346576147a022c22 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 4 Dec 2014 14:40:28 +0000 Subject: [PATCH] Plugins --- PHPCI/Controller/PluginController.php | 3 +- PHPCI/Languages/lang.en-gb.php | 17 +++++++++++ PHPCI/View/Plugin/index.phtml | 43 ++++++++++++++------------- 3 files changed, 41 insertions(+), 22 deletions(-) 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.

+

-

Enabled Plugins

+

- - - + + + @@ -41,14 +42,14 @@
-

Installed Packages

+

NameClassProvided by Package
- - + + @@ -59,7 +60,7 @@ @@ -73,14 +74,14 @@
-

Suggested Packages

+

TitleVersion
- Remove » +
- - + + @@ -92,7 +93,7 @@ @@ -106,14 +107,14 @@
-

Search Packagist for More Packages

+

- +
@@ -121,8 +122,8 @@
TitleDescription
- +
- - + + @@ -153,7 +154,7 @@ thisRow.append($('').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 @@
TitleDescription