[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"> <table class="list">
<thead> <thead>
<tr> <tr>
<th>name</th> <th><%=t :field_name %></th>
<th>description</th> <th><%=l :field_description %></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

View File

@ -1,3 +1,4 @@
# English strings go here for Rails i18n # English strings go here for Rails i18n
en: 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: "用語集"