summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/webquiz/webquiz_templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/webquiz/webquiz_templates.py')
-rwxr-xr-xMaster/texmf-dist/scripts/webquiz/webquiz_templates.py43
1 files changed, 30 insertions, 13 deletions
diff --git a/Master/texmf-dist/scripts/webquiz/webquiz_templates.py b/Master/texmf-dist/scripts/webquiz/webquiz_templates.py
index a3c8f849945..ea86df20391 100755
--- a/Master/texmf-dist/scripts/webquiz/webquiz_templates.py
+++ b/Master/texmf-dist/scripts/webquiz/webquiz_templates.py
@@ -195,12 +195,6 @@ multiple_feedback_correct = r'''
</div>'''
multiple_feedback_answer = ' <li><em>{correct_answer}</em> {reason}</li>'
-initialise_invite = r'''WebQuiz needs to be initialised. In order to display quiz web pages
-WebQuiz needs to copy some css and javascript files into a directory
-that is accessible from your webserver.
-
-Do you want to initialise WebQuiz now [Y/n]? '''
-
# no script error when javascript is not enabled
no_script = r'''<noscript>
<div class="warning">
@@ -211,9 +205,39 @@ no_script = r'''<noscript>
</noscript>'''
######################################################################
+# missing webquiz.ini file
+######################################################################
+
+missing_webquiz_ini = r'''
+webquiz installation error: unable to find webquiz.ini -> {}
+
+If you believe that WebQuiz has been installed correctly then please try
+rebuilding the TeX filename database. On TeXLive systems this can be done
+using the command mktexlsl, or using the TeXLive gui. On MiKTEX you can
+rebuild the database from the Tasks menu on the MiKTeX console. You may
+need to run this command using an administrator account or sudo, on unix
+systems.
+
+'''
+
+######################################################################
# the remaining templates prompt the user when initialising webquiz
######################################################################
+initialise_invite = r'''WebQuiz needs to be initialised.
+
+Before WebQuiz can display quiz web pages on your system it first needs to
+copy some css and javascript files into a directory that is accessible from
+your webserver.
+
+Do you want to initialise WebQuiz now [Y/n]? '''
+
+initialise_before_settings = r'''
+Before you can view the webquiz settings you need to initialise WebQuiz
+using the command:
+ webquiz --initialise
+'''
+
initialise_introduction = r'''
WebQuiz Initialisation
======================
@@ -290,13 +314,6 @@ If you want to change the default webquiz settings please use:
webquiz --edit-settings
'''
-webquiz_url_warning = r'''
-WebQuiz has not been initialised. To remove the warning message from
-the web page please use
- webquiz --initialise
-to install the WebQuiz javascript and css files.
-'''
-
text_initialise_warning = r'''
WebQuiz has not yet been initialised. To remove this warning please use
webquiz --initialise