Update the extension to 2.0.0-RC6 - Add FRENCH translation

This commit is contained in:
Raphaël M
2016-09-25 08:20:35 +02:00
parent 46e4a0675c
commit 2019ad47f7
67 changed files with 222 additions and 4956 deletions

39
ext.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
/**
* @package mChat addon Pop Up Extension
* @copyright (c) 2015 dmzx - http://dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*/
namespace talonos\b3pmchat;
/**
* @ignore
*/
class ext extends \phpbb\extension\base
{
/**
* Check whether or not the extension can be enabled.
*
* @return bool
* @access public
*/
public function is_enableable()
{
$config = $this->container->get('config');
$mchatver = $config['mchat_version'];
$ext_manager = $this->container->get('ext.manager');
if ($mchatver = '2.0.0-RC6' && $ext_manager->is_enabled('dmzx/mchat') == 'true')
{
$responce = true;
}
else
{
$this->container->get('user')->add_lang_ext('talonos/b3pmchat', 'common');
trigger_error($this->container->get('user')->lang['B3PMCHAT_UPGRADE'], E_USER_WARNING);
$responce = false;
}
return $responce;
}
}