Revision: 4334
Author:   seba.wagner
Date:     Fri Sep 30 16:25:28 2011
Log:      Update Mod Form Layout and language files
http://code.google.com/p/openmeetings/source/detail?r=4334

Modified:
 /trunk/plugins/moodle_plugin/lang/de/openmeetings.php
 /trunk/plugins/moodle_plugin/lang/en/openmeetings.php
 /trunk/plugins/moodle_plugin/lang/fr/openmeetings.php
 /trunk/plugins/moodle_plugin/mod_form.php

=======================================
--- /trunk/plugins/moodle_plugin/lang/de/openmeetings.php Fri Sep 30 08:38:05 2011 +++ /trunk/plugins/moodle_plugin/lang/de/openmeetings.php Fri Sep 30 16:25:28 2011
@@ -13,7 +13,7 @@
 $string['red5port'] = 'OpenMeetings Server Port';
 $string['openmeetingsAdminUser'] = 'OpenMeetings Admin Benutzer';
$string['openmeetingsAdminUserPass'] = 'OpenMeetings Admin Benutzer Passwort'; -$string['openmeetingsModuleKey'] = 'OpenMeetings Modul-SchlŸssel (falls Sie mehrer Moodle Instanzen betreiben sollte der SchlŸssel bei jeder Instanz anders sein)'; +$string['openmeetingsModuleKey'] = 'OpenMeetings Modul-Schlüssel (falls Sie mehrer Moodle Instanzen betreiben sollte der Schlüssel bei jeder Instanz anders sein)';

 $string['Room_Name'] = 'Raum name';
 $string['Room_Type'] = 'Raumtyp';
@@ -21,21 +21,22 @@
 $string['Max_User'] = 'Maximale Teilnehmerzahl';
 $string['Wait_for_teacher'] = 'Moderations-Modus';

-$string['recordings_label'] = 'Das Feld mit den aufgezeichneten Meetings wird nur verwendet wenn der Raumtype "Aufzeichnung anzeigen" gewŠhlt wurde.';
-$string['recordings_show'] = 'Aufgezeichnet Meetings';
+$string['recordings_label'] = 'Das Feld mit den aufgezeichneten Meetings wird nur verwendet wenn der Raumtyp "Aufzeichnung anzeigen" gewählt wurde. Es wird dann die Aufzeichnung anstatt dem Konferenzraum angezeigt.';
+$string['recordings_show'] = 'Aufgezeichnete Meetings';
 $string['Comment'] = 'Kommentar';

 $string['Conference'] = 'Konference (bis 16 Teilnehmer)';
 $string['Audience'] = 'Audience (bis 32 Teilnehmer)';
 $string['Restricted'] = 'Webinar (bis 150 Teilnehmer)';
-$string['Recording'] = 'Aufzeichnung anzeigen (Aufzeichnung auswŠhlen die statt dem Konferenzraum dann angezeigt wird!)';
-
-$string['Moderation_TYPE_1'] = 'Teilnehmer mŸssen warten bis ein Moderator im Raum erscheint (Moodle Administratoren, Lehrer und Kurs Moderatoren sind automatisch Moderator)'; -$string['Moderation_TYPE_2'] = 'Teilnehmer kšnnen selbststŠndig anfangen (der erste besucher wird Moderator im Raum)'; +$string['Recording'] = 'Aufzeichnung anzeigen (Aufzeichnung auswählen die statt dem Konferenzraum dann angezeigt wird!)';
+
+$string['Moderation_Description'] = '(Moodle Administratoren, Lehrer und Kurs Moderatoren sind automatisch Moderator)'; +$string['Moderation_TYPE_1'] = 'Teilnehmer müssen warten bis ein Moderator im Raum erscheint'; +$string['Moderation_TYPE_2'] = 'Teilnehmer können selbstständig anfangen (der erste besucher wird Moderator im Raum)'; $string['Moderation_TYPE_3'] = 'Jeder Teilnehmer ist automatisch Moderator im Konferenz-Raum';

