i18n AssessmentQuestion

Change-Id: I6a0a162fcca190bc620b95b3eda1790035cf29e2
Reviewed-on: https://gerrit.instructure.com/4131
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
This commit is contained in:
Cody Cutrer 2011-06-09 12:08:34 -06:00
parent bf1f513206
commit 625f475ff6
1 changed files with 3 additions and 3 deletions

View File

@ -187,10 +187,10 @@ class AssessmentQuestion < ActiveRecord::Base
question[:incorrect_comments] = check_length(qdata[:incorrect_comments] || previous_data[:incorrect_comments] || "", 'incorrect comments', 5.kilobyte)
question[:neutral_comments] = check_length(qdata[:neutral_comments], 'neutral comments', 5.kilobyte)
question[:question_type] = qdata[:question_type] || previous_data[:question_type] || "text_only_question"
question[:question_name] = qdata[:question_name] || qdata[:name] || previous_data[:question_name] || "Question"
question[:question_name] = "Question" if question[:question_name].strip.blank?
question[:question_name] = qdata[:question_name] || qdata[:name] || previous_data[:question_name] || t(:default_question_name, "Question")
question[:question_name] = t(:default_question_name, "Question") if question[:question_name].strip.blank?
question[:name] = question[:question_name]
question[:question_text] = sanitize(check_length(qdata[:question_text] || previous_data[:question_text] || "Question text", 'question text'))
question[:question_text] = sanitize(check_length(qdata[:question_text] || previous_data[:question_text] || t(:default_question_text, "Question text"), 'question text'))
min_size = 1.kilobyte
question[:answers] = []
reset_local_ids