[Xerte-dev] Re: Multi language wizard in XOT
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon May 28 10:07:38 BST 2012
That's right, nothing will call init in XOT, so set a flashVar. Right at the top of the file is this, so you can set your translation stuff up in the else...
if (mdm != undefined){
xerte = true;
mdm.enableexithandler();
btnSave.label = 'Save';
btnSave.icon = 'icSave';
} else {
//THIS MUST BE XOT SO DO YOUR STUFF HERE...
xerte = false;
//local connections for drawing tools
editRec = new LocalConnection();
editRec.getData = function(){
var drawingData = tree.selectedNode.firstChild.nodeValue;
editSend.send("drawRec", "initDrawing", drawingData, _root.rlovariable, 'web' );
}
editRec.setDrawingData = function(xml){
setDrawingData(xml);
}
editRec.connect("editRec");
editSend = new LocalConnection();
btnSave.label = 'Publish';
btnSave.icon = 'icWorld';
}
-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 26 May 2012 12:09
To: For Xerte technical developers
Subject: [Xerte-dev] Multi language wizard in XOT
The multilanguage wizard is ready for Xerte Standalone, but I need to
figure out how to make it work in XOT.
In Xerte the current language choice is given to the wizard with a call
of the editor to init, but XOT does never call init.
So I assume I have to set a flashvar and make sure that somewhere the
labels are set correctly (also only done in init at the moment, but that
is not good enough for XOT).
Julian, am I right that not calling init is the reason the wizard is not
working in XOT like I expect?
--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120528/e60ee6a6/attachment.html>
More information about the Xerte-dev
mailing list