Subversion Repositories wimsdev

Rev

Rev 16121 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !set wims_module_error=error: $error
  2. !if $oldpenalty<$penalty
  3.   !set penaltymsg=You got a penalty for this serious error.
  4.   !set oldpenalty=$penalty
  5. !endif
  6.  
  7. <b>$wims_name_Error</b>
  8.  
  9. !set n=!wordcnt $error
  10. !if $n>1
  11.   $error
  12.   !exit
  13. !endif
  14.  
  15. !if $error iswordof bad_data bad_reply \
  16.     bad_answer bad_exo nofloat unjustified check_fail no_object\
  17.     bad_step illegal_method bad_method bad_env fixedgoal msg\
  18.     unknown_variable
  19.   !goto $error
  20. !else
  21.   !msg $error
  22.   !exit
  23. !endif
  24.  
  25. :bad_data
  26. Vous avez entré une donnée incompréhensible ou hors contexte.
  27. Erreur de frappe&nbsp;?
  28. !exit
  29.  
  30. :bad_reply
  31.  No! Your reply is wrong. Please try again.
  32. !exit
  33.  
  34. :unknown_variable
  35.  The variable <b><em>$unknown</em></b> is not defined here.
  36. !exit
  37.  
  38. :nofloat
  39.  Decimal numbers are not allowed in this exercise. Write 1/3 instead of
  40.  0.33333, and 1/4 instead of 0.25!
  41. !exit
  42.  
  43. :unjustified
  44.  Sorry, but this method does not accept your input without further
  45.  justification. You should try other means.
  46. !exit
  47.  
  48. :check_fail
  49.  Software error: please report the bug.
  50. !exit
  51.  
  52. :no_object
  53.  You have nothing at this stage to apply the method
  54.  <span class="oef_indbad">$badmeth</span>.
  55. !exit
  56.  
  57. :bad_step
  58.  You have tried to go to a non-valid step. Bad manipulation?
  59. !exit
  60.  
  61. :illegal_method
  62.  You have tried to use a non-allowed method. Attempt to cheat?
  63. !exit
  64.  
  65. :bad_method
  66.  The method does not exist. This is probably an error of the exercise.
  67.  Please contact its author in order to fix it.
  68. !exit
  69.  
  70. :bad_env
  71.  This method is incompatible with the environment of the exercise.
  72. !exit
  73.  
  74. :fixedgoal
  75.  This exercise does not allow you to modify the goal. Therefore you
  76.  cannot use this method.
  77. !exit
  78.  
  79. :msg
  80.  $msg
  81. !exit
  82.  
  83. :bad_answer
  84.  Your reply
  85. <div class="wimscenter">
  86.  <b>$bad_name</b> = <span class="tt">$bad_value</span> </div>
  87. !if unknownword iswordof $test
  88.   !set w=!word 3 of $test
  89.   is not understandable: the word
  90.   <span class="oef_indbad">$w</span>
  91.   in the answer is unrelated to this problem. Please correct.
  92.   !exit
  93. !endif
  94. !if nocompute iswordof $test
  95.   is not allowed: please carry out the computation yourself, and
  96.   submit the resulting value.
  97.   !exit
  98. !endif
  99. !if badform iswordof $test
  100.   is not written as required. Please rewrite it in the correct form.
  101.   !exit
  102. !endif
  103. !if notunit iswordof $test
  104.   is only a number: please precise the unit in your answer.
  105.   !exit
  106. !endif
  107.  is not understandable.
  108.  Please correct the error and resubmit your reply.
  109. !exit
  110.  
  111. :bad_exo
  112.  Due to an error in this exercise (the correct answer for <b>$(replyname$i)</b>
  113.  is invalid), it is impossible to test the
  114.  correctness of your answer. The only solution for you is to change the
  115.  exercise; sorry.
  116.  <p>
  117.  Please
  118. !if $email!=$empty
  119.   !mailurl $email contact the author
  120. !else
  121.   contact the author
  122. !endif
  123.  of the exercise if you want to report the error.
  124. </p>
  125. !exit
  126.