Make button on OAuth authorization screen translatable
authorTom Hughes <tom@compton.nu>
Tue, 18 Aug 2015 18:19:35 +0000 (19:19 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 18 Aug 2015 18:19:35 +0000 (19:19 +0100)
Fixes #1025

app/views/oauth/authorize.html.erb
config/locales/en.yml

index d8feeed26d23ad12718584c16110bc294ca49dbc..7b0a2cc166e9934c60c7f17802af6fc15c0d96d2 100644 (file)
@@ -15,5 +15,5 @@
     <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t "oauth.oauthorize.#{perm}" %></li>
   <% end %>
   </ul>
-  <p><%= submit_tag %></p>
+  <p><%= submit_tag t("oauth.oauthorize.grant_access" %></p>
 <% end %>
index a577db1a9de30561e110b260ddd99469f9b3469f..63f0c0e783ccbb6f3048d6de64592ac00c803fdd 100644 (file)
@@ -1629,6 +1629,7 @@ en:
       allow_read_gpx:    "read your private GPS traces."
       allow_write_gpx:   "upload GPS traces."
       allow_write_notes: "modify notes."
+      grant_access: "Grant Access"
     oauthorize_success:
       title: "Authorization request allowed"
       allowed: "You have granted application %{app_name} access to your account."