From b7a7b0a7979da2b5c998f12800edd810a34a9f45 Mon Sep 17 00:00:00 2001 From: uu59 Date: Thu, 31 Jul 2014 17:28:50 +0900 Subject: [PATCH] i18n for sigin in form placeholder --- app/views/sessions/new.html.haml | 4 ++-- config/locales/translation_en.yml | 2 ++ config/locales/translation_ja.yml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) 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: アンインストール