From 1c17a44d1afcdf2fe8b8f3ee4749b63337ca962c Mon Sep 17 00:00:00 2001 From: Toru Takahashi Date: Thu, 3 May 2018 21:14:59 +0900 Subject: [PATCH] [phase2]I18n text in index view --- app/views/glossary_terms/index.html.erb | 6 +++--- config/locales/en.yml | 3 ++- config/locales/ja.yml | 3 +++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 config/locales/ja.yml diff --git a/app/views/glossary_terms/index.html.erb b/app/views/glossary_terms/index.html.erb index 0b260aa..77ca0ca 100644 --- a/app/views/glossary_terms/index.html.erb +++ b/app/views/glossary_terms/index.html.erb @@ -1,10 +1,10 @@ -

GlossaryTermsController#index

+

<%=t :label_glossary_terms %>

- - + + diff --git a/config/locales/en.yml b/config/locales/en.yml index 642b07f..3864781 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,3 +1,4 @@ # English strings go here for Rails i18n en: - # my_label: "My label" + label_glossary_terms: "Glossary terms" + diff --git a/config/locales/ja.yml b/config/locales/ja.yml new file mode 100644 index 0000000..c51ea70 --- /dev/null +++ b/config/locales/ja.yml @@ -0,0 +1,3 @@ +ja: + label_glossary_terms: "用語集" + \ No newline at end of file
namedescription<%=t :field_name %><%=l :field_description %>