diff --git a/Plugin.php b/Plugin.php index 17fb41f..0b76e38 100644 --- a/Plugin.php +++ b/Plugin.php @@ -23,10 +23,11 @@ public function initialize() $this->userNotificationType->setType('jabber', t('Jabber'), '\Kanboard\Plugin\Jabber\Notification\Jabber'); $this->projectNotificationType->setType('jabber', t('Jabber'), '\Kanboard\Plugin\Jabber\Notification\Jabber'); + } - $this->on('app.bootstrap', function($container) { - Translator::load($container['config']->getCurrentLanguage(), __DIR__.'/Locale'); - }); + public function onStartup() + { + Translator::load($this->language->getCurrentLanguage(), __DIR__.'/Locale'); } public function getPluginDescription() @@ -41,7 +42,7 @@ public function getPluginAuthor() public function getPluginVersion() { - return '1.0.3'; + return '1.0.4'; } public function getPluginHomepage() diff --git a/Template/config/integration.php b/Template/config/integration.php index 5db03b4..6247598 100644 --- a/Template/config/integration.php +++ b/Template/config/integration.php @@ -16,9 +16,9 @@ form->label(t('Jabber nickname for Kanboard'), 'jabber_nickname') ?> form->text('jabber_nickname', $values, array()) ?> -

+

- \ No newline at end of file + diff --git a/Template/project/integration.php b/Template/project/integration.php index 06d1e78..31cb506 100644 --- a/Template/project/integration.php +++ b/Template/project/integration.php @@ -3,9 +3,9 @@ form->label(t('Multi-user chat room'), 'jabber_room') ?> form->text('jabber_room', $values, array(), array('placeholder="myroom@conference.example.com"')) ?> -

+

- \ No newline at end of file + diff --git a/Template/user/integration.php b/Template/user/integration.php index 0f10196..399c137 100644 --- a/Template/user/integration.php +++ b/Template/user/integration.php @@ -3,9 +3,9 @@ form->label(t('Jabber Id'), 'jabber_jid') ?> form->text('jabber_jid', $values) ?> -

+

- \ No newline at end of file + diff --git a/Test/PluginTest.php b/Test/PluginTest.php index 4a40438..cd962bc 100644 --- a/Test/PluginTest.php +++ b/Test/PluginTest.php @@ -10,6 +10,7 @@ public function testPlugin() { $plugin = new Plugin($this->container); $this->assertSame(null, $plugin->initialize()); + $this->assertSame(null, $plugin->onStartup()); $this->assertNotEmpty($plugin->getPluginName()); $this->assertNotEmpty($plugin->getPluginDescription()); $this->assertNotEmpty($plugin->getPluginAuthor());