FEATURE: add translation for static page

This commit is contained in:
Michal Kváček
2016-01-27 15:42:35 +01:00
parent 5db999e3b1
commit 19ee504075
2 changed files with 14 additions and 6 deletions
@@ -27,8 +27,6 @@ class CreateNewStaticPage extends Controller
{
$page = new Content();
// @todo add module_handler
$page->user_id = \Auth::user()->id;
$page->title = $request->title;
$page->published_from = $request->publishedFrom;
@@ -36,6 +34,7 @@ class CreateNewStaticPage extends Controller
$page->meta_keywords = $request->meta_description;
$page->meta_description = $request->meta_description;
$page->content = $request->pageContent;
$page->module_handler = config('staticpages.handler');
$page->save();
@@ -1,7 +1,16 @@
<?php
return [
'overview' => 'List of all static pages',
'new' => 'Create new static page',
'content' => 'Page content',
'save' => 'Save new page'
'overview' => 'List of all static pages',
'new' => 'Create new static page',
'content' => 'Page content',
'save' => 'Save new page',
'basicInfo' => 'Basic information',
'metaOptions' => 'Meta information',
'publicationOptions' => 'Publication setup',
'field_title' => 'Page title',
'field_url' => 'URL',
'field_meta_keywords' => 'Keywords',
'field_meta_description' => 'Page description',
'field_published_from' => 'Published from',
'field_published_to' => 'Published to'
];