changeset 414:16f1b4f8ce94

Add missing translations.
author nanaya <me@myconan.net>
date Mon, 14 Sep 2015 14:23:15 +0900
parents 39d59ae9d9db
children 753395ccc4d2
files app/views/layouts/_alerts.html.erb config/locales/en.yml
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/layouts/_alerts.html.erb	Mon Sep 07 21:56:42 2015 +0900
+++ b/app/views/layouts/_alerts.html.erb	Mon Sep 14 14:23:15 2015 +0900
@@ -1,13 +1,13 @@
 <% if notice %>
   <div class="alert alert-info">
-    <strong>Info:</strong>
+    <strong><%= t(".info") %>:</strong>
     <%= notice %>
   </div>
 <% end %>
 
 <% if alert %>
   <div class="alert alert-danger">
-    <strong>Error:</strong>
+    <strong><%= t(".error") %>:</strong>
     <%= alert %>
   </div>
 <% end %>
--- a/config/locales/en.yml	Mon Sep 07 21:56:42 2015 +0900
+++ b/config/locales/en.yml	Mon Sep 14 14:23:15 2015 +0900
@@ -6,6 +6,9 @@
     close: Close
 
   layouts:
+    alerts:
+      error: Error
+      info: Info
     application:
       donate: Donate
       source: Source