Revision: 245
http://hw4mdl.svn.sourceforge.net/hw4mdl/?rev=245&view=rev
Author: trollinger
Date: 2008-02-15 11:09:14 -0800 (Fri, 15 Feb 2008)
Log Message:
-----------
fix a problem related to the update of an existing event
Modified Paths:
--------------
branches/team/Thomas/moodle/mod/voicetools/lang/en/voicetools.php
branches/team/Thomas/moodle/mod/voicetools/lang/en_utf8/voicetools.php
branches/team/Thomas/moodle/mod/voicetools/lib.php
branches/team/Thomas/moodle/mod/voicetools/mod.html
Modified: branches/team/Thomas/moodle/mod/voicetools/lang/en/voicetools.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/lang/en/voicetools.php 2008-02-15 19:08:40 UTC (rev 244)
+++ branches/team/Thomas/moodle/mod/voicetools/lang/en/voicetools.php 2008-02-15 19:09:14 UTC (rev 245)
@@ -26,7 +26,7 @@
* *
******************************************************************************/
-/* $Id: voicetools.php 51391 2007-07-16 21:10:29Z thomasr $ */
+/* $Id: voicetools.php 56777 2007-12-03 21:38:57Z thomasr $ */
$string['modulename'] = 'Wimba Voice Tool';
$string['modulenameplural'] = 'Wimba Voice Tools';
@@ -64,6 +64,12 @@
$string["weeksformat"]="Week:";
$string["activity_tools_not_available"]="The Voice Tools linked to this activity is currently unavailable.<br>Please contact your instructor";
$string["activity_manageTools"]="Manage Voice Tools";
+
+$string['addactivity'] = 'Add an Activity';
+$string['or'] = "or";
+$string['visibletostudents'] = "Visible to students:";
+$string['in'] = "in";
+
//tab name
$string['board_info'] = 'Info';
$string['media'] = 'Media';
@@ -104,7 +110,7 @@
$string['private_comment']='Student cannot view other student\'s discussion threads';
$string['comment_slide']= "Student can comment the slides";
$string['private_slide']= "Make slide comments private";
- $string['private_slide_comment']= "Students cannot view other student's comments";
+$string['private_slide_comment']= "Students cannot view other student's comments";
$string['view_other_thread']="Student can view other student\'s discussion threads" ;
$string['post_delay']= "Podcast auto-published after : ";
@@ -153,10 +159,10 @@
$string['presentation'] = 'Voice Presentation - ';
$string['VoicePresentation'] = 'Voice Presentation';
$string['voicepresentations'] = 'Voice Presentations';
- $string['podcaster'] = 'Wimba Podcaster';
- $string['Podcaster'] = 'Wimba Podcaster';
- $string['podcasters'] = 'Podcasters';
- $string['pc'] = 'Podcaster - ';
+$string['podcaster'] = 'Wimba Podcaster';
+$string['Podcaster'] = 'Wimba Podcaster';
+$string['podcasters'] = 'Podcasters';
+$string['pc'] = 'Podcaster - ';
$string['settings']="Settings";
$string['archivesession'] = 'Archive Sessions';
$string['new']="New";
@@ -420,7 +426,6 @@
$string['tooltipVT_1_student'] = "Available to students";
$string['configuration_test_vt_failed_sentence_start1'] = "The test of your Voice Tools server configuration settings was unsuccessful.";
$string['configuration_test_vt_successful_sentence'] = "The test of your Voice Tools server configuration settings was successful.
-
The configuration settings have been saved.";
$string['configuration_test_vtfailedAccount'] = "Please check the account name and the password s and retry.";
$string['configuration_test_vtfailedConnection'] = "Please check the Voice Tools Server Url parameters and retry.";
Modified: branches/team/Thomas/moodle/mod/voicetools/lang/en_utf8/voicetools.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/lang/en_utf8/voicetools.php 2008-02-15 19:08:40 UTC (rev 244)
+++ branches/team/Thomas/moodle/mod/voicetools/lang/en_utf8/voicetools.php 2008-02-15 19:09:14 UTC (rev 245)
@@ -57,7 +57,7 @@
$string['loglevel'] = 'Set Log Level:';
$string['viewlogs'] = 'View Logs...';
-$string["launch_calendar"]="Launch the Voice ";
+$string["launch_calendar"]="Launch the Wimba ";
$string["voicetoolstype"]="Associated Voice Tool:";
$string["activity_name"]="Activity Name:";
$string["topicformat"]="Topic:";
Modified: branches/team/Thomas/moodle/mod/voicetools/lib.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/lib.php 2008-02-15 19:08:40 UTC (rev 244)
+++ branches/team/Thomas/moodle/mod/voicetools/lib.php 2008-02-15 19:09:14 UTC (rev 245)
@@ -131,7 +131,7 @@
if(isset($voicetool->calendar_event) && $voicetool->calendar_event==true)
{
- voicetools_addCalendarEvent($voicetool);
+ voicetools_addCalendarEvent($voicetool,$voicetool->id);
}
wimba_add_log(WIMBA_INFO,WV,"Add Instance".$voicetool->id);
@@ -193,7 +193,7 @@
if(isset($voicetool->calendar_event) && $voicetool->calendar_event==true)
{//no problem
- voicetools_addCalendarEvent($voicetool,$voicetool->id );
+ voicetools_addCalendarEvent($voicetool,$voicetool->instance);
}
else
{
@@ -228,20 +228,21 @@
}
-function voicetools_addCalendarEvent($activity_informations){
- global $CFG;
+function voicetools_addCalendarEvent($activity_informations,$instanceNumber){
+ global $CFG;
+
//get some complementary of the resource
$resource=get_record('voicetools_resources','rid',$activity_informations->rid);
$event = new Object();
$event->name = $activity_informations->name;
- $event->description = $activity_informations->description."<br><a href=".$CFG->wwwroot."/mod/voicetools/view.php?id=".$activity_informations->id."&action=launchCalendar target=_self >".get_string("launch_calendar","voicetools").$resource->type." ...</a>";
+ $event->description = $activity_informations->description."<br><a href=".$CFG->wwwroot."/mod/voicetools/view.php?id=".$activity_informations->id."&action=launchCalendar target=_self >".get_string("launch_calendar","voicetools").get_string($resource->type,"voicetools")." ...</a>";
$event->format = 1;
$event->userid = 0;
$event->courseid = $activity_informations->course; //course event
$event->groupid = 0;
$event->modulename = 'voicetools';
- $event->instance = $activity_informations->id;
+ $event->instance = $instanceNumber;
$event->eventtype = '';
$event->visible = 1;
$event->timemodified = time();
Modified: branches/team/Thomas/moodle/mod/voicetools/mod.html
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/mod.html 2008-02-15 19:08:40 UTC (rev 244)
+++ branches/team/Thomas/moodle/mod/voicetools/mod.html 2008-02-15 19:09:14 UTC (rev 245)
@@ -95,15 +95,11 @@
$event=voicetools_get_event_calendar($activity->id);
if($event==true)
{
+ $disableAllElements="";
$checked ="checked";
list($description,$link)=split("<br>",$event->description);
$stringDate=date('m',$event->timestart)."/".date('d',$event->timestart)."/".date('Y',$event->timestart);
}
- else
- {
- $disableAllElements="disabled";
- }
-
$completeName=explode(" - ", $activity->name);
$name=$completeName[1];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|