Commit 7ebd97c4 authored by Nigel McNie's avatar Nigel McNie
Browse files

Translate the 'preview' string when viewing image artefacts. Made sure the...

Translate the 'preview' string when viewing image artefacts. Made sure the internal artefact plugin has it's own copies of the necessary strings too.
parent abec3444
......@@ -76,6 +76,7 @@ $string['nofilesfound'] = 'No files found';
$string['overwrite'] = 'Overwrite';
$string['Owner'] = 'Owner';
$string['parentfolder'] = 'Parent folder';
$string['Preview'] = 'Preview';
$string['savechanges'] = 'Save changes';
$string['Size'] = 'Size';
$string['title'] = 'Name';
......
......@@ -941,7 +941,7 @@ class ArtefactTypeImage extends ArtefactTypeFile {
public function render_self($options) {
$result = parent::render_self($options);
$result['html'] = '<div class="fr filedata-icon" style="text-align: center;"><h4>Preview</h4><img src="'
$result['html'] = '<div class="fr filedata-icon" style="text-align: center;"><h4>' . get_string('Preview', 'artefact.file') . '</h4><img src="'
. hsc(get_config('wwwroot') . 'artefact/file/download.php?file=' . $this->id . '&view=' . $options['viewid'] . '&maxwidth=400')
. '" alt=""></div>' . $result['html'];
return $result;
......
......@@ -111,4 +111,13 @@ $string['uploadprofileicon'] = 'Upload Profile Icon';
$string['profileiconsiconsizenotice'] = 'You may upload up to <strong>five</strong> profile icons here, and choose one to be displayed as your default icon at any one time. Your icons must be between 16x16 and %sx%s pixels';
$string['Title'] = 'Title';
$string['Created'] = 'Created';
$string['Description'] = 'Description';
$string['Download'] = 'Download';
$string['lastmodified'] = 'Last Modified';
$string['Owner'] = 'Owner';
$string['Preview'] = 'Preview';
$string['Size'] = 'Size';
$string['Type'] = 'Type';
?>
<div class="fr filedata-icon" style="text-align: center;">
<h4>Preview</h4>
<h4>{str tag=Preview section=artefact.internal}</h4>
<img src="{$previewpath|escape}" alt="">
</div>
<div>
......@@ -8,11 +8,11 @@
</div>
<table class="filedata">
<tr><th>{str tag=type}:</th><td>{str tag=$artefacttype section=artefact.internal}</td></tr>
<tr><th>{str tag=description}:</th><td>{$description|escape}</td></tr>
<tr><th>{str tag=owner}:</th><td>{$owner}</td></tr>
<tr><th>{str tag=created}:</th><td>{$created}</td></tr>
<tr><th>{str tag=lastmodified}:</th><td>{$modified}</td></tr>
<tr><th>{str tag=size}:</th><td>{$size|escape}</td></tr>
<tr><th>{str tag=download}:</th><td><a href="{$downloadpath|escape}">{str tag=download}</a></td></tr>
<tr><th>{str tag=Type section=artefact.internal}:</th><td>{str tag=$artefacttype section=artefact.internal}</td></tr>
<tr><th>{str tag=Description section=artefact.internal}:</th><td>{$description|escape}</td></tr>
<tr><th>{str tag=Owner section=artefact.internal}:</th><td>{$owner}</td></tr>
<tr><th>{str tag=Created section=artefact.internal}:</th><td>{$created}</td></tr>
<tr><th>{str tag=lastmodified section=artefact.internal}:</th><td>{$modified}</td></tr>
<tr><th>{str tag=Size section=artefact.internal}:</th><td>{$size|escape}</td></tr>
<tr><th>{str tag=Download section=artefact.internal}:</th><td><a href="{$downloadpath|escape}">{str tag=Download section=artefact.internal}</a></td></tr>
</table>
......@@ -839,7 +839,6 @@ $string['country.zw'] = 'Zimbabwe';
// general stuff that doesn't really fit anywhere else
$string['system'] = 'System';
$string['preview'] = 'Preview';
$string['done'] = 'Done';
$string['back'] = 'Back';
......
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