diff --git a/app/views/sessions/new.html.haml b/app/views/sessions/new.html.haml index 5fbf579..de37679 100644 --- a/app/views/sessions/new.html.haml +++ b/app/views/sessions/new.html.haml @@ -6,8 +6,8 @@ = render partial: "shared/error" = form_for(:session, url: sessions_path) do |f| %div.form-group - = f.text_field :name, placeholder: "Name" + = f.text_field :name, placeholder: t('terms.name') %div.form-group - = f.password_field :password, placeholder: "Password" + = f.password_field :password, placeholder: t('terms.password') = submit_tag t("terms.sign_in"), class: "btn btn-success" diff --git a/config/locales/translation_en.yml b/config/locales/translation_en.yml index 2164329..31835dc 100644 --- a/config/locales/translation_en.yml +++ b/config/locales/translation_en.yml @@ -10,6 +10,8 @@ en: fluentd_start_stop_delay_notice: "'%{action} daemon' is accepted. That operation could take a minute for complete." terms: &terms + name: Name + password: Password sign_in: Sign in sign_out: Sign out install: Install diff --git a/config/locales/translation_ja.yml b/config/locales/translation_ja.yml index 410bfcf..1d25fd8 100644 --- a/config/locales/translation_ja.yml +++ b/config/locales/translation_ja.yml @@ -10,6 +10,8 @@ ja: fluentd_start_stop_delay_notice: "デーモンの%{action}を受け付けました。処理が完了するまで時間がかかる場合があります。" terms: &terms + name: アカウント名 + password: パスワード sign_in: ログイン sign_out: ログアウト uninstall: アンインストール