Skip to content

Commit

Permalink
[#68186532] adjusted error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaai committed Mar 26, 2014
1 parent b06b904 commit b990cb1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions features/step_definitions/examples/bestellungen_steps.rb
Expand Up @@ -209,7 +209,7 @@ def ensure_suspended_user(user, inventory_pool)
find("#purpose").set Faker::Lorem.paragraph
find("#note").set Faker::Lorem.paragraph
find("button.green[data-hand-over]").click
find("#error", text: _("You don't have permission"))
find("#error", text: _("You don't have permission to perform this action"))
end
end

Expand All @@ -233,5 +233,5 @@ def ensure_suspended_user(user, inventory_pool)
find("input[data-assign-item]").click
find("li.ui-menu-item a", match: :first).click
end
find("#flash .error", text: _("You don't have permission"))
find("#flash .error", text: _("You don't have permission to perform this action"))
end
2 changes: 1 addition & 1 deletion lib/authenticated_system.rb
Expand Up @@ -32,7 +32,7 @@ def access_denied
redirect_to login_path
else
# NOTE in case of post requests
render status: :method_not_allowed, text: _("You don't have permission")
render status: :method_not_allowed, text: _("You don't have permission to perform this action")
end
end

Expand Down
4 changes: 2 additions & 2 deletions locale/de_CH/leihs.po
Expand Up @@ -1709,8 +1709,8 @@ msgstr "Sie haben keinen Zugriff auf diesen Gegenstand."
msgid "You don't have any rights to access this application."
msgstr "Sie sind nicht berechtigt, diese Applikation zu verwenden"

msgid "You don't have permission"
msgstr "Sie haben keine Berechtigung"
msgid "You don't have permission to perform this action"
msgstr "Sie haben keine Berechtigung, diese Aktion durchzuführen"

msgid "You have %{no_access} to any inventory pools!"
msgstr "SIe haben %{no_access} auf diese Geräteparks"
Expand Down
2 changes: 1 addition & 1 deletion locale/leihs.pot
Expand Up @@ -1643,7 +1643,7 @@ msgstr ""
msgid "You don't have any rights to access this application."
msgstr ""

msgid "You don't have permission"
msgid "You don't have permission to perform this action"
msgstr ""

msgid "You have %{no_access} to any inventory pools!"
Expand Down

0 comments on commit b990cb1

Please sign in to comment.