From ba87fea608d48ddff09b7aa2b914e7ae217c51f6 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 10 Dec 2015 18:46:21 -0500 Subject: [PATCH] Fix lang variables on hotspot.js - refs #7705 --- main/exercice/hotspot_actionscript.as.php | 5 +++-- main/exercice/hotspot_actionscript_admin.as.php | 3 ++- main/exercice/hotspot_answers.as.php | 5 +++-- main/inc/lib/javascript/hotspot/js/hotspot.js | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/main/exercice/hotspot_actionscript.as.php b/main/exercice/hotspot_actionscript.as.php index 6c03d5e499..e95a08bcd6 100755 --- a/main/exercice/hotspot_actionscript.as.php +++ b/main/exercice/hotspot_actionscript.as.php @@ -41,7 +41,7 @@ $data['type'] = 'user'; $data['lang'] = [ 'Square' => get_lang('Square'), 'Circle' => get_lang('Circle'), - 'Poly' => get_lang('Poly'), + 'Polygon' => get_lang('Polygon'), 'HotspotStatus1' => get_lang('HotspotStatus1'), 'HotspotStatus2Polygon' => get_lang('HotspotStatus2Polygon'), 'HotspotStatus2Other' => get_lang('HotspotStatus2Other'), @@ -53,7 +53,8 @@ $data['lang'] = [ 'NextAnswer' => get_lang('NextAnswer'), 'Delineation' => get_lang('Delineation'), 'CloseDelineation' => get_lang('CloseDelineation'), - 'Oar' => get_lang('oar') + 'Oar' => get_lang('Oar'), + 'ClosePolygon' => get_lang('ClosePolygon') ]; $data['image'] = $objQuestion->selectPicturePath(); $data['image_width'] = $pictureWidth; diff --git a/main/exercice/hotspot_actionscript_admin.as.php b/main/exercice/hotspot_actionscript_admin.as.php index 30ef62b521..2e007ab8a9 100755 --- a/main/exercice/hotspot_actionscript_admin.as.php +++ b/main/exercice/hotspot_actionscript_admin.as.php @@ -38,7 +38,8 @@ $data['lang'] = [ 'NextAnswer' => get_lang('NextAnswer'), 'Delineation' => get_lang('Delineation'), 'CloseDelineation' => get_lang('CloseDelineation'), - 'Oar' => get_lang('oar') + 'Oar' => get_lang('Oar'), + 'ClosePolygon' => get_lang('ClosePolygon') ]; $data['image'] = $objQuestion->selectPicturePath(); $data['image_width'] = $pictureWidth; diff --git a/main/exercice/hotspot_answers.as.php b/main/exercice/hotspot_answers.as.php index d5661e09a6..dc7c36b540 100755 --- a/main/exercice/hotspot_answers.as.php +++ b/main/exercice/hotspot_answers.as.php @@ -42,7 +42,7 @@ $data['type'] = 'solution'; $data['lang'] = [ 'Square' => get_lang('Square'), 'Circle' => get_lang('Circle'), - 'Poly' => get_lang('Poly'), + 'Polygon' => get_lang('Polygon'), 'HotspotStatus1' => get_lang('HotspotStatus1'), 'HotspotStatus2Polygon' => get_lang('HotspotStatus2Polygon'), 'HotspotStatus2Other' => get_lang('HotspotStatus2Other'), @@ -54,7 +54,8 @@ $data['lang'] = [ 'NextAnswer' => get_lang('NextAnswer'), 'Delineation' => get_lang('Delineation'), 'CloseDelineation' => get_lang('CloseDelineation'), - 'Oar' => get_lang('oar') + 'Oar' => get_lang('Oar'), + 'ClosePolygon' => get_lang('ClosePolygon') ]; $data['image'] = $objQuestion->selectPicturePath(); $data['image_width'] = $pictureWidth; diff --git a/main/inc/lib/javascript/hotspot/js/hotspot.js b/main/inc/lib/javascript/hotspot/js/hotspot.js index 49e4ff48fe..4a83c93870 100755 --- a/main/inc/lib/javascript/hotspot/js/hotspot.js +++ b/main/inc/lib/javascript/hotspot/js/hotspot.js @@ -486,7 +486,7 @@ var HotspotQuestion = (function () { var self = this, template = '\n\
  • \n\ - ' + 'ClosePolygon' + '\n\ + ' + lang.ClosePolygon + '\n\
  • \n\ '; @@ -1373,7 +1373,7 @@ var DelineationQuestion = (function () { this.render = function () { var template = '\n\
  • \n\ - ' + 'ClosePolygon' + '\n\ + ' + lang.CloseDelineation + '\n\
  • \n\ ';