Skip to content

Commit bbbcef3

Browse files
committed
update
1 parent f5eb14e commit bbbcef3

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Block/Category/Category.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
66
* @Date 2016-12-20 23:13:15
77
* @Last modified by: nquangcuong
8-
* @Last Modified time: 2017-11-28 18:11:42
8+
* @Last Modified time: 2017-11-28 19:25:54
99
*/
1010

1111
namespace PHPCuong\Faq\Block\Category;
@@ -119,21 +119,21 @@ protected function _prepareLayout()
119119

120120
$faqCategory = $this->getFaqCategory();
121121

122-
$this->_faqCategoryTitle = $faqCategory['title'];
122+
$this->_faqCategoryTitle = __($faqCategory['title']);
123123

124124
$this->_faqCategoryIcon = $faqCategory['image'];
125125

126126
$breadcrumbsBlock->addCrumb(
127127
'faq.category',
128128
[
129-
'label' => $faqCategory['title'],
130-
'title' => $faqCategory['title']
129+
'label' => __($faqCategory['title']),
130+
'title' => __($faqCategory['title'])
131131
]
132132
);
133133

134-
$this->pageConfig->setKeywords($faqCategory['meta_keywords']? $faqCategory['meta_keywords'] : $faqCategory['title']);
134+
$this->pageConfig->setKeywords($faqCategory['meta_keywords']? __($faqCategory['meta_keywords']) : $this->_faqCategoryTitle);
135135

136-
$this->pageConfig->setDescription($faqCategory['meta_description']? $faqCategory['meta_description'] : $faqCategory['title']);
136+
$this->pageConfig->setDescription($faqCategory['meta_description']? __($faqCategory['meta_description']) : $this->_faqCategoryTitle);
137137

138138
return parent::_prepareLayout();
139139
}

Block/Question/Question.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
66
* @Date 2016-12-18 15:27:53
77
* @Last modified by: nquangcuong
8-
* @Last Modified time: 2017-11-28 18:09:15
8+
* @Last Modified time: 2017-11-28 19:26:53
99
*/
1010

1111
namespace PHPCuong\Faq\Block\Question;
@@ -169,15 +169,15 @@ protected function _prepareLayout()
169169
if ($identifier = $faqCategory->getCategoryIndentifier()) {
170170
$link = $this->_storeManager->getStore()->getBaseUrl().Faq::FAQ_CATEGORY_PATH.'/'.$identifier.Faq::FAQ_DOT_HTML;
171171

172-
$this->_faqCategoryTitle = '<a href="'.$link.'">'.$faqCategory->getTitle().'</a>';
172+
$this->_faqCategoryTitle = '<a href="'.$link.'">'.__($faqCategory->getTitle()).'</a>';
173173

174174
$this->_relatedQuestion = $this->_questionHelper->getRelatedQuestion($faq->getFaqId(), $faqCategory->getCategoryId());
175175

176176
$breadcrumbsBlock->addCrumb(
177177
'faq.category',
178178
[
179-
'label' => $faqCategory->getTitle(),
180-
'title' => $faqCategory->getTitle(),
179+
'label' => __($faqCategory->getTitle()),
180+
'title' => __($faqCategory->getTitle()),
181181
'link' => $link
182182
]
183183
);

Controller/Category/View.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
66
* @Date 2016-12-21 16:15:56
77
* @Last modified by: nquangcuong
8-
* @Last Modified time: 2017-01-05 09:08:38
8+
* @Last Modified time: 2017-11-28 19:30:54
99
*/
1010

1111
namespace PHPCuong\Faq\Controller\Category;
@@ -58,9 +58,9 @@ public function execute()
5858
if ($category = $this->_faqCatResourceModel->getFaqCategoryStore($id, $textSearch)) {
5959
$resultPage = $this->_resultPageFactory->create();
6060

61-
$resultPage->getConfig()->getTitle()->set(__('FAQ'));
61+
$resultPage->getConfig()->getTitle()->set(__('FAQs'));
6262

63-
$resultPage->getConfig()->getTitle()->prepend($category['title']);
63+
$resultPage->getConfig()->getTitle()->prepend(__($category['title']));
6464

6565
return $resultPage;
6666
}

0 commit comments

Comments
 (0)