changed paraschool widget

preferencesAboutTextFull
unknown 13 years ago
parent a62e63463c
commit 79588b6a1d
  1. 10
      resources/library/sankoreInteractivities/ordonner_des_images.wgt/index.html
  2. 20
      resources/library/sankoreInteractivities/ordonner_des_images.wgt/js/languages.js
  3. 19
      resources/library/sankoreInteractivities/ordonner_des_images.wgt/js/script.js
  4. 8
      resources/library/sankoreInteractivities/ordonner_des_images.wgt/js/translation/en.js
  5. 8
      resources/library/sankoreInteractivities/ordonner_des_images.wgt/js/translation/fr.js
  6. 8
      resources/library/sankoreInteractivities/ordonner_des_images.wgt/js/translation/ru.js

@ -10,6 +10,14 @@
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var lang = ""; //locale language
if(window.sankore){
lang = sankore.locale().substr(0,2);
} else
lang = "en";
$("<script type='text/javascript' src='js/translation/" + lang + ".js'>").appendTo("head");
if((typeof sankoreLang) == "undefined")
$("<script type='text/javascript' src='js/translation/en.js'>").appendTo("head");
start();
//here you can put your code
if(window.sankore)
@ -41,6 +49,6 @@
</div>
</div>
<div style="width: 100%; height: 25px;"></div>
</body>
</html>

@ -1,20 +0,0 @@
var sankoreLang = {
"en":{
"short_desc": "Place the pictures in ascending order.",
"display":"Display",
"edit":"Edit",
"add":"Add new block"
},
"ru":{
"short_desc": "Расположите картинки в порядке возрастания цифр.",
"display":"Показать",
"edit":"Изменить",
"add":"Добавить новый блок"
},
"fr":{
"short_desc": "Placez les photos dans l'ordre croissant.",
"display":"D'affichage",
"edit":"Modifier",
"add":"Ajouter nouveau bloc"
}
};

@ -1,19 +1,8 @@
var lang = ""; //locale language
//main function
function start(){
if(window.sankore){
try{
lang = sankore.locale().substr(0,2);
sankoreLang[lang].edit;
} catch(e){
lang = "en";
}
} else
lang = "en";
$("#display_text").text(sankoreLang[lang].display);
$("#edit_text").text(sankoreLang[lang].edit);
$("#display_text").text(sankoreLang.display);
$("#edit_text").text(sankoreLang.edit);
if(window.sankore){
if(sankore.preference("odr_des_imgs","")){
@ -114,7 +103,7 @@ function start(){
// }, 1);
$("<div class='add_block'>" + sankoreLang[lang].add + "</div>").appendTo("body");
$("<div class='add_block'>" + sankoreLang.add + "</div>").appendTo("body");
}
}
});
@ -251,7 +240,7 @@ function showExample(){
var imgs_container = $("<div class='imgs_cont'>").appendTo(container);
var number = $("<div class='number_cont'>1</div>").appendTo(sub_container);
var text = $("<div class='text_cont'>" + sankoreLang[lang].short_desc + "</div>").appendTo(sub_container);
var text = $("<div class='text_cont'>" + sankoreLang.short_desc + "</div>").appendTo(sub_container);
$("<input type='hidden' value='1*2*3*4*5*'/>").appendTo(imgs_container);

@ -0,0 +1,8 @@
var sankoreLang = {
short_desc: "Place the pictures in ascending order.",
display:"Display",
edit:"Edit",
add:"Add new block"
};

@ -0,0 +1,8 @@
var sankoreLang = {
short_desc: "Placez les photos dans l'ordre croissant.",
display:"D'affichage",
edit:"Modifier",
add:"Ajouter nouveau bloc"
};

@ -0,0 +1,8 @@
var sankoreLang = {
short_desc: "Расположите картинки в порядке возрастания цифр.",
display:"Показать",
edit:"Изменить",
add:"Добавить новый блок"
};
Loading…
Cancel
Save