Update personal_conferences_controller.rb

add language translation
This commit is contained in:
chiu 2019-08-14 16:29:08 +08:00
parent 62517a8ef9
commit c4b89ae9c9
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ class PersonalConferencesController < ApplicationController
t << {"value" => (writing_conference.conference_author_types.collect{|cat| cat.title}.join(", ") rescue "")}
when "period"
t << {"value" => writing_conference.duration}
when "language"
t << {"value" => (!writing_conference.language.nil? ? t("#{writing_conference.language}") : "")}
else
t << {"value" => writing_conference.send(fs)}
end