Skip to content

Commit

Permalink
Fixed translation error message so that it reports the correct variab…
Browse files Browse the repository at this point in the history
…le names.
  • Loading branch information
Craig Davey committed Sep 20, 2010
1 parent 199ab53 commit acad53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/tolk/translation.rb
Expand Up @@ -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
Expand Down

0 comments on commit acad53e

Please sign in to comment.