mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-09 06:02:33 +05:30
Update 2fa locales to use _ instead of -
This commit is contained in:
parent
77cde691c9
commit
4828253093
@ -485,16 +485,15 @@
|
||||
"channel_tab_playlists_label": "Playlists",
|
||||
"channel_tab_community_label": "Community",
|
||||
"channel_tab_channels_label": "Channels",
|
||||
"setup-totp-form-header": "Setup two factor authenticiation (TOTP)",
|
||||
"setup-totp-instructions-download-auth": "Install an authenticator app (or anything that supports totp) on your device",
|
||||
"setup-totp-instructions-enter-code": "Enter the following <strong>secret</strong> code:",
|
||||
"setup-totp-instructions-validate-code": "Enter the 6 digit number on your screen. Be sure to do it under thirty seconds!",
|
||||
"setup-totp-submit-button": "Setup TOTP",
|
||||
"general-totp-empty-field": "The TOTP code is a required field",
|
||||
"general-totp-invalid-code": "The TOTP code entered is invalid",
|
||||
"general-totp-enter-code-field": "6 digit number",
|
||||
"general-totp-enter-code-header": "Two-factor authentication",
|
||||
"general-totp-verify-button": "Verify",
|
||||
"remove-totp-header": "Remove two-factor authentication",
|
||||
"remove-totp-confirm-message": "Are you sure you would like to remove two-factor-authentication?"
|
||||
}
|
||||
"setup_totp_form_header": "Setup two factor authenticiation (TOTP)",
|
||||
"setup_totp_instructions_download_auth": "Install an authenticator app (or anything that supports totp) on your device",
|
||||
"setup_totp_instructions_enter_code": "Enter the following <strong>secret</strong> code:",
|
||||
"setup_totp_instructions_validate_code": "Enter the 6 digit number on your screen. Be sure to do it under thirty seconds!",
|
||||
"setup_totp_submit_button": "Setup TOTP",
|
||||
"general_totp_empty_field": "The TOTP code is a required field",
|
||||
"general_totp_invalid_code": "The TOTP code entered is invalid",
|
||||
"general_totp_enter_code_field": "6 digit number",
|
||||
"general_totp_enter_code_header": "Two-factor authentication",
|
||||
"general_totp_verify_button": "Verify",
|
||||
"remove_totp_header": "Remove two-factor authentication",
|
||||
"remove_totp_confirm_message": "Are you sure you would like to remove two-factor-authentication?"}
|
||||
|
@ -346,7 +346,7 @@
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group">
|
||||
<a href="/setup_2fa?referer=<%= URI.encode_www_form(referer) %>"><%= translate(locale, "setup-totp-form-header") %></a>
|
||||
<a href="/setup_2fa?referer=<%= URI.encode_www_form(referer) %>"><%= translate(locale, "setup_totp_form_header") %></a>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group">
|
||||
|
@ -1,10 +1,10 @@
|
||||
<% content_for "header" do %>
|
||||
<title><%= translate(locale, "remove-totp-header") %> - Invidious</title>
|
||||
<title><%= translate(locale, "remove_totp_header") %> - Invidious</title>
|
||||
<% end %>
|
||||
|
||||
<div class="h-box">
|
||||
<form class="pure-form pure-form-aligned" action="/remove_2fa?referer=<%= URI.encode_www_form(referer) %>" method="post">
|
||||
<legend><%= translate(locale, "remove-totp-confirm-message") %></legend>
|
||||
<legend><%= translate(locale, "remove_totp_confirm_message") %></legend>
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1-2">
|
||||
|
@ -1,5 +1,5 @@
|
||||
<% content_for "header" do %>
|
||||
<title><%= translate(locale, "setup-totp-form-header") %> - Invidious</title>
|
||||
<title><%= translate(locale, "setup_totp_form_header") %> - Invidious</title>
|
||||
<% end %>
|
||||
|
||||
<div class="pure-g">
|
||||
@ -7,25 +7,25 @@
|
||||
<div class="pure-u-1 pure-u-lg-3-5">
|
||||
<div class="h-box">
|
||||
<form class="pure-form pure-form-aligned" action="/setup_2fa?referer=<%= URI.encode_www_form(referer) %>" method="post">
|
||||
<legend><%= translate(locale, "setup-totp-form-header") %></legend>
|
||||
<legend><%= translate(locale, "setup_totp_form_header") %></legend>
|
||||
<fieldset>
|
||||
|
||||
<input name="db_secret" type="hidden" value="<%= HTML.escape(db_secret) %>">
|
||||
|
||||
<ol style="word-wrap: anywhere; white-space: break-space;">
|
||||
<li> <%= translate(locale, "setup-totp-instructions-download-auth") %> </li>
|
||||
<li> <%= translate(locale, "setup-totp-instructions-enter-code") %>
|
||||
<li> <%= translate(locale, "setup_totp_instructions_download_auth") %> </li>
|
||||
<li> <%= translate(locale, "setup_totp_instructions_enter_code") %>
|
||||
<code> <%=user_secret%> </code>
|
||||
</li>
|
||||
<li> <%= translate(locale, "setup-totp-instructions-validate-code") %> </li>
|
||||
<li> <%= translate(locale, "setup_totp_instructions_validate_code") %> </li>
|
||||
</ol>
|
||||
|
||||
<input required class="pure-input-1" name="totp_code" placeholder="<%= translate(locale, "general-totp-enter-code-field") %>">
|
||||
<input required class="pure-input-1" name="totp_code" placeholder="<%= translate(locale, "general_totp_enter_code_field") %>">
|
||||
|
||||
<input type="hidden" name="csrf_token" value="<%= URI.encode_www_form(csrf_token) %>">
|
||||
|
||||
<button type="submit" name="action" value="setup-totp-form-header" class="pure-button pure-button-primary">
|
||||
<%= translate(locale, "setup-totp-submit-button") %>
|
||||
<button type="submit" name="action" value="setup_totp_form_header" class="pure-button pure-button-primary">
|
||||
<%= translate(locale, "setup_totp_submit_button") %>
|
||||
</button>
|
||||
|
||||
</fieldset>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<% content_for "header" do %>
|
||||
<title><%= translate(locale, "setup-totp-form-header") %> - Invidious</title>
|
||||
<title><%= translate(locale, "setup_totp_form_header") %> - Invidious</title>
|
||||
<% end %>
|
||||
|
||||
<div class="pure-g">
|
||||
@ -7,7 +7,7 @@
|
||||
<div class="pure-u-1 pure-u-lg-3-5">
|
||||
<div class="h-box">
|
||||
<form class="pure-form pure-form-aligned" action="/validate_2fa?referer=<%= URI.encode_www_form(referer) %>" method="post">
|
||||
<legend><%= translate(locale, "general-totp-enter-code-header") %></legend>
|
||||
<legend><%= translate(locale, "general_totp_enter_code_header") %></legend>
|
||||
<fieldset>
|
||||
|
||||
<!-- Hidden fields used for sign-in authentication-->
|
||||
@ -18,7 +18,7 @@
|
||||
<input name="password" type="hidden" value="<%= HTML.escape(password) %>">
|
||||
<% end %>
|
||||
|
||||
<input required class="pure-input-1" name="totp_code" placeholder="<%= translate(locale, "general-totp-enter-code-field") %>">
|
||||
<input required class="pure-input-1" name="totp_code" placeholder="<%= translate(locale, "general_totp_enter_code_field") %>">
|
||||
|
||||
<% if csrf_token %>
|
||||
<input type="hidden" name="csrf_token" value="<%= URI.encode_www_form(csrf_token) %>">
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
|
||||
<button type="submit" name="action" class="pure-button pure-button-primary">
|
||||
<%= translate(locale, "general-totp-verify-button") %>
|
||||
<%= translate(locale, "general_totp_verify_button") %>
|
||||
</button>
|
||||
|
||||
</fieldset>
|
||||
|
Loading…
Reference in New Issue
Block a user