MDL-21695 Glossary module now uses new help strings

AMOS BEGIN
 HLP glossary/aliases2.html,[aliases_help,mod_glossary]
 HLP glossary/allowcomments.html,[allowcomments_help,mod_glossary]
 HLP glossary/allowduplicatedentries.html,[allowduplicatedentries_help,mod_glossary]
 HLP glossary/allowprintview.html,[allowprintview_help,mod_glossary]
 HLP glossary/attachment2.html,[attachment_help,mod_glossary]
 HLP glossary/attachment.html,[attachment_help,mod_glossary]
 HLP glossary/casesensitive.html,[casesensitive_help,mod_glossary]
 HLP glossary/defaultapproval.html,[defaultapproval_help,mod_glossary]
 HLP glossary/destination.html,[destination_help,mod_glossary]
 HLP glossary/displayformat.html,[displayformat_help,mod_glossary]
 HLP glossary/editalways.html,[editalways_help,mod_glossary]
 HLP glossary/filetoimport.html,[filetoimport_help,mod_glossary]
 HLP glossary/fullmatch.html,[fullmatch_help,mod_glossary]
 HLP glossary/globalglossary.html,[isglobal_help,mod_glossary]
 HLP glossary/linkcategory.html,[linkcategory_help,mod_glossary]
 HLP glossary/mainglossary.html,[glossarytype_help,mod_glossary]
 HLP glossary/rssarticles.html,[rssarticles_help,mod_glossary]
 HLP glossary/rsstype.html,[rsstype_help,mod_glossary]
 HLP glossary/shows.html,[showspecial_help,mod_glossary]
 HLP glossary/shows.html,[showalphabet_help,mod_glossary]
 HLP glossary/shows.html,[showall_help,mod_glossary]
 HLP glossary/usedynalinkentry.html,[entryusedynalink_help,mod_glossary]
 HLP glossary/usedynalink.html,[usedynalink_help,mod_glossary]