-$string['Allow_Recording'] = 'Funktion zum Aufzeichnen verfŸgbar';
-$string['Recording_TYPE_1'] = 'Die Funktion zum Aufzeichnen des Konferenzraums ist aktiv und kann gestartet werden.'; -$string['Recording_TYPE_2'] = 'Die Funktion zum Aufzeichnen des Konferenzraums ist nicht verfŸgbar.';
+$string['Allow_Recording'] = 'Funktion zum Aufzeichnen verfügbar';
+$string['Recording_TYPE_1'] = 'Die Funktion zum Aufzeichnen der Konferenz ist verfügbar und kann gestartet werden.'; +$string['Recording_TYPE_2'] = 'Die Funktion zum Aufzeichnen der Konferenz ist nicht verfügbar.';

 ?>
=======================================
--- /trunk/plugins/moodle_plugin/lang/en/openmeetings.php Fri Sep 30 08:38:05 2011 +++ /trunk/plugins/moodle_plugin/lang/en/openmeetings.php Fri Sep 30 16:25:28 2011
@@ -21,7 +21,7 @@
 $string['Max_User'] = 'Max users';
 $string['Wait_for_teacher'] = 'Moderation modus';

-$string['recordings_label'] = 'The Recording Field is only used if Room Type is Recording'; +$string['recordings_label'] = 'The Recording Field is only used if Room Type is Recording. Instead of the conference room a recording will be shown.';
 $string['recordings_show'] = 'Available Recordings to Shows';
 $string['Comment'] = 'Comment';

@@ -30,6 +30,7 @@
 $string['Restricted'] = 'Webinar (max 150 participants)';
$string['Recording'] = 'Show Recording (select recording from drop down to be shown instead of meeting)';

+$string['Moderation_Description'] = '(Moodle Administratoren, teachers and course creators are automatically a moderator)'; $string['Moderation_TYPE_1'] = 'Participants need to wait till the teacher enters the room'; $string['Moderation_TYPE_2'] = 'Participants can already start (first User in room becomes moderator)'; $string['Moderation_TYPE_3'] = 'Every participant is automatically moderator when he/she enters the room';
=======================================
--- /trunk/plugins/moodle_plugin/lang/fr/openmeetings.php Fri Sep 30 08:38:05 2011 +++ /trunk/plugins/moodle_plugin/lang/fr/openmeetings.php Fri Sep 30 16:25:28 2011
@@ -21,7 +21,7 @@
 $string['Max_User'] = 'Nb max utilisateurs';
 $string['Wait_for_teacher'] = 'Attendre enseignant';

-$string['recordings_label'] = 'The Recording Field is only used if Room Type is Recording'; +$string['recordings_label'] = 'The Recording Field is only used if Room Type is Recording. Instead of the conference room a recording will be shown.';
 $string['recordings_show'] = 'Available Recordings to Shows';
 $string['Comment'] = 'Comment';

@@ -30,6 +30,7 @@
 $string['Restricted'] = 'Accès restreint (max 150 participants)';
$string['Recording'] = 'Show Recording (select recording from drop down to be shown instead of meeting)';

+$string['Moderation_Description'] = '(Moodle Administratoren, teachers and course creators are automatically a moderator)'; $string['Moderation_TYPE_1'] = 'Les participants doivent attendre un enseignant pour pouvoir commencer'; $string['Moderation_TYPE_2'] = 'La réunion peut démarrer immédiatement (le premier connecté devient le modérateur)'; $string['Moderation_TYPE_3'] = 'Every participant is automatically moderator when he/she enters the room';
=======================================
--- /trunk/plugins/moodle_plugin/mod_form.php   Fri Sep 30 09:09:19 2011
+++ /trunk/plugins/moodle_plugin/mod_form.php   Fri Sep 30 16:25:28 2011
@@ -18,7 +18,7 @@
                $mform->addElement('header', 'general', get_string('general', 
'form'));
                /// Adding the standard "name" field
