From: Tom Hughes Date: Tue, 18 Aug 2015 18:19:35 +0000 (+0100) Subject: Make button on OAuth authorization screen translatable X-Git-Tag: live~4049 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/4f31859c4a74ae65308cd44d29d9a3b9eca558ef Make button on OAuth authorization screen translatable Fixes #1025 --- diff --git a/app/views/oauth/authorize.html.erb b/app/views/oauth/authorize.html.erb index d8feeed26..7b0a2cc16 100644 --- a/app/views/oauth/authorize.html.erb +++ b/app/views/oauth/authorize.html.erb @@ -15,5 +15,5 @@
  • <%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t "oauth.oauthorize.#{perm}" %>
  • <% end %> -

    <%= submit_tag %>

    +

    <%= submit_tag t("oauth.oauthorize.grant_access" %>

    <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index a577db1a9..63f0c0e78 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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."