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 "")}
|
t << {"value" => (writing_conference.conference_author_types.collect{|cat| cat.title}.join(", ") rescue "")}
|
||||||
when "period"
|
when "period"
|
||||||
t << {"value" => writing_conference.duration}
|
t << {"value" => writing_conference.duration}
|
||||||
|
when "language"
|
||||||
|
t << {"value" => (!writing_conference.language.nil? ? t("#{writing_conference.language}") : "")}
|
||||||
else
|
else
|
||||||
t << {"value" => writing_conference.send(fs)}
|
t << {"value" => writing_conference.send(fs)}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue