summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/tutorial/gf-tutorial.t2t2
-rw-r--r--src/runtime/javascript/translator.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial/gf-tutorial.t2t b/doc/tutorial/gf-tutorial.t2t
index 4a6ce47ca..4cfae1d65 100644
--- a/doc/tutorial/gf-tutorial.t2t
+++ b/doc/tutorial/gf-tutorial.t2t
@@ -4968,7 +4968,7 @@ some other JavaScript and HTML files; these files can be used
as templates for building applications.
An example of usage is
-[``translator.html`` http://grammaticalframework.org:41296],
+[``translator.html`` ../../src/runtime/javascript/translator.html],
which is in fact initialized with
a pointer to the Food grammar, so that it provides translation between the English
and Italian grammars:
diff --git a/src/runtime/javascript/translator.html b/src/runtime/javascript/translator.html
index d6b4ee3c1..b2c926550 100644
--- a/src/runtime/javascript/translator.html
+++ b/src/runtime/javascript/translator.html
@@ -32,7 +32,7 @@
</script>
<title>Web-based GF Translator</title>
</head>
- <body onload="populateLangs(Food, 'fromLang', 'toLang')">
+ <body onload="populateLangs(grammar, 'fromLang', 'toLang')">
<form id="translate">
<p>
<input type="text" name="inputText" id="inputText" value="this cheese is warm" size="50" />