Skip to content

Commit d79321d

Browse files
committed
update
1 parent af67069 commit d79321d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Multilingual.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use ExternalModules\AbstractExternalModule;
55
use ExternalModules\ExternalModules;
66
use \Piping as Piping;
7+
use REDCap;
78

89
class Multilingual extends AbstractExternalModule
910
{
@@ -28,6 +29,9 @@ function redcap_data_entry_form($project_id, $record, $instrument){
2829
function redcap_every_page_top($project_id){
2930
$api_endpoint = $this->getProjectSetting('use-api-endpoint', $project_id);
3031

32+
//$user_rights = REDCap::getUserRights();
33+
//echo json_encode($user_rights);
34+
3135
if(strpos($_SERVER['REQUEST_URI'], 'online_designer.php') !== false && isset($_GET['page'])){
3236
echo '<link rel="stylesheet" type="text/css" href="' . $this->getUrl('css/multilingual.css') . '">';
3337
echo '<script type="text/javascript">' . str_replace('REDCAP_LANGUAGE_VARIABLE', $this->languageVariable($project_id), str_replace('REDCAP_AJAX_URL', $this->getUrl("index.php", true), file_get_contents($this->getModulePath() . 'js/multilingual_setup.js'))) . '</script>';

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"links": {
4242
"project": [
4343
{
44-
"name": "Data Dictionary Support",
44+
"name": "Multilingual Data Dictionary Support",
4545
"icon": "gear",
4646
"url": "dataDictionaryHelper.php"
4747
}

js/multilingual_survey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@
745745
data['project_id'] = pid;
746746
data['record_id'] = $('[name="' + table_pk + '"]').val();
747747
data['event_id'] = event_id;
748-
data['page'] = $('#surveytitle').html().replace(/ /g,'_').toLowerCase();
748+
//data['page'] = $('#surveytitle').html().replace(/ /g,'_').toLowerCase();
749749
var t;
750750
for(t in languages){
751751
if(languages[t] == lang){

0 commit comments

Comments
 (0)