forked from saurabh/personal-conference
Update personal_conferences_controller.rb
add language translation
This commit is contained in:
parent
62517a8ef9
commit
c4b89ae9c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue