]> git.mjollnir.org Git - moodle.git/commitdiff
- Applying proper coding conventions to the default settings' variables
authorwillcast <willcast>
Sun, 2 Nov 2003 02:37:44 +0000 (02:37 +0000)
committerwillcast <willcast>
Sun, 2 Nov 2003 02:37:44 +0000 (02:37 +0000)
lang/en/glossary.php
mod/glossary/README.txt
mod/glossary/config.html
mod/glossary/edit.html
mod/glossary/mod.html

index 8c7dd3763d847219dd7641f16185070e3bf27f12..5f85e8d556168fc547caf7d5183a01cd81ed3daa 100644 (file)
@@ -25,14 +25,14 @@ $string['commentdeleted'] = "The comment has been deleted.";
 $string['commentupdated'] = "The comment has been updated.";
 $string['comments'] = "Comments";
 $string['commentson'] = "Comments on";
-$string['configstudents_can_post_entries'] = "Define if the students can or cannot post entries by default";
-$string['configallow_duplicated_entries'] = "Define if a glossary will allows duplicated entries by default";
-$string['configallow_comments'] = "Define if a glossary will accept comments on entries by default";
-$string['configautomatically_link_glossaries'] = "Define if a glossary should be automatically linked by default";
-$string['configdefault_approval_status'] = "Define the approval status by default of an entry posted by a student";
-$string['configautomatically_link_entry'] = "Define if an entry should be automatically linked by default";
-$string['configcase_sensitive'] = "Define if an entry, when linked, is case sensitive by default";
-$string['configmatch_whole_words'] = "Define if an entry, when linked, should match the case in the target text by default";
+$string['cnfstudentcanpost'] = "Define if the students can or cannot post entries by default";
+$string['cnfallowdupentries'] = "Define if a glossary will allows duplicated entries by default";
+$string['cngallowcomments'] = "Define if a glossary will accept comments on entries by default";
+$string['cnflinkglossaries'] = "Define if a glossary should be automatically linked by default";
+$string['cnfapprovalstatus'] = "Define the approval status by default of an entry posted by a student";
+$string['cnflinkentry'] = "Define if an entry should be automatically linked by default";
+$string['cnfcasesensitive'] = "Define if an entry, when linked, is case sensitive by default";
+$string['cnffullmatch'] = "Define if an entry, when linked, should match the case in the target text by default";
 $string['concept'] = "Concept";
 $string['concepts'] = "Concepts";
 $string['dateview'] = "Browse by date";
index 71fa1b67a0e02292c06df06d7f4e67c8ea08cf74..b4fda58788cbafbd6874b685a9a4eb64f7e4a9be 100644 (file)
@@ -1,31 +1,32 @@
-Glossary version 0.1
-----------------------
-
-
+Glossary version 0.5 dev
+------------------------
 By Williams Castillo (castillow@tutopia.com)
 
+This is the Glossary module. Created and maintained by Williams Castillo. This are my first lines in PHP... It means that, although I've tried to do my best, it might (in fact, it does) shows my inexperience... in PHP... and moodle as well.
 
-This is the Glossary module created and maintained by Williams Castillo.  
-
-It allows to create main and secondary glossaries within courses. Some of its features are:
-- Entries could be added by teachers (default) or by student (optional)
-- Entries from a secondary glossary could be exported by the teacher to the main glossary of the course.
-- The course creator could specify if a glossary should or should not allow duplicated entries.
-- You can browse entries by its first letters or all-in-one-page. 
-- YOu can search by concept (and optionally by definition).
-- 
+Basically, this module allows you to maintain a repository of data in the form of concepts, Entry->Definitions, etc. Thus:
 
+- Entries could be automatically linked from within moodle resources, labels, forum posts, etc.
+- Glossaries can be viewed in a printer-friendly version format
+- The display format of the entries is modular so you can create your own formats (and share them with the Moodle community!)
+- Entries are posted by teachers and can be posted by students as well
+- Entries can be approved before make them public.
+- Entries can have an optional attached file.
+- Entries can be commented by any registered user.
+- Entries can be categorized (one entry can belongs to zero or more categories)
+- Entries can be browsed by letters (initials), categories or by date.
 
 Quick install instructions
 
