aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/comment.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-06 10:35:56 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-07-06 10:35:56 +0100
commitfb183ab07052293acabde9fa249f5d1952d56465 (patch)
tree41667f77795a108b77be73e9de9824d9b4fab8da /app/models/comment.rb
parent4d36238dbc2a239b48193b9089c3321a3103346f (diff)
parente7cd3adc2775b1450251f89d70680b3be8f291a3 (diff)
initial merge of Kosovan branch; still need to get tests passing, factor out Kosovan-specific code
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r--app/models/comment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index 3d69b1108..b7ece9ba9 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -56,10 +56,10 @@ class Comment < ActiveRecord::Base
# Check have edited comment
def validate
if self.body.empty? || self.body =~ /^\s+$/
- errors.add(:body, N_("Please enter your annotation"))
+ errors.add(:body, _("Please enter your annotation"))
end
if !MySociety::Validate.uses_mixed_capitals(self.body)
- errors.add(:body, N_('Please write your annotation using a mixture of capital and lower case letters. This makes it easier for others to read.'))
+ errors.add(:body, _('Please write your annotation using a mixture of capital and lower case letters. This makes it easier for others to read.'))
end
end