File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 5
5
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
6
6
* @Date 2016-12-20 23:13:15
7
7
* @Last modified by: nquangcuong
8
- * @Last Modified time: 2017-11-28 18:11:42
8
+ * @Last Modified time: 2017-11-28 19:25:54
9
9
*/
10
10
11
11
namespace PHPCuong \Faq \Block \Category ;
@@ -119,21 +119,21 @@ protected function _prepareLayout()
119
119
120
120
$ faqCategory = $ this ->getFaqCategory ();
121
121
122
- $ this ->_faqCategoryTitle = $ faqCategory ['title ' ];
122
+ $ this ->_faqCategoryTitle = __ ( $ faqCategory ['title ' ]) ;
123
123
124
124
$ this ->_faqCategoryIcon = $ faqCategory ['image ' ];
125
125
126
126
$ breadcrumbsBlock ->addCrumb (
127
127
'faq.category ' ,
128
128
[
129
- 'label ' => $ faqCategory ['title ' ],
130
- 'title ' => $ faqCategory ['title ' ]
129
+ 'label ' => __ ( $ faqCategory ['title ' ]) ,
130
+ 'title ' => __ ( $ faqCategory ['title ' ])
131
131
]
132
132
);
133
133
134
- $ this ->pageConfig ->setKeywords ($ faqCategory ['meta_keywords ' ]? $ faqCategory ['meta_keywords ' ] : $ faqCategory [ ' title ' ] );
134
+ $ this ->pageConfig ->setKeywords ($ faqCategory ['meta_keywords ' ]? __ ( $ faqCategory ['meta_keywords ' ]) : $ this -> _faqCategoryTitle );
135
135
136
- $ this ->pageConfig ->setDescription ($ faqCategory ['meta_description ' ]? $ faqCategory ['meta_description ' ] : $ faqCategory [ ' title ' ] );
136
+ $ this ->pageConfig ->setDescription ($ faqCategory ['meta_description ' ]? __ ( $ faqCategory ['meta_description ' ]) : $ this -> _faqCategoryTitle );
137
137
138
138
return parent ::_prepareLayout ();
139
139
}
Original file line number Diff line number Diff line change 5
5
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
6
6
* @Date 2016-12-18 15:27:53
7
7
* @Last modified by: nquangcuong
8
- * @Last Modified time: 2017-11-28 18:09:15
8
+ * @Last Modified time: 2017-11-28 19:26:53
9
9
*/
10
10
11
11
namespace PHPCuong \Faq \Block \Question ;
@@ -169,15 +169,15 @@ protected function _prepareLayout()
169
169
if ($ identifier = $ faqCategory ->getCategoryIndentifier ()) {
170
170
$ link = $ this ->_storeManager ->getStore ()->getBaseUrl ().Faq::FAQ_CATEGORY_PATH .'/ ' .$ identifier .Faq::FAQ_DOT_HTML ;
171
171
172
- $ this ->_faqCategoryTitle = '<a href=" ' .$ link .'"> ' .$ faqCategory ->getTitle ().'</a> ' ;
172
+ $ this ->_faqCategoryTitle = '<a href=" ' .$ link .'"> ' .__ ( $ faqCategory ->getTitle () ).'</a> ' ;
173
173
174
174
$ this ->_relatedQuestion = $ this ->_questionHelper ->getRelatedQuestion ($ faq ->getFaqId (), $ faqCategory ->getCategoryId ());
175
175
176
176
$ breadcrumbsBlock ->addCrumb (
177
177
'faq.category ' ,
178
178
[
179
- 'label ' => $ faqCategory ->getTitle (),
180
- 'title ' => $ faqCategory ->getTitle (),
179
+ 'label ' => __ ( $ faqCategory ->getTitle () ),
180
+ 'title ' => __ ( $ faqCategory ->getTitle () ),
181
181
'link ' => $ link
182
182
]
183
183
);
Original file line number Diff line number Diff line change 5
5
* @Author Ngo Quang Cuong <bestearnmoney87@gmail.com>
6
6
* @Date 2016-12-21 16:15:56
7
7
* @Last modified by: nquangcuong
8
- * @Last Modified time: 2017-01-05 09:08:38
8
+ * @Last Modified time: 2017-11-28 19:30:54
9
9
*/
10
10
11
11
namespace PHPCuong \Faq \Controller \Category ;
@@ -58,9 +58,9 @@ public function execute()
58
58
if ($ category = $ this ->_faqCatResourceModel ->getFaqCategoryStore ($ id , $ textSearch )) {
59
59
$ resultPage = $ this ->_resultPageFactory ->create ();
60
60
61
- $ resultPage ->getConfig ()->getTitle ()->set (__ ('FAQ ' ));
61
+ $ resultPage ->getConfig ()->getTitle ()->set (__ ('FAQs ' ));
62
62
63
- $ resultPage ->getConfig ()->getTitle ()->prepend ($ category ['title ' ]);
63
+ $ resultPage ->getConfig ()->getTitle ()->prepend (__ ( $ category ['title ' ]) );
64
64
65
65
return $ resultPage ;
66
66
}
You can’t perform that action at this time.
0 commit comments