Skip to content

Commit

Permalink
Use built-in translation lookups for form helps
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed May 19, 2021
1 parent 39ca64c commit b18c1bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/oauth2_applications/_form.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>
Expand Down
6 changes: 3 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b18c1bf

Please sign in to comment.