Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-volkov committed Jul 8, 2020
2 parents 3823349 + 8fbd428 commit 0ee9aa4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
8 changes: 7 additions & 1 deletion data/translation/Zed/de_DE.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Action,Aktion
"Assigned groups","Zugewiesene Gruppen"
"Assigned Roles","Zugewiesene Rollen"
"Assigned Rules","Zugeordnete Regeln"
Bundle,Bundle
Bundle,Bündel
Controller,Controller
"Could not modify root role node!","Knotenpunkt kann nicht geändert werden"
Create,Erstellen
Expand Down Expand Up @@ -54,3 +54,9 @@ Save,Speichern
"User was updated successfully.","Nutzer wurde erfolgreich aktualisiert."
Users,Nutzer
"Users Control",User-Verwaltung
Groups,Gruppen
allow,zulassen
deny,verweigern
"Edit Role","Rolle bearbeiten"
"Created At","Erstellt am"
"Create new Group","Neue Gruppe erstellen"
6 changes: 6 additions & 0 deletions data/translation/Zed/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ Save,Save
"User was updated successfully.","User was updated successfully."
Users,Users
"Users Control","Users Control"
Groups,Groups
allow,allow
deny,deny
"Edit Role","Edit Role"
"Created At","Created At"
"Create new Group","Create new Group"
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public function createAction(Request $request)
$roleTransfer = $this->getFacade()->addRole($formData[RoleForm::FIELD_NAME]);

$this->addSuccessMessage(
sprintf('Role "%s" successfully added.', $formData[RoleForm::FIELD_NAME])
'Role "%s" successfully added.',
['%s' => $formData[RoleForm::FIELD_NAME]]
);

return $this->redirectResponse(
Expand Down Expand Up @@ -243,7 +244,8 @@ protected function handleRoleForm(Request $request, FormInterface $roleForm)
try {
$this->getFacade()->updateRole($roleTransfer);
$this->addSuccessMessage(
sprintf('Role "%s" successfully updated.', $roleTransfer->getName())
'Role "%s" successfully updated.',
['%s' => $roleTransfer->getName()]
);
} catch (RoleNameExistsException $e) {
$this->addErrorMessage($e->getMessage());
Expand Down

0 comments on commit 0ee9aa4

Please sign in to comment.