[Xerte-dev] Re: removal of language="en-GB" from first line of model files

Kemp Johnathan johnathan.kemp at ntlworld.com
Fri Jul 13 09:29:59 BST 2012


It is my understanding that the model files should not contain this line as
the same model files will be used whichever language your project is using.

When you create  a page in a pages project the languages attribute gets
written into the page when the code in the model file is used to build the
page. If you then do File / Save Model the .rlm file that you create
contains this language attribute.

If you have created the page so as to edit the pages structure, script etc.
with a view to modifying the model for that page, when you save the model
you need to remove the language attribute so that the new model file you
have created is independent of language.

Hope that clears things up :-)

Kind regards

Johnathan

On 13 July 2012 08:52, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:

> You have to do this? Or you may do this? I’m not sure what you mean?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 12 July 2012 22:48
> *To:* Xerte Developers Discussion List
> *Subject:* [Xerte-dev] removal of language="en-GB" from first line of
> model files
>
>
>
> Hi folks,
>
>
>
> Just a reminder.
>
>
>
> when updating any of the model files in xerte svn / runtime / pages /
> models
>
>
>
> During the testing and development of your update Xerte may insert the text
>
>
>
> language="en-GB" into the first line of your model e.g
>
>
>
>     <PG title="New Window" name="newWindow">
>
>
>
> will become
>
>
>
>     <PG  language="en-GB" title="New Window" name="newWindow">
>
>
>
> Typically this will happen if you create a page in a pages project using
> the page type you are modifying and then save the model after making
> changes and testing them.
>
>
>
> You need to remove the
>
>
>
> language="en-GB"
>
>
>
> text from the first line as it may compromise the use of the model in
> files developed in other languages than english.
>
>
>
> I have just corrected this in three files that have been edited recently
>
>
>
> hotspotImage.rlm
>
> list.rlm
>
> newWindow.rlm
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>  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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120713/c0534113/attachment.html>


More information about the Xerte-dev mailing list