Multilingual questions - mkraska/meclib GitHub Wiki
[[lang code="de"]]
<details><summary><strong>Bedienungshinweise</strong></summary>
<ul>
<li>Objekte (de-)aktivieren: Doppelklick</li>
<li>Kraft/Moment</li>
<ul>
<li>erzeugen: Name (oder Ausdruck für Wert) eintragen und grauen Pfeil auf die Skizze ziehen</li>
<li>löschen: Doppelklicken</li>
<li>Name ändern: Löschen und neu erzeugen. Sorry, etwas unbequem :(</li>
<li>Position und Richtung ändern: Rote Kontrollpunkte ziehen</li>
</ul>
<li>Resultierende von Streckenlasten: Mindestens ein Kontrollpunkt muss auf der Streckenlast liegen</li>
<li>Reaktionskräfte: Anfangs- oder Endpunkt müssen auf dem Lagerpunkt liegen</li>
<li>Reaktionsmomente: Mittelpunkt muss auf dem Lager liegen</li>
</ul>
</details>
[[/lang]]
[[lang code="other"]]
<details><summary><strong>Hints for interactive input</strong></summary>
<ul>
<li>Activate/de-activate objects: double click </li>
<li>Force/moment</li>
<ul>
<li>Create: Enter name (or expression indicating the value) in the text field and then drag the gray arrow onto the sketch.</li>
<li>Delete: Double click on the arrow</li>
<li>Change name: Delete and create new with correct name. Sorry, somewhat inconvenient :(</li>
<li>Change position and direction: Drag red control points</li>
</ul>
<li>Resultants of line loads: At least one control point is on the line load area</li>
<li>Force reactions: Either of the two control points must be on the support point</li>
<li>Moment reactions: Center point must coincide with the support point.</li>
</ul>
</details>
[[/lang]]
STACK questions have an option "Decimal separator", which can be "." or ",". This value is reflected in the variable stackfltsep
and in attributes of input fields.
JSXGraph can be localized accordingly, starting with Meclib 2005 02 17.
Interactive sketches using the objects
and names
input fields take the setting from the input field attributes. If you want to use a non-default separator setting then you just need to recompile the question for use of the most recent Meclib version.
Non-interactive sketches need an injection of the stackfltsep
value. This is part of the text templates given in Meclib question setup.
If you want to enable the sync in a legacy question, then just add the following line to the STACK header in the [[JSXGraph]]
block.
var decsep = {#stackfltsep#};