This commit is contained in:
Harry Bomrah 2014-11-05 17:48:39 +08:00
parent 3d997ba641
commit cb8ca7528f
1 changed files with 12 additions and 3 deletions

View File

@ -57,12 +57,21 @@ namespace :announcement_link_widget do
# debugger
end
ts = {
"bulletins" : {
"en" => "Bulletin",
"zh_tw" => "公告訊息"
},
"related_links" => {
"en" => "Related Links",
"zh_tw" => "相關連結"
}
}
@data = {
"tags" => common_tags_frontend,
"extras" => {
"heading-announcements" => t("announcement_link_widget.bulletins"),
"heading-links" => t("announcement_link_widget.related_links")
"heading-announcements" => ts["bulletins"][locale.to_s],
"heading-links" => ts["related_links"][locale.to_s]
}
}
file = File.join(Rails.root, "public" , "announcement_link_widget_#{locale.to_s}.json")