Adding language support to plugins see #4557
parent
0739035eb4
commit
be9d1b8856
@ -1,9 +1,11 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/* bbb parameters that will be registered in the course settings */ |
||||
|
||||
$variables = array( 'big_blue_button_meeting_name', |
||||
'big_blue_button_attendee_password', |
||||
'big_blue_button_moderator_password', |
||||
'big_blue_button_welcome_message', |
||||
'big_blue_button_max_students_allowed', |
||||
|
||||
'big_blue_button_max_students_allowed' |
||||
); |
@ -1,6 +1,3 @@ |
||||
<?php |
||||
/** |
||||
* Placeholder file |
||||
* Should contain the code to access the plugin from outside a course |
||||
* @package chamilo.plugin.bigbluebutton |
||||
*/ |
||||
|
||||
?> |
@ -0,0 +1,18 @@ |
||||
<?php |
||||
/** |
||||
* |
||||
* @copyright (c) 2012 University of Geneva |
||||
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html |
||||
* @author Laurent Opprecht <laurent@opprecht.info> |
||||
*/ |
||||
|
||||
//Needed in order to show the plugin title |
||||
$strings['plugin_title'] = "BigBlueButton"; |
||||
$strings['plugin_comment'] = "Open Source Videoconference tool"; |
||||
|
||||
|
||||
$strings['Videoconference'] = "Videoconference"; |
||||
$strings['MeetingOpened'] = "Meeting opened"; |
||||
$strings['StartConference'] = "Start conference"; |
||||
$strings['RecordList'] = "Record list"; |
||||
$strings['ServerIsNotRunning'] = "Server Is Not Running"; |
@ -0,0 +1,2 @@ |
||||
<?php |
||||
|
@ -0,0 +1,13 @@ |
||||
<?php |
||||
|
||||
class BBBPlugin extends Plugin |
||||
{ |
||||
static function create() { |
||||
static $result = null; |
||||
return $result ? $result : $result = new self(); |
||||
} |
||||
|
||||
protected function __construct() { |
||||
parent::__construct('2.0', 'Julio Montoya, Yannick Warnier'); |
||||
} |
||||
} |
@ -1,52 +1,58 @@ |
||||
<div class ="row"> |
||||
|
||||
<div class ="span12" style="text-align:center"> |
||||
<a href="{{ conference_url }}" class="btn btn-primary btn-large"> |
||||
{{ 'StartConference'|get_lang }} |
||||
</a> |
||||
<span id="users_online" class="label label-warning">{{ users_online }} user(s) online</span> |
||||
</div> |
||||
{% if bbb_status == true %} |
||||
|
||||
<div class ="span12"> |
||||
|
||||
<div class="page-header"> |
||||
<h2>{{ 'RecordList'|get_lang }}</h2> |
||||
</div> |
||||
|
||||
<table class="table"> |
||||
<tr> |
||||
<th>#</th> |
||||
<th>{{'Meeting'|get_lang}}</th> |
||||
<th>{{'Date'|get_lang}}</th> |
||||
<th>{{'Actions'|get_lang}}</th> |
||||
</tr> |
||||
{% for meeting in meetings %} |
||||
<tr> |
||||
<td>{{ meeting.id }}</td> |
||||
<td>{{ meeting.meeting_name }}</td> |
||||
<td>{{ meeting.created_at }}</td> |
||||
<td> |
||||
{% if meeting.record == 1 %} |
||||
|
||||
{# Record list #} |
||||
{{ meeting.show_links }} |
||||
|
||||
<!-- <a href="{{ meeting.publish_url}} "> Publish </a> |
||||
<a href="{{ meeting.unpublish_url}} "> UnPublish </a> --> |
||||
{% endif %} |
||||
<br /> |
||||
|
||||
{% if meeting.status == 1 %} |
||||
<span class="label label-success">{{'MeetingOpened'|get_lang}}</span> |
||||
<a class="btn" href="{{ meeting.end_url }} "> {{'CloseMeeting'|get_lang}} </a> |
||||
{% else %} |
||||
<span class="label label-info">{{'MeetingClosed'|get_lang}}</span> |
||||
{% endif %} |
||||
|
||||
|
||||
</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</table> |
||||
</div> |
||||
<div class ="span12" style="text-align:center"> |
||||
<a href="{{ conference_url }}" class="btn btn-primary btn-large"> |
||||
{{ 'StartConference'|get_lang }} |
||||
</a> |
||||
<span id="users_online" class="label label-warning">{{ users_online }} user(s) online</span> |
||||
</div> |
||||
|
||||
<div class ="span12"> |
||||
|
||||
<div class="page-header"> |
||||
<h2>{{ 'RecordList'|get_lang }}</h2> |
||||
</div> |
||||
|
||||
<table class="table"> |
||||
<tr> |
||||
<th>#</th> |
||||
<th>{{'Meeting'|get_lang}}</th> |
||||
<th>{{'Date'|get_lang}}</th> |
||||
<th>{{'Actions'|get_lang}}</th> |
||||
</tr> |
||||
{% for meeting in meetings %} |
||||
<tr> |
||||
<td>{{ meeting.id }}</td> |
||||
<td>{{ meeting.meeting_name }}</td> |
||||
<td>{{ meeting.created_at }}</td> |
||||
<td> |
||||
{% if meeting.record == 1 %} |
||||
|
||||
{# Record list #} |
||||
{{ meeting.show_links }} |
||||
|
||||
<!-- <a href="{{ meeting.publish_url}} "> Publish </a> |
||||
<a href="{{ meeting.unpublish_url}} "> UnPublish </a> --> |
||||
{% endif %} |
||||
|
||||
{% if meeting.status == 1 %} |
||||
<span class="label label-success">{{'MeetingOpened'|get_lang}}</span> |
||||
<a class="btn" href="{{ meeting.end_url }} "> {{'CloseMeeting'|get_lang}}</a> |
||||
{% else %} |
||||
<span class="label label-info">{{'MeetingClosed'|get_lang}}</span> |
||||
{% endif %} |
||||
|
||||
|
||||
</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</table> |
||||
</div> |
||||
{% else %} |
||||
<div class ="span12" style="text-align:center"> |
||||
{{ 'ServerIsNotRunning' | return_message('warning') }} |
||||
</div> |
||||
{% endif %} |
||||
</div> |
@ -1,20 +1,6 @@ |
||||
<?php |
||||
/** |
||||
* This script is a configuration file for the BigBlueButton plugin. You can use it as a master for other course plugins. |
||||
* These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins) |
||||
* @package chamilo.plugin |
||||
* @author Yannick Warnier <ywarnier@beeznest.org> |
||||
*/ |
||||
/** |
||||
* Plugin details (must be present) |
||||
*/ |
||||
//the plugin title |
||||
$plugin_info['title']='BigBlueButton'; |
||||
//the comments that go with the plugin |
||||
$plugin_info['comment']="Open Source Videoconference tool"; |
||||
//the locations where this plugin can be shown |
||||
$plugin_info['location']=array('course_tool_plugin'); |
||||
//the plugin version |
||||
$plugin_info['version']='1.0'; |
||||
//the plugin author |
||||
$plugin_info['author']='Julio Montoya & Yannick Warnier'; |
||||
|
||||
require_once api_get_path(LIBRARY_PATH) . '/plugin.class.php'; |
||||
require_once dirname(__FILE__) . '/lib/bbb_plugin.class.php'; |
||||
|
||||
$plugin_info = BBBPlugin::create()->get_info(); |
@ -0,0 +1,9 @@ |
||||
<?php |
||||
/** |
||||
* |
||||
* @copyright (c) 2012 University of Geneva |
||||
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html |
||||
* @author Laurent Opprecht <laurent@opprecht.info> |
||||
*/ |
||||
|
||||
$strings['HelloPlugin'] = "Hello!"; |
@ -0,0 +1,3 @@ |
||||
<?php |
||||
|
||||
$strings['HelloPlugin'] = "Salut!"; |
@ -0,0 +1,3 @@ |
||||
<?php |
||||
|
||||
$strings['HelloPlugin'] = "Hola chaval!"; |
@ -0,0 +1,3 @@ |
||||
<?php |
||||
|
||||
$strings['WelcomToChamiloUserX'] = "Welcome to Chamilo %s!"; |
@ -0,0 +1,3 @@ |
||||
<?php |
||||
|
||||
$strings['WelcomToChamiloUserX'] = "Bienvenido a Chamilo %s!"; |
Loading…
Reference in new issue