Commit bea596e

mo khan <mo@mokhan.ca>
2016-05-23 16:07:16
move text to translations.
1 parent 32a41dd
Changed files (2)
app
views
config
locales
app/views/training_sessions/_import_address_modal.html.erb
@@ -2,7 +2,7 @@
   <h2 id="modalTitle">Send-to-Stronglifters.</h2>
   <p class="lead">Your custom email address.</p>
 
-  <p>This is your custom email address for sending CSV exports to from the StrongLifts 5x5 mobile application.</p>
+  <p><%= t('.blurb') %></p>
   <div class="row">
     <div class="large-8 columns">
       <p><%= text_field_tag :import_address, current_user.import_address %></p>
@@ -13,9 +13,9 @@
   </div>
   <p class="text-center"><%= mail_to(current_user.import_address, User.human_attribute_name(:import_address)) %></p>
   <a class="close-reveal-modal" aria-label="Close">&#215;</a>
-  <% if current_user.default_time_zone? %>
+  <% if !current_user.default_time_zone? %>
     <div class="panel">
-      <p>To ensure your workouts are imported correctly we suggest that you update your timezone <%= link_to "here", edit_profile_path(current_user.profile) %>.</p>
+      <p><%= link_to t('.warning'), edit_profile_path(current_user.profile) %></p>
     </div>
   <% end %>
 </div>
config/locales/en.yml
@@ -90,6 +90,9 @@ en:
   training_sessions:
     drive_upload:
       success: 'Our minions have been summoned to fetch your backup.'
+    import_address_modal:
+      blurb: This is your custom email address for sending CSV exports from the StrongLifts 5x5 mobile application.
+      warning: To ensure your workouts are imported correctly we suggest that you update your timezone.
     upload:
       success: "Our minions have been summoned to unpack your backup."
       failure: "We don't know how to unpack this type of file."