Skip to content

Commit

Permalink
Fixed issue #15003: Panel integration not displayed in French
Browse files Browse the repository at this point in the history
Dev: CHTML::encode(json_encode(array)) …
  • Loading branch information
Shnoulle committed Jun 25, 2019
1 parent 85b4725 commit 77a079d
Showing 1 changed file with 26 additions and 24 deletions.
Expand Up @@ -10,33 +10,35 @@
// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('surveyPanelIntegration');

?>
<?php $translate = array(
'table' => array(
'idColumn' => gT('ID'),
'actionColumn' => gT('Action'),
'parameterColumn' => gT('Parameter'),
'questionColumn' => gT('Target question'),
'sidColumn' => gT('Survey id'),
'qidColumn' => gT('Question id'),
'sqidColumn' => gT('Subquestion ID'),
'addParameter' => gT('Add URL parameter'),
),
'popup' => array(
'editParam' => gT('Edit URL parameter'),
'newParam' => gT('Add URL parameter'),
'paramName' => gT('Parameter'),
'targetQuestion' => gT('Target question'),
'noTargetQuestion' => gT('(No target question)'),
'sureToDelete' => gT('Are you sure you want to delete this URL parameter?'),
'deleteCancel' => gT('No, cancel'),
'deleteConfirm' => gT('Yes, delete'),
'save' => gT('Save'),
'cancel' => gT('Cancel'),
),
);
?>
<!-- Datatable translation-data -->
<!-- Container -->
<lspanelparametertable :sid="<?php echo $surveyid; ?>" json-url="<?php echo App()->createUrl('admin/survey/sa/getUrlParamsJson', array('surveyid' => $surveyid))?>" :translate="{
table: {
idColumn : '<?php eT('ID');?>',
actionColumn : '<?php eT('Action');?>',
parameterColumn : '<?php eT('Parameter');?>',
questionColumn : '<?php eT('Target question');?>',
sidColumn : '<?php eT('Survey id');?>',
qidColumn : '<?php eT('Question id');?>',
sqidColumn : '<?php eT('Subquestion ID');?>',
addParameter : '<?php eT('Add URL parameter');?>'
},
popup: {
editParam : '<?php eT('Edit URL parameter');?>',
newParam : '<?php eT('Add URL parameter');?>',
paramName : '<?php eT('Parameter');?>',
targetQuestion : '<?php eT('Target question');?>',
noTargetQuestion : '<?php eT('(No target question)');?>',
sureToDelete : '<?php eT('Are you sure you want to delete this URL parameter?'); ?>',
deleteCancel : '<?php eT('No, cancel'); ?>',
deleteConfirm : '<?php eT('Yes, delete'); ?>',
save : '<?php eT('Save');?>',
cancel : '<?php eT('Cancel');?>'
}
}"></lspanelparametertable>
<lspanelparametertable :sid="<?php echo $surveyid; ?>" json-url="<?php echo App()->createUrl('admin/survey/sa/getUrlParamsJson', array('surveyid' => $surveyid))?>" :translate="<?php echo CHTML::encode(json_encode($translate)); ?>"></lspanelparametertable>

<?php
App()->getClientScript()->registerScript('IntegrationPanel-variables', "
Expand Down

0 comments on commit 77a079d

Please sign in to comment.