@@ -50,11 +50,11 @@ public function add()
5050 if ($ this ->request ->is ('post ' )) {
5151 $ bakeArticle = $ this ->BakeArticles ->patchEntity ($ bakeArticle , $ this ->request ->getData ());
5252 if ($ this ->BakeArticles ->save ($ bakeArticle )) {
53- $ this ->Flash ->success (__ ( 'The bake article has been saved. ' ));
53+ $ this ->Flash ->success (__d ( ' BakeTest ' , 'The bake article has been saved. ' ));
5454
5555 return $ this ->redirect (['action ' => 'index ' ]);
5656 }
57- $ this ->Flash ->error (__ ( 'The bake article could not be saved. Please, try again. ' ));
57+ $ this ->Flash ->error (__d ( ' BakeTest ' , 'The bake article could not be saved. Please, try again. ' ));
5858 }
5959 $ bakeUsers = $ this ->BakeArticles ->BakeUsers ->find ('list ' , limit: 200 )->all ();
6060 $ bakeTags = $ this ->BakeArticles ->BakeTags ->find ('list ' , limit: 200 )->all ();
@@ -74,11 +74,11 @@ public function edit($id = null)
7474 if ($ this ->request ->is (['patch ' , 'post ' , 'put ' ])) {
7575 $ bakeArticle = $ this ->BakeArticles ->patchEntity ($ bakeArticle , $ this ->request ->getData ());
7676 if ($ this ->BakeArticles ->save ($ bakeArticle )) {
77- $ this ->Flash ->success (__ ( 'The bake article has been saved. ' ));
77+ $ this ->Flash ->success (__d ( ' BakeTest ' , 'The bake article has been saved. ' ));
7878
7979 return $ this ->redirect (['action ' => 'index ' ]);
8080 }
81- $ this ->Flash ->error (__ ( 'The bake article could not be saved. Please, try again. ' ));
81+ $ this ->Flash ->error (__d ( ' BakeTest ' , 'The bake article could not be saved. Please, try again. ' ));
8282 }
8383 $ bakeUsers = $ this ->BakeArticles ->BakeUsers ->find ('list ' , limit: 200 )->all ();
8484 $ bakeTags = $ this ->BakeArticles ->BakeTags ->find ('list ' , limit: 200 )->all ();
@@ -97,9 +97,9 @@ public function delete($id = null)
9797 $ this ->request ->allowMethod (['post ' , 'delete ' ]);
9898 $ bakeArticle = $ this ->BakeArticles ->get ($ id );
9999 if ($ this ->BakeArticles ->delete ($ bakeArticle )) {
100- $ this ->Flash ->success (__ ( 'The bake article has been deleted. ' ));
100+ $ this ->Flash ->success (__d ( ' BakeTest ' , 'The bake article has been deleted. ' ));
101101 } else {
102- $ this ->Flash ->error (__ ( 'The bake article could not be deleted. Please, try again. ' ));
102+ $ this ->Flash ->error (__d ( ' BakeTest ' , 'The bake article could not be deleted. Please, try again. ' ));
103103 }
104104
105105 return $ this ->redirect (['action ' => 'index ' ]);
0 commit comments