$mform->addElement('text', 'name', get_string('Room_Name', 'openmeetings'), array('size'=>'64'));
-               $mform->setType('name', PARAM_TEXT);
+               //$mform->setType('name', PARAM_TEXT);
                $mform->addRule('name', null, 'required', null, 'client');

                $mform->addElement('hidden', 'room_id', 'Room Id', 
array('size'=>'64'));
@@ -26,20 +26,68 @@
                /// Adding the "Room Type" field
$mform->addElement('select', 'type', get_string('Room_Type', 'openmeetings'), array('1'=>get_string('Conference', 'openmeetings'), '2'=>get_string('Audience', 'openmeetings'), '3'=>get_string('Restricted', 'openmeetings'), '0'=>get_string('Recording', 'openmeetings')));

+               /// Adding the "Number of Participants" field
+ $mform->addElement('select', 'max_user', get_string('Max_User', 'openmeetings'), array('2'=>'2', '4'=>'4', '8'=>'8', '16'=>'16', '24'=>'24', '36'=>'36', '50'=>'50', '100'=>'100', '150'=>'150', '200'=>'200', '250'=>'250', '500'=>'500', '1000'=>'1000'));
+
+               /// Adding the "Room Language" field
+               $language_array = array ('1' => 'english',
+                                                                                  
     '2' => 'deutsch',
+                                                                                  
     '3' => 'deutsch (studIP)',
+                                                                                  
     '4' => 'french',
+                                                                                  
     '5' => 'italian',
+                                                                                  
     '6' => 'portugues',
+                                                                                  
     '7' => 'portugues brazil',
+                                                                                  
     '8' => 'spanish',
+                                                                                  
     '9' => 'russian',
+                                                                                  
     '10' => 'swedish',
+                                                                                  
     '11' => 'chinese simplified',
+                                                                                  
     '12' => 'chinese traditional',
+                                                                                  
     '13' => 'korean',
+                                                                                  
     '14' => 'arabic',
+                                                                                  
     '15' => 'japanese',
+                                                                                  
     '16' => 'indonesian',
+                                                                                  
     '17' => 'hungarian',
+                                                                                  
     '18' => 'turkish',
+                                                                                  
     '19' => 'ukrainian',
+                                                                                  
     '20' => 'thai',
+                                                                                  
     '21' => 'persian',
+                                                                                  
     '22' => 'czech',
+                                                                                  
     '23' => 'galician',
+                                                                                  
     '24' => 'finnish',
+                                                                                  
     '25' => 'polish',
+                                                                                  
     '26' => 'greek',
+                                                                                  
     '27' => 'dutch',
+                                                                                  
     '28' => 'hebrew',
+                                                                                  
     '29' => 'catalan',
+                                                                                  
     '30' => 'bulgarian',
+                                                                                  
     '31' => 'danish',
+                                                                                  
     '32' => 'slovak');
+
+ $mform->addElement('select', 'language', get_string('Room_Language', 'openmeetings'), $language_array);
+
                /// Some description
- //$mform->addElement('static', 'description_room_recording_id', get_string('recordings_label', 'openmeetings'), null);
-
+ $mform->addElement('static', 'description', '', get_string('Moderation_Description', 'openmeetings'));
+
+               /// Adding the "Is Moderated Room" field
+ $mform->addElement('select', 'is_moderated_room', get_string('Wait_for_teacher', 'openmeetings'), array('1'=> get_string('Moderation_TYPE_1', 'openmeetings'),'2' => get_string('Moderation_TYPE_2', 'openmeetings'),'3' => get_string('Moderation_TYPE_3', 'openmeetings')));
+
+ $mform->addElement('select', 'allow_recording', get_string('Allow_Recording', 'openmeetings'), array('1'=> get_string('Recording_TYPE_1', 'openmeetings'),'2' => get_string('Recording_TYPE_2', 'openmeetings')));
+
+
+               /// Adding the optional "intro" and "introformat" pair of fields
+ $mform->addElement('htmleditor', 'intro', get_string('Comment', 'openmeetings'));
+               $mform->setType('intro', PARAM_RAW);
+
+
                /// Adding the "Available Recordings to Shows" field