AMOS END
This commit is contained in:
David Mudrak
2010-05-03 09:51:47 +00:00
parent 76780d8884
commit 94c8a38626
28 changed files with 24 additions and 227 deletions
-9
View File
@@ -1,9 +0,0 @@
<h1>Keywords</h1>
<p>Each entry in the glossary can have an associated list of keywords (or aliases).</p>
<p><b>Enter each alias on a new line</b> (not separated by commas).</p>
<p>The aliased words and phrases can be used as alternative ways to refer to the entry.
For example, if you are using the glossary auto-linking filter then the aliases will be used
(as well as the main name of the entry) when deciding what words to link to this entry.</p>
-2
View File
@@ -1,2 +0,0 @@
<h1>Allow comments on entries</h1>
<p>If set to Yes, all users with permission to create comments will be able to add comments to glossary entries.</p>
@@ -1,5 +0,0 @@
<h1>Allow duplicated entries</h1>
<p>If you turn this option on, then multiple entries are allowed to
use the same concept name.</p>
@@ -1,7 +0,0 @@
<h1>Allow print view</h1>
<p>Students can be allowed to use the print view of the glossary.</p>
<p>You can choose whether this feature is enabled or disabled.</p>
<p>Teachers always can use the print view.</p>
-21
View File
@@ -1,21 +0,0 @@
<h1>Attachments for entries</h1>
<p>You can optionally attach ONE file from your own computer
to any glossary entry. This file is uploaded to the
server and stored with your entry.</p>
<p>This is useful when you want to share a picture, for example,
or a Word document.</p>
<p>This file can be of any type, however it is highly recommended
that the file is named using standard 3-letter internet
suffixes such as .doc for a Word document, .jpg or .png
for an image, and so on. This will make it easier for others
to download and view your attachment in their browsers.</p>
<p>If you re-edit an entry and attach a new file, then any
previous attached files for that entry will be replaced.</p>
<p>If you re-edit an entry with an attachment and leave
this space blank, then the original attachment will be
retained.</p>
-8
View File
@@ -1,8 +0,0 @@
<h1>Case sensitive matching</h1>
<p>This setting specifies whether matching exact upper and lower case is
necessary when performing automatic linking to these entries.</p>
<p>For example, if this is turned on, then a word like "html" in a forum
posting will NOT be linked to a glossary entry called "HTML".</p>
@@ -1,4 +0,0 @@
<h1>Approved by default</h1>
<p>This setting allows the teacher to define what happens to new entries added by students. They can be
automatically made available to everyone, otherwise the teacher will have to approve each one.</p>
-4
View File
@@ -1,4 +0,0 @@
<h1>Description</h1>
<p>This field allows you to describe the purpose of the glossary, and
to possibly provide instructions or background information, links etc.</p>
-7
View File
@@ -1,7 +0,0 @@
<h1>Defining the destination of imported entries</h1>
<p>You can specify where you want to import entries to:</p>
<ul>
<li><strong>Current Glossary:</strong> Will append the imported entries to the currently open glossary.</li>
<li><strong>New Glossary:</strong> Will create a new glossary based on the information found in the selected import file and will insert the new entries into it.</li>
</ul>
-25
View File
@@ -1,25 +0,0 @@
<h1>Display format</h1>
<p>This setting specifies the way that each entry will be shown within the glossary. The default formats are:</p>
<dl class="indent">
<dt><b>Simple, dictionary style</b>:</dt>
<dd>Looks like a conventional dictionary with separate entries. No authors are displayed and attachments are shown as links.</dd>
<dt><b>Continuous without author</b>:</dt>
<dd>Shows the entries one after other without any kind of separation but the editing icons.</dd>
<dt><b>Full with author</b>:</dt>
<dd>A forum-like display format showing author's data. Attachments are shown as links.</dd>
<dt><b>Full without author</b>:</dt>
<dd>A forum-like display format that does not show author's data. Attachments are shown as links.</dd>
<dt><b>Encyclopedia</b>:</dt>
<dd>Like 'Full with author' but attached images are shown inline.</dd>
<dt><b>Entry list</b>:</dt>
<dd>This lists the concepts as links.</dd>
<dt><b>FAQ</b>:</dt>
<dd>Useful for displaying lists of Frequently Asked Questions. It automatically appends the words QUESTION and ANSWER in the concept and definition respectively.</dd>
</dl>
<hr />
<p>Moodle administrators can create new formats following the instructions in
<b>mod/glossary/formats/README.txt</b>.</p>
-13
View File
@@ -1,13 +0,0 @@
<h1>Edit always</h1>
<p>This option allows you to decide if students can edit their entries
at any time.</p>
<p>You can select:</p>
<ul>
<li><b>Yes:</b> Entries are always editable.</li>
<li><b>No:</b> Entries are editable for configured editing time.</li>
</ul>
-3
View File
@@ -1,3 +0,0 @@
<h1>File to import</h1>
<p>Select the XML file on your own computer which contains the entries to import.</p>
-6
View File
@@ -1,6 +0,0 @@
<h1>Whole words matching</h1>
<p>If automatic linking is enabled, then turning this setting on will force only
whole words to be linked.</p>
<p>For example, a glossary entry named "construct" will not create a link inside the word "constructivism".</p>
@@ -1,7 +0,0 @@
<h1>Defining a global glossary</h1>
<p>Only administrators, and other users with the capability site:doanything allowed, can define a glossary to be global.</p>
<p>Any course may contain a global glossary (but particularly the front page).</p>
<p>The difference to a normal local glossary is that the entries are used to create automatic links throughout the whole site (and not just in the same course the glossary belongs to).</p>
-5
View File
@@ -1,5 +0,0 @@
<h1>Automatically linking categories</h1>
<p>You can specify if you want the categories to be automatically linked or not.</p>
<p>Note: Categories are linked based on a case sensitive, whole match.</p>
-11
View File
@@ -1,11 +0,0 @@
<h1>Defining the main glossary of the course</h1>
<p>The glossary system allows you to export entries from any secondary glossary
to the main one of the course. In order to do this, you need to identify one
glossary as the main one.</p>
<p>Note: You can only have one main glossary per course.</p>
<p>Before Moodle 1.7, only Teachers could edit the main glossary. In Moodle
1.7 and later, if you wish to control who can edit any glossary (including
the main one) you need to use the Override roles interface.</p>
-7
View File
@@ -1,7 +0,0 @@
<p><img alt="" src="<?php echo $CFG->wwwroot?>/mod/glossary/icon.gif" />&nbsp;<b>Glossary</b></p>
<div class="indent">
<p>This activity allows participants to create and maintain a list of definitions, like a dictionary.</p>
<p>The entries can be searched or browsed in many different formats.</p>
<p>The glossary also allows teachers to export entries from one glossary to another (the main one) within the same course.</p>
<p>Finally, it is possible to automatically create links to these entries from throughout the course.</p>
</div>
-5
View File
@@ -1,5 +0,0 @@
<b>Last modified entry</b> will always display the entry that was last modified,
and <b>Random entry</b> will choose a new one at random every time. The option
<b>Next entry</b> will cycle through the entries in order. This last option is
especially useful when a number of days is also chosen, allowing you to make a
<i>Quote of the week</i> or a <i>Tip of the day</i> that everyone sees.
-8
View File
@@ -1,8 +0,0 @@
<h1>Number of RSS recent articles</h1>
<p>This option allows you to select the number of articles
to include in the RSS Feed.</p>
<p>A number between 5 and 20 would be normal for most glossaries.
Increase the number if the glossary is updated frequently.</p>
-14
View File
@@ -1,14 +0,0 @@
<h1>RSS feed for this glossary</h1>
<p>This option allows you to enable RSS feeds from this glossary.</p>
<p>You can select between two types of feeds:</p>
<ul>
<li><b>With author:</b> Generated feeds will include
the name of the author in every article.</li>
<li><b>Without author:</b> Generated feeds won't include
the name of the author in every article.</li>
</ul>
-9
View File
@@ -1,9 +0,0 @@
<h1>Browsing options in Alphabet Display</h1>
<p>You can customize the way a user can browse a glossary. Browsing and searching are always available, but you can define three more options:</p>
<p><b>SHOW SPECIAL</b> Enable or disable browsing by special characters like @, #, etc.</p>
<p><b>SHOW ALPHABET</b> Enable or disable browsing by alphabetic letters.</p>
<p><b>SHOW ALL</b> Enable or disable browsing of all entries at once.</p>
-12
View File
@@ -1,12 +0,0 @@
<h1>Enabling automatic linking in a glossary</h1>
<p>Turning this feature on will allow individual entries in this glossary to be automatically linked whenever
the concept words and phrases appear throughout the rest of the same course. This includes forum
postings, internal resources, week summaries and so on. </p>
<p>Note that enabling linking for the glossary does not automatically turn on linking for each entry -
linking needs to be set for each entry individually.</p>
<p>If you do not want particular text to be linked (in a forum posting, say) then you should add &lt;nolink&gt; and &lt;/nolink&gt; tags around the text.</p>
<p>Note that category names are also linked.</p>
@@ -1,9 +0,0 @@
<h1>Enabling automatic linking in a entry</h1>
<p>Turning this feature on will allow the entry to be automatically linked, whenever
the concept words and phrases appear throughout the rest of the same course. This includes forum
postings, internal resources, week summaries and so on. </p>
<p>If you do not want particular text to be linked (in a forum posting, say) then you should add &lt;nolink&gt; and &lt;/nolink&gt; tags around the text.</p>
<p>To be able to turn on this feature, auto linking must be enabled at glossary level.</p>
+5 -5
View File
@@ -34,10 +34,10 @@ class mod_glossary_entry_form extends moodleform {
$mform->addElement('textarea', 'aliases', get_string('aliases', 'glossary'), 'rows="2" cols="40"');
$mform->setType('aliases', PARAM_TEXT);
$mform->setHelpButton('aliases', array('aliases2', strip_tags(get_string('aliases', 'glossary')), 'glossary'));
$mform->addHelpButton('aliases', 'aliases', 'glossary');
$mform->addElement('filemanager', 'attachment_filemanager', get_string('attachment', 'glossary'), null, $attachmentoptions);
$mform->setHelpButton('attachment_filemanager', array('attachment2', get_string('attachment', 'glossary'), 'glossary'));
$mform->addHelpButton('attachment_filemanager', 'attachment', 'glossary');
if (!$glossary->usedynalink) {
$mform->addElement('hidden', 'usedynalink', $CFG->glossary_linkentries);
@@ -52,16 +52,16 @@ class mod_glossary_entry_form extends moodleform {
$mform->addElement('header', 'linkinghdr', get_string('linking', 'glossary'));
$mform->addElement('checkbox', 'usedynalink', get_string('entryusedynalink', 'glossary'));
$mform->setHelpButton('usedynalink', array('usedynalinkentry', strip_tags(get_string('usedynalink', 'glossary')), 'glossary'));
$mform->addHelpButton('usedynalink', 'entryusedynalink', 'glossary');
$mform->setDefault('usedynalink', $CFG->glossary_linkentries);
$mform->addElement('checkbox', 'casesensitive', get_string('casesensitive', 'glossary'));
$mform->setHelpButton('casesensitive', array('casesensitive', strip_tags(get_string('casesensitive', 'glossary')), 'glossary'));
$mform->addHelpButton('casesensitive', 'casesensitive', 'glossary');
$mform->disabledIf('casesensitive', 'usedynalink');
$mform->setDefault('casesensitive', $CFG->glossary_casesensitive);
$mform->addElement('checkbox', 'fullmatch', get_string('fullmatch', 'glossary'));
$mform->setHelpButton('fullmatch', array('fullmatch', strip_tags(get_string('fullmatch', 'glossary')), 'glossary'));
$mform->addHelpButton('fullmatch', 'fullmatch', 'glossary');
$mform->disabledIf('fullmatch', 'usedynalink');
$mform->setDefault('fullmatch', $CFG->glossary_fullmatch);
}
+1 -1
View File
@@ -27,7 +27,7 @@
}
?>><?php echo get_string("no") ?>
</option>
</select> <?php echo $OUTPUT->old_help_icon("linkcategory", get_string("linkcategory", "glossary"), "glossary") ?>
</select> <?php echo $OUTPUT->help_icon('linkcategory', 'glossary') ?>
</td>
</tr>
<tr>
+3 -5
View File
@@ -6,7 +6,7 @@
echo '(';
print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
echo ') ';
echo $OUTPUT->old_help_icon("filetoimport", get_string("filetoimport", "glossary"), "glossary");
echo $OUTPUT->help_icon('filetoimport', 'glossary');
?>
</b></td>
<td style="width:70%">
@@ -24,11 +24,9 @@
<td style="width:25%"><select size="1" name="dest">
<option selected="selected" value="current"><?php print_string("currentglossary","glossary") ?></option>
<option value="new"><?php print_string("newglossary","glossary") ?></option>
</select> <?php echo $OUTPUT->old_help_icon("destination", get_string("destination", "glossary"), "glossary") ?></td>
</select> <?php echo $OUTPUT->help_icon('destination', 'glossary') ?></td>
<td style="width:25%" align="right"><?php print_string("importcategories","glossary") ?>:</td>
<td style="width:25%"><input type="checkbox" name="catsincl" value="1" alt="<?php print_string("importcategories","glossary") ?>" />
<?php echo $OUTPUT->old_help_icon("importcategories", get_string("importcategories", "glossary"), "glossary") ?>
</td>
<td style="width:25%"><input type="checkbox" name="catsincl" value="1" alt="<?php print_string("importcategories","glossary") ?>" /></td>
</tr>
</table>
</td>
+1 -1
View File
@@ -37,6 +37,7 @@ $string['allowcomments'] = 'Allow comments on entries';
$string['allowcomments_help'] = 'If enabled, all participants with permission to create comments will be able to add comments to glossary entries.';
$string['allowduplicatedentries'] = 'Duplicate entries allowed';
$string['allowduplicatedentries_help'] = 'If enabled, multiple entries can have the same concept name.';
$string['allowprintview'] = 'Allow print view';
$string['allowprintview_help'] = 'If enabled, students are provided with a link to a printer-friendly version of the glossary. The link is always available to teachers.';
$string['allowratings'] = 'Allow entries to be rated?';
$string['answer'] = 'Answer';
@@ -162,7 +163,6 @@ $string['fillfields'] = 'Concept and definition are mandatory fields.';
$string['filtername'] = 'Glossary Auto-linking';
$string['fullmatch'] = 'Match whole words only';
$string['fullmatch_help'] = 'This setting specifies whether only whole words will be linked, for example, a glossary entry named "construct" will not create a link inside the word "constructivism".';
$string['globalglossary'] = 'Global glossary';
$string['glossaryadministration'] = 'Glossary Administration';
$string['glossary:approve'] = 'Approve unapproved entries';
$string['glossary:comment'] = 'Create comments';
+14 -14
View File
@@ -28,7 +28,7 @@ class mod_glossary_mod_form extends moodleform_mod {
if (has_capability('mod/glossary:manageentries', get_context_instance(CONTEXT_SYSTEM))) {
$mform->addElement('checkbox', 'globalglossary', get_string('isglobal', 'glossary'));
$mform->setHelpButton('globalglossary', array('globalglossary', get_string('globalglossary', 'glossary'), 'glossary'));
$mform->addHelpButton('globalglossary', 'isglobal', 'glossary');
}else{
$mform->addElement('hidden', 'globalglossary');
@@ -37,28 +37,28 @@ class mod_glossary_mod_form extends moodleform_mod {
$options = array(1=>get_string('mainglossary', 'glossary'), 0=>get_string('secondaryglossary', 'glossary'));
$mform->addElement('select', 'mainglossary', get_string('glossarytype', 'glossary'), $options);
$mform->setHelpButton('mainglossary', array('mainglossary', get_string('mainglossary', 'glossary'), 'glossary'));
$mform->addHelpButton('mainglossary', 'glossarytype', 'glossary');
$mform->setDefault('mainglossary', 0);
$mform->addElement('selectyesno', 'allowduplicatedentries', get_string('allowduplicatedentries', 'glossary'));
$mform->setDefault('allowduplicatedentries', $CFG->glossary_dupentries);
$mform->setHelpButton('allowduplicatedentries', array('allowduplicatedentries', get_string('allowduplicatedentries', 'glossary'), 'glossary'));
$mform->addHelpButton('allowduplicatedentries', 'allowduplicatedentries', 'glossary');
$mform->addElement('selectyesno', 'allowcomments', get_string('allowcomments', 'glossary'));
$mform->setDefault('allowcomments', $CFG->glossary_allowcomments);
$mform->setHelpButton('allowcomments', array('allowcomments', get_string('allowcomments', 'glossary'), 'glossary'));
$mform->addHelpButton('allowcomments', 'allowcomments', 'glossary');
$mform->addElement('selectyesno', 'allowprintview', get_string('allowprintview', 'glossary'));
$mform->setDefault('allowprintview', 1);
$mform->setHelpButton('allowprintview', array('allowprintview', get_string('allowprintview', 'glossary'), 'glossary'));
$mform->addHelpButton('allowprintview', 'allowprintview', 'glossary');
$mform->addElement('selectyesno', 'usedynalink', get_string('usedynalink', 'glossary'));
$mform->setDefault('usedynalink', $CFG->glossary_linkbydefault);
$mform->setHelpButton('usedynalink', array('usedynalink', get_string('usedynalink', 'glossary'), 'glossary'));
$mform->addHelpButton('usedynalink', 'usedynalink', 'glossary');
$mform->addElement('selectyesno', 'defaultapproval', get_string('defaultapproval', 'glossary'));
$mform->setDefault('defaultapproval', $CFG->glossary_defaultapproval);
$mform->setHelpButton('defaultapproval', array('defaultapproval', get_string('defaultapproval', 'glossary'), 'glossary'));
$mform->addHelpButton('defaultapproval', 'defaultapproval', 'glossary');
//get and update available formats
$recformats = glossary_get_available_formats();
@@ -73,23 +73,23 @@ class mod_glossary_mod_form extends moodleform_mod {
asort($formats);
$mform->addElement('select', 'displayformat', get_string('displayformat', 'glossary'), $formats);
$mform->setDefault('displayformat', 'dictionary');
$mform->setHelpButton('displayformat', array('displayformat', get_string('displayformat', 'glossary'), 'glossary'));
$mform->addHelpButton('displayformat', 'displayformat', 'glossary');
$mform->addElement('selectyesno', 'showspecial', get_string('showspecial', 'glossary'));
$mform->setDefault('showspecial', 1);
$mform->setHelpButton('showspecial', array('shows', get_string('showspecial', 'glossary'), 'glossary'));
$mform->addHelpButton('showspecial', 'showspecial', 'glossary');
$mform->addElement('selectyesno', 'showalphabet', get_string('showalphabet', 'glossary'));
$mform->setDefault('showalphabet', 1);
$mform->setHelpButton('showalphabet', array('shows', get_string('showalphabet', 'glossary'), 'glossary'));
$mform->addHelpButton('showalphabet', 'showalphabet', 'glossary');
$mform->addElement('selectyesno', 'showall', get_string('showall', 'glossary'));
$mform->setDefault('showall', 1);
$mform->setHelpButton('showall', array('shows', get_string('showall', 'glossary'), 'glossary'));
$mform->addHelpButton('showall', 'showall', 'glossary');
$mform->addElement('selectyesno', 'editalways', get_string('editalways', 'glossary'));
$mform->setDefault('editalways', 0);
$mform->setHelpButton('editalways', array('editalways', get_string('editalways', 'glossary'), 'glossary'));
$mform->addHelpButton('editalways', 'editalways', 'glossary');
if ($CFG->enablerssfeeds && isset($CFG->glossary_enablerssfeeds) && $CFG->glossary_enablerssfeeds) {
//-------------------------------------------------------------------------------
@@ -99,7 +99,7 @@ class mod_glossary_mod_form extends moodleform_mod {
$choices[1] = get_string('withauthor', 'glossary');
$choices[2] = get_string('withoutauthor', 'glossary');
$mform->addElement('select', 'rsstype', get_string('rsstype'), $choices);
$mform->setHelpButton('rsstype', array('rsstype', get_string('rsstype'), 'glossary'));
$mform->addHelpButton('rsstype', 'rsstype', 'glossary');
$choices = array();
$choices[0] = '0';
@@ -116,7 +116,7 @@ class mod_glossary_mod_form extends moodleform_mod {
$choices[40] = '40';
$choices[50] = '50';
$mform->addElement('select', 'rssarticles', get_string('rssarticles'), $choices);
$mform->setHelpButton('rssarticles', array('rssarticles', get_string('rssarticles'), 'glossary'));
$mform->addHelpButton('rssarticles', 'rssarticles', 'glossary');
$mform->disabledIf('rssarticles', 'rsstype', 'eq', 0);
}