fix
This commit is contained in:
parent
3d997ba641
commit
cb8ca7528f
|
@ -57,12 +57,21 @@ namespace :announcement_link_widget do
|
||||||
|
|
||||||
# debugger
|
# debugger
|
||||||
end
|
end
|
||||||
|
ts = {
|
||||||
|
"bulletins" : {
|
||||||
|
"en" => "Bulletin",
|
||||||
|
"zh_tw" => "公告訊息"
|
||||||
|
},
|
||||||
|
"related_links" => {
|
||||||
|
"en" => "Related Links",
|
||||||
|
"zh_tw" => "相關連結"
|
||||||
|
}
|
||||||
|
}
|
||||||
@data = {
|
@data = {
|
||||||
"tags" => common_tags_frontend,
|
"tags" => common_tags_frontend,
|
||||||
"extras" => {
|
"extras" => {
|
||||||
"heading-announcements" => t("announcement_link_widget.bulletins"),
|
"heading-announcements" => ts["bulletins"][locale.to_s],
|
||||||
"heading-links" => t("announcement_link_widget.related_links")
|
"heading-links" => ts["related_links"][locale.to_s]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file = File.join(Rails.root, "public" , "announcement_link_widget_#{locale.to_s}.json")
|
file = File.join(Rails.root, "public" , "announcement_link_widget_#{locale.to_s}.json")
|
||||||
|
|
Loading…
Reference in New Issue