summaryrefslogtreecommitdiff
path: root/src/www
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-09-17 15:52:57 +0000
committerhallgren <hallgren@chalmers.se>2012-09-17 15:52:57 +0000
commitfa3c87fb64675bece8fac08de1d243ef4595bafc (patch)
tree9d23af05c5300aa53c9f93e316a6ff8a1611fe1b /src/www
parent900067b1092564d7adc10141462b65e2f1d2349e (diff)
minibar-api.html: documentation fixes
Diffstat (limited to 'src/www')
-rw-r--r--src/www/minibar/minibar-api.html22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/www/minibar/minibar-api.html b/src/www/minibar/minibar-api.html
index 36e94f8f6..a30fa2e5d 100644
--- a/src/www/minibar/minibar-api.html
+++ b/src/www/minibar/minibar-api.html
@@ -160,13 +160,14 @@ HTML file, you would normally include at least the following:
<h3>Properties and user interface</h3>
The <code>input</code> object created by the <code>Input</code> constructor
-contains two field that the caller should add to the user interface:
+contains the following fields that the caller should add to the user interface:
<ul>
<li><code>input.main</code> is the main user interface where the current
input and the refrigerator magnets are displayed.
- <li><code>input.menus</code> contains the menu for selecting input language,
- and buttons for deleting the last word, clearing the input and generating
- a random sentence (if enabled in the options)
+ <li><code>input.menus</code> contains the menu for selecting input language.
+ <li><code>input.buttons</code> contains
+ buttons for deleting the last word, clearing the input and generating
+ a random sentence (if enabled in the options).
</ul>
<h3>Methods</h3>
@@ -218,9 +219,9 @@ HTML file, you would normally include at least the following:
<h3>Properties and user interface</h3>
-The <code>translations</code> object created by the
-<code>Translations</code> constructor contains two field that the caller
-should add to the user interface:
+The <code>translations</code> object created by the <code>Translations</code>
+constructor contains the following fields that the caller should add to
+the user interface:
<ul>
<li><code>translations.main</code> is the main user interface where the current
translations are displayed.
@@ -237,15 +238,16 @@ should add to the user interface:
with the languages available in the new grammar.
<li><code>translations.clear()</code> clears the main output area from old translations.
<li><code>translations.translateFrom({from:<var>conc</var>,input:<var>string</var>})</code>
- displays translations of the string given in the <code>input</code>
- property from the concrete syntax indicated by the <code>from</code>.
+ displays translations of the text given in the <code>input</code>
+ property (as an array of words)
+ from the concrete syntax indicated by the <code>from</code>.
</ul>
<hr>
<div class=modtime>
<small class=modtime>
-HTML <!-- hhmts start -->Last modified: Mon Aug 27 16:59:41 CEST 2012 <!-- hhmts end -->
+HTML <!-- hhmts start -->Last modified: Mon Sep 17 17:52:22 CEST 2012 <!-- hhmts end -->
</small>
</div>