Просмотр исходного кода

Update unavailable Visual Editor tooltip (#14285)

GitOrigin-RevId: 3f19c2a3c55199c8b25aa5ebe0c4f1222aa84363
Alf Eaton 3 лет назад
Родитель
Сommit
ffdb651998

+ 1 - 1
services/web/frontend/extracted-translations.json

@@ -1039,7 +1039,6 @@
   "thanks_for_subscribing_you_help_sl": "",
   "thanks_for_subscribing_you_help_sl": "",
   "thanks_settings_updated": "",
   "thanks_settings_updated": "",
   "the_following_files_already_exist_in_this_project": "",
   "the_following_files_already_exist_in_this_project": "",
-  "the_visual_editor_is_only_available_for_tex_files": "",
   "the_width_you_choose_here_is_based_on_the_width_of_the_text_in_your_document": "",
   "the_width_you_choose_here_is_based_on_the_width_of_the_text_in_your_document": "",
   "their_projects_will_be_transferred_to_another_user": "",
   "their_projects_will_be_transferred_to_another_user": "",
   "then_x_price_per_month": "",
   "then_x_price_per_month": "",
@@ -1195,6 +1194,7 @@
   "view_your_invoices": "",
   "view_your_invoices": "",
   "viewing_x": "",
   "viewing_x": "",
   "visual_editor": "",
   "visual_editor": "",
+  "visual_editor_is_only_available_for_tex_files": "",
   "want_change_to_apply_before_plan_end": "",
   "want_change_to_apply_before_plan_end": "",
   "we_cant_find_any_sections_or_subsections_in_this_file": "",
   "we_cant_find_any_sections_or_subsections_in_this_file": "",
   "we_logged_you_in": "",
   "we_logged_you_in": "",

+ 1 - 1
services/web/frontend/js/features/source-editor/components/editor-switch-legacy.tsx

@@ -161,7 +161,7 @@ const RichTextToggle: FC<{
   if (disabled) {
   if (disabled) {
     return (
     return (
       <Tooltip
       <Tooltip
-        description={t('the_visual_editor_is_only_available_for_tex_files')}
+        description={t('visual_editor_is_only_available_for_tex_files')}
         id="rich-text-toggle-tooltip"
         id="rich-text-toggle-tooltip"
         overlayProps={{ placement: 'bottom' }}
         overlayProps={{ placement: 'bottom' }}
         tooltipProps={{ className: 'tooltip-wide' }}
         tooltipProps={{ className: 'tooltip-wide' }}

+ 1 - 1
services/web/frontend/js/features/source-editor/components/editor-switch.tsx

@@ -104,7 +104,7 @@ const RichTextToggle: FC<{
   if (disabled) {
   if (disabled) {
     return (
     return (
       <Tooltip
       <Tooltip
-        description={t('the_visual_editor_is_only_available_for_tex_files')}
+        description={t('visual_editor_is_only_available_for_tex_files')}
         id="rich-text-toggle-tooltip"
         id="rich-text-toggle-tooltip"
         overlayProps={{ placement: 'bottom' }}
         overlayProps={{ placement: 'bottom' }}
         tooltipProps={{ className: 'tooltip-wide' }}
         tooltipProps={{ className: 'tooltip-wide' }}

+ 1 - 1
services/web/locales/en.json

@@ -1663,7 +1663,6 @@
   "the_required_parameters_were_not_supplied": "The link to open this content on Overleaf was missing some required parameters. If this keeps happening for links on a particular site, please report this to them.",
   "the_required_parameters_were_not_supplied": "The link to open this content on Overleaf was missing some required parameters. If this keeps happening for links on a particular site, please report this to them.",
   "the_supplied_parameters_were_invalid": "The link to open this content on Overleaf included some invalid parameters. If this keeps happening for links on a particular site, please report this to them.",
   "the_supplied_parameters_were_invalid": "The link to open this content on Overleaf included some invalid parameters. If this keeps happening for links on a particular site, please report this to them.",
   "the_supplied_uri_is_invalid": "The link to open this content on Overleaf included an invalid URI. If this keeps happening for links on a particular site, please report this to them.",
   "the_supplied_uri_is_invalid": "The link to open this content on Overleaf included an invalid URI. If this keeps happening for links on a particular site, please report this to them.",
-  "the_visual_editor_is_only_available_for_tex_files": "The Visual Editor is only available for TeX files",
   "the_width_you_choose_here_is_based_on_the_width_of_the_text_in_your_document": "The width you choose here is based on the width of the text in your document. Alternatively, you can customize the image size directly in the LaTeX code.",
   "the_width_you_choose_here_is_based_on_the_width_of_the_text_in_your_document": "The width you choose here is based on the width of the text in your document. Alternatively, you can customize the image size directly in the LaTeX code.",
   "their_projects_will_be_transferred_to_another_user": "Their projects will all be transferred to another user of your choice",
   "their_projects_will_be_transferred_to_another_user": "Their projects will all be transferred to another user of your choice",
   "theme": "Theme",
   "theme": "Theme",
@@ -1867,6 +1866,7 @@
   "view_your_invoices": "View Your Invoices",
   "view_your_invoices": "View Your Invoices",
   "viewing_x": "Viewing <0>__endTime__</0>",
   "viewing_x": "Viewing <0>__endTime__</0>",
   "visual_editor": "Visual Editor",
   "visual_editor": "Visual Editor",
+  "visual_editor_is_only_available_for_tex_files": "Visual Editor is only available for TeX files",
   "want_change_to_apply_before_plan_end": "If you wish this change to apply before the end of your current billing period, please contact us.",
   "want_change_to_apply_before_plan_end": "If you wish this change to apply before the end of your current billing period, please contact us.",
   "we_cant_find_any_sections_or_subsections_in_this_file": "We can’t find any sections or subsections in this file",
   "we_cant_find_any_sections_or_subsections_in_this_file": "We can’t find any sections or subsections in this file",
   "we_logged_you_in": "We have logged you in.",
   "we_logged_you_in": "We have logged you in.",