diff options
author | Bryan Berry <bryan@olenepal.org> | 2010-03-13 11:39:08 (GMT) |
---|---|---|
committer | Bryan Berry <bryan@olenepal.org> | 2010-03-13 11:39:08 (GMT) |
commit | 5d49100db1ac204c8c1c2c6d32e707a57945d55e (patch) | |
tree | d2c096cf5df1cead0b9c0dfcf8f6af57cbe7cd89 /lessons/2_English_animalIdentification/js/lesson.js | |
parent | 83d9cd19b4e4d4bfbe5567ec72fed1bf866feb0f (diff) |
basic i18n for text worksi18n
Diffstat (limited to 'lessons/2_English_animalIdentification/js/lesson.js')
-rwxr-xr-x | lessons/2_English_animalIdentification/js/lesson.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lessons/2_English_animalIdentification/js/lesson.js b/lessons/2_English_animalIdentification/js/lesson.js index f932b4c..9585211 100755 --- a/lessons/2_English_animalIdentification/js/lesson.js +++ b/lessons/2_English_animalIdentification/js/lesson.js @@ -7,7 +7,7 @@ $(document).ready( audio: [{'name':'correct','file':'correct.ogg'}, {'name':'incorrect','file':'incorrect.ogg'} ], - image: [{'name': 'bear', 'file': 'bear.png'}, + image: [{name: 'bear', file: 'bear.png'}, {name : 'goat', file: 'goat.png'}, {name: 'tiger', file: 'tiger.png'}, {name: 'elephant', file: 'elephant.png'}, @@ -44,7 +44,13 @@ $(document).ready( var $img = $('#imgObject'); var $options = $('.option'); - + $.i18n.gettext("bear"); + $.i18n.gettext("goat"); + $.i18n.gettext("tiger"); + $.i18n.gettext("elephant"); + $.i18n.gettext("horse"); + $.i18n.gettext("cow"); + var populateListNames = function() { var i = 0; $.each(k.image, function (img){ @@ -119,7 +125,7 @@ $(document).ready( correctIndex = pickCorrect(); for (var i = 0; i < 4; i++){ - $($options[i]).text(k.image[names[i]].name); + $($options[i]).text($.i18n.gettext(k.image[names[i]].name)); } $img.attr('src', k.image[names[correctIndex]].src) |