Skip to content

Commit 66f7127

Browse files
committed
英語版統計ページの都道府県名表示を修正
コントローラーで既に英語変換済みのため、ビューでの二重変換を削除。 これにより、英語版で都道府県名が正しく英語で表示されるように修正。
1 parent eab6a28 commit 66f7127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/stats/show.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,14 @@
374374
<tr>
375375
<% if count == 0 %>
376376
<td style="background-color: gainsboro; padding: 0px;">
377-
<small><%= @lang == 'en' ? prefecture_name_in_english(prefecture) : prefecture %></small>
377+
<small><%= prefecture %></small>
378378
</td>
379379
<td style="background-color: gainsboro; padding: 0px;">
380380
<small><%= count %></small>
381381
</td>
382382
<% else %>
383383
<td style="padding: 0px;">
384-
<small><%= @lang == 'en' ? prefecture_name_in_english(prefecture) : prefecture %></small>
384+
<small><%= prefecture %></small>
385385
</td>
386386
<td style="padding: 0px;">
387387
<small><%= count %></small>

0 commit comments

Comments
 (0)