Преглед на файлове

Merge pull request #9114 from overleaf/ds-history-page-word-change

Changing wording on history page for binaries

GitOrigin-RevId: e6ba5f586c195e166b215d35fd3b78c605035b0b
Davinder Singh преди 4 години
родител
ревизия
884a432681
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2 2
      services/web/app/views/project/editor/history/previewPanelV2.pug
  2. 1 0
      services/web/locales/en.json

+ 2 - 2
services/web/app/views/project/editor/history/previewPanelV2.pug

@@ -17,7 +17,7 @@
 			navigate-highlights="true"
 			navigate-highlights="true"
 		)
 		)
 		.alert.alert-info(ng-if="history.selection.diff.binary")
 		.alert.alert-info(ng-if="history.selection.diff.binary")
-			| We're still working on showing image and binary changes, sorry. Stay tuned!
+			| #{translate("binary_history_error")}
 
 
 	.loading-panel(ng-show="isHistoryLoading()")
 	.loading-panel(ng-show="isHistoryLoading()")
 		i.fa.fa-spin.fa-refresh
 		i.fa.fa-spin.fa-refresh
@@ -41,7 +41,7 @@
 			resize-on="layout:main:resize,history:toggle",
 			resize-on="layout:main:resize,history:toggle",
 		)
 		)
 		.alert.alert-info(ng-if="history.selection.file.binary")
 		.alert.alert-info(ng-if="history.selection.file.binary")
-			| We're still working on showing image and binary changes, sorry. Stay tuned!
+			| #{translate("binary_history_error")}
 	.loading-panel(ng-show="isHistoryLoading()")
 	.loading-panel(ng-show="isHistoryLoading()")
 		i.fa.fa-spin.fa-refresh
 		i.fa.fa-spin.fa-refresh
 		|   #{translate("loading")}…
 		|   #{translate("loading")}…

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

@@ -1781,6 +1781,7 @@
   "try_to_compile_despite_errors": "Try to compile despite errors",
   "try_to_compile_despite_errors": "Try to compile despite errors",
   "stop_on_first_error_enabled_title": "No PDF: Stop on first error enabled",
   "stop_on_first_error_enabled_title": "No PDF: Stop on first error enabled",
   "stop_on_first_error_enabled_description": "<0>“Stop on first error” is enabled.</0> Disabling it may allow the compiler to produce a PDF (but your project will still have errors).",
   "stop_on_first_error_enabled_description": "<0>“Stop on first error” is enabled.</0> Disabling it may allow the compiler to produce a PDF (but your project will still have errors).",
+  "binary_history_error":"Preview not available for this file type",
   "disable_stop_on_first_error": "Disable “Stop on first error”",
   "disable_stop_on_first_error": "Disable “Stop on first error”",
   "free_plan_label": "You’re on the <b>free plan</b>",
   "free_plan_label": "You’re on the <b>free plan</b>",
   "free_plan_tooltip": "Click to find out how you could benefit from Overleaf premium features!",
   "free_plan_tooltip": "Click to find out how you could benefit from Overleaf premium features!",