Permalink
Browse files

Fixed translation error message so that it reports the correct variab…

…le names.
  • Loading branch information...
1 parent 199ab53 commit acad53e6d357a3b54d3872598d4d1761d6d25253 Craig Davey committed Sep 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/tolk/translation.rb
@@ -112,7 +112,7 @@ def check_matching_variables
if primary_translation.variables.empty?
self.errors.add(:text, "The original does not contain variables, so they should not be included.")
else
- self.errors.add(:text, "The translation should contain the variables #{variables.to_a.to_sentence}.")
+ self.errors.add(:text, "The translation should contain the variables #{primary_translation.to_a.to_sentence}.")
end
end
end

0 comments on commit acad53e

Please sign in to comment.