Use built-in translation lookups for form helps

This commit is contained in:
Andy Allan 2021-05-19 16:21:17 +01:00
parent 39ca64c814
commit b18c1bff8b
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
<%= f.text_field :name %>
<%= f.text_area :redirect_uri, :help => t(".redirect_uri_help") %>
<%= f.form_group :confidential, :help => t(".confidential_help") do %>
<%= f.text_area :redirect_uri %>
<%= f.form_group :confidential do %>
<%= f.check_box :confidential %>
<% end %>
<%= f.collection_check_boxes :scopes, Oauth.scopes, :name, :description %>

View file

@ -146,6 +146,9 @@ en:
pass_crypt: "Password"
pass_crypt_confirmation: "Confirm Password"
help:
doorkeeper/application:
confidential: "Application will be used where the client secret can be kept confidential, eg mobile apps and single page apps"
redirect_uri: "Use one line per URI"
trace:
tagstring: comma delimited
user_block:
@ -2359,9 +2362,6 @@ en:
client_secret_warning: "Make sure to save this secret - it will not be accessible again"
permissions: "Permissions"
redirect_uris: "Redirect URIs"
form:
redirect_uri_help: "Use one line per URI"
confidential_help: "Application will be used where the client secret can be kept confidential (native mobile apps and single page apps are not confidential)"
not_found:
sorry: "Sorry, that application could not be found."
oauth2_authorizations: