Procházet zdrojové kódy

Fix and run extract-translations (#11622)

GitOrigin-RevId: b36c70748da800979dbb7f8c11c1b555515cce7b
Alf Eaton před 3 roky
rodič
revize
73395e008a

+ 0 - 23
services/web/frontend/extracted-translations.json

@@ -15,9 +15,7 @@
   "acct_linked_to_institution_acct_2": "",
   "acct_linked_to_institution_acct_2": "",
   "actions": "",
   "actions": "",
   "add_affiliation": "",
   "add_affiliation": "",
-  "add_another_address_line": "",
   "add_another_email": "",
   "add_another_email": "",
-  "add_company_details": "",
   "add_email_to_claim_features": "",
   "add_email_to_claim_features": "",
   "add_files": "",
   "add_files": "",
   "add_new_email": "",
   "add_new_email": "",
@@ -25,8 +23,6 @@
   "add_role_and_department": "",
   "add_role_and_department": "",
   "add_to_folder": "",
   "add_to_folder": "",
   "additional_licenses": "",
   "additional_licenses": "",
-  "address_line_1": "",
-  "address_second_line_optional": "",
   "all_projects": "",
   "all_projects": "",
   "also": "",
   "also": "",
   "an_error_occurred_when_verifying_the_coupon_code": "",
   "an_error_occurred_when_verifying_the_coupon_code": "",
@@ -58,22 +54,16 @@
   "blank_project": "",
   "blank_project": "",
   "blocked_filename": "",
   "blocked_filename": "",
   "browser": "",
   "browser": "",
-  "by_subscribing_you_agree_to_our_terms_of_service": "",
   "can_edit": "",
   "can_edit": "",
   "can_link_institution_email_acct_to_institution_acct": "",
   "can_link_institution_email_acct_to_institution_acct": "",
   "can_link_your_institution_acct_2": "",
   "can_link_your_institution_acct_2": "",
   "can_now_relink_dropbox": "",
   "can_now_relink_dropbox": "",
   "cancel": "",
   "cancel": "",
-  "cancel_anytime": "",
   "cancel_your_subscription": "",
   "cancel_your_subscription": "",
   "cannot_invite_non_user": "",
   "cannot_invite_non_user": "",
   "cannot_invite_self": "",
   "cannot_invite_self": "",
   "cannot_verify_user_not_robot": "",
   "cannot_verify_user_not_robot": "",
   "cant_see_what_youre_looking_for_question": "",
   "cant_see_what_youre_looking_for_question": "",
-  "card_details": "",
-  "card_details_are_not_valid": "",
-  "card_must_be_authenticated_by_3dsecure": "",
-  "card_payment": "",
   "category_arrows": "",
   "category_arrows": "",
   "category_greek": "",
   "category_greek": "",
   "category_misc": "",
   "category_misc": "",
@@ -108,7 +98,6 @@
   "common": "",
   "common": "",
   "commons_plan_tooltip": "",
   "commons_plan_tooltip": "",
   "compact": "",
   "compact": "",
-  "company_name": "",
   "compile_error_entry_description": "",
   "compile_error_entry_description": "",
   "compile_error_handling": "",
   "compile_error_handling": "",
   "compile_larger_projects": "",
   "compile_larger_projects": "",
@@ -131,7 +120,6 @@
   "copying": "",
   "copying": "",
   "country": "",
   "country": "",
   "country_flag": "",
   "country_flag": "",
-  "coupon_code": "",
   "coupon_code_is_not_valid_for_selected_plan": "",
   "coupon_code_is_not_valid_for_selected_plan": "",
   "create": "",
   "create": "",
   "create_first_project": "",
   "create_first_project": "",
@@ -522,17 +510,13 @@
   "please_select_an_output_file": "",
   "please_select_an_output_file": "",
   "please_set_main_file": "",
   "please_set_main_file": "",
   "plus_upgraded_accounts_receive": "",
   "plus_upgraded_accounts_receive": "",
-  "postal_code": "",
   "premium_feature": "",
   "premium_feature": "",
-  "premium_makes_collab_easier_with_features": "",
   "premium_plan_label": "",
   "premium_plan_label": "",
   "press_shortcut_to_open_advanced_reference_search": "",
   "press_shortcut_to_open_advanced_reference_search": "",
   "priority_support": "",
   "priority_support": "",
   "privacy_policy": "",
   "privacy_policy": "",
   "private": "",
   "private": "",
   "problem_with_subscription_contact_us": "",
   "problem_with_subscription_contact_us": "",
-  "proceed_to_paypal": "",
-  "proceeding_to_paypal_takes_you_to_the_paypal_site_to_pay": "",
   "processing": "",
   "processing": "",
   "professional": "",
   "professional": "",
   "project": "",
   "project": "",
@@ -624,7 +608,6 @@
   "search_search_for": "",
   "search_search_for": "",
   "search_whole_word": "",
   "search_whole_word": "",
   "select_a_file": "",
   "select_a_file": "",
-  "select_a_payment_method": "",
   "select_a_project": "",
   "select_a_project": "",
   "select_all_projects": "",
   "select_all_projects": "",
   "select_an_output_file": "",
   "select_an_output_file": "",
@@ -667,7 +650,6 @@
   "showing_x_results": "",
   "showing_x_results": "",
   "showing_x_results_of_total": "",
   "showing_x_results_of_total": "",
   "something_went_wrong_loading_pdf_viewer": "",
   "something_went_wrong_loading_pdf_viewer": "",
-  "something_went_wrong_processing_the_request": "",
   "something_went_wrong_rendering_pdf": "",
   "something_went_wrong_rendering_pdf": "",
   "something_went_wrong_rendering_pdf_expected": "<0></0>",
   "something_went_wrong_rendering_pdf_expected": "<0></0>",
   "something_went_wrong_server": "",
   "something_went_wrong_server": "",
@@ -685,7 +667,6 @@
   "stop_on_first_error_enabled_title": "",
   "stop_on_first_error_enabled_title": "",
   "stop_on_validation_error": "",
   "stop_on_validation_error": "",
   "store_your_work": "",
   "store_your_work": "",
-  "student_disclaimer": "",
   "subject": "",
   "subject": "",
   "subject_to_additional_vat": "",
   "subject_to_additional_vat": "",
   "submit_title": "",
   "submit_title": "",
@@ -715,8 +696,6 @@
   "thanks_settings_updated": "",
   "thanks_settings_updated": "",
   "the_following_files_already_exist_in_this_project": "",
   "the_following_files_already_exist_in_this_project": "",
   "this_action_cannot_be_undone": "",
   "this_action_cannot_be_undone": "",
-  "this_address_will_be_shown_on_the_invoice": "",
-  "this_field_is_required": "",
   "this_grants_access_to_features_2": "",
   "this_grants_access_to_features_2": "",
   "this_project_is_public": "",
   "this_project_is_public": "",
   "this_project_is_public_read_only": "",
   "this_project_is_public_read_only": "",
@@ -774,7 +753,6 @@
   "update_dropbox_settings": "",
   "update_dropbox_settings": "",
   "update_your_billing_details": "",
   "update_your_billing_details": "",
   "upgrade": "",
   "upgrade": "",
-  "upgrade_cc_btn": "",
   "upgrade_for_longer_compiles": "",
   "upgrade_for_longer_compiles": "",
   "upgrade_now": "",
   "upgrade_now": "",
   "upgrade_to_get_feature": "",
   "upgrade_to_get_feature": "",
@@ -788,7 +766,6 @@
   "user_deletion_password_reset_tip": "",
   "user_deletion_password_reset_tip": "",
   "user_sessions": "",
   "user_sessions": "",
   "validation_issue_entry_description": "",
   "validation_issue_entry_description": "",
-  "vat_number": "",
   "view_all": "",
   "view_all": "",
   "view_logs": "",
   "view_logs": "",
   "view_metrics": "",
   "view_metrics": "",

+ 6 - 2
services/web/frontend/js/features/pdf-preview/components/pdf-preview-error-boundary-fallback.js

@@ -9,8 +9,12 @@ function PdfPreviewErrorBoundaryFallback({ type }) {
     <Trans
     <Trans
       i18nKey="try_recompile_project_or_troubleshoot"
       i18nKey="try_recompile_project_or_troubleshoot"
       components={[
       components={[
-        // eslint-disable-next-line react/jsx-key, jsx-a11y/anchor-has-content, jsx-a11y/anchor-is-valid
-        <a href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems" />,
+        // eslint-disable-next-line jsx-a11y/anchor-has-content
+        <a
+          href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems"
+          target="_blank"
+          key="troubleshooting-link"
+        />,
       ]}
       ]}
     />
     />
   )
   )

