From 4f31859c4a74ae65308cd44d29d9a3b9eca558ef Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 18 Aug 2015 19:19:35 +0100 Subject: [PATCH] Make button on OAuth authorization screen translatable Fixes #1025 --- app/views/oauth/authorize.html.erb | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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." -- 2.43.2