Picture of Lars Halkjær
A couple of Arabic translation issues
by Lars Halkjær - Sunday, 7 May 2017, 2:36 PM
 

We are in the process of making an English/Arabic version of an Adapt course, and there are at the moment two issues we have encountered:

  • In the Accordion component, the item title text seems to be left-adjusted (the text inside the item is right adjusted). We have fixed it with this custom css:
        .accordion-item-title {
            .dir-rtl & {
                text-align: right;
            }
        }
  • We have vidoes which in the English version has English subtitles, and in the Arabic version has Arabic subtitles, but it seems that when you change the languge (with the Language Picker), the default subtitle is selected by using the start language of the course (which is still English).
    This means that when you change to the Arabic version the selected subtitle is "none" (English subtitle is not present) and you have to select Arabic subtitle manually using the CC button).
Picture of Matt Leathes
Re: A couple of Arabic translation issues
by Matt Leathes - Tuesday, 9 May 2017, 9:09 AM
 
the default subtitle is selected by using the start language of the course

It isn't - the default subtitle language for the video component is set on the instances of the video component via the _startLanguage property in components.json.

https://github.com/adaptlearning/adapt-contrib-media/blob/master/example.json#L14

Picture of Lars Halkjær
Re: A couple of Arabic translation issues
by Lars Halkjær - Wednesday, 10 May 2017, 3:02 PM
 

Hi Matt

Thank you for the info - seems I was fooled by the similar names while debugging.

Problem solved!