+ 15 - 9
services/web/frontend/js/features/pdf-preview/components/pdf-preview-error.js

@@ -27,15 +27,17 @@ function PdfPreviewError({ error }) {
               </Trans>
               </Trans>
               <br />
               <br />
               <br />
               <br />
-              <Trans i18nKey="last_resort_trouble_shooting_guide">
-                {
+              <Trans
+                i18nKey="last_resort_trouble_shooting_guide"
+                components={[
                   // eslint-disable-next-line jsx-a11y/anchor-has-content
                   // eslint-disable-next-line jsx-a11y/anchor-has-content
                   <a
                   <a
                     href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems"
                     href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems"
                     target="_blank"
                     target="_blank"
-                  />
-                }
-              </Trans>
+                    key="troubleshooting-link"
+                  />,
+                ]}
+              />
             </>
             </>
           }
           }
           level="warning"
           level="warning"
@@ -50,8 +52,12 @@ function PdfPreviewError({ error }) {
           <Trans
           <Trans
             i18nKey="try_recompile_project_or_troubleshoot"
             i18nKey="try_recompile_project_or_troubleshoot"
             components={[
             components={[
-              // eslint-disable-next-line react/jsx-key, jsx-a11y/anchor-has-content
-              <a href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems" />,
+              // eslint-disable-next-line jsx-a11y/anchor-has-content
+              <a
+                href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems"
+                target="_blank"
+                key="troubleshooting-link"
+              />,
             ]}
             ]}
           />
           />
         </ErrorLogEntry>
         </ErrorLogEntry>
@@ -155,9 +161,9 @@ function PdfPreviewError({ error }) {
               <strong key="strong-" />,
               <strong key="strong-" />,
               // eslint-disable-next-line jsx-a11y/anchor-has-content
               // eslint-disable-next-line jsx-a11y/anchor-has-content
               <a
               <a
-                key="learn-link"
-                target="_blank"
                 href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems"
                 href="/learn/how-to/Resolving_access%2C_loading%2C_and_display_problems"
+                target="_blank"
+                key="troubleshooting-link"
               />,
               />,
               // eslint-disable-next-line jsx-a11y/anchor-has-content
               // eslint-disable-next-line jsx-a11y/anchor-has-content
               <a key="contact-link" target="_blank" href="/contact" />,
               <a key="contact-link" target="_blank" href="/contact" />,

+ 0 - 3
services/web/locales/en.json

@@ -42,7 +42,6 @@
   "activation_token_expired": "Your activation token has expired, you will need to get another one sent to you.",
   "activation_token_expired": "Your activation token has expired, you will need to get another one sent to you.",
   "add": "Add",
   "add": "Add",
   "add_affiliation": "Add Affiliation",
   "add_affiliation": "Add Affiliation",
-  "add_another_address_line": "Add another address line",
   "add_another_email": "Add another email",
   "add_another_email": "Add another email",
   "add_comma_separated_emails_help": "Separate multiple email addresses using the comma (,) character.",
   "add_comma_separated_emails_help": "Separate multiple email addresses using the comma (,) character.",
   "add_comment": "Add comment",
   "add_comment": "Add comment",
@@ -178,7 +177,6 @@
   "cant_find_page": "Sorry, we can’t find the page you are looking for.",
   "cant_find_page": "Sorry, we can’t find the page you are looking for.",
   "cant_see_what_youre_looking_for_question": "Can’t see what you’re looking for?",
   "cant_see_what_youre_looking_for_question": "Can’t see what you’re looking for?",
   "card_details": "Card details",
   "card_details": "Card details",
-  "card_details_are_not_valid": "Card details are not valid",
   "card_must_be_authenticated_by_3dsecure": "Your card must be authenticated with 3D Secure before continuing",
   "card_must_be_authenticated_by_3dsecure": "Your card must be authenticated with 3D Secure before continuing",
   "card_payment": "Card payment",
   "card_payment": "Card payment",
   "careers": "Careers",
   "careers": "Careers",
@@ -1343,7 +1341,6 @@
   "sl_included_history_of_changes_blurb": "__appName__ includes a history of all of your changes so you can see exactly who changed what, and when. This makes it extremely easy to keep up to date with any progress made by your collaborators and allows you to review recent work.",
   "sl_included_history_of_changes_blurb": "__appName__ includes a history of all of your changes so you can see exactly who changed what, and when. This makes it extremely easy to keep up to date with any progress made by your collaborators and allows you to review recent work.",
   "something_went_wrong_canceling_your_subscription": "Something went wrong canceling your subscription. Please contact support.",
   "something_went_wrong_canceling_your_subscription": "Something went wrong canceling your subscription. Please contact support.",
   "something_went_wrong_loading_pdf_viewer": "Something went wrong loading the PDF viewer. This might be caused by issues like <0>temporary network problems</0> or an <0>outdated web browser</0>. Please follow the <1>troubleshooting steps for access, loading and display problems</1>. If the issue persists, please <2>let us know</2>.",
   "something_went_wrong_loading_pdf_viewer": "Something went wrong loading the PDF viewer. This might be caused by issues like <0>temporary network problems</0> or an <0>outdated web browser</0>. Please follow the <1>troubleshooting steps for access, loading and display problems</1>. If the issue persists, please <2>let us know</2>.",
-  "something_went_wrong_processing_the_request": "Something went wrong processing the request",
   "something_went_wrong_rendering_pdf": "Something went wrong while rendering this PDF.",
   "something_went_wrong_rendering_pdf": "Something went wrong while rendering this PDF.",
   "something_went_wrong_rendering_pdf_expected": "There was an issue displaying this PDF. <0>Please recompile</0>",
   "something_went_wrong_rendering_pdf_expected": "There was an issue displaying this PDF. <0>Please recompile</0>",
   "something_went_wrong_server": "Something went wrong. Please try again.",
   "something_went_wrong_server": "Something went wrong. Please try again.",