From: Andy Allan Date: Wed, 19 May 2021 15:21:17 +0000 (+0100) Subject: Use built-in translation lookups for form helps X-Git-Tag: live~1533^2~1 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b18c1bff8be91b1a6f3995c74a766d92650396b0 Use built-in translation lookups for form helps --- diff --git a/app/views/oauth2_applications/_form.html.erb b/app/views/oauth2_applications/_form.html.erb index c61d351b7..d69536c6b 100644 --- a/app/views/oauth2_applications/_form.html.erb +++ b/app/views/oauth2_applications/_form.html.erb @@ -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 %> diff --git a/config/locales/en.yml b/config/locales/en.yml index f909adefc..387a0fa64 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: