summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 17:44:02 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 17:44:02 +0200
commitafc5b4726a133139b44edecde10aa41fd7622505 (patch)
tree9dce828356199d30ba442abd85a19a15404286d4 /prolog
parent6306f811c7d8a0cd893a0ad1fbcae9e701de3c64 (diff)
Move generic hints to prolog/en.py
Diffstat (limited to 'prolog')
-rw-r--r--prolog/en.py14
-rw-r--r--prolog/problems/family_relations/sister_2/en.py13
2 files changed, 14 insertions, 13 deletions
diff --git a/prolog/en.py b/prolog/en.py
new file mode 100644
index 0000000..5fd881e
--- /dev/null
+++ b/prolog/en.py
@@ -0,0 +1,14 @@
+# coding=utf-8
+
+hint = {
+ 'no_hint': '''\
+<p>No hint available, sorry!</p>
+''',
+
+ 'syntax_error': '''\
+<p>Your code contains syntax errors! The Prolog compiler emitted the following messages:</p>
+<pre>
+[%=messages%]
+</pre>
+''',
+}
diff --git a/prolog/problems/family_relations/sister_2/en.py b/prolog/problems/family_relations/sister_2/en.py
index 629123c..6b055e8 100644
--- a/prolog/problems/family_relations/sister_2/en.py
+++ b/prolog/problems/family_relations/sister_2/en.py
@@ -19,17 +19,4 @@ following query:</p>
?- sister(sally, Y).
</pre>
''',
-
- # TODO move to generic prolog/en.py
- 'no_hint': '''\
-<p>No hint available, sorry! Try to use thinking instead.</p>
-''',
-
- # TODO move to generic prolog/en.py
- 'syntax_error': '''\
-<p>Your code contains syntactic mistakes. The Prolog compiler emitted the following messages:</p>
-<pre>
-[%=messages%]
-</pre>
-''',
}