- Authorize <%= @pre_auth.client.name %> to use your account? + <%= _('Authorize %s to use your account?' % "#{@pre_auth.client.name}") %>

<% if @pre_auth.scopes %>
-

This application will be able to:

+

<%= _('This application will be able to:') %>

    <% @pre_auth.scopes.each do |scope| %> -
  • <%= t scope, scope: [:doorkeeper, :scopes] %>
  • +
  • <%= OauthProviderPlugin::SCOPE_TRANSLATION[scope] %>
  • <% end %>
@@ -26,7 +26,7 @@ <%= hidden_field_tag :state, @pre_auth.state %> <%= hidden_field_tag :response_type, @pre_auth.response_type %> <%= hidden_field_tag :scope, @pre_auth.scope %> - <%= submit_tag "Authorize", class: "btn btn-success btn-lg btn-block" %> + <%= submit_tag _("Authorize"), class: "btn btn-success btn-lg btn-block" %> <% end %> <%= form_tag oauth_authorization_path, method: :delete do %> <%= hidden_field_tag :client_id, @pre_auth.client.uid %> @@ -34,7 +34,7 @@ <%= hidden_field_tag :state, @pre_auth.state %> <%= hidden_field_tag :response_type, @pre_auth.response_type %> <%= hidden_field_tag :scope, @pre_auth.scope %> - <%= submit_tag "Deny", class: "btn btn-danger btn-lg btn-block" %> + <%= submit_tag _("Deny"), class: "btn btn-danger btn-lg btn-block" %> <% end %>