From 663ca275cb02760895ae0fa0aaca4b6fb316cef6 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Mon, 13 Aug 2018 17:09:18 +0100 Subject: [PATCH] Add i18n. --- .../app/views/project/editor/history/previewPanelV2.pug | 4 ++-- .../web/app/views/project/editor/history/toolbarV2.pug | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/web/app/views/project/editor/history/previewPanelV2.pug b/services/web/app/views/project/editor/history/previewPanelV2.pug index 3d7a1ac3df..773d79878f 100644 --- a/services/web/app/views/project/editor/history/previewPanelV2.pug +++ b/services/web/app/views/project/editor/history/previewPanelV2.pug @@ -45,7 +45,7 @@ text="history.diff.text", highlights="history.diff.highlights", read-only="true", - resize-on="layout:main:resize", + resize-on="layout:main:resize,history:toggle", navigate-highlights="true" ) .alert.alert-info(ng-if="history.diff.binary") @@ -70,7 +70,7 @@ font-size="settings.fontSize", text="history.selectedFile.text", read-only="true", - resize-on="layout:main:resize", + resize-on="layout:main:resize,history:toggle", ) .alert.alert-info(ng-if="history.selectedFile.binary") | We're still working on showing image and binary changes, sorry. Stay tuned! diff --git a/services/web/app/views/project/editor/history/toolbarV2.pug b/services/web/app/views/project/editor/history/toolbarV2.pug index 4e4b6f7ae3..aa459e0b32 100644 --- a/services/web/app/views/project/editor/history/toolbarV2.pug +++ b/services/web/app/views/project/editor/history/toolbarV2.pug @@ -11,7 +11,7 @@ time.history-toolbar-time {{ history.selection.updates[0].meta.end_ts | formatDate:'Do MMM YYYY, h:mm a' }} span.history-toolbar-selected-version( ng-show="!history.loadingFileTree && history.showOnlyLabels && history.selection.label" - ) Browsing project version labelled + ) #{translate("browsing_project_labelled")}  span.history-toolbar-selected-label "{{ history.selection.label.comment }}" div.history-toolbar-actions button.history-toolbar-btn( @@ -31,9 +31,9 @@ .history-toolbar-entries-list toggle-switch( ng-model="history.showOnlyLabels" - label-true="Labels" - label-false="All history" - description="Show all of the project history or only labelled versions." + label-true=translate("history_view_labels") + label-false=translate("history_view_all") + description=translate("history_view_a11y_description") ) script(type="text/ng-template", id="historyV2AddLabelModalTemplate")