Added better messages and error handling in a couple of places. Added integration checks to ensure that the blocking is actually working. Tests FTW.

This commit is contained in:
Matt Amos 2009-09-30 17:39:42 +00:00
parent 95c3d640a4
commit 77851bac7b
6 changed files with 73 additions and 4 deletions

View file

@ -800,6 +800,9 @@ en:
scheduled_for_deletion: "Track scheduled for deletion"
make_public:
made_public: "Track made public"
application:
setup_user_auth:
blocked: "Your access to the API has been blocked. Please log-in to the web interface to find out more."
oauth:
oauthorize:
request_access: "The application {{app_name}} is requesting access to your account. Please check whether you would like the application to have the following capabilities. You may choose as many or as few as you like."
@ -1012,6 +1015,9 @@ en:
model:
non_moderator_update: "Must be a moderator to create or update a block."
non_moderator_revoke: "Must be a moderator to revoke a block."
not_found:
sorry: "Sorry, the user block with ID {{id}} could not be found."
back: "Back to index"
new:
reason: "The reason why {{name}} is being blocked. Please be as calm and as reasonable as possible, giving as much detail as you can about the situation, remembering that the message will be publicly visible. Bear in mind that not all users understand the community jargon, so please try to use laymans terms."
period: "How long, starting now, the user will be blocked from the API for."