]> git.mjollnir.org Git - moodle.git/commitdiff
Minor tweaking and cleaning up
authormartin <martin>
Mon, 12 Aug 2002 13:45:41 +0000 (13:45 +0000)
committermartin <martin>
Mon, 12 Aug 2002 13:45:41 +0000 (13:45 +0000)
lang/en/moodle.php
lang/en/reading.php
lib/moodlelib.php
lib/weblib.php
theme/standard/header.html
theme/standardblue/header.html
theme/standardgreen/header.html
theme/standardred/header.html

index 1e39cada222c8845bc697e6d0680df25c2dc573b..2ec38da736b168c586e7bd30d4133f6f53e55567 100644 (file)
@@ -180,9 +180,11 @@ $string[missingstudent] = "Must choose something";
 $string[missingsummary] = "Missing summary";
 $string[missingteacher] = "Must choose something";
 $string[missingusername] = "Missing username";
+$string[mostrecently] = "most recently";
 $string[movedown] = "Move down";
 $string[moveup] = "Move up";
 $string[mustconfirm] = "You need to confirm your login";
+$string[name] = "Name";
 $string[namesocial] = "section";
 $string[nametopics] = "topic";
 $string[nameweeks] = "week";
@@ -228,6 +230,7 @@ $string[numdays] = "\$a days";
 $string[numweeks] = "\$a weeks";
 $string[numyears] = "\$a years";
 $string[numwords] = "\$a words";
+$string[numviews] = "\$a views";
 $string[ok] = "OK";
 $string[opentoguests] = "Open to guests?";
 $string[optional] = "optional";
index 36a7eb770b4e09a774b83925f44471c930cebcb4..32ddc500c1b0f94e3845ca1d48ef824df66ed81b 100644 (file)
@@ -6,5 +6,22 @@ $string[modulenameplural] = "Readings";
 #------------------------------------------------------------
 
 $string[addreading] = "Add reading";
+$string[editingareading] = "Editing a reading";
+$string[example] = "Example";
+$string[examplejournal] = "Tobin, K. & Tippins, D (1993) Constructivism as a Referent for Teaching and Learning. In: K. Tobin (Ed) The Practice of Constructivism in Science Education, pp 3-21, Lawrence-Erlbaum, Hillsdale, NJ.";
+$string[exampleurl] = "http://www.example.com/somedirectory/somefile.html";
+$string[filename] = "File name";
+$string[fulltext] = "Full text";
+$string[neverread] = "Never read";
+$string[note] = "Note";
+$string[notefile] = "To upload more files into the course (so they appear in this list) use the 
+<A HREF=\$a >File Manager</A>.";
+$string[notypechosen] = "You need to choose a type.  Use your back button to go back and retry.";
+$string[readingtype] = "Type of resource";
+$string[readingtype1] = "Journal Article";
+$string[readingtype2] = "Web Page";
+$string[readingtype3] = "Uploaded File";
+$string[readingtype4] = "Plain text";
+$string[readingtype5] = "Web Link";
 
 ?>
index d43e610c218ed231c71a69f52fdd375c4bac367e..893619f30ca384e5e5a768e956bda9af9f37f630 100644 (file)
@@ -176,8 +176,8 @@ function print_table($table) {
 
     if ($table->head) {
         echo "<TR>";
-        foreach ($table->head as $heading) {
-            echo "<TH>$heading</TH>";
+        foreach ($table->head as $key => $heading) {
+            echo "<TH ".$align[$key].">$heading</TH>";
         }
         echo "</TR>\n";
     }
index b8674f7a1b824300f04a4c9a663480a6a40f1be1..8db61ed31461798fc82391b97a7e3aae42f1af90 100644 (file)
@@ -260,7 +260,7 @@ function cleantext($text) {
 }
 
 
-function text_to_html($text, $smiley=true) {
+function text_to_html($text, $smiley=true, $para=true) {
 // Given plain text, makes it into HTML as nicely as possible.
 
     global $CFG;
@@ -291,7 +291,11 @@ function text_to_html($text, $smiley=true) {
         $text = ereg_replace("B-)", "<IMG ALT=\"{cool}\" SRC=\"$CFG->wwwroot/pix/s/cool.gif\">", $text);
     }
 
-    return "<P>".$text."</P>";
+    if ($para) {
+        return "<P>".$text."</P>";
+    } else {
+        return $text;
+    }
 }
 
 function highlight($needle, $haystack) {
index b2f8df6b769350832ff159d89f703d0e148eaa49..6c76df309188ce3bf7e131717ac2e41847d19815 100644 (file)
@@ -27,7 +27,7 @@
     <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
 <?  print_navigation("$navigation"); ?>
     </B></FONT></TD></TR></TABLE>
-    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1>
+    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
 <?  } else if ($heading) { ?>
     <HR SIZE=1 NOSHADE>
 <?  } ?>
index 8a685c4120be07411f798c88b74c13233ea956f0..58a7c5785858208dcf5f97d514da137212444ce9 100644 (file)
@@ -27,7 +27,7 @@
     <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
 <?  print_navigation("$navigation"); ?>
     </B></FONT></TD></TR></TABLE>
-    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1>
+    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
 <?  } else if ($heading) { ?>
     <HR SIZE=1 NOSHADE>
 <?  } ?>
index 8a685c4120be07411f798c88b74c13233ea956f0..58a7c5785858208dcf5f97d514da137212444ce9 100644 (file)
@@ -27,7 +27,7 @@
     <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
 <?  print_navigation("$navigation"); ?>
     </B></FONT></TD></TR></TABLE>
-    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1>
+    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
 <?  } else if ($heading) { ?>
     <HR SIZE=1 NOSHADE>
 <?  } ?>
index 8a685c4120be07411f798c88b74c13233ea956f0..58a7c5785858208dcf5f97d514da137212444ce9 100644 (file)
@@ -27,7 +27,7 @@
     <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
 <?  print_navigation("$navigation"); ?>
     </B></FONT></TD></TR></TABLE>
-    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1>
+    <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
 <?  } else if ($heading) { ?>
     <HR SIZE=1 NOSHADE>
 <?  } ?>