new locales

This commit is contained in:
Harry Bomrah 2014-11-05 17:37:04 +08:00
parent d66e98c176
commit 76ef4a35d7
3 changed files with 10 additions and 2 deletions

View File

@ -4,8 +4,8 @@ class AnnouncementLinkWidgetsController < ApplicationController
data = { data = {
"tags" => [], "tags" => [],
"extras" => { "extras" => {
"heading-announcements" => "Announcements", "heading-announcements" => t("announcement_link_widget.bulletins"),
"heading-links" => "Links" "heading-links" => t("announcement_link_widget.related_links")
} }
} }
f = File.join(Rails.root, "public" , "announcement_link_widget_#{I18n.locale.to_s}.json") f = File.join(Rails.root, "public" , "announcement_link_widget_#{I18n.locale.to_s}.json")

4
config/locales/en.yml Normal file
View File

@ -0,0 +1,4 @@
en:
announcement_link_widget:
bulletins: Bulletins
related_links: Related Links

4
config/locales/zh_tw.yml Normal file
View File

@ -0,0 +1,4 @@
zh_tw:
announcement_link_widget:
bulletins: 公告訊息
related_links: 相關連結