From 90207029de7474082310d0725801d60f7145fa98 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 24 Jul 2026 22:08:05 +0200 Subject: Extract admin strings to i18n: sessions, otp, users/edit --- app/views/otp_enrollments/show.html.erb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'app/views/otp_enrollments') diff --git a/app/views/otp_enrollments/show.html.erb b/app/views/otp_enrollments/show.html.erb index 12067ae3..e18d7fd1 100644 --- a/app/views/otp_enrollments/show.html.erb +++ b/app/views/otp_enrollments/show.html.erb @@ -1,14 +1,14 @@ -

Enable second factor

+

<%= t(".title") %>

-
Scan
+
<%= t(".scan") %>
<%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri) .as_svg(:module_size => 4, :viewbox => true, :color => "000", :fill => "fff") %>
- Or enter the secret manually: <%= current_user.otp_pending_secret %> + <%= t(".manual_hint") %> <%= current_user.otp_pending_secret %>
Confirm
@@ -17,10 +17,9 @@ <%= text_field_tag :code, nil, :autofocus => true, :autocomplete => "one-time-code", :inputmode => "numeric" %> <%= button_tag :type => "submit", :class => "action_button" do %> - <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> Confirm + <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %> <% end %> <% end %> - Enter the six-digit code your app shows - for “<%= OTP_ISSUER %>”. + <%= t(".app_hint", :issuer => OTP_ISSUER) %>
-- cgit v1.3