From 526d28e996ec961a49233431f73f8ef8f8fef504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B3=A5=E4=BA=95=20=E9=9B=AA?= Date: Wed, 4 Feb 2015 13:03:26 +0900 Subject: [PATCH] Add ja-translatoin --- app/views/fluentd/settings/histories/show.html.haml | 12 +++++------- config/locales/translation_en.yml | 4 ++++ config/locales/translation_ja.yml | 4 ++++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/views/fluentd/settings/histories/show.html.haml b/app/views/fluentd/settings/histories/show.html.haml index 4fa1e56..2246972 100644 --- a/app/views/fluentd/settings/histories/show.html.haml +++ b/app/views/fluentd/settings/histories/show.html.haml @@ -16,7 +16,7 @@ .row .col-xs-12 %h2 - ="Target Config(#{params[:id]})" + ="#{t('.target_config')}(#{params[:id]})" %pre = preserve do = @backup_file.content @@ -24,10 +24,8 @@ .col-xs-12.diff %h2 Diff: - %p - diff between - = " " - = link_to "current conf", daemon_setting_path(@fluentd) - = " and " - = "target conf(#{params[:id]})" + %div + = t(".diff_discription", file_name: params[:id] ) + %div.pull-right + = link_to t(".show_current"), daemon_setting_path(@fluentd) = preserve render "diff" diff --git a/config/locales/translation_en.yml b/config/locales/translation_en.yml index 8b93f70..09a692f 100644 --- a/config/locales/translation_en.yml +++ b/config/locales/translation_en.yml @@ -261,6 +261,10 @@ en: page_title: "Setting Histories" show: page_title: "Reuse Setting History" + target_config: "Target Config" + current_config: "Current Config" + diff_discription: "diff between current config and target config(%{file_name})" + show_current: "> see current config" running_backup: title: "Running Config" show: diff --git a/config/locales/translation_ja.yml b/config/locales/translation_ja.yml index 6e25818..b4fe2a3 100644 --- a/config/locales/translation_ja.yml +++ b/config/locales/translation_ja.yml @@ -266,6 +266,10 @@ ja: page_title: "設定履歴 | 一覧" show: page_title: "設定履歴 | 詳細" + target_config: "対象設定" + current_config: "現在の設定" + diff_discription: "現在の設定と対象設定(%{file_name})の差分" + show_current: "> 現在の設定を見る" running_backup: title: "使用中の設定" show: