[Xerte] Re: Translation of LO's

Pat Lockley patrick.lockley at googlemail.com
Sat Jan 12 19:38:18 GMT 2013


Am not sure on this - I suggest starting a new thread :)

Also please share your translation :)


On Sat, Jan 12, 2013 at 7:26 PM, István Pető <ipeto77 at gmail.com> wrote:

> Finally! Wohoo! :) Thanks a lot!
> After adding $_SESSION['toolkits_language'] = "hu-HU"; to the
> _load_language_file() function of functions.php, everything seem to
> work now, both language files have been loaded.
>
> However, I have one more question: Where and should I insert the
> language variables of page types? I tried to add these lines to the
> wizard_hu-HU.xml but it didn't work:
>
>     <learningObject>
>         <newNodes>
>             <textMatch>
>                 <textMatch name="Adj címet az oldalnak!" text="Készíts
> leírást a feladathoz!" correctMessage="A helyes válaszokat
> megjelöltük" submitBtnTxt="Elküld" submitBtnTip="A válaszok elküldése"
> submitBtnWidth="80" />
>             </textMatch>
>         </newNodes>
>     </learningObject>
>
> 2013/1/12 Pat Lockley <patrick.lockley at googlemail.com>:
> > Edit config.php
> >
> > Look for a default language setting in $_SESSION
> >
> > Set that to the Hungarian / Magyar language code
> >
> > On 12 Jan 2013, at 16:44, István Pető <ipeto77 at gmail.com> wrote:
> >
> >> Uhhh... I've done some trial and error experiments with mixed results:
> >> 1. I removed all of the languages from languages/language-config.xml
> >> except Hungarian --> languages/engine_hu-HU.xml come into operation,
> >> but there's a drawback: When I create a new project the language
> >> setting is "undefined".
> >> 2. I changed the <learningObject language="en-GB" to language="hu-HU"
> >> property in USER_FILES/project_folder/data.xml and preview.xml -->
> >> languages/wizard_hu-HU.xml has started working. Well, more or less,
> >> because the dropdown menu of insert button disappeared. Actually where
> >> is this property set?
> >> 3. I changed this language property in
> >> modules/xerte/parent_templates/Notthingham/NOtthingham.rlt It seemed
> >> reasonable to generate projects with Hungarian language settings, but
> >> I it doesn't do anything.
> >>
> >> Well..... what's next? :)
> >>
> >> 2013/1/12 Dave Burnett <d_b_burnett at hotmail.com>:
> >>> No.
> >>>
> >>> The original data.xwd is a shell that wraps the pages as they get
> added.
> >>> If you copy over the top you will wipe out anything that was added.
> >>>
> >>> ________________________________
> >>> Date: Sat, 12 Jan 2013 14:58:30 +0000
> >>>
> >>> From: patrick.lockley at googlemail.com
> >>> To: xerte at lists.nottingham.ac.uk
> >>> Subject: [Xerte] Re: Translation of LO's
> >>>
> >>> or copy over the top
> >>>
> >>>
> >>> On Sat, Jan 12, 2013 at 2:55 PM, Dave Burnett <d_b_burnett at hotmail.com
> >
> >>> wrote:
> >>>
> >>> I believe the data.xwd you refer is a shell that is used as the base
> to add
> >>> pages to.
> >>>
> >>> Once you build a project, that altered base is copied to the individual
> >>> project directory.
> >>>
> >>> You would need to go on the server and edit the data.xwd for each of
> your
> >>> previous projects.
> >>>
> >>>
> >>>
> >>> ________________________________
> >>> Date: Sat, 12 Jan 2013 14:43:03 +0000
> >>> From: patrick.lockley at googlemail.com
> >>> To: xerte at lists.nottingham.ac.uk
> >>> Subject: [Xerte] Re: Translation of LO's
> >>>
> >>> I am not sure at this point as I am more on the PHP side of things
> >>>
> >>>
> >>> On Sat, Jan 12, 2013 at 2:27 PM, István Pető <ipeto77 at gmail.com>
> wrote:
> >>>
> >>> Okay, one thing seems effective: I translated a few expressions in
> >>> modules/xerte/parent_templates/Notthingham/wizards/en-GB/data.xwd and
> >>> they changed in LOs at last! But there's a problem with ti: it works
> >>> only in new LOs and I have about 30 LOs waiting for translation.
> >>>
> >>> 2013/1/12 Pat Lockley <patrick.lockley at googlemail.com>:
> >>>> Hi Istvan (sorry i can't find the a character with the accent)
> >>>>
> >>>> Copy the english file and translate that for now.
> >>>>
> >>>> That is the quickest way.
> >>>>
> >>>> Pat
> >>>>
> >>>>
> >>>> On Sat, Jan 12, 2013 at 8:39 AM, István Pető <ipeto77 at gmail.com>
> wrote:
> >>>>>
> >>>>> Dear Pat,
> >>>>>
> >>>>> thanks for your reply. But I have a possibly dumb question: How can I
> >>>>> set the default language or activate an other language?
> >>>>>
> >>>>> Regards,
> >>>>> Istvan
> >>>>>
> >>>>> 2013/1/11 Pat Lockley <patrick.lockley at googlemail.com>:
> >>>>>> Dear Istvan,
> >>>>>>
> >>>>>> Look in the folder languages in the root of the zip
> >>>>>> You should translate all of these files
> >>>>>> For the languages seen by the user, look for the xml file in
> languages
> >>>>>> and
> >>>>>> change those
> >>>>>>
> >>>>>> Hope this helps
> >>>>>>
> >>>>>> Pat
> >>>>>>
> >>>>>>
> >>>>>> On Fri, Jan 11, 2013 at 5:18 PM, István Pető <ipeto77 at gmail.com>
> wrote:
> >>>>>>>
> >>>>>>> Hi there,
> >>>>>>>
> >>>>>>> I have XOT 1.8 and have already created many LO's. They looks great
> >>>>>>> but I have to translate the language variables (e.g. Feedback,
> Submit,
> >>>>>>> Next in quiz). I found these variables at least in two files:
> >>>>>>> parent_templates/Notthingham/data.xwd and
> >>>>>>> parent_templates/Notthingham/models/quiz.rlm. I tried to translate
> >>>>>>> these phrases in both places and replaced original files but
> nothing
> >>>>>>> changed in the existing LO's.
> >>>>>>> In addition there's an If-statement in quiz.rlm for setting up the
> >>>>>>> language strings:
> >>>>>>> if (pageIcon.templateData.quiz[projPI].quesCount != undefined){
> >>>>>>>      quesCount = pageIcon.templateData.quiz[projPI].quesCount
> >>>>>>> etc. etc.
> >>>>>>> Where these language variables are supposed to be come form? What
> >>>>>>> would be the best way to translate Xerte LO's?
> >>>>>>>
> >>>>>>> Best regards,
> >>>>>>> Istvan Peto
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> Xerte mailing list
> >>>>>>> Xerte at lists.nottingham.ac.uk
> >>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>>>>>> 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 mailing list
> >>>>>> Xerte at lists.nottingham.ac.uk
> >>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>>>>
> >>>>> _______________________________________________
> >>>>> Xerte mailing list
> >>>>> Xerte at lists.nottingham.ac.uk
> >>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>>>> 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 mailing list
> >>>> Xerte at lists.nottingham.ac.uk
> >>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>>
> >>> _______________________________________________
> >>> Xerte mailing list
> >>> Xerte at lists.nottingham.ac.uk
> >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>> 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 mailing list
> >>> Xerte at lists.nottingham.ac.uk
> >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Xerte mailing list
> >>> Xerte at lists.nottingham.ac.uk
> >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>>
> >>>
> >>>
> >>> _______________________________________________ Xerte mailing list
> >>> Xerte at lists.nottingham.ac.uk
> >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Xerte mailing list
> >>> Xerte at lists.nottingham.ac.uk
> >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>
> >> _______________________________________________
> >> Xerte mailing list
> >> Xerte at lists.nottingham.ac.uk
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >> 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 mailing list
> > Xerte at lists.nottingham.ac.uk
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> 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/attachments/20130112/6739fd05/attachment-0001.html>


More information about the Xerte mailing list