-
-               //$recordings = array('1'=>'Recording 1', '2'=>'Recording 2');
                $recordings = array();

                $openmeetings_gateway = new openmeetings_gateway();
                if ($openmeetings_gateway->openmeetings_loginuser()) {
-
+
$recordingsArray = $openmeetings_gateway->openmeetings_getRecordingsByExternalRooms();
-
-
+
+
                        foreach ($recordingsArray as $key => $value) {
                                //there is a bug, if a List has the length of 1 
the type is wrong
                                if (is_array($value)) {
@@ -51,60 +99,15 @@
                                        break;
                                }
                        }
-
-
-               }
-
+
+
+               }
+
+               /// Some description
+ $mform->addElement('static', 'description', '', get_string('recordings_label', 'openmeetings'));
+
$mform->addElement('select', 'room_recording_id', get_string('recordings_show', 'openmeetings'), $recordings);
-
-               /// Adding the "Number of Participants" field
- $mform->addElement('select', 'max_user', get_string('Max_User', 'openmeetings'), array('2'=>'2', '4'=>'4', '8'=>'8', '16'=>'16', '24'=>'24', '36'=>'36', '50'=>'50', '100'=>'100', '150'=>'150', '200'=>'200', '250'=>'250', '500'=>'500', '1000'=>'1000'));
-
-               /// Adding the "Is Moderated Room" field
- $mform->addElement('select', 'is_moderated_room', get_string('Wait_for_teacher', 'openmeetings'), array('1'=> get_string('Moderation_TYPE_1', 'openmeetings'),'2' => get_string('Moderation_TYPE_2', 'openmeetings'),'3' => get_string('Moderation_TYPE_3', 'openmeetings')));
-
- $mform->addElement('select', 'allow_recording', get_string('Allow_Recording', 'openmeetings'), array('1'=> get_string('Recording_TYPE_1', 'openmeetings'),'2' => get_string('Recording_TYPE_2', 'openmeetings')));
-
-
-               /// Adding the "Room Language" field
-               $language_array = array ('1' => 'english',
-                                                                       '2' => 
'deutsch',
-                                                                       '3' => 
'deutsch (studIP)',
-                                                                       '4' => 
'french',
-                                                                       '5' => 
'italian',
-                                                                       '6' => 
'portugues',
-                                                                       '7' => 
'portugues brazil',
-                                                                       '8' => 
'spanish',
-                                                                       '9' => 
'russian',
-                                                                       '10' => 
'swedish',
-                                                                       '11' => 
'chinese simplified',
-                                                                       '12' => 
'chinese traditional',
-                                                                       '13' => 
'korean',
-                                                                       '14' => 
'arabic',
-                                                                       '15' => 
'japanese',
-                                                                       '16' => 
'indonesian',
-                                                                       '17' => 
'hungarian',
-                                                                       '18' => 
'turkish',
-                                                                       '19' => 
'ukrainian',
-                                                                       '20' => 
'thai',
-                                                                       '21' => 
'persian',
-                                                                       '22' => 
'czech',
-                                                                       '23' => 
'galician',
-                                                                       '24' => 
'finnish',
-                                                                       '25' => 
'polish',
-                                                                       '26' => 
'greek',
-                                                                       '27' => 
'dutch',
-                                                                       '28' => 
'hebrew',
-                                                                       '29' => 
'catalan',
-                                                                       '30' => 
'bulgarian',
-                                                                       '31' => 
'danish',
-                                                                       '32' => 
'slovak');
-
- $mform->addElement('select', 'language', get_string('Room_Language', 'openmeetings'), $language_array);
-
-               /// Adding the optional "intro" and "introformat" pair of fields
- $mform->addElement('htmleditor', 'intro', get_string('Comment', 'openmeetings'));
-               $mform->setType('intro', PARAM_RAW);
+
//$mform->addRule('intro', get_string('required'), 'required', null, 'client'); //$mform->setHelpButton('intro', array('writing', 'richtext'), false, 'editorhelpbutton');

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to