From d47122340a20ab429187b4bdbc74a1172da0b1dc Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 12 Nov 2022 08:31:25 -0800 Subject: [PATCH] Add translation strings for welcome tour buttons --- src-ui/messages.xlf | 58 +++++++++++++++++++++------------ src-ui/src/app/app.component.ts | 34 +++++++++++++++++++ 2 files changed, 72 insertions(+), 20 deletions(-) diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 98ef8c968..daca389d1 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -298,95 +298,120 @@ 114 + + Prev + + src/app/app.component.ts + 119 + + + + Next + + src/app/app.component.ts + 120 + + + src/app/components/document-detail/document-detail.component.html + 55 + + + + End + + src/app/app.component.ts + 121 + + The dashboard can be used to show saved views, such as an 'Inbox'. Those settings are found under Settings > Saved Views once you have created some. src/app/app.component.ts - 122 + 126 Drag-and-drop documents here to start uploading or place them in the consume folder. You can also drag-and-drop documents anywhere on all other pages of the web app. Once you do, Paperless-ngx will start training its machine learning algorithms. src/app/app.component.ts - 129 + 136 The documents list shows all of your documents and allows for filtering as well as bulk-editing. There are three different view styles: list, small cards and large cards. A list of documents currently opened for editing is shown in the sidebar. src/app/app.component.ts - 135 + 145 The filtering tools allow you to quickly find documents using various searches, dates, tags, etc. src/app/app.component.ts - 144 + 157 Any combination of filters can be saved as a 'view' which can then be displayed on the dashboard and / or sidebar. src/app/app.component.ts - 151 + 167 Tags, correspondents, document types and storage paths can all be managed using these pages. They can also be created from the document edit view. src/app/app.component.ts - 157 + 176 File Tasks shows you documents that have been consumed, are waiting to be, or may have failed during the process. src/app/app.component.ts - 163 + 185 Check out the settings for various tweaks to the web app or to toggle settings for saved views. src/app/app.component.ts - 169 + 194 The Admin area contains more advanced controls as well as the settings for automatic e-mail fetching. src/app/app.component.ts - 175 + 203 Thank you! 🙏 src/app/app.component.ts - 180 + 211 There are <em>tons</em> more features and info we didn't cover here, but this should get you started. Check out the documentation or visit the project on GitHub to learn more or to report issues. src/app/app.component.ts - 182 + 213 Lastly, on behalf of every contributor to this community-supported project, thank you for using Paperless-ngx! src/app/app.component.ts - 184 + 215 Initiating upload... src/app/app.component.ts - 230 + 264 @@ -1625,13 +1650,6 @@ 50 - - Next - - src/app/components/document-detail/document-detail.component.html - 55 - - Details diff --git a/src-ui/src/app/app.component.ts b/src-ui/src/app/app.component.ts index 1d1280eaa..b385498fb 100644 --- a/src-ui/src/app/app.component.ts +++ b/src-ui/src/app/app.component.ts @@ -116,6 +116,10 @@ export class AppComponent implements OnInit, OnDestroy { } }) + const prevBtnTitle = $localize`Prev` + const nextBtnTitle = $localize`Next` + const endBtnTitle = $localize`End` + this.tourService.initialize([ { anchorId: 'tour.dashboard', @@ -123,12 +127,18 @@ export class AppComponent implements OnInit, OnDestroy { route: '/dashboard', enableBackdrop: true, delayAfterNavigation: 500, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.upload-widget', content: $localize`Drag-and-drop documents here to start uploading or place them in the consume folder. You can also drag-and-drop documents anywhere on all other pages of the web app. Once you do, Paperless-ngx will start training its machine learning algorithms.`, route: '/dashboard', enableBackdrop: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.documents', @@ -138,6 +148,9 @@ export class AppComponent implements OnInit, OnDestroy { placement: 'bottom', enableBackdrop: true, disableScrollToAnchor: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.documents-filter-editor', @@ -145,35 +158,53 @@ export class AppComponent implements OnInit, OnDestroy { route: '/documents?sort=created&reverse=1&page=1', placement: 'bottom', enableBackdrop: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.documents-views', content: $localize`Any combination of filters can be saved as a 'view' which can then be displayed on the dashboard and / or sidebar.`, route: '/documents?sort=created&reverse=1&page=1', enableBackdrop: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.tags', content: $localize`Tags, correspondents, document types and storage paths can all be managed using these pages. They can also be created from the document edit view.`, route: '/tags', enableBackdrop: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.file-tasks', content: $localize`File Tasks shows you documents that have been consumed, are waiting to be, or may have failed during the process.`, route: '/tasks', enableBackdrop: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.settings', content: $localize`Check out the settings for various tweaks to the web app or to toggle settings for saved views.`, route: '/settings', enableBackdrop: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.admin', content: $localize`The Admin area contains more advanced controls as well as the settings for automatic e-mail fetching.`, enableBackdrop: true, + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, { anchorId: 'tour.outro', @@ -183,6 +214,9 @@ export class AppComponent implements OnInit, OnDestroy { '

' + $localize`Lastly, on behalf of every contributor to this community-supported project, thank you for using Paperless-ngx!`, route: '/dashboard', + prevBtnTitle, + nextBtnTitle, + endBtnTitle, }, ])