Commit 3601f4f585122213ecdf22d7dff95c5b27d86e42
1 parent
d6960faf
Exists in
master
and in
3 other branches
Traduction message confirmation/erreur add/edit/delete
Showing
5 changed files
with
30 additions
and
30 deletions
Show diff stats
src/Controller/DocumentsController.php
@@ -55,10 +55,10 @@ class DocumentsController extends AppController | @@ -55,10 +55,10 @@ class DocumentsController extends AppController | ||
55 | if ($this->request->is('post')) { | 55 | if ($this->request->is('post')) { |
56 | $document = $this->Documents->patchEntity($document, $this->request->data); | 56 | $document = $this->Documents->patchEntity($document, $this->request->data); |
57 | if ($this->Documents->save($document)) { | 57 | if ($this->Documents->save($document)) { |
58 | - $this->Flash->success(__('The document has been saved.')); | 58 | + $this->Flash->success(__('Le fichier a bien été ajouté.')); |
59 | return $this->redirect(['action' => 'index']); | 59 | return $this->redirect(['action' => 'index']); |
60 | } else { | 60 | } else { |
61 | - $this->Flash->error(__('The document could not be saved. Please, try again.')); | 61 | + $this->Flash->error(__('Le fichier n\'a pas pu être ajouté.')); |
62 | } | 62 | } |
63 | } | 63 | } |
64 | $materiels = $this->Documents->Materiels->find('list', ['limit' => 200]); | 64 | $materiels = $this->Documents->Materiels->find('list', ['limit' => 200]); |
@@ -82,10 +82,10 @@ class DocumentsController extends AppController | @@ -82,10 +82,10 @@ class DocumentsController extends AppController | ||
82 | if ($this->request->is(['patch', 'post', 'put'])) { | 82 | if ($this->request->is(['patch', 'post', 'put'])) { |
83 | $document = $this->Documents->patchEntity($document, $this->request->data); | 83 | $document = $this->Documents->patchEntity($document, $this->request->data); |
84 | if ($this->Documents->save($document)) { | 84 | if ($this->Documents->save($document)) { |
85 | - $this->Flash->success(__('The document has been saved.')); | 85 | + $this->Flash->success(__('Le fichier a bien été édité.')); |
86 | return $this->redirect(['action' => 'index']); | 86 | return $this->redirect(['action' => 'index']); |
87 | } else { | 87 | } else { |
88 | - $this->Flash->error(__('The document could not be saved. Please, try again.')); | 88 | + $this->Flash->error(__('Le fichier n\'a pas pu être édité.')); |
89 | } | 89 | } |
90 | } | 90 | } |
91 | $materiels = $this->Documents->Materiels->find('list', ['limit' => 200]); | 91 | $materiels = $this->Documents->Materiels->find('list', ['limit' => 200]); |
@@ -106,9 +106,9 @@ class DocumentsController extends AppController | @@ -106,9 +106,9 @@ class DocumentsController extends AppController | ||
106 | $this->request->allowMethod(['post', 'delete']); | 106 | $this->request->allowMethod(['post', 'delete']); |
107 | $document = $this->Documents->get($id); | 107 | $document = $this->Documents->get($id); |
108 | if ($this->Documents->delete($document)) { | 108 | if ($this->Documents->delete($document)) { |
109 | - $this->Flash->success(__('The document has been deleted.')); | 109 | + $this->Flash->success(__('Le fichier a bien été supprimé.')); |
110 | } else { | 110 | } else { |
111 | - $this->Flash->error(__('The document could not be deleted. Please, try again.')); | 111 | + $this->Flash->error(__('Le fichier n\'a pas pu être supprimé.')); |
112 | } | 112 | } |
113 | return $this->redirect(['action' => 'index']); | 113 | return $this->redirect(['action' => 'index']); |
114 | } | 114 | } |
src/Controller/EmpruntsController.php
@@ -55,10 +55,10 @@ class EmpruntsController extends AppController | @@ -55,10 +55,10 @@ class EmpruntsController extends AppController | ||
55 | if ($this->request->is('post')) { | 55 | if ($this->request->is('post')) { |
56 | $emprunt = $this->Emprunts->patchEntity($emprunt, $this->request->data); | 56 | $emprunt = $this->Emprunts->patchEntity($emprunt, $this->request->data); |
57 | if ($this->Emprunts->save($emprunt)) { | 57 | if ($this->Emprunts->save($emprunt)) { |
58 | - $this->Flash->success(__('The emprunt has been saved.')); | 58 | + $this->Flash->success(__('L\'emprunt a bien été ajouté.')); |
59 | return $this->redirect(['action' => 'index']); | 59 | return $this->redirect(['action' => 'index']); |
60 | } else { | 60 | } else { |
61 | - $this->Flash->error(__('The emprunt could not be saved. Please, try again.')); | 61 | + $this->Flash->error(__('L\'emprunt n\'a pas pu être ajouté..')); |
62 | } | 62 | } |
63 | } | 63 | } |
64 | $materiels = $this->Emprunts->Materiels->find('list', ['limit' => 200]); | 64 | $materiels = $this->Emprunts->Materiels->find('list', ['limit' => 200]); |
@@ -81,10 +81,10 @@ class EmpruntsController extends AppController | @@ -81,10 +81,10 @@ class EmpruntsController extends AppController | ||
81 | if ($this->request->is(['patch', 'post', 'put'])) { | 81 | if ($this->request->is(['patch', 'post', 'put'])) { |
82 | $emprunt = $this->Emprunts->patchEntity($emprunt, $this->request->data); | 82 | $emprunt = $this->Emprunts->patchEntity($emprunt, $this->request->data); |
83 | if ($this->Emprunts->save($emprunt)) { | 83 | if ($this->Emprunts->save($emprunt)) { |
84 | - $this->Flash->success(__('The emprunt has been saved.')); | 84 | + $this->Flash->success(__('L\'emprunt a bien été édité.')); |
85 | return $this->redirect(['action' => 'index']); | 85 | return $this->redirect(['action' => 'index']); |
86 | } else { | 86 | } else { |
87 | - $this->Flash->error(__('The emprunt could not be saved. Please, try again.')); | 87 | + $this->Flash->error(__('L\'emprunt n\'a pas pu être édité.')); |
88 | } | 88 | } |
89 | } | 89 | } |
90 | $materiels = $this->Emprunts->Materiels->find('list', ['limit' => 200]); | 90 | $materiels = $this->Emprunts->Materiels->find('list', ['limit' => 200]); |
@@ -104,9 +104,9 @@ class EmpruntsController extends AppController | @@ -104,9 +104,9 @@ class EmpruntsController extends AppController | ||
104 | $this->request->allowMethod(['post', 'delete']); | 104 | $this->request->allowMethod(['post', 'delete']); |
105 | $emprunt = $this->Emprunts->get($id); | 105 | $emprunt = $this->Emprunts->get($id); |
106 | if ($this->Emprunts->delete($emprunt)) { | 106 | if ($this->Emprunts->delete($emprunt)) { |
107 | - $this->Flash->success(__('The emprunt has been deleted.')); | 107 | + $this->Flash->success(__('L\'emprunt a bien été supprimé.')); |
108 | } else { | 108 | } else { |
109 | - $this->Flash->error(__('The emprunt could not be deleted. Please, try again.')); | 109 | + $this->Flash->error(__('L\'emprunt n\'a pas pu être supprimé.')); |
110 | } | 110 | } |
111 | return $this->redirect(['action' => 'index']); | 111 | return $this->redirect(['action' => 'index']); |
112 | } | 112 | } |
src/Controller/MaterielsController.php
@@ -58,10 +58,10 @@ class MaterielsController extends AppController | @@ -58,10 +58,10 @@ class MaterielsController extends AppController | ||
58 | if ($this->request->is('post')) { | 58 | if ($this->request->is('post')) { |
59 | $materiel = $this->Materiels->patchEntity($materiel, $this->request->data); | 59 | $materiel = $this->Materiels->patchEntity($materiel, $this->request->data); |
60 | if ($this->Materiels->save($materiel)) { | 60 | if ($this->Materiels->save($materiel)) { |
61 | - $this->Flash->success(__('The materiel has been saved.')); | 61 | + $this->Flash->success(__('Le matériel a bien été ajouté.')); |
62 | return $this->redirect(['action' => 'index']); | 62 | return $this->redirect(['action' => 'index']); |
63 | } else { | 63 | } else { |
64 | - $this->Flash->error(__('The materiel could not be saved. Please, try again.')); | 64 | + $this->Flash->error(__('Le matériel n\'a pas pu être ajouté.')); |
65 | } | 65 | } |
66 | } | 66 | } |
67 | $surCategories = $this->Materiels->SurCategories->find('list', ['limit' => 200]); | 67 | $surCategories = $this->Materiels->SurCategories->find('list', ['limit' => 200]); |
@@ -90,10 +90,10 @@ class MaterielsController extends AppController | @@ -90,10 +90,10 @@ class MaterielsController extends AppController | ||
90 | if ($this->request->is(['patch', 'post', 'put'])) { | 90 | if ($this->request->is(['patch', 'post', 'put'])) { |
91 | $materiel = $this->Materiels->patchEntity($materiel, $this->request->data); | 91 | $materiel = $this->Materiels->patchEntity($materiel, $this->request->data); |
92 | if ($this->Materiels->save($materiel)) { | 92 | if ($this->Materiels->save($materiel)) { |
93 | - $this->Flash->success(__('The materiel has been saved.')); | 93 | + $this->Flash->success(__('Le matériel a bien été édité.')); |
94 | return $this->redirect(['action' => 'index']); | 94 | return $this->redirect(['action' => 'index']); |
95 | } else { | 95 | } else { |
96 | - $this->Flash->error(__('The materiel could not be saved. Please, try again.')); | 96 | + $this->Flash->error(__('Le matériel n\'a pas pu être édité.')); |
97 | } | 97 | } |
98 | } | 98 | } |
99 | $surCategories = $this->Materiels->SurCategories->find('list', ['limit' => 200]); | 99 | $surCategories = $this->Materiels->SurCategories->find('list', ['limit' => 200]); |
@@ -119,9 +119,9 @@ class MaterielsController extends AppController | @@ -119,9 +119,9 @@ class MaterielsController extends AppController | ||
119 | $this->request->allowMethod(['post', 'delete']); | 119 | $this->request->allowMethod(['post', 'delete']); |
120 | $materiel = $this->Materiels->get($id); | 120 | $materiel = $this->Materiels->get($id); |
121 | if ($this->Materiels->delete($materiel)) { | 121 | if ($this->Materiels->delete($materiel)) { |
122 | - $this->Flash->success(__('The materiel has been deleted.')); | 122 | + $this->Flash->success(__('Le matériel a bien été supprimé.')); |
123 | } else { | 123 | } else { |
124 | - $this->Flash->error(__('The materiel could not be deleted. Please, try again.')); | 124 | + $this->Flash->error(__('Le matériel n\'a pas pu être supprimé.')); |
125 | } | 125 | } |
126 | return $this->redirect(['action' => 'index']); | 126 | return $this->redirect(['action' => 'index']); |
127 | } | 127 | } |
src/Controller/SuivisController.php
@@ -55,10 +55,10 @@ class SuivisController extends AppController | @@ -55,10 +55,10 @@ class SuivisController extends AppController | ||
55 | if ($this->request->is('post')) { | 55 | if ($this->request->is('post')) { |
56 | $suivi = $this->Suivis->patchEntity($suivi, $this->request->data); | 56 | $suivi = $this->Suivis->patchEntity($suivi, $this->request->data); |
57 | if ($this->Suivis->save($suivi)) { | 57 | if ($this->Suivis->save($suivi)) { |
58 | - $this->Flash->success(__('The suivi has been saved.')); | 58 | + $this->Flash->success(__('Le suivi a bien été ajouté.')); |
59 | return $this->redirect(['action' => 'index']); | 59 | return $this->redirect(['action' => 'index']); |
60 | } else { | 60 | } else { |
61 | - $this->Flash->error(__('The suivi could not be saved. Please, try again.')); | 61 | + $this->Flash->error(__('Le suivi n\'a pas pu être ajouté.')); |
62 | } | 62 | } |
63 | } | 63 | } |
64 | $materiels = $this->Suivis->Materiels->find('list', ['limit' => 200]); | 64 | $materiels = $this->Suivis->Materiels->find('list', ['limit' => 200]); |
@@ -81,10 +81,10 @@ class SuivisController extends AppController | @@ -81,10 +81,10 @@ class SuivisController extends AppController | ||
81 | if ($this->request->is(['patch', 'post', 'put'])) { | 81 | if ($this->request->is(['patch', 'post', 'put'])) { |
82 | $suivi = $this->Suivis->patchEntity($suivi, $this->request->data); | 82 | $suivi = $this->Suivis->patchEntity($suivi, $this->request->data); |
83 | if ($this->Suivis->save($suivi)) { | 83 | if ($this->Suivis->save($suivi)) { |
84 | - $this->Flash->success(__('The suivi has been saved.')); | 84 | + $this->Flash->success(__('Le suivi a bien été édité.')); |
85 | return $this->redirect(['action' => 'index']); | 85 | return $this->redirect(['action' => 'index']); |
86 | } else { | 86 | } else { |
87 | - $this->Flash->error(__('The suivi could not be saved. Please, try again.')); | 87 | + $this->Flash->error(__('Le suivi n\'a pas pu être édité.')); |
88 | } | 88 | } |
89 | } | 89 | } |
90 | $materiels = $this->Suivis->Materiels->find('list', ['limit' => 200]); | 90 | $materiels = $this->Suivis->Materiels->find('list', ['limit' => 200]); |
@@ -104,9 +104,9 @@ class SuivisController extends AppController | @@ -104,9 +104,9 @@ class SuivisController extends AppController | ||
104 | $this->request->allowMethod(['post', 'delete']); | 104 | $this->request->allowMethod(['post', 'delete']); |
105 | $suivi = $this->Suivis->get($id); | 105 | $suivi = $this->Suivis->get($id); |
106 | if ($this->Suivis->delete($suivi)) { | 106 | if ($this->Suivis->delete($suivi)) { |
107 | - $this->Flash->success(__('The suivi has been deleted.')); | 107 | + $this->Flash->success(__('Le suivi a bien été supprimé.')); |
108 | } else { | 108 | } else { |
109 | - $this->Flash->error(__('The suivi could not be deleted. Please, try again.')); | 109 | + $this->Flash->error(__('Le suivi n\'a pas pu être supprimé.')); |
110 | } | 110 | } |
111 | return $this->redirect(['action' => 'index']); | 111 | return $this->redirect(['action' => 'index']); |
112 | } | 112 | } |
src/Controller/UsersController.php
@@ -80,13 +80,13 @@ class UsersController extends AppController | @@ -80,13 +80,13 @@ class UsersController extends AppController | ||
80 | if ($this->request->is('post')) { | 80 | if ($this->request->is('post')) { |
81 | $user = $this->Users->patchEntity($user, $this->request->data); | 81 | $user = $this->Users->patchEntity($user, $this->request->data); |
82 | if ($this->Users->save($user)) { | 82 | if ($this->Users->save($user)) { |
83 | - $this->Flash->success(__('The user has been saved.')); | 83 | + $this->Flash->success(__('L\'utilisateur a bien été ajouté.')); |
84 | return $this->redirect([ | 84 | return $this->redirect([ |
85 | 'controller' => 'Pages', | 85 | 'controller' => 'Pages', |
86 | 'action' => 'display' | 86 | 'action' => 'display' |
87 | ]); | 87 | ]); |
88 | } else { | 88 | } else { |
89 | - $this->Flash->error(__('The user could not be saved. Please, try again.')); | 89 | + $this->Flash->error(__('L\utilisateur n\'a pas pu être ajouté.')); |
90 | } | 90 | } |
91 | } | 91 | } |
92 | $groupesMetiers = $this->Users->GroupesMetiers->find('list', ['limit' => 200]); | 92 | $groupesMetiers = $this->Users->GroupesMetiers->find('list', ['limit' => 200]); |
@@ -109,10 +109,10 @@ class UsersController extends AppController | @@ -109,10 +109,10 @@ class UsersController extends AppController | ||
109 | if ($this->request->is(['patch', 'post', 'put'])) { | 109 | if ($this->request->is(['patch', 'post', 'put'])) { |
110 | $user = $this->Users->patchEntity($user, $this->request->data); | 110 | $user = $this->Users->patchEntity($user, $this->request->data); |
111 | if ($this->Users->save($user)) { | 111 | if ($this->Users->save($user)) { |
112 | - $this->Flash->success(__('The user has been saved.')); | 112 | + $this->Flash->success(__('L\utilisateur a bien été édité.')); |
113 | return $this->redirect(['action' => 'index']); | 113 | return $this->redirect(['action' => 'index']); |
114 | } else { | 114 | } else { |
115 | - $this->Flash->error(__('The user could not be saved. Please, try again.')); | 115 | + $this->Flash->error(__('L\utilisateur n\'a pas pu être édité.')); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | $groupesMetiers = $this->Users->GroupesMetiers->find('list', ['limit' => 200]); | 118 | $groupesMetiers = $this->Users->GroupesMetiers->find('list', ['limit' => 200]); |
@@ -132,9 +132,9 @@ class UsersController extends AppController | @@ -132,9 +132,9 @@ class UsersController extends AppController | ||
132 | $this->request->allowMethod(['post', 'delete']); | 132 | $this->request->allowMethod(['post', 'delete']); |
133 | $user = $this->Users->get($id); | 133 | $user = $this->Users->get($id); |
134 | if ($this->Users->delete($user)) { | 134 | if ($this->Users->delete($user)) { |
135 | - $this->Flash->success(__('The user has been deleted.')); | 135 | + $this->Flash->success(__('L\utilisateur a bien été supprimé.')); |
136 | } else { | 136 | } else { |
137 | - $this->Flash->error(__('The user could not be deleted. Please, try again.')); | 137 | + $this->Flash->error(__('L\utilisateur n\'a pas pu être supprimé.')); |
138 | } | 138 | } |
139 | return $this->redirect(['action' => 'index']); | 139 | return $this->redirect(['action' => 'index']); |
140 | } | 140 | } |