FIX: fix translations for template paths in blog

This commit is contained in:
Michal Kváček
2016-10-10 19:08:59 +02:00
parent 284dfa3fe8
commit 458d8ec61c
3 changed files with 5 additions and 3 deletions
@@ -7,5 +7,6 @@ return [
'blog' => 'Blog', 'blog' => 'Blog',
'allArticles' => 'All articles', 'allArticles' => 'All articles',
'newArticle' => 'Write new article', 'newArticle' => 'Write new article',
'editArticle' => 'Editing article' 'editArticle' => 'Editing article',
'templatePath' => 'Articles',
]; ];
@@ -2,4 +2,5 @@
return [ return [
'name' => 'Article list', 'name' => 'Article list',
'description' => 'Module for displaying list of articles on web', 'description' => 'Module for displaying list of articles on web',
'templatePath' => 'Article list',
]; ];
+2 -2
View File
@@ -76,11 +76,11 @@ class Handler implements TemplateHandler
], ],
[ [
'module' => 'ArticleList', 'module' => 'ArticleList',
'templateName' => 'articlelist::admin.templatePath' 'templateName' => 'articlelist::module.templatePath'
], ],
[ [
'module' => 'Article', 'module' => 'Article',
'templateName' => 'article::admin.templatePath' 'templateName' => 'article::module.templatePath'
], ],
]; ];
} }