Commit e278215a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Language changes for templates

parent 757b31d9
......@@ -236,11 +236,12 @@ $string['noaccesstoview'] = 'You do not have permission to access this view';
// Templates
$string['Template'] = 'Template';
$string['templatedescription'] = 'If you would like the people who can see your view to be able to make their own copies of it, check the Template box.';
$string['allowcopying'] = 'Allow copying';
$string['templatedescription'] = 'Check this box if you would like the people who can see your view to be able to make their own copies of it.';
$string['copiedblocksandartefactsfromtemplate'] = 'Copied %d blocks and %d artefacts from %s';
$string['filescopiedfromviewtemplate'] = 'Files copied from %s';
$string['viewfilesdirname'] = 'viewfiles';
$string['viewfilesdirdesc'] = 'Files from copied views';
$string['thisviewmaybecopied'] = 'Copying is allowed';
?>
......@@ -21,7 +21,7 @@
{if !$view.submittedto}
<a href="{$WWWROOT}view/delete.php?id={$view.id}" class="fr" id="btn-deletethisview">{str tag="deletethisview" section="view"}</a>
{/if}
<h3><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a>{if $view.template} <span class="template">({str tag=Template section=view})</span>{/if}</h3>
<h3><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a></h3>
<div class="viewitem">
{if !$view.submittedto}
<a href="{$WWWROOT}view/edit.php?id={$view.id}" id="editviewdetails">{str tag="editviewnameanddescription" section="view"}</a>
......@@ -57,6 +57,7 @@
({$accessgroup.roledisplay}){/if}{elseif $accessgroup.accesstype == 'user'}
<a href="{$WWWROOT}user/view.php?id={$accessgroup.id}">{$accessgroup.id|display_name|escape}</a>{/if}{if !$smarty.foreach.artefacts.last},{/if}
{/foreach}
{if $view.template}<br>{str tag=thisviewmaybecopied section=view}{/if}
{else}
{str tag="nobodycanseethisview" section="view"}
{/if}
......
......@@ -87,7 +87,7 @@ $form = array(
),
'template' => array(
'type' => 'checkbox',
'title' => get_string('Template', 'view'),
'title' => get_string('allowcopying', 'view'),
'description' => get_string('templatedescription', 'view'),
'defaultvalue' => $view->get('template'),
),
......
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