Adding language support to plugins see #4557
parent
0739035eb4
commit
be9d1b8856
@ -1,9 +1,11 @@ |
|||||||
<?php |
<?php |
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
/* bbb parameters that will be registered in the course settings */ |
||||||
|
|
||||||
$variables = array( 'big_blue_button_meeting_name', |
$variables = array( 'big_blue_button_meeting_name', |
||||||
'big_blue_button_attendee_password', |
'big_blue_button_attendee_password', |
||||||
'big_blue_button_moderator_password', |
'big_blue_button_moderator_password', |
||||||
'big_blue_button_welcome_message', |
'big_blue_button_welcome_message', |
||||||
'big_blue_button_max_students_allowed', |
'big_blue_button_max_students_allowed' |
||||||
|
|
||||||
); |
); |
@ -1,6 +1,3 @@ |
|||||||
<?php |
<?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 ="row"> |
||||||
|
|
||||||
<div class ="span12" style="text-align:center"> |
{% if bbb_status == true %} |
||||||
<a href="{{ conference_url }}" class="btn btn-primary btn-large"> |
|
||||||
{{ 'StartConference'|get_lang }} |
<div class ="span12" style="text-align:center"> |
||||||
</a> |
<a href="{{ conference_url }}" class="btn btn-primary btn-large"> |
||||||
<span id="users_online" class="label label-warning">{{ users_online }} user(s) online</span> |
{{ 'StartConference'|get_lang }} |
||||||
</div> |
</a> |
||||||
|
<span id="users_online" class="label label-warning">{{ users_online }} user(s) online</span> |
||||||
<div class ="span12"> |
</div> |
||||||
|
|
||||||
<div class="page-header"> |
<div class ="span12"> |
||||||
<h2>{{ 'RecordList'|get_lang }}</h2> |
|
||||||
</div> |
<div class="page-header"> |
||||||
|
<h2>{{ 'RecordList'|get_lang }}</h2> |
||||||
<table class="table"> |
</div> |
||||||
<tr> |
|
||||||
<th>#</th> |
<table class="table"> |
||||||
<th>{{'Meeting'|get_lang}}</th> |
<tr> |
||||||
<th>{{'Date'|get_lang}}</th> |
<th>#</th> |
||||||
<th>{{'Actions'|get_lang}}</th> |
<th>{{'Meeting'|get_lang}}</th> |
||||||
</tr> |
<th>{{'Date'|get_lang}}</th> |
||||||
{% for meeting in meetings %} |
<th>{{'Actions'|get_lang}}</th> |
||||||
<tr> |
</tr> |
||||||
<td>{{ meeting.id }}</td> |
{% for meeting in meetings %} |
||||||
<td>{{ meeting.meeting_name }}</td> |
<tr> |
||||||
<td>{{ meeting.created_at }}</td> |
<td>{{ meeting.id }}</td> |
||||||
<td> |
<td>{{ meeting.meeting_name }}</td> |
||||||
{% if meeting.record == 1 %} |
<td>{{ meeting.created_at }}</td> |
||||||
|
<td> |
||||||
{# Record list #} |
{% if meeting.record == 1 %} |
||||||
{{ meeting.show_links }} |
|
||||||
|
{# Record list #} |
||||||
<!-- <a href="{{ meeting.publish_url}} "> Publish </a> |
{{ meeting.show_links }} |
||||||
<a href="{{ meeting.unpublish_url}} "> UnPublish </a> --> |
|
||||||
{% endif %} |
<!-- <a href="{{ meeting.publish_url}} "> Publish </a> |
||||||
<br /> |
<a href="{{ meeting.unpublish_url}} "> UnPublish </a> --> |
||||||
|
{% endif %} |
||||||
{% if meeting.status == 1 %} |
|
||||||
<span class="label label-success">{{'MeetingOpened'|get_lang}}</span> |
{% if meeting.status == 1 %} |
||||||
<a class="btn" href="{{ meeting.end_url }} "> {{'CloseMeeting'|get_lang}} </a> |
<span class="label label-success">{{'MeetingOpened'|get_lang}}</span> |
||||||
{% else %} |
<a class="btn" href="{{ meeting.end_url }} "> {{'CloseMeeting'|get_lang}}</a> |
||||||
<span class="label label-info">{{'MeetingClosed'|get_lang}}</span> |
{% else %} |
||||||
{% endif %} |
<span class="label label-info">{{'MeetingClosed'|get_lang}}</span> |
||||||
|
{% endif %} |
||||||
|
|
||||||
</td> |
|
||||||
</tr> |
</td> |
||||||
{% endfor %} |
</tr> |
||||||
</table> |
{% endfor %} |
||||||
</div> |
</table> |
||||||
|
</div> |
||||||
|
{% else %} |
||||||
|
<div class ="span12" style="text-align:center"> |
||||||
|
{{ 'ServerIsNotRunning' | return_message('warning') }} |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
</div> |
</div> |
@ -1,20 +1,6 @@ |
|||||||
<?php |
<?php |
||||||
/** |
|
||||||
* This script is a configuration file for the BigBlueButton plugin. You can use it as a master for other course plugins. |
require_once api_get_path(LIBRARY_PATH) . '/plugin.class.php'; |
||||||
* These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins) |
require_once dirname(__FILE__) . '/lib/bbb_plugin.class.php'; |
||||||
* @package chamilo.plugin |
|
||||||
* @author Yannick Warnier <ywarnier@beeznest.org> |
$plugin_info = BBBPlugin::create()->get_info(); |
||||||
*/ |
|
||||||
/** |
|
||||||
* 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'; |
|
@ -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