diff options
author | Faton Selishta <fatonselishta@gmail.com> | 2011-06-30 16:17:42 +0200 |
---|---|---|
committer | Faton Selishta <fatonselishta@gmail.com> | 2011-06-30 16:17:42 +0200 |
commit | 60ec0354c3385054f4224112fbbdb2cc0371820f (patch) | |
tree | 096d858a87c9cb6d7c94f6100885517f7dfd690a /app/models/info_request.rb | |
parent | c5ff3c917f1ba79ceea58c93092d59cc12f55459 (diff) |
I18n string for models
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 5ce2be2df..4e669e5cd 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -750,39 +750,39 @@ public def display_status status = self.calculate_status if status == 'waiting_classification' - "Awaiting classification." + _("Awaiting classification.") elsif status == 'waiting_response' - "Awaiting response." + _("Awaiting response.") elsif status == 'waiting_response_overdue' - "Delayed." + _("Delayed.") elsif status == 'waiting_response_very_overdue' - "Long overdue." + _("Long overdue.") elsif status == 'not_held' - "Information not held." + _("Information not held.") elsif status == 'rejected' - "Refused." + _("Refused.") elsif status == 'partially_successful' - "Partially successful." + _("Partially successful.") elsif status == 'successful' - "Successful." + _("Successful.") elsif status == 'waiting_clarification' - "Waiting clarification." + _("Waiting clarification.") elsif status == 'gone_postal' - "Handled by post." + _("Handled by post.") elsif status == 'deadline_extended' - "Deadline extended." + _("Deadline extended.") elsif status == 'wrong_response' - "Wrong Response." + _("Wrong Response.") elsif status == 'internal_review' - "Awaiting internal review." + _("Awaiting internal review.") elsif status == 'error_message' - "Delivery error" + _("Delivery error") elsif status == 'requires_admin' - "Unusual response." + _("Unusual response.") elsif status == 'user_withdrawn' - "Withdrawn by the requester." + _("Withdrawn by the requester.") else - raise "unknown status " + status + raise _("unknown status ") + status end end |