diff options
| author | Thomas Hallgren <th-github@altocumulus.org> | 2019-05-03 14:52:28 +0200 |
|---|---|---|
| committer | Thomas Hallgren <th-github@altocumulus.org> | 2019-05-03 14:52:28 +0200 |
| commit | 61fe16739277b2374a6eefefe87801b5564da76c (patch) | |
| tree | be3240c8095156f3ff65b7c8a07625031126a023 | |
| parent | fd299251737aa67a793ca627e9f9ce61fd965270 (diff) | |
gf-tutorial: fix link to JavaScript translator demo
After fixing trivial problem in translator.html, the demo works, but
the example grammar contains only one langauge, so it is not so
interesting. translator.html is located in src/runtime/javascript.
The editor.html in the same location also works.
| -rw-r--r-- | doc/tutorial/gf-tutorial.t2t | 2 | ||||
| -rw-r--r-- | src/runtime/javascript/translator.html | 2 |
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" /> |
