From 482825309317f382cff656b6378353039da0408a Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 16 Jul 2021 13:32:56 -0700 Subject: [PATCH] Update 2fa locales to use _ instead of - --- locales/en-US.json | 25 +++++++++++------------ src/invidious/views/user/preferences.ecr | 2 +- src/invidious/views/user/remove_2fa.ecr | 4 ++-- src/invidious/views/user/setup_2fa.ecr | 16 +++++++-------- src/invidious/views/user/validate_2fa.ecr | 8 ++++---- 5 files changed, 27 insertions(+), 28 deletions(-) diff --git a/locales/en-US.json b/locales/en-US.json index b3eb8d18..4f57abff 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -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 secret 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 secret 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?"} diff --git a/src/invidious/views/user/preferences.ecr b/src/invidious/views/user/preferences.ecr index a0f77dbf..3ad38f0e 100644 --- a/src/invidious/views/user/preferences.ecr +++ b/src/invidious/views/user/preferences.ecr @@ -346,7 +346,7 @@
- <%= translate(locale, "setup-totp-form-header") %> + <%= translate(locale, "setup_totp_form_header") %>
diff --git a/src/invidious/views/user/remove_2fa.ecr b/src/invidious/views/user/remove_2fa.ecr index 47f92263..540b99d2 100644 --- a/src/invidious/views/user/remove_2fa.ecr +++ b/src/invidious/views/user/remove_2fa.ecr @@ -1,10 +1,10 @@ <% content_for "header" do %> -<%= translate(locale, "remove-totp-header") %> - Invidious +<%= translate(locale, "remove_totp_header") %> - Invidious <% end %>
- <%= translate(locale, "remove-totp-confirm-message") %> + <%= translate(locale, "remove_totp_confirm_message") %>
diff --git a/src/invidious/views/user/setup_2fa.ecr b/src/invidious/views/user/setup_2fa.ecr index a22e5f0b..deafe7ca 100644 --- a/src/invidious/views/user/setup_2fa.ecr +++ b/src/invidious/views/user/setup_2fa.ecr @@ -1,5 +1,5 @@ <% content_for "header" do %> -<%= translate(locale, "setup-totp-form-header") %> - Invidious +<%= translate(locale, "setup_totp_form_header") %> - Invidious <% end %>
@@ -7,25 +7,25 @@
- <%= translate(locale, "setup-totp-form-header") %> + <%= translate(locale, "setup_totp_form_header") %>
    -
  1. <%= translate(locale, "setup-totp-instructions-download-auth") %>
  2. -
  3. <%= translate(locale, "setup-totp-instructions-enter-code") %> +
  4. <%= translate(locale, "setup_totp_instructions_download_auth") %>
  5. +
  6. <%= translate(locale, "setup_totp_instructions_enter_code") %> <%=user_secret%>
  7. -
  8. <%= translate(locale, "setup-totp-instructions-validate-code") %>
  9. +
  10. <%= translate(locale, "setup_totp_instructions_validate_code") %>
- "> + "> -
diff --git a/src/invidious/views/user/validate_2fa.ecr b/src/invidious/views/user/validate_2fa.ecr index 3e477689..9d2b5d0b 100644 --- a/src/invidious/views/user/validate_2fa.ecr +++ b/src/invidious/views/user/validate_2fa.ecr @@ -1,5 +1,5 @@ <% content_for "header" do %> -<%= translate(locale, "setup-totp-form-header") %> - Invidious +<%= translate(locale, "setup_totp_form_header") %> - Invidious <% end %>
@@ -7,7 +7,7 @@
- <%= translate(locale, "general-totp-enter-code-header") %> + <%= translate(locale, "general_totp_enter_code_header") %>
@@ -18,7 +18,7 @@ <% end %> - "> + "> <% if csrf_token %> @@ -26,7 +26,7 @@