From c6fda4dd020c71cb9a827e432f7436897d760620 Mon Sep 17 00:00:00 2001 From: "BOYA,CHIU" Date: Fri, 16 Jul 2021 17:25:38 +0800 Subject: [PATCH] fix translation --- config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + lib/gallery/engine.rb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 2e280b0..93667d9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,6 +1,7 @@ en: gallery: + setting: Gallery Setting inner_page_layout: Inner Page Layout card_style: Card Style grid_style: Grid Style diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index a5bb478..c39f319 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -1,6 +1,7 @@ zh_tw: gallery: + setting: 相簿設定 inner_page_layout: 內頁頁面樣式 card_style: 卡片樣式 grid_style: 格子排版樣式 diff --git a/lib/gallery/engine.rb b/lib/gallery/engine.rb index f4e3d46..408fbc9 100644 --- a/lib/gallery/engine.rb +++ b/lib/gallery/engine.rb @@ -83,7 +83,7 @@ module Gallery :active_for_action=>{'admin/galleries'=>'tags'}, :active_for_tag => 'Gallery', :available_for => 'managers' - context_link 'setting', + context_link 'gallery.setting', :link_path=>"admin_galleries_setting_path" , :priority=>5, :active_for_action=>{'admin/galleries'=>'setting'},