Update of /cvsroot/stack/stack-1-0/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19877/doc Modified Files: Tag: frontend_dev author_answertest.php author_gettingstarted.php author_options.php author_potresp.php author_questionfields.php Log Message: Add language support to Juliette's new docs Index: author_questionfields.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/doc/Attic/author_questionfields.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** author_questionfields.php 13 Jun 2005 13:04:22 -0000 1.1.2.1 --- author_questionfields.php 14 Jun 2005 15:11:38 -0000 1.1.2.2 *************** *** 110,114 **** foreach( $stackQuestionInst as $field => $q_field) { ! echo $q_field['doc']; echo "<p>"; echo "Name of field: <font color=orange><tt>$field</tt></font>. Type of field: <font color=orange><tt>$q_field[type]</tt></font>. Required: <font color=orange><tt>$q_field[required]</tt></font>."; --- 110,116 ---- foreach( $stackQuestionInst as $field => $q_field) { ! if (array_key_exists('doc',$q_field)) { ! echo '<br />'.$q_field['doc']; ! } echo "<p>"; echo "Name of field: <font color=orange><tt>$field</tt></font>. Type of field: <font color=orange><tt>$q_field[type]</tt></font>. Required: <font color=orange><tt>$q_field[required]</tt></font>."; *************** *** 125,130 **** foreach( $stackQuestionAttempt as $field => $q_field) { ! echo "<p>Name of field: <font color=orange><tt>$field</tt></font>. Type of field: <font color=orange><tt>$q_field[type]</tt></font>. <br />"; ! echo $q_field[doc]; } --- 127,134 ---- foreach( $stackQuestionAttempt as $field => $q_field) { ! echo "<p>Name of field: <font color=orange><tt>$field</tt></font>. Type of field: <font color=orange><tt>$q_field[type]</tt></font>. <br />"; ! if (array_key_exists('doc',$q_field)) { ! echo '<br />'.$q_field['doc']; ! } } Index: author_potresp.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/doc/Attic/author_potresp.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** author_potresp.php 13 Jun 2005 13:04:22 -0000 1.1.2.1 --- author_potresp.php 14 Jun 2005 15:11:38 -0000 1.1.2.2 *************** *** 6,10 **** * @subpackage Stack */ ! ?> <h1>Help with <em>potential responses</em></h1> --- 6,10 ---- * @subpackage Stack */ ! include('en_doc.php'); ?> <h1>Help with <em>potential responses</em></h1> *************** *** 84,89 **** foreach( $stackQuestionPotResp as $field => $q_field) { ! ! echo "<h3>{$q_field['descript']}</h3> <p>Name of field: <font color=orange><tt>$field</tt></font>. Type of field: <font color=orange><tt>{$q_field['type']}</tt></font>. <br />"; echo $q_field['doc']; --- 84,89 ---- foreach( $stackQuestionPotResp as $field => $q_field) { ! $descript = get_string('stackQuestion_PR_'.$field,'stack'); ! echo "<h3>{$descript}</h3> <p>Name of field: <font color=orange><tt>$field</tt></font>. Type of field: <font color=orange><tt>{$q_field['type']}</tt></font>. <br />"; echo $q_field['doc']; Index: author_gettingstarted.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/doc/Attic/author_gettingstarted.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** author_gettingstarted.php 14 Jun 2005 14:15:07 -0000 1.1.2.2 --- author_gettingstarted.php 14 Jun 2005 15:11:38 -0000 1.1.2.3 *************** *** 26,31 **** echo "<table border='1'>\n"; foreach ($question as $key => $val) { echo "<tr>\n <td>"; ! echo "<a href=\"javascript:HelpPopup('$key','stackQuestion');\">{$stackQuestion[$key]['descript']}</a></td>\n"; echo " <td><tt>$val</tt> </td>\n</tr>\n"; } --- 26,33 ---- echo "<table border='1'>\n"; foreach ($question as $key => $val) { + $fieldname = 'stackQuestion_'.$key; + $descript = get_string($fieldname,'stack'); echo "<tr>\n <td>"; ! echo "<a href=\"javascript:HelpPopup('$key','stackQuestion');\">{$descript}</a></td>\n"; echo " <td><tt>$val</tt> </td>\n</tr>\n"; } *************** *** 44,52 **** if ('stackQuestion' == $stackhelp) { ! $descript = $stackQuestion[$command]['descript']; } else if ('stackQuestionPotResp' == $stackhelp) { ! $descript = $stackQuestionPotResp[$command]['descript']; } else if ('stackOptions' == $stackhelp) { ! $descript = $stackOptions[$command]['descript']; } --- 46,57 ---- if ('stackQuestion' == $stackhelp) { ! $fieldname = 'stackQuestion_'.$command; ! $descript = get_string($fieldname,'stack'); } else if ('stackQuestionPotResp' == $stackhelp) { ! $fieldname = 'stackQuestion_PR_'.$command; ! $descript = get_string($fieldname,'stack'); } else if ('stackOptions' == $stackhelp) { ! $fieldname = 'stackOptions_'.$command; ! $descript = get_string($fieldname,'stack'); } *************** *** 159,164 **** <?php stack_doc_dispstackqfield('questionVarsRaw'); ?> field. Please click on the link to the left to read the specific ! documentation on this field. More examples are given ! <a href="#qvars_ex">later</a>.</p> <p>To create a random question we need to modify the previous one slightly so that the fields consist of the following. --- 164,169 ---- <?php stack_doc_dispstackqfield('questionVarsRaw'); ?> field. Please click on the link to the left to read the specific ! documentation on this field. More examples are given in the documentation for ! <?php stack_doc_dispstackqfield('questionVarsRaw'); ?> <p>To create a random question we need to modify the previous one slightly so that the fields consist of the following. *************** *** 440,449 **** <?php // Examples and documentation for the Question Variables. ! $descript = $stackQuestion['questionVarsRaw']['descript']; ! echo "<h2><a name=\"qvars\">$descript</a></h2>\n"; echo $stackQuestion['questionVarsRaw']['doc']; ?> ! <h2><a name="qvars_ex">Examples</a></h2> <p>Simple assignments are of the form <tt>key = value</tt>, for --- 445,454 ---- <?php // Examples and documentation for the Question Variables. ! $descript = get_string('stackQuestion_questionVarsRaw','stack'); ! echo "<h2><a name=\"qvars_ex\">$descript: Examples</a></h2>\n"; echo $stackQuestion['questionVarsRaw']['doc']; ?> ! <p>Simple assignments are of the form <tt>key = value</tt>, for *************** *** 501,506 **** echo " <a href='$url'>functions</a>.</p> "; ?> - - - - --- 506,507 ---- Index: author_answertest.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/doc/Attic/author_answertest.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** author_answertest.php 13 Jun 2005 13:04:21 -0000 1.1.2.1 --- author_answertest.php 14 Jun 2005 15:11:38 -0000 1.1.2.2 *************** *** 7,10 **** --- 7,12 ---- */ + include('en_doc.php'); + ?> <h1>Answer test documentation</h1> Index: author_options.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/doc/Attic/author_options.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** author_options.php 13 Jun 2005 13:04:22 -0000 1.1.2.1 --- author_options.php 14 Jun 2005 15:11:38 -0000 1.1.2.2 *************** *** 7,10 **** --- 7,12 ---- */ + include('en_doc.php'); + ?> |