[phase2]I18n text in index view

This commit is contained in:
Toru Takahashi 2018-05-03 21:14:59 +09:00 committed by TAKAHASHI,Toru
parent a86f418baf
commit 1c17a44d1a
3 changed files with 8 additions and 4 deletions

View File

@ -1,10 +1,10 @@
<h2>GlossaryTermsController#index</h2>
<h2><%=t :label_glossary_terms %></h2>
<table class="list">
<thead>
<tr>
<th>name</th>
<th>description</th>
<th><%=t :field_name %></th>
<th><%=l :field_description %></th>
</tr>
</thead>
<tbody>

View File

@ -1,3 +1,4 @@
# English strings go here for Rails i18n
en:
# my_label: "My label"
label_glossary_terms: "Glossary terms"

3
config/locales/ja.yml Normal file
View File

@ -0,0 +1,3 @@
ja:
label_glossary_terms: "用語集"