-1)  Copy the files inside lang/en (glossary.php and help/*.*) to your lang/en folder. Please, forgive my english... I tried to do my best... I'll appreciate if you send me correct translations of these files (I've also included the spanish translation as well).
-2)  Create a folder inside your moodle/mod folder and copy all other files inside it.
-3) If you are using a them that uses its own set of icons (like cordoroyblue), you will need to copy the icon.gif and export.gif into your folder of custom icons.
-4)  Visit your admin page to install the module
-5)  Enjoy it.
-
+1) Be sure you have at least Moodle 1.2 dev installed
+2) Be sure to have the latest version of the module
+3) Be sure to have the latest language for english (en) and your own language.
+3) Create a directory inside you /mod directory and name it: glossary
+4) Copy all the files in this directory inside the one you've created in step 3.
+5) Pay a visit to your admin area
+6) Have fun.
 
-Please, send me your comments and suggestions. It will help me improve this module.
+Comments and suggestions are always welcome.
 
 All the best,
-Will
+Will
\ No newline at end of file
index 7140996891b3eec60be61803d5345631ba275eb5..5e35d6c1fabd9c04628a1d497155c09a57381c90 100644 (file)
 <tr valign=top>
     <td align=right><p>students_can_post_entries:</td>
     <td>
-    <SELECT size=1 name=students_can_post_entries>
+    <SELECT size=1 name=cnfstudentcanpost>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->students_can_post_entries) {
+    if ($CFG->cnfstudentcanpost) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configstudents_can_post_entries", "glossary") ?>
+    <?php print_string("cnfstudentcanpost", "glossary") ?>
     </td>
 </tr>
 <tr valign=top>
     <td align=right><p>allow_duplicated_entries:</td>
     <td>
-    <SELECT size=1 name=allow_duplicated_entries>
+    <SELECT size=1 name=cnfallowdupentries>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->allow_duplicated_entries) {
+    if ($CFG->cnfallowdupentries) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configallow_duplicated_entries", "glossary") ?>
+    <?php print_string("cnfallowdupentries", "glossary") ?>
     </td>
 </tr>
 <tr valign=top>
     <td align=right><p>allow_comments:</td>
     <td>
-    <SELECT size=1 name=allow_comments>
+    <SELECT size=1 name=cngallowcomments>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->allow_comments) {
+    if ($CFG->cngallowcomments) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configallow_comments", "glossary") ?>
+    <?php print_string("cngallowcomments", "glossary") ?>
     </td>
 </tr>
 <tr valign=top>
     <td align=right><p>automatically_link_glossaries:</td>
     <td>
-    <SELECT size=1 name=automatically_link_glossaries>
+    <SELECT size=1 name=cnflinkglossaries>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->automatically_link_glossaries) {
+    if ($CFG->cnflinkglossaries) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configautomatically_link_glossaries", "glossary") ?>
+    <?php print_string("cnflinkglossaries", "glossary") ?>
     </td>
 </tr>
 <tr valign=top>
     <td align=right><p>default_approval_status:</td>
     <td>
-    <SELECT size=1 name=default_approval_status>
+    <SELECT size=1 name=cnfapprovalstatus>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->default_approval_status) {
+    if ($CFG->cnfapprovalstatus) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configdefault_approval_status", "glossary") ?>
+    <?php print_string("cnfapprovalstatus", "glossary") ?>
     </td>
 </tr>
 <tr valign=top>
 <tr valign=top>
     <td align=right><p>automatically_link_entry:</td>
     <td>
-    <SELECT size=1 name=automatically_link_entry>
+    <SELECT size=1 name=cnflinkentry>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->automatically_link_entry) {
+    if ($CFG->cnflinkentry) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configautomatically_link_entry", "glossary") ?>
+    <?php print_string("cnflinkentry", "glossary") ?>
     </td>
 </tr>
 <tr valign=top>
     <td align=right><p>case_sensitive:</td>
     <td>
-    <SELECT size=1 name=case_sensitive>
+    <SELECT size=1 name=cnfcasesensitive>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->case_sensitive) {
+    if ($CFG->cnfcasesensitive) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configcase_sensitive", "glossary") ?>
+    <?php print_string("cnfcasesensitive", "glossary") ?>
     </td>
 </tr>
 <tr valign=top>
     <td align=right><p>match_whole_words:</td>
     <td>
-    <SELECT size=1 name=match_whole_words>
+    <SELECT size=1 name=cnffullmatch>
 <?php 
     $yselected = "";
     $nselected = "";
-    if ($CFG->match_whole_words) {
+    if ($CFG->cnffullmatch) {
         $yselected = " SELECTED ";
     } else {
         $nselected = " SELECTED ";
     </SELECT>
     </td>
     <td>
-    <?php print_string("configmatch_whole_words", "glossary") ?>
+    <?php print_string("cnffullmatch", "glossary") ?>
     </td>
 </tr>
 <tr>
index dfcbd44518dff2d9fc43c8277f39676d7b474eea..faa4a8e4e6fe756db82d8d14e207cf9b42249486 100644 (file)
@@ -55,7 +55,7 @@ if (isset($errors)) {
         if ($newentry->usedynalink) {
             $selected = "checked";
         }
-    } elseif ( $CFG->automatically_link_entry ) {
+    } elseif ( $CFG->cnflinkentry ) {
         $selected = "checked";
     }
 ?> 
@@ -71,7 +71,7 @@ if (isset($errors)) {
           if ( $newentry->casesensitive ) {
              echo "selected";
           }
-      } elseif ( $CFG->case_sensitive ) {
+      } elseif ( $CFG->cnfcasesensitive ) {
           echo "selected";
       }
       ?> 
@@ -81,7 +81,7 @@ if (isset($errors)) {
           if ( !$newentry->casesensitive ) {
              echo "selected";
           }
-      } elseif ( !$CFG->case_sensitive ) {
+      } elseif ( !$CFG->cnfcasesensitive ) {
           echo "selected";
       }
       ?>><?php echo get_string("no") ?>
@@ -98,7 +98,7 @@ if (isset($errors)) {
           if ( $newentry->fullmatch ) {
              echo "selected";
           }
-      } elseif ( $CFG->match_whole_words ) {
+      } elseif ( $CFG->cnffullmatch ) {
           echo "selected";
       }
       ?> 
@@ -108,7 +108,7 @@ if (isset($errors)) {
           if ( !$newentry->fullmatch ) {
              echo "selected";
           }
-      } elseif ( !$CFG->match_whole_words ) {
+      } elseif ( !$CFG->cnffullmatch ) {
           echo "selected";
       }
       ?>><?php echo get_string("no") ?>
index fa297ee88800e816764f1e3f7ff3b3436e2ebe9a..89a3b58d047115c6d71053d3a5509ea3da68da5d 100644 (file)
@@ -5,19 +5,19 @@
 global $CFG;
 
 if (!isset($form->studentcanpost)) {
-    $form->studentcanpost = $CFG->students_can_post_entries;
+    $form->studentcanpost = $CFG->cnfstudentcanpost;
 }
 if (!isset($form->allowduplicatedentries)) {
-    $form->allowduplicatedentries = $CFG->allow_duplicated_entries;
+    $form->allowduplicatedentries = $CFG->cnfallowdupentries;
 }
 if (!isset($form->allowcomments)) {
-    $form->allowcomments = $CFG->allow_comments;
+    $form->allowcomments = $CFG->cngallowcomments;
 }
 if (!isset($form->usedynalink)) {
-    $form->usedynalink = $CFG->automatically_link_glossaries;
+    $form->usedynalink = $CFG->cnflinkglossaries;
 }
 if (!isset($form->defaultapproval)) {
-    $form->defaultapproval = $CFG->default_approval_status;
+    $form->defaultapproval = $CFG->cnfapprovalstatus;
 }
 if (!isset($form->mainglossary)) {
     $form->mainglossary = 0;