Picture of Chuck Lorenz
Re: Translation and Nav-link button images
by Chuck Lorenz - Friday, 15 June 2018, 9:15 PM
 

Inspect your page's HTML tag. You may already have some classes at your disposal that you can use in your CSS. For example, this German translation has a course id (course.json) of "m05-de". It becomes a class on HTML. So this is another technique you can try in addition to the "lang" attribute (`"_defaultLanguage": "de"` in config.json) that Matt points out.

 


Picture of Aga Labrador
Re: Translation and Nav-link button images
by Aga Labrador - Monday, 25 June 2018, 5:53 AM
 

Thanks!  Adding some codes for each language did the fix.

.introSection:lang(en) {
.c_intro_p3_left .nav-link-button{
margin-top: 0;
width: 325px;
height: 256px;
background-image: url("../../course/en/images/xxx.png");
background-position: 0 0;
background-repeat: no-repeat;
background-size: 100% 100%;
background-color: transparent;
}

.c_intro_p3_right .nav-link-button{
margin-top: 0;
width: 325px;
height:256px;
background-image: url("../../course/en/images/xxx.png");
background-position: 0 0;
background-repeat: no-repeat;
background-size: 100% 100%;
background-color: transparent;

}
}
.introSection:lang(de) {
.c_intro_p3_left .nav-link-button{
margin-top: 0;
width: 325px;
height: 256px;
background-image: url("../../course/id/images/xxx.png");
background-position: 0 0;
background-repeat: no-repeat;
background-size: 100% 100%;
background-color: transparent;
}

.c_intro_p3_right .nav-link-button{
margin-top: 0;
width: 325px;
height:256px;
background-image: url("../../course/id/images/xxx.png");
background-position: 0 0;
background-repeat: no-repeat;
background-size: 100% 100%;
background-color: transparent;
}
}

 

Picture of Aga Labrador
Re: Translation and Nav-link button images
by Aga Labrador - Monday, 25 June 2018, 5:58 AM
 

Another question, can these buttons be reflected in the SCORM report?  e.g. if student chooses navlink button A, it will show up in the report that he/she clicked on it.

Picture of Matt Leathes
Re: Translation and Nav-link button images
by Matt Leathes - Monday, 25 June 2018, 9:33 AM
 

It really depends what data fields your LMS supports and what reporting capabilities it has. Most only support the bare minimum of SCORM 1.2 i.e. just bookmarking, score, and status.