[Xerte-dev] Re: Multi language wizard in XOT

Tom Reijnders reijnders at tor.nl
Mon May 28 10:24:52 BST 2012


It turns out that init IS called with flash variables as the arguments 
to init. Pat pointed me in that direction. It is right at the bottom of 
the wizard code...

That also means that there is stuff going on in init that should have 
been in a if (xerte)  block , but isn't now. I.e., mdm is used in init, 
and I think it shouldn't. I haven't changed that at the moment, because 
it seems to work now.

Tom

Op 28-5-2012 11:07, Julian Tenney schreef:
>
> 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
>
>
> This message and any attachment are intended solely for the addressee 
> and may contain confidential information. If you have received this 
> message in error, please send it back to me, and immediately delete 
> it. Please do not use, copy or disclose the information contained in 
> this message or in any attachment. Any views or opinions expressed by 
> the author of this email do not necessarily reflect the views of the 
> University of Nottingham.
>
> This message has been checked for viruses but the contents of an 
> attachment may still contain software viruses which could damage your 
> computer system: you are advised to perform your own checks. Email 
> communications with the University of Nottingham may be monitored as 
> permitted by UK legislation.
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>

-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120528/f9f4a3fe/attachment.html>


More information about the Xerte-dev mailing list