diff --git a/app/views/static/linkfilter.haml b/app/views/static/linkfilter.haml index 0fefbb21..cfc55e44 100644 --- a/app/views/static/linkfilter.haml +++ b/app/views/static/linkfilter.haml @@ -1,19 +1,10 @@ .container.pt-3 .card .card-body - %h1 - You're leaving - = APP_CONFIG['site_name'] - %p.lead - The link you are visiting is not trusted by - = APP_CONFIG['site_name'] - %p - Never enter your passwords or other private information on an untrusted website. - = APP_CONFIG['site_name'] - will only ever ask for your password on a site that is on the domain - = APP_CONFIG['hostname'] - - %p.font-weight-bold.mb-0 URL: + %h1= t(".heading", app_name: APP_CONFIG["site_name"]) + %p.lead= t(".subheading", app_name: APP_CONFIG["site_name"]) + %p= t(".subheading", app_name: APP_CONFIG["site_name"], hostname: APP_CONFIG["hostname"]) + %p.font-weight-bold.mb-0= t(".url") %pre.bg-light.text-dark.p-3.rounded= @link - %a.btn.btn-primary{ href: @link, rel: 'nofollow' } I understand the risk, proceed! + %a.btn.btn-primary{ href: @link, rel: "nofollow" }= t(".confirm") diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 37d488d4..fb5ed8ab 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -245,6 +245,12 @@ en: prompt: header: "What are you waiting for?" body: "Registering takes less than 5 minutes!" + linkfilter: + heading: "You're leaving %{app_name}" + subheading: "The link you are visiting is not trusted by %{app_name}" + body: Never enter your passwords or other private information on an untrusted website. %{app_name} will only ever ask for your password on a site that is on the domain %{hostname} + url: "URL:" + confirm: "I understand the risk, proceed!" tabs: settings: account: "Account"