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

>><br>
>> This message has been checked for viruses but the contents of an attachment<br>
>> may still contain software viruses which could damage your computer system:<br>
>> you are advised to perform your own checks. Email communications with the<br>
>> University of Nottingham may be monitored as permitted by UK legislation.<br>
><br>
> _______________________________________________<br>
> Xerte mailing list<br>
> <a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
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.<br>

<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
</blockquote></div><br></div>