Fix lang variables on hotspot.js - refs #7705

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 267be87001
commit ba87fea608
  1. 5
      main/exercice/hotspot_actionscript.as.php
  2. 3
      main/exercice/hotspot_actionscript_admin.as.php
  3. 5
      main/exercice/hotspot_answers.as.php
  4. 4
      main/inc/lib/javascript/hotspot/js/hotspot.js

@ -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;

@ -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;

@ -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;

@ -486,7 +486,7 @@ var HotspotQuestion = (function () {
var self = this,
template = '\n\
<li>\n\
<a href="#">' + 'ClosePolygon' + '</a>\n\
<a href="#">' + lang.ClosePolygon + '</a>\n\
</li>\n\
';
@ -1373,7 +1373,7 @@ var DelineationQuestion = (function () {
this.render = function () {
var template = '\n\
<li>\n\
<a href="#">' + 'ClosePolygon' + '</a>\n\
<a href="#">' + lang.CloseDelineation + '</a>\n\
</li>\n\
';

Loading…
Cancel
Save