Commit 612c018f authored by Nigel McNie's avatar Nigel McNie
Browse files

Some i18n in blog import

parent 16877abd
......@@ -190,10 +190,9 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
if (is_null($blogid)) {
$time = time(); // TODO maybe the importer will get a time field to record time of import
$blog = new ArtefactTypeBlog();
// TODO: i18n
$title = $importer->get('xml')->xpath('//a:feed/a:title');
$blog->set('title', 'Data imported from ' . (string)$title[0]);
$blog->set('description', 'Entries imported from a LEAP export, that were not abel to be imported elsewhere');
$blog->set('title', get_string('dataimportedfrom', 'artefact.blog', (string)$title[0]));
$blog->set('description', get_string('entriesimportedfromleapexport', 'artefact.blog'));
$blog->set('owner', $importer->get('usr'));
$blog->set('ctime', $time);
$blog->set('mtime', $time);
......
......@@ -63,6 +63,7 @@ $string['commentsnotifyyes'] = 'Notify me of comments to this blog';
$string['createandpublishdesc'] = 'This will create the blog post and make it available to others.';
$string['createasdraftdesc'] = 'This will create the blog post, but it will not become available to others until you choose to publish it.';
$string['createblog'] = 'Create Blog';
$string['dataimportedfrom'] = 'Data imported from %s';
$string['delete'] = 'Delete';
$string['deleteblog?'] = 'Are you sure you want to delete this blog?';
$string['deleteblogpost?'] = 'Are you sure you want to delete this post?';
......@@ -71,6 +72,7 @@ $string['dimensions'] = 'Dimensions';
$string['draft'] = 'Draft';
$string['edit'] = 'Edit';
$string['editblogpost'] = 'Edit Blog Post';
$string['entriesimportedfromleapexport'] = 'Entries imported from a LEAP export, that were not able to be imported elsewhere';
$string['errorsavingattachments'] = 'An error occurred while saving blog post attachments';
$string['horizontalspace'] = 'Horizontal space';
$string['insert'] = 'Insert';
......
Supports Markdown
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