[Xerte] Authorware Map Icon / Language Support
Kent Chesnut
kent_chesnut at hotmail.com
Mon Oct 20 03:56:19 BST 2008
Julian,
Sorry about the this post... I found what I was doing wrong....
I needed the first line of the file to include the encoding tag (<?xml version="1.0" encoding="UTF-8" ?>)
and then needed to "save as" Encoding UTF-8.
Sorry for the inconvenience.
Have a great week,
Kent
From: kent_chesnut at hotmail.comTo: xerte at lists.nottingham.ac.ukSubject: RE: [Xerte] Authorware Map Icon / Language SupportDate: Sun, 19 Oct 2008 21:09:12 -0500
Julian, Sorry to reopen this subject... I've been trying to implement the multi-language support as you suggested. It works fine but I have 1 little hitch... Non-english letters (accented spanish characters for instance) work fine if I type them into a field or into a setText() method call. However, I lose those characters when they are read in from the xml file. I've tried adding the xml:lang="" tags... <english xml:lang="en"> <welcome>Good Morning</welcome></english><spanish xml:lang="es"> <welcome>Holá, bien venidos</welcome></spanish> ... but this didn't make a difference.Any help would be greatly appreciated. Have a great day,Kent
Subject: RE: [Xerte] Authorware Map Icon / Language SupportDate: Mon, 13 Oct 2008 10:06:44 +0100From: Julian.Tenney at nottingham.ac.ukTo: xerte at lists.nottingham.ac.uk
I had thought about providing some sort of Map icon, but not really found it necessary. It would also bring some additional complexity to the xml parser.
When pages get complicated, I use a decision icon to organise the various icons: add a page for each category of icons you want to organise, and set it to sequential, with the erase and eraseOnExit to 0 so the content remains on the screen after the decision has been looped through.
Regarding the language, here’s what I’d do. I’d also appreciate other’s views on this:
Keep all the language in an xml file:
<!—languages.xmlà
<languages>
<english>
<welcome>Good morning sir</welcome>
</english>
<french>
<welcome>Bonjour Monsiuer</welcome>
</french>
</languages>
Set the templateData property of your learning object to point to this file:
FileLocation + ‘languages.xml’
//test you can get the data
debug(templateData.languages[0].english[0].welcome);
//now you can set the language, and fish the right bit of the xml out easily:
//set the language
lan = 'english';
debug(templateData.languages[0][lan][0].welcome);
Develop that idea further and you could also find which languages were supported in your file and allow the user to select the appropriate language. All you ever have to change is the xml file. Use expressions like {templateData.languages[0][lan][0].welcome} in text icons to display the data.
HTH,
J
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Kent ChesnutSent: Saturday, October 11, 2008 9:27 PMTo: xerte at lists.nottingham.ac.ukSubject: [Xerte] Authorware Map Icon / Language Support
Hope you are having a great weekend! This is no emergency... but I have a couple of questions I'd like some input on when it's convenient... if it's not too much trouble. As an Authorware user I found myself using the Map icon to hide complexity... often attaching it to a decision, interaction, or framework icon.-> I thought this was a very useful abstraction... and thought I was missing something in Xerte... but now I think Authorware essentially forced me to use it by olny allowing 1 icon to be attached to each branch of the decision, each interactive element, or each page of the framework.-> Xerte's use of hierarchy and ability to hide sub-objects within the learning object seems to have covered the Map functionality (in an arguably more elegant and flexible fashion) and appears to have made the Map icon unnecessary. Is this true? Or am I missing something? Multi-language support in Xerte appears to be very easy... so easy, in fact, that there may be too many possible ways to accomplish it! Any thoughts on best practice for supporting multiple language training.-> I only want to code up the interactions, scripts, ... one time. Options I see (I probably don't even see the best way!)* Create separate text fields for each language. Use scripts to hide those that are not in the currently selected language.* Create only 1 set of text fields, but use setText() to change the text in the fields based on the language. Keep all the text strings in the different languages in 1 big (2 dimensional [string #][language #]) array in a script icon.* Are there better methods that either of these? If you get a few minutes to think on these things, I'd certainly appreciate any input. Have a great weekend,Kent
See how Windows connects the people, information, and fun that are part of your life. See Now
When your life is on the go—take your life with you. Try Windows Mobile® today
_________________________________________________________________
When your life is on the go—take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20081019/aa29f5be/attachment.html
More information about the Xerte
mailing list