Social forum

subtitles

 
Picture of Juan Antonio Muñoz Cecilia
subtitles
by Juan Antonio Muñoz Cecilia - Tuesday, 1 April 2008, 12:38 PM
 

Hi Tim.

I'm testing autoview presenter module on  moodle 1.8.3+. When I insert 2 or more subtitles autoview works nothing.

another question, exists autoview (about editor) in spanish language?

Thanks.

Picture of Tim Williams
Re: subtitles
by Tim Williams - Tuesday, 1 April 2008, 6:27 PM
 
Not sure about the subtites problem, i'll have a think about it when i get back into the office. If you can send me the .avx file used by the presentation which is causing the problem i'll have a look at it, but not till next week (i'm currently out of the office).

As for spanish translations, we don't have anything other than what is already there. This is GPL'd open source, so you are welcome to improve the translation for the delivery platform (just edit vresource/lang/es.js) and add a translation for the editor (make a copy of avedit/lang/en.js as avedit/lang/es.js and then translate the english strings. You'll need to add the extra language file into templates/autoview.xsl in order for it to become active. If you send me the translations, i'll add them to the next release. Alternatively, if you don't have the skills available to do this, you can commission us to do it for you.
Picture of Juan Antonio Muñoz Cecilia
Re: subtitles
by Juan Antonio Muñoz Cecilia - Monday, 14 April 2008, 1:04 PM
 

Hi Tim.

I send you the .avx file used on my presentation.

When  I insert 2 or more subtitules autoview works nothing. Then I've to delete this lines from .avx file to recovery the presentation:

<sublang name="es">
   <url>mucej_2-es.avs</url>
   <times>
    <index pos="0"></index>
    <index pos="1">6243</index>
   </times>
   <slidelink>
   </slidelink>
  </sublang>

By the way, I already have the Spanish translation of autoview. I have to review it again

Thanks.

Picture of Tim Williams
Re: subtitles
by Tim Williams - Thursday, 17 April 2008, 3:37 PM
 
That looks OK.

The other possibility is that accented characters are causing a problem with the subtitles. They should be escaped automatically by the code when you put them in, but this hasn't been extensively tested yet. Perhaps you could cut and paste some sample subtitles into a message for me and i'll try them out here.

Note : I'm a bit snowed under at the moment with other work, so my responses might be a bit slow.
Picture of Francesco Chiesi
Re: subtitles
by Francesco Chiesi - Friday, 18 April 2008, 11:03 AM
 
Hi,I had the same problem with the subtitles...

Try to delete only <index pos="0"></index>,its should works...
Picture of Juan Antonio Muñoz Cecilia
Re: subtitles
by Juan Antonio Muñoz Cecilia - Friday, 18 April 2008, 12:44 PM
 

Thanks francesco, now all is ok.

But I can't  delete each subtitle file for all user of moodle so I need to know where .avx file is created for repair it.

Tim, what do you think about this?

Thanks.

Picture of Tim Williams
Re: subtitles
by Tim Williams - Wednesday, 23 April 2008, 3:31 PM
 
Looks like the empty index is what is causing the problem, this is being translated into a line in the file delivered to the browser that looks like this :

subLang_en[0]=;

Which of course javascript doesn't like so the entire presentation fails.

Empty slide indexes shouldn't be getting into the stored .avx file to start with so deleting them manually from the will fix the problem. However, I need to fix the code so that empty indexes don't get stored in the first place. The time index for subtitle 0 should never be stored at all, this is always 0 so it's a bit pointless.

If I can, i'll also fix the XSL so that empty index elements are ignored, that should enable 'buggy' .avx files to be loaded without needing to manually edit them.

Watch this space....
Picture of Tim Williams
Re: subtitles
by Tim Williams - Wednesday, 23 April 2008, 6:24 PM
 
Version 2008042301 should fix this problem and compensate for any existing configurations files with empty index elements.