Commit c6f8e703 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Added js get_string language strings, and passed them correctly to the

appropriate js
parent 7f8e534d
......@@ -27,15 +27,16 @@
defined('INTERNAL') || die();
// General form strings
$string['add'] = 'Add';
$string['cancel'] = 'Cancel';
$string['delete'] = 'Delete';
$string['edit'] = 'Edit';
$string['save'] = 'Save';
$string['submit'] = 'Submit';
$string['update'] = 'Update';
$string['change'] = 'Change';
$string['go'] = 'Go';
$string['add'] = 'Add';
$string['cancel'] = 'Cancel';
$string['delete'] = 'Delete';
$string['edit'] = 'Edit';
$string['save'] = 'Save';
$string['submit'] = 'Submit';
$string['update'] = 'Update';
$string['change'] = 'Change';
$string['go'] = 'Go';
$string['loading'] = 'Loading ...';
$string['no'] = 'no';
$string['yes'] = 'yes';
......
......@@ -59,3 +59,12 @@ $string['empty_block'] = 'Select an artefact from the tree on the left to place
$string['viewinformationsaved'] = 'View information saved successfully';
$string['canteditdontown'] = 'You can\'t edit this view because you don\'t own it';
$string['chooseformat'] = 'Select how you would like to display this artefact in this block ...';
$string['format.listself'] = 'List item (you can put multiple artefacts in this block like this)';
$string['format.listchildren'] = 'List children of this artefact';
$string['format.renderfull'] = 'Display entire artefact';
$string['format.rendermetadata'] = 'Display metadata for this artefact';
......@@ -118,7 +118,21 @@ if (isset($parsed_template['css'])) {
$headers[] = '<link rel="stylesheet" type="text/css" href="' . get_config('wwwroot') . 'view/template.css.php?template=' . $data['template'] . '">';
}
$smarty = smarty(array('collapsabletree', 'move', 'tablerenderer'), $headers);
$smarty = smarty(
array('collapsabletree', 'move', 'tablerenderer'),
$headers,
array(
'view' => array(
'chooseformat',
'format.listself',
'format.listchildren',
'format.renderfull',
'format.rendermetadata',
'empty_block',
'empty_label',
),
)
);
$smarty->assign('rootinfo', $rootinfo);
$smarty->assign('plusicon', theme_get_image_path('plus.png'));
$smarty->assign('minusicon', theme_get_image_path('minus.png'));
......
......@@ -180,7 +180,21 @@ if (isset($parsed_template['css'])) {
$headers[] = '<link rel="stylesheet" type="text/css" href="' . get_config('wwwroot') . 'view/template.css.php?template=' . $data['template'] . '">';
}
$smarty = smarty(array('collapsabletree', 'move', 'tablerenderer'), $headers);
$smarty = smarty(
array('collapsabletree', 'move', 'tablerenderer'),
$headers,
array(
'view' => array(
'chooseformat',
'format.listself',
'format.listchildren',
'format.renderfull',
'format.rendermetadata',
'empty_block',
'empty_label',
),
)
);
$smarty->assign('rootinfo', $rootinfo);
$smarty->assign('plusicon', theme_get_image_path('plus.png'));
$smarty->assign('minusicon', theme_get_image_path('minus.png'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment