<div>Getting back on topic for a moment.<br></div><div><br></div><div>If Xerte pages are going to consider being more linquistically modifiable then as well as the language strings being exposed to an xwd driven form, it may be worthwhile also exposing in the same xwd form the width of any buttons in the model that display text. If the button's label and width properties are exposed in the wizard then anyone using a different language can adjust the width of the button to accommodate the length of the text string they wish to use.</div>
<div><br></div><div>For example according to google translate "Next" in Russian is "Следующая" which is definitely going to need a wider button!</div><div><br></div><div>Kind regards</div><div><br></div>
<div>Johnathan</div><br><div class="gmail_quote">On 3 May 2011 13:02, Kemp Johnathan <span dir="ltr"><<a href="mailto:johnathan.kemp@ntlworld.com">johnathan.kemp@ntlworld.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Recently someone posted for help in locating where some text strings were contained in pages as they wanted to convert the page for use in a language other than English.</div><div><br></div><div>Would it be a good idea to establish a standard by which all displayed text in a Xerte Page model was entered via the page's wizard?</div>
<div>Currently pages like the quiz page have embedded in the code in the .rlm file statements like </div><div>fb = 'The quiz is complete.</div><div>tooltip="Next Question"</div><div>fb += '<br><br>You scored '</div>
<div><br></div><div>If all such text was replaced with data calls to an external xml source then these strings could be readily modified using an xwd defined form. This could open up Xerte more readily for use internationally.</div>
<div><br></div><div>I have been doing some testing recently with Page Wizards and have found that I can add a language block to the xwd and xml files e.g.</div><div><br></div><div><b>xwd content</b></div><div><br>
</div><div><wizard><br><br> <!--DIALOG INTERACTION-------------------------------------------------------------------><br> <dialog hint="An interaction comprising a sequence of text-entry interactions forming a short dialog."><br>
<br> <text type="TextArea" height="100" label="Text"/><br> <attempts type="ComboBox" width="100" options="1,2,3,4" label="Attempts before hint"/><br>
<br> <narration type="media" label="Narration" optional="true"/><br><br> <newNodes><br> <dialogStep><![CDATA[<dialogStep name="question" question="Write your question here." answer="Enter Answer" hint="Enter a hint"/>]]></dialogStep><br>
</newNodes><br> <br> </dialog><br> <font color="#3366ff"><dialogLang><br> <tryAgain type="TextInput" label="Try Again Prompt"/><br> <continue type="TextInput" label="Continue Prompt"/><br>
<showAnswer type="TextInput" label="Reveal Prompt"/> <br> </dialogLang></font><br> <br> <dialogStep menuItem="Question" icon="icComment" remove="true" max="12"><br>
<br> <question type="TextArea" height="100" label="Question"/> <br> <answer type="TextInput" label="Answer"/> <br> <commentary type="TextArea" height="100" label="Commentary"/> <br>
<hint type="TextInput" label="Hint"/> <br><br> </dialogStep><br><br></wizard><br></div><div><br></div><div><b>XML content</b></div><div><br></div><div> <learningObject><br>
<font color="#3366ff"><dialogLang tryAgain="Try Again" continue="Press Enter to continue" showAnswer="The correct answer has been revealed" /></font><br> <dialog linkID="" text="Enter text for the page here" attempts="2"><br>
<dialogStep name="question" question="Write your question here. 1" answer="Enter Answer 1" hint="Enter a hint 1" /><br> <dialogStep name="question" question="Write your question here. 2" answer="Enter Answer 2" hint="Enter a hint 2" /><br>
</dialog><br> </learningObject><br></div><div><br></div><div><b>Rlm examples</b></div><div><br></div><div>The model file can then access the language strings defined in the wizard by calls to the xml data </div>
<div><br></div><div>pageIcon.templateData.learningObject[0].<font color="#3366ff">dialogLang[0].showAnswe</font>r</div><div><br></div><div>(With forthcoming changes to the Page Wizards this will soon be reduced to
pageIcon.templateData.dialogLang[0].showAnswer
)</div><div><br></div><div>I have tested this and it works.</div><div><br></div><div>
This approach has the distinct advantage of providing a separate page in the wizard form, for the language strings, thus avoiding having forms that are significantly longer than the window in which they are displayed. It also separates the display related text from the content related text.
</div><div><br></div><div>
<div>However it requires separate blocks outside of the <dialog></dialog> tags which may not prove compatible with pageTemplates. </div><div><br></div><div><b>Can anyone more aufait with pageTemplates or On-line toolkits see any problems with this approach in terms of it being transferred to pageTemplates / On-line toolkits, or can you think of a better way that would be more compatible with the way the xml and xwd data is organised in the pageTemplates environment?</b></div>
</div><div><br></div><div>As a result of other recent development work I have carried out on the Page Wizards I believe a single .rlm file that could be used both within Page Wizards and pageTemplates (and presumably therefore On-line toolkits) is now achievable. I would like therefore to consider the implementation of better support for language support in a context that considers both Page Wizards and pageTemplates based pages.</div>
<div><br></div><div>Kind regards</div><div><br></div><font color="#888888"><div>Johnathan</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>
</font></blockquote></div><br>