From dcc6a53430c3d38cf59c7f03216da1c85db79191 Mon Sep 17 00:00:00 2001 From: Matthew Kaito Juyuan Fu Date: Fri, 10 Feb 2012 16:43:58 +0800 Subject: [PATCH] brief starting for dashboard,adds i18n vars --- app/views/admin/assets/index.html.erb | 4 ++++ app/views/layouts/_drop_down_menu.html.erb | 14 ++++++++++++++ config/locales/en.yml | 13 +++++++++++++ config/locales/zh_tw.yml | 22 +++++++++++++++++----- 4 files changed, 48 insertions(+), 5 deletions(-) diff --git a/app/views/admin/assets/index.html.erb b/app/views/admin/assets/index.html.erb index 7f3a0407..c31db0c7 100644 --- a/app/views/admin/assets/index.html.erb +++ b/app/views/admin/assets/index.html.erb @@ -2,6 +2,10 @@
<% end -%> diff --git a/app/views/layouts/_drop_down_menu.html.erb b/app/views/layouts/_drop_down_menu.html.erb index 89285ebb..900437a6 100644 --- a/app/views/layouts/_drop_down_menu.html.erb +++ b/app/views/layouts/_drop_down_menu.html.erb @@ -7,4 +7,18 @@
  • <%= link_to t('admin.member'), admin_users_path, :class => 'orblink' %>
  • <%= link_to t('admin.translation'), admin_translations_path, :class => 'orblink' %>
  • <%= link_to t('admin.site'), admin_sites_path, :class => 'orblink' %>
  • + + \ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index 07f5ec73..a82bdefc 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -27,13 +27,21 @@ en: admin: action: Action + ad_banner: AD Banner add_language: Add language + add_drop_down_item: +Add Menu Item admin: Admin action: Action announcement: Announcement asset: Asset + assets: + file: File + album: Album + video: Video + book: Book attributes: Attributes author: Author + calendar: Calendar cant_delete_self: You can not delete yourself. cant_revoke_self_admin: You can not revoke your admin role yourself. choose_file: Choose a file... @@ -48,6 +56,7 @@ en: create_success_snippet: Snippet was successfully created. create_success_user: User was successfully created. data: Data + dashbroad: Dashbroad delete_language: Delete language description: Description design: Design @@ -74,6 +83,7 @@ en: language: Language layout: Layout layout_name: Layout name + links: Links list_assets: Assets list list_designs: Designs list list_items: Items list @@ -90,6 +100,7 @@ en: no_home_page: You don't have a homepage no_layout: You don't have a layout name: Name + nccu: NCCU Custom new_asset: New asset new_component: New component new_design: New design @@ -114,6 +125,8 @@ en: setup_translations: Translations setup setup_designs: Designs setup site: Site + site_setting: Site Setting + super_pages: Super pages title: Title translation: Translation type: Type diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 7555c3a5..270dbd10 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -21,14 +21,21 @@ zh_tw: yes_: "Yes" admin: - action: 行動 + action: 操作 + ad_banner: 廣告輪播 add_language: 新增語言 + add_drop_down_item: +增加Orbit選單 admin: 管理 - action: 行動 - announcement: 公告 + announcement: 公告系統 asset: 資產 + assets: + file: 檔案 + album: 相簿 + video: 影片 + book: 書籍 attributes: 屬性 author: 作者 + calendar: 行事曆 cant_delete_self: 您不可以刪除自己。 cant_revoke_self_admin: 您不可以撤銷自己的管理作用。 choose_file: 選擇一個文件... @@ -42,10 +49,11 @@ zh_tw: create_success_page: 頁面已成功創建。 create_success_snippet: 片段已成功創建。 create_success_user: 用戶已成功創建。。 + dashbroad: 儀表板 data: 數據 delete_language: 刪除語言 description: 描述 - design: 設計 + design: 網站版型 disable_language: 禁用語言 editing_home: 編輯首頁 editing_layout: 編輯樣板 @@ -64,11 +72,12 @@ zh_tw: info: 資料 intro: 簡介 is_published: 被出版 - item: 項目 + item: 網站架構 key: 關鍵 language: 語言 layout: 佈局 layout_name: 佈局名字 + links: 網路資源 list_assets: 資產列表 list_designs: 設計列表 list_items: 項目列表 @@ -85,6 +94,7 @@ zh_tw: no_home_page: 您沒有首頁 no_layout: 您沒有佈局 name: 名稱 + nccu: 政大客制 new_asset: 新增資產 new_component: 新增元件 new_design: 新設計 @@ -108,6 +118,8 @@ zh_tw: setup_translations: 語系設定 setup_designs: 版型設定 site: 網站 + site_setting: 網站設定 + super_pages: 可編頁面 title: 標題 translation: 翻譯 type: 類型