From c5ff3c917f1ba79ceea58c93092d59cc12f55459 Mon Sep 17 00:00:00 2001
From: Faton Selishta You do not need to include your email in the request in order to get a reply, as we will ask for it on the next screen (details). You do not need to include your email in the request in order to get a reply, as we will ask for it on the next screen (details). You do not need to include your email in the request in order to get a reply (details). You do not need to include your email in the request in order to get a reply (details). We recommend that you edit your request and remove the email address.
- If you leave it, the email address will be sent to the authority, but will not be displayed on the site. We recommend that you edit your request and remove the email address.
+ If you leave it, the email address will be sent to the authority, but will not be displayed on the site. Your request contains a postcode. Unless it directly relates to the subject of your request, please remove any address as it will appear publicly on the Internet. Your request contains a postcode. Unless it directly relates to the subject of your request, please remove any address as it will appear publicly on the Internet. Your " + @info_request.law_used_full + " request has been sent on its way! Your {{law_used_full}} request has been sent on its way! We will email you when there is a response, or after 20 working days if the authority still hasn't
replied by then. If you write about this request (for example in a forum or a blog) please link to this page, and add an
- annotation below telling people about your writing.
Thank you! Hopefully your wait isn't too long.
By law, you should get a response promptly, and " + (@info_request.public_body.is_school? ? "in term time" : "") + " normally before the end of " + simple_date(@info_request.date_response_required_by) + ".
" + flash[:notice] = _("Thank you! Hopefully your wait isn't too long.
By law, you should get a response promptly, and normally before the end of +{{date_response_required_by}}.
",:date_response_required_by=>simple_date(@info_request.date_response_required_by)) redirect_to request_url(@info_request) elsif @info_request.calculate_status == 'waiting_response_overdue' - flash[:notice] = "Thank you! Hope you don't have to wait much longer.
By law, you should have got a response promptly, and " + (@info_request.public_body.is_school? ? "in term time" : "") + " normally before the end of " + simple_date(@info_request.date_response_required_by) + ".
" + flash[:notice] = _("Thank you! Hope you don't have to wait much longer.
By law, you should have got a response promptly, and normally before the end of {{date_response_required_by}}.
",:date_response_required_by=>simple_date(@info_request.date_response_required_by)) redirect_to request_url(@info_request) elsif @info_request.calculate_status == 'waiting_response_very_overdue' - flash[:notice] = "Thank you! Your request is long overdue, by more than 40 working days. Most requests should be answered within 20 working days. You might like to complain about this, see below.
" + flash[:notice] = _("Thank you! Your request is long overdue, by more than 40 working days. Most requests should be answered within 20 working days. You might like to complain about this, see below.
") redirect_to unhappy_url(@info_request) elsif @info_request.calculate_status == 'not_held' - flash[:notice] = "Thank you! Here are some ideas on what to do next:
+ flash[:notice] = _("Thank you! Here are some ideas on what to do next:
We're glad you got all the information that you wanted. If you write about or make use of the information, please come back and add an annotation below saying what you did.
If you found WhatDoTheyKnow useful, make a donation to the charity which runs it.
" + flash[:notice] = _("We're glad you got all the information that you wanted. If you write about or make use of the information, please come back and add an annotation below saying what you did.
If you found WhatDoTheyKnow useful, make a donation to the charity which runs it.
") % ["http://www.mysociety.org/donate/"] redirect_to request_url(@info_request) elsif @info_request.calculate_status == 'partially_successful' - flash[:notice] = "We're glad you got some of the information that you wanted. If you found WhatDoTheyKnow useful, make a donation to the charity which runs it.
If you want to try and get the rest of the information, here's what to do now.
" + flash[:notice] = _("We're glad you got some of the information that you wanted. If you found WhatDoTheyKnow useful, make a donation to the charity which runs it.
If you want to try and get the rest of the information, here's what to do now.
") % ["http://www.mysociety.org/donate/"] redirect_to unhappy_url(@info_request) elsif @info_request.calculate_status == 'waiting_clarification' - flash[:notice] = "Please write your follow up message containing the necessary clarifications below." + flash[:notice] = _("Please write your follow up message containing the necessary clarifications below.") redirect_to respond_to_last_url(@info_request) elsif @info_request.calculate_status == 'gone_postal' redirect_to respond_to_last_url(@info_request) + "?gone_postal=1" elsif @info_request.calculate_status == 'deadline_extended' - flash[:notice] = "Authority has requested extension of the deadline." + flash[:notice] = _("Authority has requested extension of the deadline.") redirect_to unhappy_url(@info_request) elsif @info_request.calculate_status == 'wrong_response' - flash[:notice] = "Oh no! Sorry to hear that your request was wrong. Here is what to do now." + flash[:notice] = _("Oh no! Sorry to hear that your request was wrong. Here is what to do now.") redirect_to unhappy_url(@info_request) elsif @info_request.calculate_status == 'internal_review' - flash[:notice] = "Thank you! Hopefully your wait isn't too long.
You should get a response within 20 days, or be told if it will take longer (details).
" + flash[:notice] = _("Thank you! Hopefully your wait isn't too long.
You should get a response within 20 days, or be told if it will take longer (details).
") % [unhappy_url(@info_request) + "#internal_review"] redirect_to request_url(@info_request) elsif @info_request.calculate_status == 'error_message' - flash[:notice] = "Thank you! We'll look into what happened and try and fix it up.
If the error was a delivery failure, and you can find an up to date FOI email address for the authority, please tell us using the form below.
" + flash[:notice] = _("Thank you! We'll look into what happened and try and fix it up.
If the error was a delivery failure, and you can find an up to date FOI email address for the authority, please tell us using the form below.
") redirect_to help_general_url(:action => 'contact') elsif @info_request.calculate_status == 'requires_admin' - flash[:notice] = "Please use the form below to tell us more." + flash[:notice] = _("Please use the form below to tell us more.") redirect_to help_general_url(:action => 'contact') elsif @info_request.calculate_status == 'user_withdrawn' - flash[:notice] = "If you have not done so already, please write a message below telling the authority that you have withdrawn your request. Otherwise they will not know it has been withdrawn." + flash[:notice] = _("If you have not done so already, please write a message below telling the authority that you have withdrawn your request. Otherwise they will not know it has been withdrawn.") redirect_to respond_to_last_url(@info_request) else raise "unknown calculate_status " + @info_request.calculate_status @@ -521,24 +522,24 @@ class RequestController < ApplicationController # message and wasting their time if they are not the requester. if !authenticated_as_user?(@info_request.user, :web => @incoming_message.nil? ? - "To send a follow up message to " + @info_request.public_body.name : - "To reply to " + @info_request.public_body.name, + _("To send a follow up message to ") + @info_request.public_body.name : + _("To reply to ") + @info_request.public_body.name, :email => @incoming_message.nil? ? - "Then you can write follow up message to " + @info_request.public_body.name + "." : - "Then you can write your reply to " + @info_request.public_body.name + ".", + _("Then you can write follow up message to ") + @info_request.public_body.name + "." : + _("Then you can write your reply to ") + @info_request.public_body.name + ".", :email_subject => @incoming_message.nil? ? - "Write your FOI follow up message to " + @info_request.public_body.name : - "Write a reply to " + @info_request.public_body.name + _("Write your FOI follow up message to ") + @info_request.public_body.name : + _("Write a reply to ") + @info_request.public_body.name ) return end if !params[:submitted_followup].nil? && !params[:reedit] if @info_request.allow_new_responses_from == 'nobody' - flash[:error] = 'Your follow up has not been sent because this request has been stopped to prevent spam. Please contact us if you really want to send a follow up message.' + flash[:error] = _('Your follow up has not been sent because this request has been stopped to prevent spam. Please contact us if you really want to send a follow up message.') % [help_contact_path] else if @info_request.find_existing_outgoing_message(params[:outgoing_message][:body]) - flash[:error] = 'You previously submitted that exact follow up message for this request.' + flash[:error] = _('You previously submitted that exact follow up message for this request.') render :action => 'show_response' return end @@ -561,9 +562,9 @@ class RequestController < ApplicationController @outgoing_message.send_message @outgoing_message.save! if @outgoing_message.what_doing == 'internal_review' - flash[:notice] = "Your internal review request has been sent on its way." + flash[:notice] = _("Your internal review request has been sent on its way.") else - flash[:notice] = "Your follow up message has been sent on its way." + flash[:notice] = _("Your follow up message has been sent on its way.") end redirect_to request_url(@info_request) end @@ -681,9 +682,9 @@ class RequestController < ApplicationController @info_request = InfoRequest.find_by_url_title(params[:url_title]) @reason_params = { - :web => "To upload a response, you must be logged in using an email address from " + CGI.escapeHTML(@info_request.public_body.name), - :email => "Then you can upload an FOI response. ", - :email_subject => "Confirm your account on WhatDoTheyKnow.com" + :web => _("To upload a response, you must be logged in using an email address from ") + CGI.escapeHTML(@info_request.public_body.name), + :email => _("Then you can upload an FOI response. "), + :email_subject => _("Confirm your account on {{site_name}}",:site_name=>site_name) } if !authenticated?(@reason_params) return @@ -710,13 +711,13 @@ class RequestController < ApplicationController body = params[:body] || "" if file_name.nil? && body.empty? - flash[:error] = "Please type a message and/or choose a file containing your response." + flash[:error] = _("Please type a message and/or choose a file containing your response.") return end mail = RequestMailer.create_fake_response(@info_request, @user, body, file_name, file_content) @info_request.receive(mail, mail.encoded, true) - flash[:notice] = "Thank you for responding to this FOI request! Your response has been published below, and a link to your response has been emailed to " + CGI.escapeHTML(@info_request.user.name) + "." + flash[:notice] = _("Thank you for responding to this FOI request! Your response has been published below, and a link to your response has been emailed to ") + CGI.escapeHTML(@info_request.user.name) + "." redirect_to request_url(@info_request) return end -- cgit v1.2.3