aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-11-12 12:18:13 +0000
committerGareth Rees <gareth@mysociety.org>2014-11-12 12:18:13 +0000
commite09f967869bc53751a98bfe2cd88d81feca1423f (patch)
tree40299cb9452e2661a609428a50121b477db54178
parent1c237a040c3e096394776f10ffb5d8d204af904a (diff)
Fix missing translation introduced in 962357c
962357c tidied the translation but left the translation call (`_()`) around the variable rather than the string literal.
-rw-r--r--app/models/comment.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index a286aa1f5..cc8d0e94b 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -91,9 +91,9 @@ class Comment < ActiveRecord::Base
def check_body_uses_mixed_capitals
unless MySociety::Validate.uses_mixed_capitals(body)
- msg = 'Please write your annotation using a mixture of capital and ' \
- 'lower case letters. This makes it easier for others to read.'
- errors.add(:body, _(msg))
+ msg = _('Please write your annotation using a mixture of capital and ' \
+ 'lower case letters. This makes it easier for others to read.')
+ errors.add(:body, msg)
end
end