A cross platform Audiobookshelf client for Android and iOS
Dart
Add Send to E-Reader, bulk Quick Match, series requests, read along creation and chapter tools on BookOrbit
Barnabasabff58b14a52
diff --git a/README.md b/README.mdindex e02551bd..4373a7e6 100644--- a/README.md+++ b/README.md@@ -76,7 +76,7 @@ Absorb is translated by the community on [Crowdin](https://crowdin.com/project/a### Google Play-Open testing is live - [join the open beta on Google Play](https://play.google.com/store/apps/details?id=com.barnabas.absorb). Open testing and production releases match GitHub full releases. Internal testing (alpha) matches GitHub pre-releases - join the [Discord](https://discord.gg/dW4Y4zCxRp) to request access to the internal track.+Open testing is live - [join the open beta on Google Play](https://play.google.com/store/apps/details?id=com.barnabas.absorb). Open testing and production releases match GitHub full releases. Internal testing (alpha) matches GitHub pre-releases - join the [Discord](https://discord.gg/vkEg8w7RUd) to request access to the internal track.### App Storediff --git a/android/app/build.gradle.kts b/android/app/build.gradle.ktsindex d75fcb86..e36f1fa0 100644--- a/android/app/build.gradle.kts+++ b/android/app/build.gradle.kts@@ -171,6 +171,12 @@ dependencies {"com.google.android.gms:play-services-cast-framework:21.5.0","com.google.android.gms:play-services-wearable:19.0.0","org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.9.0",+ // Opens the watch app on the watch when the phone starts playing.+ // Its result is a Guava ListenableFuture; Guava already ships in+ // the app at runtime (same version), this only puts it on the+ // compile classpath.+ "androidx.wear:wear-remote-interactions:1.2.0",+ "com.google.guava:guava:33.3.1-android",)gmsImpl.forEach {add("githubImplementation", it)diff --git a/android/app/src/gms/kotlin/com/barnabas/absorb/WearPlayerCommandListenerService.kt b/android/app/src/gms/kotlin/com/barnabas/absorb/WearPlayerCommandListenerService.ktindex 09a4b6bf..764f4a31 100644--- a/android/app/src/gms/kotlin/com/barnabas/absorb/WearPlayerCommandListenerService.kt+++ b/android/app/src/gms/kotlin/com/barnabas/absorb/WearPlayerCommandListenerService.kt@@ -7,6 +7,7 @@ import android.media.AudioManagerimport android.net.Uriimport android.util.Logimport android.view.KeyEvent+import androidx.wear.remote.interactions.RemoteActivityHelperimport com.google.android.gms.wearable.MessageEventimport com.google.android.gms.wearable.Wearableimport com.google.android.gms.wearable.WearableListenerService@@ -27,6 +28,7 @@ import org.json.JSONObject* can route. Flutter's HomeWidgetService picks it up and calls* AudioPlayerService.playItem unconditionally (replacing any current* session).+ * - open-watch: opens the watch app on the asking watch.*/class WearPlayerCommandListenerService : WearableListenerService() {@@ -46,6 +48,7 @@ class WearPlayerCommandListenerService : WearableListenerService() {"/absorb/player/cmd/sleep" -> command("sleep", jsonArgs(event.data))"/absorb/player/cmd/seek" -> command("seek", jsonArgs(event.data))"/absorb/player/cmd/speed" -> command("speed", jsonArgs(event.data))+ "/absorb/player/cmd/open-watch" -> openWatchApp(event.sourceNodeId)else -> super.onMessageReceived(event)}}@@ -74,6 +77,29 @@ class WearPlayerCommandListenerService : WearableListenerService() {launch(builder.build())}+ // The watch saw this phone start playing and has "Open when phone plays"+ // on. It may not open its own screen from the background, but Wear OS+ // will open it for us.+ private fun openWatchApp(nodeId: String) {+ val target = Intent(Intent.ACTION_VIEW)+ .addCategory(Intent.CATEGORY_BROWSABLE)+ .setData(Uri.parse("absorbwear://${applicationContext.packageName}/phone"))+ Log.i(TAG, "Watch -> open the watch app on $nodeId")+ try {+ val sent = RemoteActivityHelper(applicationContext).startRemoteActivity(target, nodeId)+ sent.addListener({+ try {+ sent.get()+ Log.i(TAG, "watch app open sent to $nodeId")+ } catch (e: Exception) {+ Log.w(TAG, "opening the watch app on $nodeId failed", e)+ }+ }, { it.run() })+ } catch (e: Exception) {+ Log.w(TAG, "opening the watch app on $nodeId failed", e)+ }+ }+private fun dispatchMediaButton(keyCode: Int) {Log.i(TAG, "Watch -> MediaButton keyCode=$keyCode")val intent = Intent(Intent.ACTION_MEDIA_BUTTON).apply {@@ -118,6 +144,8 @@ class WearPlayerCommandListenerService : WearableListenerService() {Log.w(TAG, "play-item missing itemId"); return}val episodeId = payload.optString("episodeId").ifBlank { null }+ // Where the watch was, so the phone carries on from there.+ val position = payload.optDouble("position").takeIf { it.isFinite() && it > 0.0 }// Build a URI the home_widget plugin already knows how to route// — it captures intents whose action is HOME_WIDGET_CLICK and@@ -129,6 +157,7 @@ class WearPlayerCommandListenerService : WearableListenerService() {.appendPath("play_item").appendQueryParameter("itemId", itemId)if (episodeId != null) builder.appendQueryParameter("episodeId", episodeId)+ if (position != null) builder.appendQueryParameter("position", position.toString())launch(builder.build())}diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xmlindex 840d8a67..21595a9e 100644--- a/android/app/src/main/AndroidManifest.xml+++ b/android/app/src/main/AndroidManifest.xml@@ -262,5 +262,10 @@<action android:name="android.intent.action.PROCESS_TEXT"/><data android:mimeType="text/plain"/></intent>+ <!-- The Wear OS companion app carries "open on the watch" requests+ (RemoteActivityHelper), so it has to be visible to us. -->+ <intent>+ <action android:name="com.google.android.wearable.intent.action.REMOTE_INTENT"/>+ </intent></queries></manifest>diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arbindex f7ec3b47..defb8912 100644--- a/lib/l10n/app_en.arb+++ b/lib/l10n/app_en.arb@@ -1194,6 +1194,14 @@}}},+ "breqBookCount": "{count, plural, =1{1 book} other{{count} books}}",+ "@breqBookCount": {+ "placeholders": {+ "count": {+ "type": "int"+ }+ }+ },"breqDownloadingPercent": "Downloading, {percent}%","@breqDownloadingPercent": {"placeholders": {@@ -6990,5 +6998,419 @@"achievementsSwitchSubtitle": "Track achievements on BookOrbit. Turning this off hides them here and on the web.","achievementsTurnedOn": "Achievements turned on","achievementsTurnedOff": "Achievements turned off",- "achievementsSwitchFailed": "Couldn't change achievements on BookOrbit"+ "achievementsSwitchFailed": "Couldn't change achievements on BookOrbit",+ "boNotifyReadAlong": "Read alongs",+ "boNotifyReadAlongDesc": "When a read along you started is ready, needs a look, or fails.",+ "readAlongCreate": "Create read along",+ "readAlongLoadFailed": "Couldn't check whether a read along can be made for this book.",+ "readAlongCheckAgain": "Check again",+ "readAlongWhyWorkerOffline": "BookOrbit's read along worker is offline right now.",+ "readAlongWhyWorkerOutdated": "BookOrbit's read along worker needs an update to work with this server.",+ "readAlongWhyFilesMissing": "Restore this book's missing files to make a read along.",+ "readAlongWhyNoEpub": "Add a plain EPUB to this book to make a read along.",+ "readAlongWhyNoEpubHasOne": "This book already has a read along and no plain EPUB to make another from.",+ "readAlongWhyTooManyTracks": "This audiobook has more files than a read along can be made from.",+ "readAlongWhyEpubNotAllowed": "This library doesn't take EPUB files, so a read along can't be added.",+ "readAlongWhyNotMounted": "BookOrbit's read along worker can't reach this library's folder.",+ "readAlongWhyRunning": "A read along is already being made for this book.",+ "readAlongWhyUnknown": "A read along can't be made for this book right now.",+ "readAlongSheetTitle": "Create a read along",+ "readAlongSheetIntro": "BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.",+ "readAlongEbook": "Ebook",+ "readAlongEbookHint": "Pick the plain EPUB that matches the narration.",+ "readAlongAudio": "Audiobook",+ "readAlongTracks": "{count, plural, =1{1 track} other{{count} tracks}}",+ "@readAlongTracks": {"placeholders": {"count": {"type": "int"}}},+ "readAlongExistingTitle": "{count, plural, =1{This book already has a read along} other{This book already has {count} read alongs}}",+ "@readAlongExistingTitle": {"placeholders": {"count": {"type": "int"}}},+ "readAlongReplace": "Replace {name}",+ "@readAlongReplace": {"placeholders": {"name": {"type": "String"}}},+ "readAlongKeepBoth": "{count, plural, =1{Keep both} other{Keep all of them}}",+ "@readAlongKeepBoth": {"placeholders": {"count": {"type": "int"}}},+ "readAlongKeepHint": "The new read along is added as another file.",+ "readAlongReplaceHint": "The old file is only replaced once the new one passes its checks, and reading spots carry over.",+ "readAlongReplaceNotAllowed": "Replacing a read along needs permission to delete books, so the new one is added as another file.",+ "readAlongMadeByBookOrbit": "Made by BookOrbit",+ "readAlongImported": "Imported",+ "readAlongLanguage": "Narration language",+ "readAlongPickLanguage": "Choose a language",+ "readAlongLanguageUnsupported": "The speech model doesn't know this book's language ({language}).",+ "@readAlongLanguageUnsupported": {"placeholders": {"language": {"type": "String"}}},+ "readAlongLanguageFromBook": "From this book's details.",+ "readAlongLanguageIsDefault": "Your default language.",+ "readAlongLanguageSaved": "Saved as your default language.",+ "readAlongSetDefault": "Set as default",+ "readAlongDefaultFailed": "Couldn't save your default language.",+ "readAlongHighlighting": "Highlighting",+ "readAlongSentence": "Sentence",+ "readAlongSentenceHint": "Highlights one sentence at a time. Recommended.",+ "readAlongWord": "Word",+ "readAlongWordHint": "Highlights each word. Takes longer and makes a bigger file. Still experimental.",+ "readAlongEstimatedSize": "Estimated size: {size}",+ "@readAlongEstimatedSize": {"placeholders": {"size": {"type": "String"}}},+ "readAlongBackgroundNote": "Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.",+ "readAlongLowDisk": "Low disk space: this needs about {needed} of working space on the worker, which has {free} free.",+ "@readAlongLowDisk": {"placeholders": {"needed": {"type": "String"}, "free": {"type": "String"}}},+ "readAlongStart": "Start",+ "readAlongStartFailed": "The read along couldn't be started. Try again.",+ "readAlongStartInvalid": "Some of the picked files are no longer on this book. Check them and try again.",+ "readAlongStartOffline": "BookOrbit's read along worker is offline. Try again later.",+ "readAlongNotAllowed": "You don't have permission to do that.",+ "readAlongGone": "This read along job is gone.",+ "readAlongMovedOn": "This job had already moved on. It now shows where it is.",+ "readAlongActionFailed": "That didn't go through. Try again.",+ "readAlongStartedBy": "Started by {name}",+ "@readAlongStartedBy": {"placeholders": {"name": {"type": "String"}}},+ "readAlongStartedByOther": "Started by another user",+ "readAlongWaiting": "Waiting to start",+ "readAlongNextInLine": "Next in line",+ "readAlongJobsAhead": "{count, plural, =1{1 job ahead} other{{count} jobs ahead}}",+ "@readAlongJobsAhead": {"placeholders": {"count": {"type": "int"}}},+ "readAlongStopping": "Stopping",+ "readAlongStoppingHint": "Finishing the current step, then it stops. Nothing will be added to this book.",+ "readAlongStagePreparingAudio": "Preparing the audio",+ "readAlongStageDownloadingModel": "Downloading the speech model",+ "readAlongStageListening": "Listening to the narration",+ "readAlongStageMarkingUp": "Marking up the ebook text",+ "readAlongStageAligning": "Matching the text to the narration",+ "readAlongStageChecking": "Checking the result",+ "readAlongStagePublishing": "Adding the read along to this book",+ "readAlongStageWorking": "Working",+ "readAlongFileOf": "File {current} of {total}",+ "@readAlongFileOf": {"placeholders": {"current": {"type": "int"}, "total": {"type": "int"}}},+ "readAlongTrackOf": "Track {current} of {total}",+ "@readAlongTrackOf": {"placeholders": {"current": {"type": "int"}, "total": {"type": "int"}}},+ "readAlongChapterOf": "Chapter {current} of {total}",+ "@readAlongChapterOf": {"placeholders": {"current": {"type": "int"}, "total": {"type": "int"}}},+ "readAlongStepOf": "Step {current} of {total}",+ "@readAlongStepOf": {"placeholders": {"current": {"type": "int"}, "total": {"type": "int"}}},+ "readAlongFirstRun": "First run for this language",+ "readAlongJustStarted": "Just started",+ "readAlongRunningFor": "Running for {duration}",+ "@readAlongRunningFor": {"placeholders": {"duration": {"type": "String"}}},+ "readAlongStepAudio": "Audio",+ "readAlongStepSpeech": "Speech",+ "readAlongStepText": "Text",+ "readAlongStepAlign": "Align",+ "readAlongStepCheck": "Check",+ "readAlongStepAdd": "Add",+ "readAlongReviewTitle": "Ready for review",+ "readAlongReviewMatched": "{percent} of the text matched the narration. Check it before adding it to the book.",+ "@readAlongReviewMatched": {"placeholders": {"percent": {"type": "String"}}},+ "readAlongReviewPlain": "Check it before adding it to the book.",+ "readAlongReviewWeb": "To leave chapters out and match again, open this book in BookOrbit on the web.",+ "readAlongReviewExpires": "Thrown away on its own on {date} unless you review it.",+ "@readAlongReviewExpires": {"placeholders": {"date": {"type": "String"}}},+ "readAlongAddAnyway": "Add it anyway",+ "readAlongDiscard": "Discard",+ "readAlongDiscardPrompt": "Discard this read along?",+ "readAlongKeepIt": "Keep it",+ "readAlongReady": "Read along ready",+ "readAlongReadyWarnings": "Read along ready, with warnings",+ "readAlongAdded": "Added to this book as a new EPUB.",+ "readAlongReplaced": "Replaced the old read along. Reading spots carry over.",+ "readAlongMatchedSentences": "{matched} of {total} sentences matched the narration",+ "@readAlongMatchedSentences": {"placeholders": {"matched": {"type": "String"}, "total": {"type": "String"}}},+ "readAlongAudioUsed": "{percent} of the audio used",+ "@readAlongAudioUsed": {"placeholders": {"percent": {"type": "String"}}},+ "readAlongOutside": "Not in the narration, so left without audio: {chapters}.",+ "@readAlongOutside": {"placeholders": {"chapters": {"type": "String"}}},+ "readAlongOutsideMore": "{count, plural, =1{1 more chapter} other{{count} more chapters}}",+ "@readAlongOutsideMore": {"placeholders": {"count": {"type": "int"}}},+ "readAlongWarnUnaligned": "One or more audio tracks couldn't be matched.",+ "readAlongWarnUnmatched": "A noticeable amount of the ebook text wasn't matched to the narration.",+ "readAlongWarnInterpolated": "Some text timing was estimated between confident matches.",+ "readAlongWarnDropped": "Some ebook text was left out of the highlighting.",+ "readAlongFailed": "Read along failed",+ "readAlongCancelled": "Read along cancelled",+ "readAlongDiscarded": "Read along thrown away",+ "readAlongNothingAdded": "Nothing was added to this book.",+ "readAlongExpired": "It wasn't reviewed within 14 days, so nothing was added to this book.",+ "readAlongRetryUntil": "Retry picks up from the last finished step until {date}.",+ "@readAlongRetryUntil": {"placeholders": {"date": {"type": "String"}}},+ "readAlongStartOver": "Start over",+ "readAlongCancel": "Cancel read along",+ "readAlongCancelPrompt": "Cancel this read along?",+ "readAlongKeepRunning": "Keep running",+ "readAlongErrorWorkerOffline": "BookOrbit couldn't reach its read along worker.",+ "readAlongErrorWorkerCrashed": "The read along worker stopped unexpectedly.",+ "readAlongErrorSourceMissing": "A picked file is no longer there.",+ "readAlongErrorSourceChanged": "A picked file changed after the job started.",+ "readAlongErrorInvalidSource": "The EPUB or audiobook couldn't be read.",+ "readAlongErrorLanguage": "The speech model doesn't know the picked language.",+ "readAlongErrorStorage": "There isn't enough free disk space on the worker to finish.",+ "readAlongErrorAudio": "The audiobook couldn't be prepared.",+ "readAlongErrorModel": "The speech model couldn't be downloaded.",+ "readAlongErrorListening": "Speech recognition failed while listening to the narration.",+ "readAlongErrorMarkup": "The ebook text couldn't be prepared for matching.",+ "readAlongErrorAlignment": "The text couldn't be matched to the narration.",+ "readAlongErrorOutput": "The new EPUB failed its checks.",+ "readAlongErrorPublish": "The new EPUB couldn't be added to this book.",+ "readAlongErrorDiscarded": "It was thrown away at review.",+ "readAlongErrorCancelled": "It was cancelled.",+ "readAlongErrorUnknown": "Something went wrong while making the read along.",+ "fileInfoNoAudiobook": "No audiobook yet",+ "fileInfoNoEbook": "No e-book yet",+ "fileInfoRequestedBySomeone": "Requested by someone else",+ "fileInfoOwnedSeparately": "In your library as a separate book",+ "fileInfoCopyPath": "Copy path",+ "fileInfoDeleteTitle": "Delete file?",+ "fileInfoDeletePrompt": "\"{name}\" will be deleted from the server. This can't be undone.",+ "@fileInfoDeletePrompt": {"placeholders": {"name": {"type": "String"}}},+ "fileInfoDeleteLast": "It's the book's last audio or e-book file, so the book will show as missing.",+ "fileInfoDeleteNotAllowed": "You don't have permission to delete files",+ "chapterSourceEmbedded": "Read from the audio files",+ "chapterSourceTracks": "One chapter per audio file, not saved",+ "chapterSourceProvider": "From fetched metadata",+ "chapterSourceMigration": "Imported from Audiobookshelf",+ "chapterSourceManual": "Edited in BookOrbit",+ "chapterSourceManualBy": "Edited by {name}",+ "@chapterSourceManualBy": {"placeholders": {"name": {"type": "String"}}},+ "chapterSourceNone": "No chapters yet",+ "chapterProtected": "Protected from rescans",+ "chapterNotProtected": "A rescan can replace these",+ "chapterProtectOnSave": "Protect from rescans",+ "chapterGetFrom": "Get Chapters From",+ "chapterFromFiles": "The audio files",+ "chapterFromEbookToc": "The e-book's contents",+ "chapterFromReadAlong": "The read along",+ "chapterFromHistory": "Earlier versions",+ "chapterHistoryTitle": "Earlier versions",+ "chapterHistoryEmpty": "Saved versions show up here.",+ "chapterHistoryBy": "{source} by {name}",+ "@chapterHistoryBy": {"placeholders": {"source": {"type": "String"}, "name": {"type": "String"}}},+ "chapterReadingFiles": "Reading the audio files...",+ "chapterRevertToFiles": "Revert to Files",+ "chapterRevertTitle": "Go back to the chapters in the files?",+ "chapterRevertMessage": "BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.",+ "chapterReverted": "Chapters set back to the audio files",+ "chapterWriteFiles": "Write to Files",+ "chapterWriteTitle": "Write the chapters into the audio files?",+ "chapterWriteMessage": "{count, plural, =1{This rewrites the book's audio file with these chapters.} other{This rewrites the book's {count} audio files with these chapters.}} The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it's downloaded again.",+ "@chapterWriteMessage": {"placeholders": {"count": {"type": "int"}}},+ "chapterWriteConfirm": "Write",+ "chapterWriting": "Writing the chapters into the audio files...",+ "chapterWritten": "{count, plural, =1{Chapters written into the audio file} other{Chapters written into all {count} audio files}}",+ "@chapterWritten": {"placeholders": {"count": {"type": "int"}}},+ "chapterWrittenPartly": "Chapters written into {written} of {total} files. The rest were left as they were.",+ "@chapterWrittenPartly": {"placeholders": {"written": {"type": "int"}, "total": {"type": "int"}}},+ "chapterStaleTitle": "These chapters changed",+ "chapterStaleMessage": "Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.",+ "chapterReload": "Reload",+ "chapterKeepEditing": "Keep editing",+ "matchExplicitYes": "Marked explicit",+ "matchExplicitNo": "Not explicit",+ "matchAbridgedYes": "Abridged",+ "matchAbridgedNo": "Unabridged",+ "boQuickMatchBody": "BookOrbit looks up {count, plural, =1{this book} other{these {count} books}} and fills in what it finds, following its metadata settings.",+ "@boQuickMatchBody": {+ "placeholders": { "count": {"type": "int"} }+ },+ "boQuickMatchIgnoreCache": "Ask every source again",+ "boQuickMatchIgnoreCacheHint": "Skips saved answers. Slower, and uses more of each source's request limit.",+ "boAdminServerCount": "{count, plural, =0{None yet} =1{1 mail server} other{{count} mail servers}}",+ "@boAdminServerCount": {+ "placeholders": { "count": {"type": "int"} }+ },+ "boEmailTitle": "Send by email",+ "boEmailSubtitle": "Devices, mail servers and templates for sending books",+ "boEmailTabDevices": "Devices",+ "boEmailTabServers": "Mail servers",+ "boEmailTabTemplates": "Templates",+ "boEmailTabHistory": "History",+ "boEmailName": "Name",+ "boEmailDeleteTitle": "Delete {name}?",+ "@boEmailDeleteTitle": {+ "placeholders": { "name": {"type": "String"} }+ },+ "boEmailMakeDefault": "Make default",+ "boEmailBadgeDefault": "Default",+ "boEmailBadgeShared": "Shared",+ "boEmailBadgeSystem": "Password resets",+ "boEmailBadgeBuiltIn": "Built in",+ "boEmailDevicesEmpty": "No devices yet. Add your e-reader's email address to send it books.",+ "boEmailAddDevice": "Add device",+ "boEmailNewDevice": "New device",+ "boEmailDeviceNameHint": "My Kindle",+ "boEmailDeviceAddress": "Email address",+ "boEmailDeviceType": "Device",+ "boEmailDeviceNone": "Person or inbox",+ "boEmailDeviceKindle": "Kindle",+ "boEmailDeviceKobo": "Kobo",+ "boEmailDeviceOther": "Other e-reader",+ "boEmailKindleHint": "Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.",+ "boEmailKindleApprove": "Kindle drops mail from addresses it doesn't know. In Amazon's Personal Document Settings, add {address} to the approved list.",+ "@boEmailKindleApprove": {+ "placeholders": { "address": {"type": "String"} }+ },+ "boEmailKindleApproveNoServer": "Add a mail server first to see the address Kindle needs to approve.",+ "boEmailFormat": "Format",+ "boEmailFormatPrimary": "Book's main file",+ "boEmailFormatHint": "A book without this format gets its main file.",+ "boEmailReadAlong": "Read along books",+ "boEmailReadAlongAuto": "Automatic",+ "boEmailReadAlongAutoHint": "Text only when a copy can be made, otherwise the original.",+ "boEmailReadAlongText": "Text only",+ "boEmailReadAlongTextHint": "Narration removed. Small enough for email.",+ "boEmailReadAlongOriginal": "With narration",+ "boEmailReadAlongOriginalHint": "Keeps the narration. Often 100 MB or more, over most mail servers' limits.",+ "boEmailTemplate": "Template",+ "boEmailTemplateYourDefault": "Your default",+ "boEmailTemplateKindleHint": "Kindle never shows the message, so it skips the template.",+ "boEmailDefaultDevice": "Default device",+ "boEmailDefaultDeviceHint": "Picked first when you send a book.",+ "boEmailSendTest": "Send a test email",+ "boEmailTestSubject": "Test email from Absorb",+ "boEmailTestBody": "This is a test from Absorb. If you can read it, books sent to {name} will arrive here too.",+ "@boEmailTestBody": {+ "placeholders": { "name": {"type": "String"} }+ },+ "boEmailTestSent": "Test email sent to {name}",+ "@boEmailTestSent": {+ "placeholders": { "name": {"type": "String"} }+ },+ "boEmailTestFailed": "The test email didn't go out: {error}",+ "@boEmailTestFailed": {+ "placeholders": { "error": {"type": "String"} }+ },+ "boEmailDeleteDevice": "Delete device",+ "boEmailDeleteDeviceBody": "Its send history stays.",+ "boEmailDeviceRequired": "Enter a name and an email address",+ "boEmailLastSendFailed": "Last send failed",+ "boEmailGroups": "Groups",+ "boEmailGroupsHint": "Send to several devices at once.",+ "boEmailNewGroup": "New group",+ "boEmailGroupNameHint": "Book club",+ "boEmailGroupMembers": "Devices in this group",+ "boEmailGroupMembersEmpty": "Add a device first.",+ "boEmailGroupMemberCount": "{count, plural, =0{No devices} =1{1 device} other{{count} devices}}",+ "@boEmailGroupMemberCount": {+ "placeholders": { "count": {"type": "int"} }+ },+ "boEmailDeleteGroup": "Delete group",+ "boEmailDeleteGroupBody": "The devices in it stay.",+ "boEmailGroupRequired": "Enter a group name",+ "boEmailServersEmptyManage": "No mail servers yet. Add one to start sending books.",+ "boEmailServersEmpty": "No mail servers yet. Ask an admin to add one.",+ "boEmailAddServer": "Add mail server",+ "boEmailNewServer": "New mail server",+ "boEmailServerPresetOther": "Other",+ "boEmailServerPresetHint": "A preset fills in the host, port and security. You can still change them.",+ "boEmailServerHost": "Host",+ "boEmailServerPort": "Port",+ "boEmailServerSecurity": "Security",+ "boEmailServerSecurityNone": "None",+ "boEmailServerSecurityHint": "STARTTLS on port 587, SSL/TLS on 465.",+ "boEmailServerNeedsPassword": "Signs in with a password",+ "boEmailServerUsername": "Username",+ "boEmailServerPassword": "Password",+ "boEmailServerAppPassword": "App password",+ "boEmailServerPasswordKeep": "Saved. Type to replace it",+ "boEmailServerAppPasswordHint": "Gmail and iCloud need an app password, not your account password.",+ "boEmailServerFromName": "From name",+ "boEmailServerFromAddress": "From address",+ "boEmailServerFromAddressHint": "Kindle owners need to approve this address.",+ "boEmailServerShare": "Share with everyone",+ "boEmailServerShareHint": "Other people can send books through this server without seeing the password.",+ "boEmailServerSystem": "Send password resets and sign-in links",+ "boEmailServerSystemHint": "The server BookOrbit uses for its own mail.",+ "boEmailServerVerifyTls": "Check the server's certificate",+ "boEmailServerVerifyTlsHint": "Turn this off only for a server on your own network with a self-signed certificate.",+ "boEmailServerTest": "Test connection",+ "boEmailServerTestSaveFirst": "Save first, then test",+ "boEmailServerTestOk": "Connected",+ "boEmailServerTestFailed": "Can't connect: {error}",+ "@boEmailServerTestFailed": {+ "placeholders": { "error": {"type": "String"} }+ },+ "boEmailServerDelete": "Delete mail server",+ "boEmailServerDeleteBody": "Everyone it's shared with loses it.",+ "boEmailServerSystemFirst": "Turn off password resets on this server before deleting it.",+ "boEmailServerRequired": "Enter a name and a host",+ "boEmailServerNotYours": "Someone else added this server. Only they can change it.",+ "boEmailTemplatesEmpty": "No templates yet.",+ "boEmailNewTemplate": "New template",+ "boEmailTemplateSubject": "Subject",+ "boEmailTemplateMessage": "Message",+ "boEmailTemplateInsert": "Insert",+ "boEmailTemplateInsertHint": "Goes in where the cursor is. Details a book doesn't have print nothing.",+ "boEmailVarBook": "Book",+ "boEmailVarFile": "File",+ "boEmailVarOther": "Other",+ "boEmailTemplatePreview": "Preview",+ "boEmailTemplatePreviewNone": "Send a book once to preview a template with it.",+ "boEmailTemplateAttached": "Attached: {name}",+ "@boEmailTemplateAttached": {+ "placeholders": { "name": {"type": "String"} }+ },+ "boEmailTemplateBuiltIn": "Built in. Only an admin can change it.",+ "boEmailTemplateKindleNote": "Kindle never shows a template. It always gets the subject \"convert\".",+ "boEmailTemplateDelete": "Delete template",+ "boEmailTemplateDeleteBody": "Devices that use it go back to your default template.",+ "boEmailTemplateRequired": "Enter a name and a subject",+ "boEmailHistoryEmpty": "Nothing sent yet.",+ "boEmailHistoryAll": "All",+ "boEmailHistoryEveryone": "Everyone",+ "boEmailStatusSent": "Sent",+ "boEmailStatusSending": "Sending",+ "boEmailStatusRetrying": "Trying again ({attempt})",+ "@boEmailStatusRetrying": {+ "placeholders": { "attempt": {"type": "int"} }+ },+ "boEmailStatusFailed": "Failed",+ "boEmailTo": "To {name}",+ "@boEmailTo": {+ "placeholders": { "name": {"type": "String"} }+ },+ "boEmailResend": "Send again",+ "boEmailResent": "Sending again",+ "boEmailForget": "Remove from history",+ "boEmailLoadMore": "Load more",+ "boEmailUnknownBook": "Deleted book",+ "boEmailSendNoServer": "No mail server is set up on this server yet.",+ "boEmailSendAskAdmin": "Ask an admin to add one.",+ "boEmailSendNoDevices": "Add a device to send this book to.",+ "boEmailSendOptions": "Options",+ "boEmailSendFormatEach": "Each device's own",+ "boEmailSendServer": "Mail server",+ "boEmailSendButton": "Send",+ "boEmailSendGets": "Gets {format} · {size}",+ "@boEmailSendGets": {+ "placeholders": { "format": {"type": "String"}, "size": {"type": "String"} }+ },+ "boEmailSendMissing": "No {format}, gets the {got}",+ "@boEmailSendMissing": {+ "placeholders": { "format": {"type": "String"}, "got": {"type": "String"} }+ },+ "boEmailSendKindleRejects": "Kindle doesn't take {format} by email",+ "@boEmailSendKindleRejects": {+ "placeholders": { "format": {"type": "String"} }+ },+ "boEmailSendOverKindle": "{size}, over Kindle's 50 MB limit",+ "@boEmailSendOverKindle": {+ "placeholders": { "size": {"type": "String"} }+ },+ "boEmailSendOverGmail": "{size}, over Gmail's 25 MB limit",+ "@boEmailSendOverGmail": {+ "placeholders": { "size": {"type": "String"} }+ },+ "boEmailSendNarrated": "Gets the narrated copy · {size}",+ "@boEmailSendNarrated": {+ "placeholders": { "size": {"type": "String"} }+ },+ "boEmailSendHanding": "Sending through {server}",+ "@boEmailSendHanding": {+ "placeholders": { "server": {"type": "String"} }+ },+ "boEmailSendAccepted": "Sent through {server}",+ "@boEmailSendAccepted": {+ "placeholders": { "server": {"type": "String"} }+ },+ "boEmailSendFailedLine": "Didn't send: {error}",+ "@boEmailSendFailedLine": {+ "placeholders": { "error": {"type": "String"} }+ },+ "boEmailSendStillGoing": "Still sending. You'll get a notification when it's done.",+ "boEmailKindleOriginal": "A Kindle can't take the narrated copy. Set it to text only.",+ "boEmailNoCopy": "Couldn't make a copy without the narration."}diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dartindex 05db7662..00acfbbc 100644--- a/lib/l10n/app_localizations.dart+++ b/lib/l10n/app_localizations.dart@@ -72,7 +72,8 @@ import 'app_localizations_zh.dart';/// be consistent with the languages listed in the AppLocalizations.supportedLocales/// property.abstract class AppLocalizations {- AppLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());+ AppLocalizations(String locale)+ : localeName = intl.Intl.canonicalizedLocale(locale.toString());final String localeName;@@ -80,7 +81,8 @@ abstract class AppLocalizations {return Localizations.of<AppLocalizations>(context, AppLocalizations);}- static const LocalizationsDelegate<AppLocalizations> delegate = _AppLocalizationsDelegate();+ static const LocalizationsDelegate<AppLocalizations> delegate =+ _AppLocalizationsDelegate();/// A list of this localizations delegate along with the default localizations/// delegates.@@ -92,12 +94,13 @@ abstract class AppLocalizations {/// Additional delegates can be added by appending to this list in/// MaterialApp. This list does not have to be used at all if a custom list/// of delegates is preferred or required.- static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[- delegate,- GlobalMaterialLocalizations.delegate,- GlobalCupertinoLocalizations.delegate,- GlobalWidgetsLocalizations.delegate,- ];+ static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =+ <LocalizationsDelegate<dynamic>>[+ delegate,+ GlobalMaterialLocalizations.delegate,+ GlobalCupertinoLocalizations.delegate,+ GlobalWidgetsLocalizations.delegate,+ ];/// A list of this localizations delegate's supported locales.static const List<Locale> supportedLocales = <Locale>[@@ -112,7 +115,7 @@ abstract class AppLocalizations {Locale('pt'),Locale('ro'),Locale('ru'),- Locale('zh')+ Locale('zh'),];/// No description provided for @appTitle.@@ -4459,6 +4462,12 @@ abstract class AppLocalizations {/// **'Couldn\'t send the request: {reason}'**String breqFailedReason(String reason);+ /// No description provided for @breqBookCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 book} other{{count} books}}'**+ String breqBookCount(int count);+/// No description provided for @breqDownloadingPercent.////// In en, this message translates to:@@ -9071,7 +9080,11 @@ abstract class AppLocalizations {////// In en, this message translates to:/// **'{start} – {end} · {duration}'**- String autoSleepTimerEnabledSubtitle(String start, String end, String duration);+ String autoSleepTimerEnabledSubtitle(+ String start,+ String end,+ String duration,+ );/// No description provided for @endOfChapterShort.///@@ -11813,7 +11826,14 @@ abstract class AppLocalizations {////// In en, this message translates to:/// **'{month} {day}, {year} at {hour}:{minute} {ampm}'**- String statsScreenDateAtTime(String month, int day, int year, int hour, String minute, String ampm);+ String statsScreenDateAtTime(+ String month,+ int day,+ int year,+ int hour,+ String minute,+ String ampm,+ );/// No description provided for @statsScreenMonthJan.///@@ -21582,46 +21602,2014 @@ abstract class AppLocalizations {/// In en, this message translates to:/// **'Couldn\'t change achievements on BookOrbit'**String get achievementsSwitchFailed;-}-class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {- const _AppLocalizationsDelegate();+ /// No description provided for @boNotifyReadAlong.+ ///+ /// In en, this message translates to:+ /// **'Read alongs'**+ String get boNotifyReadAlong;- @override- Future<AppLocalizations> load(Locale locale) {- return SynchronousFuture<AppLocalizations>(lookupAppLocalizations(locale));- }+ /// No description provided for @boNotifyReadAlongDesc.+ ///+ /// In en, this message translates to:+ /// **'When a read along you started is ready, needs a look, or fails.'**+ String get boNotifyReadAlongDesc;- @override- bool isSupported(Locale locale) => <String>['de', 'el', 'en', 'es', 'fr', 'it', 'ja', 'no', 'pt', 'ro', 'ru', 'zh'].contains(locale.languageCode);+ /// No description provided for @readAlongCreate.+ ///+ /// In en, this message translates to:+ /// **'Create read along'**+ String get readAlongCreate;- @override- bool shouldReload(_AppLocalizationsDelegate old) => false;-}+ /// No description provided for @readAlongLoadFailed.+ ///+ /// In en, this message translates to:+ /// **'Couldn\'t check whether a read along can be made for this book.'**+ String get readAlongLoadFailed;-AppLocalizations lookupAppLocalizations(Locale locale) {+ /// No description provided for @readAlongCheckAgain.+ ///+ /// In en, this message translates to:+ /// **'Check again'**+ String get readAlongCheckAgain;++ /// No description provided for @readAlongWhyWorkerOffline.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit\'s read along worker is offline right now.'**+ String get readAlongWhyWorkerOffline;++ /// No description provided for @readAlongWhyWorkerOutdated.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit\'s read along worker needs an update to work with this server.'**+ String get readAlongWhyWorkerOutdated;++ /// No description provided for @readAlongWhyFilesMissing.+ ///+ /// In en, this message translates to:+ /// **'Restore this book\'s missing files to make a read along.'**+ String get readAlongWhyFilesMissing;++ /// No description provided for @readAlongWhyNoEpub.+ ///+ /// In en, this message translates to:+ /// **'Add a plain EPUB to this book to make a read along.'**+ String get readAlongWhyNoEpub;++ /// No description provided for @readAlongWhyNoEpubHasOne.+ ///+ /// In en, this message translates to:+ /// **'This book already has a read along and no plain EPUB to make another from.'**+ String get readAlongWhyNoEpubHasOne;++ /// No description provided for @readAlongWhyTooManyTracks.+ ///+ /// In en, this message translates to:+ /// **'This audiobook has more files than a read along can be made from.'**+ String get readAlongWhyTooManyTracks;++ /// No description provided for @readAlongWhyEpubNotAllowed.+ ///+ /// In en, this message translates to:+ /// **'This library doesn\'t take EPUB files, so a read along can\'t be added.'**+ String get readAlongWhyEpubNotAllowed;++ /// No description provided for @readAlongWhyNotMounted.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit\'s read along worker can\'t reach this library\'s folder.'**+ String get readAlongWhyNotMounted;++ /// No description provided for @readAlongWhyRunning.+ ///+ /// In en, this message translates to:+ /// **'A read along is already being made for this book.'**+ String get readAlongWhyRunning;++ /// No description provided for @readAlongWhyUnknown.+ ///+ /// In en, this message translates to:+ /// **'A read along can\'t be made for this book right now.'**+ String get readAlongWhyUnknown;++ /// No description provided for @readAlongSheetTitle.+ ///+ /// In en, this message translates to:+ /// **'Create a read along'**+ String get readAlongSheetTitle;++ /// No description provided for @readAlongSheetIntro.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.'**+ String get readAlongSheetIntro;++ /// No description provided for @readAlongEbook.+ ///+ /// In en, this message translates to:+ /// **'Ebook'**+ String get readAlongEbook;++ /// No description provided for @readAlongEbookHint.+ ///+ /// In en, this message translates to:+ /// **'Pick the plain EPUB that matches the narration.'**+ String get readAlongEbookHint;++ /// No description provided for @readAlongAudio.+ ///+ /// In en, this message translates to:+ /// **'Audiobook'**+ String get readAlongAudio;++ /// No description provided for @readAlongTracks.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 track} other{{count} tracks}}'**+ String readAlongTracks(int count);++ /// No description provided for @readAlongExistingTitle.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{This book already has a read along} other{This book already has {count} read alongs}}'**+ String readAlongExistingTitle(int count);++ /// No description provided for @readAlongReplace.+ ///+ /// In en, this message translates to:+ /// **'Replace {name}'**+ String readAlongReplace(String name);++ /// No description provided for @readAlongKeepBoth.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{Keep both} other{Keep all of them}}'**+ String readAlongKeepBoth(int count);++ /// No description provided for @readAlongKeepHint.+ ///+ /// In en, this message translates to:+ /// **'The new read along is added as another file.'**+ String get readAlongKeepHint;++ /// No description provided for @readAlongReplaceHint.+ ///+ /// In en, this message translates to:+ /// **'The old file is only replaced once the new one passes its checks, and reading spots carry over.'**+ String get readAlongReplaceHint;++ /// No description provided for @readAlongReplaceNotAllowed.+ ///+ /// In en, this message translates to:+ /// **'Replacing a read along needs permission to delete books, so the new one is added as another file.'**+ String get readAlongReplaceNotAllowed;++ /// No description provided for @readAlongMadeByBookOrbit.+ ///+ /// In en, this message translates to:+ /// **'Made by BookOrbit'**+ String get readAlongMadeByBookOrbit;++ /// No description provided for @readAlongImported.+ ///+ /// In en, this message translates to:+ /// **'Imported'**+ String get readAlongImported;++ /// No description provided for @readAlongLanguage.+ ///+ /// In en, this message translates to:+ /// **'Narration language'**+ String get readAlongLanguage;++ /// No description provided for @readAlongPickLanguage.+ ///+ /// In en, this message translates to:+ /// **'Choose a language'**+ String get readAlongPickLanguage;++ /// No description provided for @readAlongLanguageUnsupported.+ ///+ /// In en, this message translates to:+ /// **'The speech model doesn\'t know this book\'s language ({language}).'**+ String readAlongLanguageUnsupported(String language);++ /// No description provided for @readAlongLanguageFromBook.+ ///+ /// In en, this message translates to:+ /// **'From this book\'s details.'**+ String get readAlongLanguageFromBook;++ /// No description provided for @readAlongLanguageIsDefault.+ ///+ /// In en, this message translates to:+ /// **'Your default language.'**+ String get readAlongLanguageIsDefault;++ /// No description provided for @readAlongLanguageSaved.+ ///+ /// In en, this message translates to:+ /// **'Saved as your default language.'**+ String get readAlongLanguageSaved;++ /// No description provided for @readAlongSetDefault.+ ///+ /// In en, this message translates to:+ /// **'Set as default'**+ String get readAlongSetDefault;++ /// No description provided for @readAlongDefaultFailed.+ ///+ /// In en, this message translates to:+ /// **'Couldn\'t save your default language.'**+ String get readAlongDefaultFailed;++ /// No description provided for @readAlongHighlighting.+ ///+ /// In en, this message translates to:+ /// **'Highlighting'**+ String get readAlongHighlighting;++ /// No description provided for @readAlongSentence.+ ///+ /// In en, this message translates to:+ /// **'Sentence'**+ String get readAlongSentence;++ /// No description provided for @readAlongSentenceHint.+ ///+ /// In en, this message translates to:+ /// **'Highlights one sentence at a time. Recommended.'**+ String get readAlongSentenceHint;++ /// No description provided for @readAlongWord.+ ///+ /// In en, this message translates to:+ /// **'Word'**+ String get readAlongWord;++ /// No description provided for @readAlongWordHint.+ ///+ /// In en, this message translates to:+ /// **'Highlights each word. Takes longer and makes a bigger file. Still experimental.'**+ String get readAlongWordHint;++ /// No description provided for @readAlongEstimatedSize.+ ///+ /// In en, this message translates to:+ /// **'Estimated size: {size}'**+ String readAlongEstimatedSize(String size);++ /// No description provided for @readAlongBackgroundNote.+ ///+ /// In en, this message translates to:+ /// **'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.'**+ String get readAlongBackgroundNote;++ /// No description provided for @readAlongLowDisk.+ ///+ /// In en, this message translates to:+ /// **'Low disk space: this needs about {needed} of working space on the worker, which has {free} free.'**+ String readAlongLowDisk(String needed, String free);++ /// No description provided for @readAlongStart.+ ///+ /// In en, this message translates to:+ /// **'Start'**+ String get readAlongStart;++ /// No description provided for @readAlongStartFailed.+ ///+ /// In en, this message translates to:+ /// **'The read along couldn\'t be started. Try again.'**+ String get readAlongStartFailed;++ /// No description provided for @readAlongStartInvalid.+ ///+ /// In en, this message translates to:+ /// **'Some of the picked files are no longer on this book. Check them and try again.'**+ String get readAlongStartInvalid;++ /// No description provided for @readAlongStartOffline.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit\'s read along worker is offline. Try again later.'**+ String get readAlongStartOffline;++ /// No description provided for @readAlongNotAllowed.+ ///+ /// In en, this message translates to:+ /// **'You don\'t have permission to do that.'**+ String get readAlongNotAllowed;++ /// No description provided for @readAlongGone.+ ///+ /// In en, this message translates to:+ /// **'This read along job is gone.'**+ String get readAlongGone;++ /// No description provided for @readAlongMovedOn.+ ///+ /// In en, this message translates to:+ /// **'This job had already moved on. It now shows where it is.'**+ String get readAlongMovedOn;++ /// No description provided for @readAlongActionFailed.+ ///+ /// In en, this message translates to:+ /// **'That didn\'t go through. Try again.'**+ String get readAlongActionFailed;++ /// No description provided for @readAlongStartedBy.+ ///+ /// In en, this message translates to:+ /// **'Started by {name}'**+ String readAlongStartedBy(String name);++ /// No description provided for @readAlongStartedByOther.+ ///+ /// In en, this message translates to:+ /// **'Started by another user'**+ String get readAlongStartedByOther;++ /// No description provided for @readAlongWaiting.+ ///+ /// In en, this message translates to:+ /// **'Waiting to start'**+ String get readAlongWaiting;++ /// No description provided for @readAlongNextInLine.+ ///+ /// In en, this message translates to:+ /// **'Next in line'**+ String get readAlongNextInLine;++ /// No description provided for @readAlongJobsAhead.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 job ahead} other{{count} jobs ahead}}'**+ String readAlongJobsAhead(int count);++ /// No description provided for @readAlongStopping.+ ///+ /// In en, this message translates to:+ /// **'Stopping'**+ String get readAlongStopping;++ /// No description provided for @readAlongStoppingHint.+ ///+ /// In en, this message translates to:+ /// **'Finishing the current step, then it stops. Nothing will be added to this book.'**+ String get readAlongStoppingHint;++ /// No description provided for @readAlongStagePreparingAudio.+ ///+ /// In en, this message translates to:+ /// **'Preparing the audio'**+ String get readAlongStagePreparingAudio;++ /// No description provided for @readAlongStageDownloadingModel.+ ///+ /// In en, this message translates to:+ /// **'Downloading the speech model'**+ String get readAlongStageDownloadingModel;++ /// No description provided for @readAlongStageListening.+ ///+ /// In en, this message translates to:+ /// **'Listening to the narration'**+ String get readAlongStageListening;++ /// No description provided for @readAlongStageMarkingUp.+ ///+ /// In en, this message translates to:+ /// **'Marking up the ebook text'**+ String get readAlongStageMarkingUp;++ /// No description provided for @readAlongStageAligning.+ ///+ /// In en, this message translates to:+ /// **'Matching the text to the narration'**+ String get readAlongStageAligning;++ /// No description provided for @readAlongStageChecking.+ ///+ /// In en, this message translates to:+ /// **'Checking the result'**+ String get readAlongStageChecking;++ /// No description provided for @readAlongStagePublishing.+ ///+ /// In en, this message translates to:+ /// **'Adding the read along to this book'**+ String get readAlongStagePublishing;++ /// No description provided for @readAlongStageWorking.+ ///+ /// In en, this message translates to:+ /// **'Working'**+ String get readAlongStageWorking;++ /// No description provided for @readAlongFileOf.+ ///+ /// In en, this message translates to:+ /// **'File {current} of {total}'**+ String readAlongFileOf(int current, int total);+ /// No description provided for @readAlongTrackOf.+ ///+ /// In en, this message translates to:+ /// **'Track {current} of {total}'**+ String readAlongTrackOf(int current, int total);++ /// No description provided for @readAlongChapterOf.+ ///+ /// In en, this message translates to:+ /// **'Chapter {current} of {total}'**+ String readAlongChapterOf(int current, int total);++ /// No description provided for @readAlongStepOf.+ ///+ /// In en, this message translates to:+ /// **'Step {current} of {total}'**+ String readAlongStepOf(int current, int total);++ /// No description provided for @readAlongFirstRun.+ ///+ /// In en, this message translates to:+ /// **'First run for this language'**+ String get readAlongFirstRun;++ /// No description provided for @readAlongJustStarted.+ ///+ /// In en, this message translates to:+ /// **'Just started'**+ String get readAlongJustStarted;++ /// No description provided for @readAlongRunningFor.+ ///+ /// In en, this message translates to:+ /// **'Running for {duration}'**+ String readAlongRunningFor(String duration);++ /// No description provided for @readAlongStepAudio.+ ///+ /// In en, this message translates to:+ /// **'Audio'**+ String get readAlongStepAudio;++ /// No description provided for @readAlongStepSpeech.+ ///+ /// In en, this message translates to:+ /// **'Speech'**+ String get readAlongStepSpeech;+ /// No description provided for @readAlongStepText.+ ///+ /// In en, this message translates to:+ /// **'Text'**+ String get readAlongStepText;++ /// No description provided for @readAlongStepAlign.+ ///+ /// In en, this message translates to:+ /// **'Align'**+ String get readAlongStepAlign;++ /// No description provided for @readAlongStepCheck.+ ///+ /// In en, this message translates to:+ /// **'Check'**+ String get readAlongStepCheck;++ /// No description provided for @readAlongStepAdd.+ ///+ /// In en, this message translates to:+ /// **'Add'**+ String get readAlongStepAdd;++ /// No description provided for @readAlongReviewTitle.+ ///+ /// In en, this message translates to:+ /// **'Ready for review'**+ String get readAlongReviewTitle;++ /// No description provided for @readAlongReviewMatched.+ ///+ /// In en, this message translates to:+ /// **'{percent} of the text matched the narration. Check it before adding it to the book.'**+ String readAlongReviewMatched(String percent);++ /// No description provided for @readAlongReviewPlain.+ ///+ /// In en, this message translates to:+ /// **'Check it before adding it to the book.'**+ String get readAlongReviewPlain;++ /// No description provided for @readAlongReviewWeb.+ ///+ /// In en, this message translates to:+ /// **'To leave chapters out and match again, open this book in BookOrbit on the web.'**+ String get readAlongReviewWeb;++ /// No description provided for @readAlongReviewExpires.+ ///+ /// In en, this message translates to:+ /// **'Thrown away on its own on {date} unless you review it.'**+ String readAlongReviewExpires(String date);++ /// No description provided for @readAlongAddAnyway.+ ///+ /// In en, this message translates to:+ /// **'Add it anyway'**+ String get readAlongAddAnyway;++ /// No description provided for @readAlongDiscard.+ ///+ /// In en, this message translates to:+ /// **'Discard'**+ String get readAlongDiscard;++ /// No description provided for @readAlongDiscardPrompt.+ ///+ /// In en, this message translates to:+ /// **'Discard this read along?'**+ String get readAlongDiscardPrompt;++ /// No description provided for @readAlongKeepIt.+ ///+ /// In en, this message translates to:+ /// **'Keep it'**+ String get readAlongKeepIt;++ /// No description provided for @readAlongReady.+ ///+ /// In en, this message translates to:+ /// **'Read along ready'**+ String get readAlongReady;++ /// No description provided for @readAlongReadyWarnings.+ ///+ /// In en, this message translates to:+ /// **'Read along ready, with warnings'**+ String get readAlongReadyWarnings;++ /// No description provided for @readAlongAdded.+ ///+ /// In en, this message translates to:+ /// **'Added to this book as a new EPUB.'**+ String get readAlongAdded;++ /// No description provided for @readAlongReplaced.+ ///+ /// In en, this message translates to:+ /// **'Replaced the old read along. Reading spots carry over.'**+ String get readAlongReplaced;++ /// No description provided for @readAlongMatchedSentences.+ ///+ /// In en, this message translates to:+ /// **'{matched} of {total} sentences matched the narration'**+ String readAlongMatchedSentences(String matched, String total);++ /// No description provided for @readAlongAudioUsed.+ ///+ /// In en, this message translates to:+ /// **'{percent} of the audio used'**+ String readAlongAudioUsed(String percent);++ /// No description provided for @readAlongOutside.+ ///+ /// In en, this message translates to:+ /// **'Not in the narration, so left without audio: {chapters}.'**+ String readAlongOutside(String chapters);++ /// No description provided for @readAlongOutsideMore.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 more chapter} other{{count} more chapters}}'**+ String readAlongOutsideMore(int count);++ /// No description provided for @readAlongWarnUnaligned.+ ///+ /// In en, this message translates to:+ /// **'One or more audio tracks couldn\'t be matched.'**+ String get readAlongWarnUnaligned;++ /// No description provided for @readAlongWarnUnmatched.+ ///+ /// In en, this message translates to:+ /// **'A noticeable amount of the ebook text wasn\'t matched to the narration.'**+ String get readAlongWarnUnmatched;++ /// No description provided for @readAlongWarnInterpolated.+ ///+ /// In en, this message translates to:+ /// **'Some text timing was estimated between confident matches.'**+ String get readAlongWarnInterpolated;++ /// No description provided for @readAlongWarnDropped.+ ///+ /// In en, this message translates to:+ /// **'Some ebook text was left out of the highlighting.'**+ String get readAlongWarnDropped;++ /// No description provided for @readAlongFailed.+ ///+ /// In en, this message translates to:+ /// **'Read along failed'**+ String get readAlongFailed;++ /// No description provided for @readAlongCancelled.+ ///+ /// In en, this message translates to:+ /// **'Read along cancelled'**+ String get readAlongCancelled;++ /// No description provided for @readAlongDiscarded.+ ///+ /// In en, this message translates to:+ /// **'Read along thrown away'**+ String get readAlongDiscarded;++ /// No description provided for @readAlongNothingAdded.+ ///+ /// In en, this message translates to:+ /// **'Nothing was added to this book.'**+ String get readAlongNothingAdded;++ /// No description provided for @readAlongExpired.+ ///+ /// In en, this message translates to:+ /// **'It wasn\'t reviewed within 14 days, so nothing was added to this book.'**+ String get readAlongExpired;++ /// No description provided for @readAlongRetryUntil.+ ///+ /// In en, this message translates to:+ /// **'Retry picks up from the last finished step until {date}.'**+ String readAlongRetryUntil(String date);++ /// No description provided for @readAlongStartOver.+ ///+ /// In en, this message translates to:+ /// **'Start over'**+ String get readAlongStartOver;++ /// No description provided for @readAlongCancel.+ ///+ /// In en, this message translates to:+ /// **'Cancel read along'**+ String get readAlongCancel;++ /// No description provided for @readAlongCancelPrompt.+ ///+ /// In en, this message translates to:+ /// **'Cancel this read along?'**+ String get readAlongCancelPrompt;++ /// No description provided for @readAlongKeepRunning.+ ///+ /// In en, this message translates to:+ /// **'Keep running'**+ String get readAlongKeepRunning;++ /// No description provided for @readAlongErrorWorkerOffline.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit couldn\'t reach its read along worker.'**+ String get readAlongErrorWorkerOffline;++ /// No description provided for @readAlongErrorWorkerCrashed.+ ///+ /// In en, this message translates to:+ /// **'The read along worker stopped unexpectedly.'**+ String get readAlongErrorWorkerCrashed;++ /// No description provided for @readAlongErrorSourceMissing.+ ///+ /// In en, this message translates to:+ /// **'A picked file is no longer there.'**+ String get readAlongErrorSourceMissing;++ /// No description provided for @readAlongErrorSourceChanged.+ ///+ /// In en, this message translates to:+ /// **'A picked file changed after the job started.'**+ String get readAlongErrorSourceChanged;++ /// No description provided for @readAlongErrorInvalidSource.+ ///+ /// In en, this message translates to:+ /// **'The EPUB or audiobook couldn\'t be read.'**+ String get readAlongErrorInvalidSource;++ /// No description provided for @readAlongErrorLanguage.+ ///+ /// In en, this message translates to:+ /// **'The speech model doesn\'t know the picked language.'**+ String get readAlongErrorLanguage;++ /// No description provided for @readAlongErrorStorage.+ ///+ /// In en, this message translates to:+ /// **'There isn\'t enough free disk space on the worker to finish.'**+ String get readAlongErrorStorage;++ /// No description provided for @readAlongErrorAudio.+ ///+ /// In en, this message translates to:+ /// **'The audiobook couldn\'t be prepared.'**+ String get readAlongErrorAudio;++ /// No description provided for @readAlongErrorModel.+ ///+ /// In en, this message translates to:+ /// **'The speech model couldn\'t be downloaded.'**+ String get readAlongErrorModel;++ /// No description provided for @readAlongErrorListening.+ ///+ /// In en, this message translates to:+ /// **'Speech recognition failed while listening to the narration.'**+ String get readAlongErrorListening;++ /// No description provided for @readAlongErrorMarkup.+ ///+ /// In en, this message translates to:+ /// **'The ebook text couldn\'t be prepared for matching.'**+ String get readAlongErrorMarkup;++ /// No description provided for @readAlongErrorAlignment.+ ///+ /// In en, this message translates to:+ /// **'The text couldn\'t be matched to the narration.'**+ String get readAlongErrorAlignment;++ /// No description provided for @readAlongErrorOutput.+ ///+ /// In en, this message translates to:+ /// **'The new EPUB failed its checks.'**+ String get readAlongErrorOutput;++ /// No description provided for @readAlongErrorPublish.+ ///+ /// In en, this message translates to:+ /// **'The new EPUB couldn\'t be added to this book.'**+ String get readAlongErrorPublish;++ /// No description provided for @readAlongErrorDiscarded.+ ///+ /// In en, this message translates to:+ /// **'It was thrown away at review.'**+ String get readAlongErrorDiscarded;++ /// No description provided for @readAlongErrorCancelled.+ ///+ /// In en, this message translates to:+ /// **'It was cancelled.'**+ String get readAlongErrorCancelled;++ /// No description provided for @readAlongErrorUnknown.+ ///+ /// In en, this message translates to:+ /// **'Something went wrong while making the read along.'**+ String get readAlongErrorUnknown;++ /// No description provided for @fileInfoNoAudiobook.+ ///+ /// In en, this message translates to:+ /// **'No audiobook yet'**+ String get fileInfoNoAudiobook;++ /// No description provided for @fileInfoNoEbook.+ ///+ /// In en, this message translates to:+ /// **'No e-book yet'**+ String get fileInfoNoEbook;++ /// No description provided for @fileInfoRequestedBySomeone.+ ///+ /// In en, this message translates to:+ /// **'Requested by someone else'**+ String get fileInfoRequestedBySomeone;++ /// No description provided for @fileInfoOwnedSeparately.+ ///+ /// In en, this message translates to:+ /// **'In your library as a separate book'**+ String get fileInfoOwnedSeparately;++ /// No description provided for @fileInfoCopyPath.+ ///+ /// In en, this message translates to:+ /// **'Copy path'**+ String get fileInfoCopyPath;++ /// No description provided for @fileInfoDeleteTitle.+ ///+ /// In en, this message translates to:+ /// **'Delete file?'**+ String get fileInfoDeleteTitle;++ /// No description provided for @fileInfoDeletePrompt.+ ///+ /// In en, this message translates to:+ /// **'\"{name}\" will be deleted from the server. This can\'t be undone.'**+ String fileInfoDeletePrompt(String name);++ /// No description provided for @fileInfoDeleteLast.+ ///+ /// In en, this message translates to:+ /// **'It\'s the book\'s last audio or e-book file, so the book will show as missing.'**+ String get fileInfoDeleteLast;++ /// No description provided for @fileInfoDeleteNotAllowed.+ ///+ /// In en, this message translates to:+ /// **'You don\'t have permission to delete files'**+ String get fileInfoDeleteNotAllowed;++ /// No description provided for @chapterSourceEmbedded.+ ///+ /// In en, this message translates to:+ /// **'Read from the audio files'**+ String get chapterSourceEmbedded;++ /// No description provided for @chapterSourceTracks.+ ///+ /// In en, this message translates to:+ /// **'One chapter per audio file, not saved'**+ String get chapterSourceTracks;++ /// No description provided for @chapterSourceProvider.+ ///+ /// In en, this message translates to:+ /// **'From fetched metadata'**+ String get chapterSourceProvider;++ /// No description provided for @chapterSourceMigration.+ ///+ /// In en, this message translates to:+ /// **'Imported from Audiobookshelf'**+ String get chapterSourceMigration;++ /// No description provided for @chapterSourceManual.+ ///+ /// In en, this message translates to:+ /// **'Edited in BookOrbit'**+ String get chapterSourceManual;++ /// No description provided for @chapterSourceManualBy.+ ///+ /// In en, this message translates to:+ /// **'Edited by {name}'**+ String chapterSourceManualBy(String name);++ /// No description provided for @chapterSourceNone.+ ///+ /// In en, this message translates to:+ /// **'No chapters yet'**+ String get chapterSourceNone;++ /// No description provided for @chapterProtected.+ ///+ /// In en, this message translates to:+ /// **'Protected from rescans'**+ String get chapterProtected;++ /// No description provided for @chapterNotProtected.+ ///+ /// In en, this message translates to:+ /// **'A rescan can replace these'**+ String get chapterNotProtected;++ /// No description provided for @chapterProtectOnSave.+ ///+ /// In en, this message translates to:+ /// **'Protect from rescans'**+ String get chapterProtectOnSave;++ /// No description provided for @chapterGetFrom.+ ///+ /// In en, this message translates to:+ /// **'Get Chapters From'**+ String get chapterGetFrom;++ /// No description provided for @chapterFromFiles.+ ///+ /// In en, this message translates to:+ /// **'The audio files'**+ String get chapterFromFiles;++ /// No description provided for @chapterFromEbookToc.+ ///+ /// In en, this message translates to:+ /// **'The e-book\'s contents'**+ String get chapterFromEbookToc;++ /// No description provided for @chapterFromReadAlong.+ ///+ /// In en, this message translates to:+ /// **'The read along'**+ String get chapterFromReadAlong;++ /// No description provided for @chapterFromHistory.+ ///+ /// In en, this message translates to:+ /// **'Earlier versions'**+ String get chapterFromHistory;++ /// No description provided for @chapterHistoryTitle.+ ///+ /// In en, this message translates to:+ /// **'Earlier versions'**+ String get chapterHistoryTitle;++ /// No description provided for @chapterHistoryEmpty.+ ///+ /// In en, this message translates to:+ /// **'Saved versions show up here.'**+ String get chapterHistoryEmpty;++ /// No description provided for @chapterHistoryBy.+ ///+ /// In en, this message translates to:+ /// **'{source} by {name}'**+ String chapterHistoryBy(String source, String name);++ /// No description provided for @chapterReadingFiles.+ ///+ /// In en, this message translates to:+ /// **'Reading the audio files...'**+ String get chapterReadingFiles;++ /// No description provided for @chapterRevertToFiles.+ ///+ /// In en, this message translates to:+ /// **'Revert to Files'**+ String get chapterRevertToFiles;++ /// No description provided for @chapterRevertTitle.+ ///+ /// In en, this message translates to:+ /// **'Go back to the chapters in the files?'**+ String get chapterRevertTitle;++ /// No description provided for @chapterRevertMessage.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.'**+ String get chapterRevertMessage;++ /// No description provided for @chapterReverted.+ ///+ /// In en, this message translates to:+ /// **'Chapters set back to the audio files'**+ String get chapterReverted;++ /// No description provided for @chapterWriteFiles.+ ///+ /// In en, this message translates to:+ /// **'Write to Files'**+ String get chapterWriteFiles;++ /// No description provided for @chapterWriteTitle.+ ///+ /// In en, this message translates to:+ /// **'Write the chapters into the audio files?'**+ String get chapterWriteTitle;++ /// No description provided for @chapterWriteMessage.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{This rewrites the book\'s audio file with these chapters.} other{This rewrites the book\'s {count} audio files with these chapters.}} The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.'**+ String chapterWriteMessage(int count);++ /// No description provided for @chapterWriteConfirm.+ ///+ /// In en, this message translates to:+ /// **'Write'**+ String get chapterWriteConfirm;++ /// No description provided for @chapterWriting.+ ///+ /// In en, this message translates to:+ /// **'Writing the chapters into the audio files...'**+ String get chapterWriting;++ /// No description provided for @chapterWritten.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{Chapters written into the audio file} other{Chapters written into all {count} audio files}}'**+ String chapterWritten(int count);++ /// No description provided for @chapterWrittenPartly.+ ///+ /// In en, this message translates to:+ /// **'Chapters written into {written} of {total} files. The rest were left as they were.'**+ String chapterWrittenPartly(int written, int total);++ /// No description provided for @chapterStaleTitle.+ ///+ /// In en, this message translates to:+ /// **'These chapters changed'**+ String get chapterStaleTitle;++ /// No description provided for @chapterStaleMessage.+ ///+ /// In en, this message translates to:+ /// **'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.'**+ String get chapterStaleMessage;++ /// No description provided for @chapterReload.+ ///+ /// In en, this message translates to:+ /// **'Reload'**+ String get chapterReload;++ /// No description provided for @chapterKeepEditing.+ ///+ /// In en, this message translates to:+ /// **'Keep editing'**+ String get chapterKeepEditing;++ /// No description provided for @matchExplicitYes.+ ///+ /// In en, this message translates to:+ /// **'Marked explicit'**+ String get matchExplicitYes;++ /// No description provided for @matchExplicitNo.+ ///+ /// In en, this message translates to:+ /// **'Not explicit'**+ String get matchExplicitNo;++ /// No description provided for @matchAbridgedYes.+ ///+ /// In en, this message translates to:+ /// **'Abridged'**+ String get matchAbridgedYes;++ /// No description provided for @matchAbridgedNo.+ ///+ /// In en, this message translates to:+ /// **'Unabridged'**+ String get matchAbridgedNo;++ /// No description provided for @boQuickMatchBody.+ ///+ /// In en, this message translates to:+ /// **'BookOrbit looks up {count, plural, =1{this book} other{these {count} books}} and fills in what it finds, following its metadata settings.'**+ String boQuickMatchBody(int count);++ /// No description provided for @boQuickMatchIgnoreCache.+ ///+ /// In en, this message translates to:+ /// **'Ask every source again'**+ String get boQuickMatchIgnoreCache;++ /// No description provided for @boQuickMatchIgnoreCacheHint.+ ///+ /// In en, this message translates to:+ /// **'Skips saved answers. Slower, and uses more of each source\'s request limit.'**+ String get boQuickMatchIgnoreCacheHint;++ /// No description provided for @boAdminServerCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =0{None yet} =1{1 mail server} other{{count} mail servers}}'**+ String boAdminServerCount(int count);++ /// No description provided for @boEmailTitle.+ ///+ /// In en, this message translates to:+ /// **'Send by email'**+ String get boEmailTitle;++ /// No description provided for @boEmailSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Devices, mail servers and templates for sending books'**+ String get boEmailSubtitle;++ /// No description provided for @boEmailTabDevices.+ ///+ /// In en, this message translates to:+ /// **'Devices'**+ String get boEmailTabDevices;++ /// No description provided for @boEmailTabServers.+ ///+ /// In en, this message translates to:+ /// **'Mail servers'**+ String get boEmailTabServers;++ /// No description provided for @boEmailTabTemplates.+ ///+ /// In en, this message translates to:+ /// **'Templates'**+ String get boEmailTabTemplates;++ /// No description provided for @boEmailTabHistory.+ ///+ /// In en, this message translates to:+ /// **'History'**+ String get boEmailTabHistory;++ /// No description provided for @boEmailName.+ ///+ /// In en, this message translates to:+ /// **'Name'**+ String get boEmailName;++ /// No description provided for @boEmailDeleteTitle.+ ///+ /// In en, this message translates to:+ /// **'Delete {name}?'**+ String boEmailDeleteTitle(String name);++ /// No description provided for @boEmailMakeDefault.+ ///+ /// In en, this message translates to:+ /// **'Make default'**+ String get boEmailMakeDefault;++ /// No description provided for @boEmailBadgeDefault.+ ///+ /// In en, this message translates to:+ /// **'Default'**+ String get boEmailBadgeDefault;++ /// No description provided for @boEmailBadgeShared.+ ///+ /// In en, this message translates to:+ /// **'Shared'**+ String get boEmailBadgeShared;++ /// No description provided for @boEmailBadgeSystem.+ ///+ /// In en, this message translates to:+ /// **'Password resets'**+ String get boEmailBadgeSystem;++ /// No description provided for @boEmailBadgeBuiltIn.+ ///+ /// In en, this message translates to:+ /// **'Built in'**+ String get boEmailBadgeBuiltIn;++ /// No description provided for @boEmailDevicesEmpty.+ ///+ /// In en, this message translates to:+ /// **'No devices yet. Add your e-reader\'s email address to send it books.'**+ String get boEmailDevicesEmpty;++ /// No description provided for @boEmailAddDevice.+ ///+ /// In en, this message translates to:+ /// **'Add device'**+ String get boEmailAddDevice;++ /// No description provided for @boEmailNewDevice.+ ///+ /// In en, this message translates to:+ /// **'New device'**+ String get boEmailNewDevice;++ /// No description provided for @boEmailDeviceNameHint.+ ///+ /// In en, this message translates to:+ /// **'My Kindle'**+ String get boEmailDeviceNameHint;++ /// No description provided for @boEmailDeviceAddress.+ ///+ /// In en, this message translates to:+ /// **'Email address'**+ String get boEmailDeviceAddress;++ /// No description provided for @boEmailDeviceType.+ ///+ /// In en, this message translates to:+ /// **'Device'**+ String get boEmailDeviceType;++ /// No description provided for @boEmailDeviceNone.+ ///+ /// In en, this message translates to:+ /// **'Person or inbox'**+ String get boEmailDeviceNone;++ /// No description provided for @boEmailDeviceKindle.+ ///+ /// In en, this message translates to:+ /// **'Kindle'**+ String get boEmailDeviceKindle;++ /// No description provided for @boEmailDeviceKobo.+ ///+ /// In en, this message translates to:+ /// **'Kobo'**+ String get boEmailDeviceKobo;++ /// No description provided for @boEmailDeviceOther.+ ///+ /// In en, this message translates to:+ /// **'Other e-reader'**+ String get boEmailDeviceOther;++ /// No description provided for @boEmailKindleHint.+ ///+ /// In en, this message translates to:+ /// **'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.'**+ String get boEmailKindleHint;++ /// No description provided for @boEmailKindleApprove.+ ///+ /// In en, this message translates to:+ /// **'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add {address} to the approved list.'**+ String boEmailKindleApprove(String address);++ /// No description provided for @boEmailKindleApproveNoServer.+ ///+ /// In en, this message translates to:+ /// **'Add a mail server first to see the address Kindle needs to approve.'**+ String get boEmailKindleApproveNoServer;++ /// No description provided for @boEmailFormat.+ ///+ /// In en, this message translates to:+ /// **'Format'**+ String get boEmailFormat;++ /// No description provided for @boEmailFormatPrimary.+ ///+ /// In en, this message translates to:+ /// **'Book\'s main file'**+ String get boEmailFormatPrimary;++ /// No description provided for @boEmailFormatHint.+ ///+ /// In en, this message translates to:+ /// **'A book without this format gets its main file.'**+ String get boEmailFormatHint;++ /// No description provided for @boEmailReadAlong.+ ///+ /// In en, this message translates to:+ /// **'Read along books'**+ String get boEmailReadAlong;++ /// No description provided for @boEmailReadAlongAuto.+ ///+ /// In en, this message translates to:+ /// **'Automatic'**+ String get boEmailReadAlongAuto;++ /// No description provided for @boEmailReadAlongAutoHint.+ ///+ /// In en, this message translates to:+ /// **'Text only when a copy can be made, otherwise the original.'**+ String get boEmailReadAlongAutoHint;++ /// No description provided for @boEmailReadAlongText.+ ///+ /// In en, this message translates to:+ /// **'Text only'**+ String get boEmailReadAlongText;++ /// No description provided for @boEmailReadAlongTextHint.+ ///+ /// In en, this message translates to:+ /// **'Narration removed. Small enough for email.'**+ String get boEmailReadAlongTextHint;++ /// No description provided for @boEmailReadAlongOriginal.+ ///+ /// In en, this message translates to:+ /// **'With narration'**+ String get boEmailReadAlongOriginal;++ /// No description provided for @boEmailReadAlongOriginalHint.+ ///+ /// In en, this message translates to:+ /// **'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.'**+ String get boEmailReadAlongOriginalHint;++ /// No description provided for @boEmailTemplate.+ ///+ /// In en, this message translates to:+ /// **'Template'**+ String get boEmailTemplate;++ /// No description provided for @boEmailTemplateYourDefault.+ ///+ /// In en, this message translates to:+ /// **'Your default'**+ String get boEmailTemplateYourDefault;++ /// No description provided for @boEmailTemplateKindleHint.+ ///+ /// In en, this message translates to:+ /// **'Kindle never shows the message, so it skips the template.'**+ String get boEmailTemplateKindleHint;++ /// No description provided for @boEmailDefaultDevice.+ ///+ /// In en, this message translates to:+ /// **'Default device'**+ String get boEmailDefaultDevice;++ /// No description provided for @boEmailDefaultDeviceHint.+ ///+ /// In en, this message translates to:+ /// **'Picked first when you send a book.'**+ String get boEmailDefaultDeviceHint;++ /// No description provided for @boEmailSendTest.+ ///+ /// In en, this message translates to:+ /// **'Send a test email'**+ String get boEmailSendTest;++ /// No description provided for @boEmailTestSubject.+ ///+ /// In en, this message translates to:+ /// **'Test email from Absorb'**+ String get boEmailTestSubject;++ /// No description provided for @boEmailTestBody.+ ///+ /// In en, this message translates to:+ /// **'This is a test from Absorb. If you can read it, books sent to {name} will arrive here too.'**+ String boEmailTestBody(String name);++ /// No description provided for @boEmailTestSent.+ ///+ /// In en, this message translates to:+ /// **'Test email sent to {name}'**+ String boEmailTestSent(String name);++ /// No description provided for @boEmailTestFailed.+ ///+ /// In en, this message translates to:+ /// **'The test email didn\'t go out: {error}'**+ String boEmailTestFailed(String error);++ /// No description provided for @boEmailDeleteDevice.+ ///+ /// In en, this message translates to:+ /// **'Delete device'**+ String get boEmailDeleteDevice;++ /// No description provided for @boEmailDeleteDeviceBody.+ ///+ /// In en, this message translates to:+ /// **'Its send history stays.'**+ String get boEmailDeleteDeviceBody;++ /// No description provided for @boEmailDeviceRequired.+ ///+ /// In en, this message translates to:+ /// **'Enter a name and an email address'**+ String get boEmailDeviceRequired;++ /// No description provided for @boEmailLastSendFailed.+ ///+ /// In en, this message translates to:+ /// **'Last send failed'**+ String get boEmailLastSendFailed;++ /// No description provided for @boEmailGroups.+ ///+ /// In en, this message translates to:+ /// **'Groups'**+ String get boEmailGroups;++ /// No description provided for @boEmailGroupsHint.+ ///+ /// In en, this message translates to:+ /// **'Send to several devices at once.'**+ String get boEmailGroupsHint;++ /// No description provided for @boEmailNewGroup.+ ///+ /// In en, this message translates to:+ /// **'New group'**+ String get boEmailNewGroup;++ /// No description provided for @boEmailGroupNameHint.+ ///+ /// In en, this message translates to:+ /// **'Book club'**+ String get boEmailGroupNameHint;++ /// No description provided for @boEmailGroupMembers.+ ///+ /// In en, this message translates to:+ /// **'Devices in this group'**+ String get boEmailGroupMembers;++ /// No description provided for @boEmailGroupMembersEmpty.+ ///+ /// In en, this message translates to:+ /// **'Add a device first.'**+ String get boEmailGroupMembersEmpty;++ /// No description provided for @boEmailGroupMemberCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =0{No devices} =1{1 device} other{{count} devices}}'**+ String boEmailGroupMemberCount(int count);++ /// No description provided for @boEmailDeleteGroup.+ ///+ /// In en, this message translates to:+ /// **'Delete group'**+ String get boEmailDeleteGroup;++ /// No description provided for @boEmailDeleteGroupBody.+ ///+ /// In en, this message translates to:+ /// **'The devices in it stay.'**+ String get boEmailDeleteGroupBody;++ /// No description provided for @boEmailGroupRequired.+ ///+ /// In en, this message translates to:+ /// **'Enter a group name'**+ String get boEmailGroupRequired;++ /// No description provided for @boEmailServersEmptyManage.+ ///+ /// In en, this message translates to:+ /// **'No mail servers yet. Add one to start sending books.'**+ String get boEmailServersEmptyManage;++ /// No description provided for @boEmailServersEmpty.+ ///+ /// In en, this message translates to:+ /// **'No mail servers yet. Ask an admin to add one.'**+ String get boEmailServersEmpty;++ /// No description provided for @boEmailAddServer.+ ///+ /// In en, this message translates to:+ /// **'Add mail server'**+ String get boEmailAddServer;++ /// No description provided for @boEmailNewServer.+ ///+ /// In en, this message translates to:+ /// **'New mail server'**+ String get boEmailNewServer;++ /// No description provided for @boEmailServerPresetOther.+ ///+ /// In en, this message translates to:+ /// **'Other'**+ String get boEmailServerPresetOther;++ /// No description provided for @boEmailServerPresetHint.+ ///+ /// In en, this message translates to:+ /// **'A preset fills in the host, port and security. You can still change them.'**+ String get boEmailServerPresetHint;++ /// No description provided for @boEmailServerHost.+ ///+ /// In en, this message translates to:+ /// **'Host'**+ String get boEmailServerHost;++ /// No description provided for @boEmailServerPort.+ ///+ /// In en, this message translates to:+ /// **'Port'**+ String get boEmailServerPort;++ /// No description provided for @boEmailServerSecurity.+ ///+ /// In en, this message translates to:+ /// **'Security'**+ String get boEmailServerSecurity;++ /// No description provided for @boEmailServerSecurityNone.+ ///+ /// In en, this message translates to:+ /// **'None'**+ String get boEmailServerSecurityNone;++ /// No description provided for @boEmailServerSecurityHint.+ ///+ /// In en, this message translates to:+ /// **'STARTTLS on port 587, SSL/TLS on 465.'**+ String get boEmailServerSecurityHint;++ /// No description provided for @boEmailServerNeedsPassword.+ ///+ /// In en, this message translates to:+ /// **'Signs in with a password'**+ String get boEmailServerNeedsPassword;++ /// No description provided for @boEmailServerUsername.+ ///+ /// In en, this message translates to:+ /// **'Username'**+ String get boEmailServerUsername;++ /// No description provided for @boEmailServerPassword.+ ///+ /// In en, this message translates to:+ /// **'Password'**+ String get boEmailServerPassword;++ /// No description provided for @boEmailServerAppPassword.+ ///+ /// In en, this message translates to:+ /// **'App password'**+ String get boEmailServerAppPassword;++ /// No description provided for @boEmailServerPasswordKeep.+ ///+ /// In en, this message translates to:+ /// **'Saved. Type to replace it'**+ String get boEmailServerPasswordKeep;++ /// No description provided for @boEmailServerAppPasswordHint.+ ///+ /// In en, this message translates to:+ /// **'Gmail and iCloud need an app password, not your account password.'**+ String get boEmailServerAppPasswordHint;++ /// No description provided for @boEmailServerFromName.+ ///+ /// In en, this message translates to:+ /// **'From name'**+ String get boEmailServerFromName;++ /// No description provided for @boEmailServerFromAddress.+ ///+ /// In en, this message translates to:+ /// **'From address'**+ String get boEmailServerFromAddress;++ /// No description provided for @boEmailServerFromAddressHint.+ ///+ /// In en, this message translates to:+ /// **'Kindle owners need to approve this address.'**+ String get boEmailServerFromAddressHint;++ /// No description provided for @boEmailServerShare.+ ///+ /// In en, this message translates to:+ /// **'Share with everyone'**+ String get boEmailServerShare;++ /// No description provided for @boEmailServerShareHint.+ ///+ /// In en, this message translates to:+ /// **'Other people can send books through this server without seeing the password.'**+ String get boEmailServerShareHint;++ /// No description provided for @boEmailServerSystem.+ ///+ /// In en, this message translates to:+ /// **'Send password resets and sign-in links'**+ String get boEmailServerSystem;++ /// No description provided for @boEmailServerSystemHint.+ ///+ /// In en, this message translates to:+ /// **'The server BookOrbit uses for its own mail.'**+ String get boEmailServerSystemHint;++ /// No description provided for @boEmailServerVerifyTls.+ ///+ /// In en, this message translates to:+ /// **'Check the server\'s certificate'**+ String get boEmailServerVerifyTls;++ /// No description provided for @boEmailServerVerifyTlsHint.+ ///+ /// In en, this message translates to:+ /// **'Turn this off only for a server on your own network with a self-signed certificate.'**+ String get boEmailServerVerifyTlsHint;++ /// No description provided for @boEmailServerTest.+ ///+ /// In en, this message translates to:+ /// **'Test connection'**+ String get boEmailServerTest;++ /// No description provided for @boEmailServerTestSaveFirst.+ ///+ /// In en, this message translates to:+ /// **'Save first, then test'**+ String get boEmailServerTestSaveFirst;++ /// No description provided for @boEmailServerTestOk.+ ///+ /// In en, this message translates to:+ /// **'Connected'**+ String get boEmailServerTestOk;++ /// No description provided for @boEmailServerTestFailed.+ ///+ /// In en, this message translates to:+ /// **'Can\'t connect: {error}'**+ String boEmailServerTestFailed(String error);++ /// No description provided for @boEmailServerDelete.+ ///+ /// In en, this message translates to:+ /// **'Delete mail server'**+ String get boEmailServerDelete;++ /// No description provided for @boEmailServerDeleteBody.+ ///+ /// In en, this message translates to:+ /// **'Everyone it\'s shared with loses it.'**+ String get boEmailServerDeleteBody;++ /// No description provided for @boEmailServerSystemFirst.+ ///+ /// In en, this message translates to:+ /// **'Turn off password resets on this server before deleting it.'**+ String get boEmailServerSystemFirst;++ /// No description provided for @boEmailServerRequired.+ ///+ /// In en, this message translates to:+ /// **'Enter a name and a host'**+ String get boEmailServerRequired;++ /// No description provided for @boEmailServerNotYours.+ ///+ /// In en, this message translates to:+ /// **'Someone else added this server. Only they can change it.'**+ String get boEmailServerNotYours;++ /// No description provided for @boEmailTemplatesEmpty.+ ///+ /// In en, this message translates to:+ /// **'No templates yet.'**+ String get boEmailTemplatesEmpty;++ /// No description provided for @boEmailNewTemplate.+ ///+ /// In en, this message translates to:+ /// **'New template'**+ String get boEmailNewTemplate;++ /// No description provided for @boEmailTemplateSubject.+ ///+ /// In en, this message translates to:+ /// **'Subject'**+ String get boEmailTemplateSubject;++ /// No description provided for @boEmailTemplateMessage.+ ///+ /// In en, this message translates to:+ /// **'Message'**+ String get boEmailTemplateMessage;++ /// No description provided for @boEmailTemplateInsert.+ ///+ /// In en, this message translates to:+ /// **'Insert'**+ String get boEmailTemplateInsert;++ /// No description provided for @boEmailTemplateInsertHint.+ ///+ /// In en, this message translates to:+ /// **'Goes in where the cursor is. Details a book doesn\'t have print nothing.'**+ String get boEmailTemplateInsertHint;++ /// No description provided for @boEmailVarBook.+ ///+ /// In en, this message translates to:+ /// **'Book'**+ String get boEmailVarBook;++ /// No description provided for @boEmailVarFile.+ ///+ /// In en, this message translates to:+ /// **'File'**+ String get boEmailVarFile;++ /// No description provided for @boEmailVarOther.+ ///+ /// In en, this message translates to:+ /// **'Other'**+ String get boEmailVarOther;++ /// No description provided for @boEmailTemplatePreview.+ ///+ /// In en, this message translates to:+ /// **'Preview'**+ String get boEmailTemplatePreview;++ /// No description provided for @boEmailTemplatePreviewNone.+ ///+ /// In en, this message translates to:+ /// **'Send a book once to preview a template with it.'**+ String get boEmailTemplatePreviewNone;++ /// No description provided for @boEmailTemplateAttached.+ ///+ /// In en, this message translates to:+ /// **'Attached: {name}'**+ String boEmailTemplateAttached(String name);++ /// No description provided for @boEmailTemplateBuiltIn.+ ///+ /// In en, this message translates to:+ /// **'Built in. Only an admin can change it.'**+ String get boEmailTemplateBuiltIn;++ /// No description provided for @boEmailTemplateKindleNote.+ ///+ /// In en, this message translates to:+ /// **'Kindle never shows a template. It always gets the subject \"convert\".'**+ String get boEmailTemplateKindleNote;++ /// No description provided for @boEmailTemplateDelete.+ ///+ /// In en, this message translates to:+ /// **'Delete template'**+ String get boEmailTemplateDelete;++ /// No description provided for @boEmailTemplateDeleteBody.+ ///+ /// In en, this message translates to:+ /// **'Devices that use it go back to your default template.'**+ String get boEmailTemplateDeleteBody;++ /// No description provided for @boEmailTemplateRequired.+ ///+ /// In en, this message translates to:+ /// **'Enter a name and a subject'**+ String get boEmailTemplateRequired;++ /// No description provided for @boEmailHistoryEmpty.+ ///+ /// In en, this message translates to:+ /// **'Nothing sent yet.'**+ String get boEmailHistoryEmpty;++ /// No description provided for @boEmailHistoryAll.+ ///+ /// In en, this message translates to:+ /// **'All'**+ String get boEmailHistoryAll;++ /// No description provided for @boEmailHistoryEveryone.+ ///+ /// In en, this message translates to:+ /// **'Everyone'**+ String get boEmailHistoryEveryone;++ /// No description provided for @boEmailStatusSent.+ ///+ /// In en, this message translates to:+ /// **'Sent'**+ String get boEmailStatusSent;++ /// No description provided for @boEmailStatusSending.+ ///+ /// In en, this message translates to:+ /// **'Sending'**+ String get boEmailStatusSending;++ /// No description provided for @boEmailStatusRetrying.+ ///+ /// In en, this message translates to:+ /// **'Trying again ({attempt})'**+ String boEmailStatusRetrying(int attempt);++ /// No description provided for @boEmailStatusFailed.+ ///+ /// In en, this message translates to:+ /// **'Failed'**+ String get boEmailStatusFailed;++ /// No description provided for @boEmailTo.+ ///+ /// In en, this message translates to:+ /// **'To {name}'**+ String boEmailTo(String name);++ /// No description provided for @boEmailResend.+ ///+ /// In en, this message translates to:+ /// **'Send again'**+ String get boEmailResend;++ /// No description provided for @boEmailResent.+ ///+ /// In en, this message translates to:+ /// **'Sending again'**+ String get boEmailResent;++ /// No description provided for @boEmailForget.+ ///+ /// In en, this message translates to:+ /// **'Remove from history'**+ String get boEmailForget;++ /// No description provided for @boEmailLoadMore.+ ///+ /// In en, this message translates to:+ /// **'Load more'**+ String get boEmailLoadMore;++ /// No description provided for @boEmailUnknownBook.+ ///+ /// In en, this message translates to:+ /// **'Deleted book'**+ String get boEmailUnknownBook;++ /// No description provided for @boEmailSendNoServer.+ ///+ /// In en, this message translates to:+ /// **'No mail server is set up on this server yet.'**+ String get boEmailSendNoServer;++ /// No description provided for @boEmailSendAskAdmin.+ ///+ /// In en, this message translates to:+ /// **'Ask an admin to add one.'**+ String get boEmailSendAskAdmin;++ /// No description provided for @boEmailSendNoDevices.+ ///+ /// In en, this message translates to:+ /// **'Add a device to send this book to.'**+ String get boEmailSendNoDevices;++ /// No description provided for @boEmailSendOptions.+ ///+ /// In en, this message translates to:+ /// **'Options'**+ String get boEmailSendOptions;++ /// No description provided for @boEmailSendFormatEach.+ ///+ /// In en, this message translates to:+ /// **'Each device\'s own'**+ String get boEmailSendFormatEach;++ /// No description provided for @boEmailSendServer.+ ///+ /// In en, this message translates to:+ /// **'Mail server'**+ String get boEmailSendServer;++ /// No description provided for @boEmailSendButton.+ ///+ /// In en, this message translates to:+ /// **'Send'**+ String get boEmailSendButton;++ /// No description provided for @boEmailSendGets.+ ///+ /// In en, this message translates to:+ /// **'Gets {format} · {size}'**+ String boEmailSendGets(String format, String size);++ /// No description provided for @boEmailSendMissing.+ ///+ /// In en, this message translates to:+ /// **'No {format}, gets the {got}'**+ String boEmailSendMissing(String format, String got);++ /// No description provided for @boEmailSendKindleRejects.+ ///+ /// In en, this message translates to:+ /// **'Kindle doesn\'t take {format} by email'**+ String boEmailSendKindleRejects(String format);++ /// No description provided for @boEmailSendOverKindle.+ ///+ /// In en, this message translates to:+ /// **'{size}, over Kindle\'s 50 MB limit'**+ String boEmailSendOverKindle(String size);++ /// No description provided for @boEmailSendOverGmail.+ ///+ /// In en, this message translates to:+ /// **'{size}, over Gmail\'s 25 MB limit'**+ String boEmailSendOverGmail(String size);++ /// No description provided for @boEmailSendNarrated.+ ///+ /// In en, this message translates to:+ /// **'Gets the narrated copy · {size}'**+ String boEmailSendNarrated(String size);++ /// No description provided for @boEmailSendHanding.+ ///+ /// In en, this message translates to:+ /// **'Sending through {server}'**+ String boEmailSendHanding(String server);++ /// No description provided for @boEmailSendAccepted.+ ///+ /// In en, this message translates to:+ /// **'Sent through {server}'**+ String boEmailSendAccepted(String server);++ /// No description provided for @boEmailSendFailedLine.+ ///+ /// In en, this message translates to:+ /// **'Didn\'t send: {error}'**+ String boEmailSendFailedLine(String error);++ /// No description provided for @boEmailSendStillGoing.+ ///+ /// In en, this message translates to:+ /// **'Still sending. You\'ll get a notification when it\'s done.'**+ String get boEmailSendStillGoing;++ /// No description provided for @boEmailKindleOriginal.+ ///+ /// In en, this message translates to:+ /// **'A Kindle can\'t take the narrated copy. Set it to text only.'**+ String get boEmailKindleOriginal;++ /// No description provided for @boEmailNoCopy.+ ///+ /// In en, this message translates to:+ /// **'Couldn\'t make a copy without the narration.'**+ String get boEmailNoCopy;+}++class _AppLocalizationsDelegate+ extends LocalizationsDelegate<AppLocalizations> {+ const _AppLocalizationsDelegate();++ @override+ Future<AppLocalizations> load(Locale locale) {+ return SynchronousFuture<AppLocalizations>(lookupAppLocalizations(locale));+ }++ @override+ bool isSupported(Locale locale) => <String>[+ 'de',+ 'el',+ 'en',+ 'es',+ 'fr',+ 'it',+ 'ja',+ 'no',+ 'pt',+ 'ro',+ 'ru',+ 'zh',+ ].contains(locale.languageCode);++ @override+ bool shouldReload(_AppLocalizationsDelegate old) => false;+}++AppLocalizations lookupAppLocalizations(Locale locale) {// Lookup logic when only language code is specified.switch (locale.languageCode) {- case 'de': return AppLocalizationsDe();- case 'el': return AppLocalizationsEl();- case 'en': return AppLocalizationsEn();- case 'es': return AppLocalizationsEs();- case 'fr': return AppLocalizationsFr();- case 'it': return AppLocalizationsIt();- case 'ja': return AppLocalizationsJa();- case 'no': return AppLocalizationsNo();- case 'pt': return AppLocalizationsPt();- case 'ro': return AppLocalizationsRo();- case 'ru': return AppLocalizationsRu();- case 'zh': return AppLocalizationsZh();+ case 'de':+ return AppLocalizationsDe();+ case 'el':+ return AppLocalizationsEl();+ case 'en':+ return AppLocalizationsEn();+ case 'es':+ return AppLocalizationsEs();+ case 'fr':+ return AppLocalizationsFr();+ case 'it':+ return AppLocalizationsIt();+ case 'ja':+ return AppLocalizationsJa();+ case 'no':+ return AppLocalizationsNo();+ case 'pt':+ return AppLocalizationsPt();+ case 'ro':+ return AppLocalizationsRo();+ case 'ru':+ return AppLocalizationsRu();+ case 'zh':+ return AppLocalizationsZh();}throw FlutterError('AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ''an issue with the localizations generation tool. Please file an issue ''on GitHub with a reproducible sample app and the gen-l10n configuration '- 'that was used.'+ 'that was used.',);}diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dartindex 5f8139d2..286f7a34 100644--- a/lib/l10n/app_localizations_de.dart+++ b/lib/l10n/app_localizations_de.dart@@ -2478,6 +2478,17 @@ class AppLocalizationsDe extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12839,4 +12850,1210 @@ class AppLocalizationsDe extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_el.dart b/lib/l10n/app_localizations_el.dartindex 57a1c403..c187b586 100644--- a/lib/l10n/app_localizations_el.dart+++ b/lib/l10n/app_localizations_el.dart@@ -2458,6 +2458,17 @@ class AppLocalizationsEl extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12718,4 +12729,1210 @@ class AppLocalizationsEl extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dartindex 710ba722..a37e2771 100644--- a/lib/l10n/app_localizations_en.dart+++ b/lib/l10n/app_localizations_en.dart@@ -2458,6 +2458,17 @@ class AppLocalizationsEn extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12718,4 +12729,1210 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dartindex faee4dc8..ba163fec 100644--- a/lib/l10n/app_localizations_es.dart+++ b/lib/l10n/app_localizations_es.dart@@ -2460,6 +2460,17 @@ class AppLocalizationsEs extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12720,4 +12731,1210 @@ class AppLocalizationsEs extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dartindex a45c471c..7e3b97cc 100644--- a/lib/l10n/app_localizations_fr.dart+++ b/lib/l10n/app_localizations_fr.dart@@ -2483,6 +2483,17 @@ class AppLocalizationsFr extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12771,4 +12782,1210 @@ class AppLocalizationsFr extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dartindex 65b04f80..81d61de8 100644--- a/lib/l10n/app_localizations_it.dart+++ b/lib/l10n/app_localizations_it.dart@@ -2458,6 +2458,17 @@ class AppLocalizationsIt extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12718,4 +12729,1210 @@ class AppLocalizationsIt extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dartindex 5386eccb..5b3bf9a1 100644--- a/lib/l10n/app_localizations_ja.dart+++ b/lib/l10n/app_localizations_ja.dart@@ -2458,6 +2458,17 @@ class AppLocalizationsJa extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12718,4 +12729,1210 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_no.dart b/lib/l10n/app_localizations_no.dartindex a6e491c9..da05afc1 100644--- a/lib/l10n/app_localizations_no.dart+++ b/lib/l10n/app_localizations_no.dart@@ -2458,6 +2458,17 @@ class AppLocalizationsNo extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12718,4 +12729,1210 @@ class AppLocalizationsNo extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dartindex 3f9ae22e..836a76a9 100644--- a/lib/l10n/app_localizations_pt.dart+++ b/lib/l10n/app_localizations_pt.dart@@ -2458,6 +2458,17 @@ class AppLocalizationsPt extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12718,4 +12729,1210 @@ class AppLocalizationsPt extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_ro.dart b/lib/l10n/app_localizations_ro.dartindex 502135ec..86b6597a 100644--- a/lib/l10n/app_localizations_ro.dart+++ b/lib/l10n/app_localizations_ro.dart@@ -2458,6 +2458,17 @@ class AppLocalizationsRo extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12718,4 +12729,1210 @@ class AppLocalizationsRo extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dartindex 1c9cb1a8..c530cd0a 100644--- a/lib/l10n/app_localizations_ru.dart+++ b/lib/l10n/app_localizations_ru.dart@@ -2461,6 +2461,17 @@ class AppLocalizationsRu extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -12723,4 +12734,1210 @@ class AppLocalizationsRu extends AppLocalizations {@overrideString get achievementsSwitchFailed =>'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc =>+ 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed =>+ 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline =>+ 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated =>+ 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing =>+ 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub =>+ 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne =>+ 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks =>+ 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed =>+ 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted =>+ 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning =>+ 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown =>+ 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro =>+ 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint =>+ 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint =>+ 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint =>+ 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed =>+ 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint =>+ 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint =>+ 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote =>+ 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed =>+ 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid =>+ 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline =>+ 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn =>+ 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint =>+ 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb =>+ 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced =>+ 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned =>+ 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched =>+ 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated =>+ 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped =>+ 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired =>+ 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline =>+ 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed =>+ 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged =>+ 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource =>+ 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage =>+ 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage =>+ 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening =>+ 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup =>+ 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment =>+ 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish =>+ 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown =>+ 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast =>+ 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed =>+ 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage =>+ 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage =>+ 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint =>+ 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle =>+ 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty =>+ 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint =>+ 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer =>+ 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint =>+ 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint =>+ 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint =>+ 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint =>+ 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint =>+ 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage =>+ 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty =>+ 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint =>+ 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint =>+ 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint =>+ 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint =>+ 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint =>+ 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint =>+ 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint =>+ 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst =>+ 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours =>+ 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint =>+ 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone =>+ 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote =>+ 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody =>+ 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer =>+ 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing =>+ 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal =>+ 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dartindex f14da424..ef178a25 100644--- a/lib/l10n/app_localizations_zh.dart+++ b/lib/l10n/app_localizations_zh.dart@@ -27,26 +27,22 @@ class AppLocalizationsZh extends AppLocalizations {String get listsNone => 'No collections or playlists';@override- String get listsNoneHint =>- 'Collections and playlists are made on your Audiobookshelf server, and show up here.';+ String get listsNoneHint => 'Collections and playlists are made on your Audiobookshelf server, and show up here.';@overrideString get listsLoadFailed => 'Couldn\'t load your lists';@override- String get listsLoadFailedHint =>- 'Absorb couldn\'t reach your server for collections and playlists.';+ String get listsLoadFailedHint => 'Absorb couldn\'t reach your server for collections and playlists.';@overrideString get listsNoneBookOrbit => 'No collections or Smart Scopes';@override- String get listsNoneHintBookOrbit =>- 'Collections and Smart Scopes are made on your BookOrbit server, and show up here.';+ String get listsNoneHintBookOrbit => 'Collections and Smart Scopes are made on your BookOrbit server, and show up here.';@override- String get listsLoadFailedHintBookOrbit =>- 'Absorb couldn\'t reach your server for collections and Smart Scopes.';+ String get listsLoadFailedHintBookOrbit => 'Absorb couldn\'t reach your server for collections and Smart Scopes.';@overrideString get cancel => '取消';@@ -108,8 +104,7 @@ class AppLocalizationsZh extends AppLocalizations {String get settingsWhatsNew => 'Show what\'s new after updates';@override- String get settingsWhatsNewSubtitle =>- 'After Absorb updates, a popup links to the release notes';+ String get settingsWhatsNewSubtitle => 'After Absorb updates, a popup links to the release notes';@overrideString get gotIt => '知道了';@@ -118,8 +113,7 @@ class AppLocalizationsZh extends AppLocalizations {String get betaLoggingTitle => 'Logs are on';@override- String get betaLoggingContent =>- 'Since this is a beta, Absorb now keeps logs to help track down problems. They stay on this device unless you share them.\n\nYou can send them or turn them off in Settings, under Issues & Support. If you turn them off, later betas leave them off.';+ String get betaLoggingContent => 'Since this is a beta, Absorb now keeps logs to help track down problems. They stay on this device unless you share them.\n\nYou can send them or turn them off in Settings, under Issues & Support. If you turn them off, later betas leave them off.';@overrideString get preview => '预览';@@ -212,8 +206,7 @@ class AppLocalizationsZh extends AppLocalizations {String get loginCustomHttpHeaders => '自定义 HTTP 请求头';@override- String get loginCustomHeadersDescription =>- '用于需要额外请求头的 Cloudflare 隧道或反向代理。请在输入服务器 URL 之前添加请求头。';+ String get loginCustomHeadersDescription => '用于需要额外请求头的 Cloudflare 隧道或反向代理。请在输入服务器 URL 之前添加请求头。';@overrideString get loginHeaderName => '请求头名称';@@ -234,8 +227,7 @@ class AppLocalizationsZh extends AppLocalizations {String get loginApiKey => 'API 密钥';@override- String get loginApiKeyDescription =>- '使用管理员生成的 API 密钥代替用户名/密码。当账号的令牌刷新失败时很有用。';+ String get loginApiKeyDescription => '使用管理员生成的 API 密钥代替用户名/密码。当账号的令牌刷新失败时很有用。';@overrideString get loginWaitingForSso => '正在等待单点登录(SSO)...';@@ -283,12 +275,10 @@ class AppLocalizationsZh extends AppLocalizations {String get adminSetupFileServerUrl => 'Server URL the new user will use';@override- String get adminSetupFileNoteWithHeaders =>- 'A dedicated API key and your custom headers will be included so they can reach the server. Treat the link like a password.';+ String get adminSetupFileNoteWithHeaders => 'A dedicated API key and your custom headers will be included so they can reach the server. Treat the link like a password.';@override- String get adminSetupFileNote =>- 'A dedicated API key will be included. Treat the link like a password.';+ String get adminSetupFileNote => 'A dedicated API key will be included. Treat the link like a password.';@overrideString get adminSetupFileCreate => 'Create link';@@ -297,8 +287,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminSetupFileSaveTitle => 'Save setup file';@override- String get adminSetupFileKeyError =>- 'Could not create an API key for this user';+ String get adminSetupFileKeyError => 'Could not create an API key for this user';@overrideString adminSetupFileSaved(String username) {@@ -336,8 +325,7 @@ class AppLocalizationsZh extends AppLocalizations {String get setupLinkSaveFile => 'Save setup file';@override- String get setupLinkQrError =>- 'This setup link is too large for a QR code. Share the link instead.';+ String get setupLinkQrError => 'This setup link is too large for a QR code. Share the link instead.';@overrideString setupLinkShareSubject(String username) {@@ -370,8 +358,7 @@ class AppLocalizationsZh extends AppLocalizations {String get loginPasteLink => 'Paste login link';@override- String get loginPasteLinkHelp =>- 'Paste the complete sign-in link you received. Treat it like a password.';+ String get loginPasteLinkHelp => 'Paste the complete sign-in link you received. Treat it like a password.';@overrideString get loginFailed => '登录失败';@@ -467,8 +454,7 @@ class AppLocalizationsZh extends AppLocalizations {String get libraryNoBooksWithEbooks => '暂无包含电子书的书籍';@override- String get libraryNoBooksMissingMetadata =>- 'No books are missing this metadata';+ String get libraryNoBooksMissingMetadata => 'No books are missing this metadata';@overrideString get libraryNoItemsMatchingFilter => 'No items match this filter';@@ -1186,8 +1172,7 @@ class AppLocalizationsZh extends AppLocalizations {String get statsTimeSavedReset => 'Reset time saved';@override- String get statsTimeSavedResetConfirm =>- 'Time saved will start counting again from today.';+ String get statsTimeSavedResetConfirm => 'Time saved will start counting again from today.';@overrideString get statsTimeSavedResetDone => 'Time saved reset';@@ -1258,22 +1243,19 @@ class AppLocalizationsZh extends AppLocalizations {String get settingsPodcastTab => 'Podcasts tab';@override- String get settingsPodcastTabDesc =>- 'Give one podcast library its own tab in the bottom bar';+ String get settingsPodcastTabDesc => 'Give one podcast library its own tab in the bottom bar';@overrideString get settingsPodcastTabLibrary => 'Podcasts tab library';@override- String get settingsMergeImpliedByPodcastTab =>- 'Always on while the Podcasts tab is enabled';+ String get settingsMergeImpliedByPodcastTab => 'Always on while the Podcasts tab is enabled';@overrideString get settingsEpisodeNotifs => 'Notification settings';@override- String get settingsEpisodeNotifsDesc =>- 'New podcast episodes and upcoming book releases, checked in the background';+ String get settingsEpisodeNotifsDesc => 'New podcast episodes and upcoming book releases, checked in the background';@overrideString get notifIntervalOff => '关闭';@@ -1295,8 +1277,7 @@ class AppLocalizationsZh extends AppLocalizations {String get settingsBatteryUnrestricted => '允许不受限制地使用电池';@override- String get settingsBatteryUnrestrictedDesc =>- 'Keeps the system from pausing background checks on some phones';+ String get settingsBatteryUnrestrictedDesc => 'Keeps the system from pausing background checks on some phones';@overrideString get appShellPressBackToExit => '再按一次返回键退出';@@ -1353,8 +1334,7 @@ class AppLocalizationsZh extends AppLocalizations {String get colorSourceManual => '手动';@override- String get colorSourceManualDescription =>- 'Use a fixed app color you choose below';+ String get colorSourceManualDescription => 'Use a fixed app color you choose below';@overrideString get colorSourceCustom => '自定义';@@ -1363,26 +1343,22 @@ class AppLocalizationsZh extends AppLocalizations {String get useColorEverywhereLabel => 'Use this color everywhere';@override- String get useColorEverywhereSubtitle =>- 'Also color book detail pages and the player card with your set color instead of each book\'s cover';+ String get useColorEverywhereSubtitle => 'Also color book detail pages and the player card with your set color instead of each book\'s cover';@overrideString get flatBackgroundLabel => 'Flat background';@override- String get flatBackgroundSubtitle =>- 'Remove the background gradient. Pure black in dark mode for OLED screens.';+ String get flatBackgroundSubtitle => 'Remove the background gradient. Pure black in dark mode for OLED screens.';@overrideString get einkModeLabel => 'E-ink mode';@override- String get einkModeSubtitle =>- 'High-contrast black and white with no animations, made for e-ink screens';+ String get einkModeSubtitle => 'High-contrast black and white with no animations, made for e-ink screens';@override- String get einkModeIntroBody =>- 'Made for e-ink screens. The app switches to a flat black-and-white look with high contrast, animations are turned off, the playing card loses its background, and the live server connection stays off to save battery. Playback and progress still sync normally. Your appearance settings are kept and come back when you turn this off.';+ String get einkModeIntroBody => 'Made for e-ink screens. The app switches to a flat black-and-white look with high contrast, animations are turned off, the playing card loses its background, and the live server connection stays off to save battery. Playback and progress still sync normally. Your appearance settings are kept and come back when you turn this off.';@overrideString get einkModeIntroConfirm => 'Turn on';@@ -1508,8 +1484,7 @@ class AppLocalizationsZh extends AppLocalizations {String get whenAbsorbedInfoTitle => '当收听完成时';@override- String get whenAbsorbedInfoContent =>- '控制当您完成一本书或一集后收听卡片的行为。\n\n已完成的卡片会自动从从您的“正在收听”屏幕中移除。';+ String get whenAbsorbedInfoContent => '控制当您完成一本书或一集后收听卡片的行为。\n\n已完成的卡片会自动从从您的“正在收听”屏幕中移除。';@overrideString get whenAbsorbedSubtitle => '听完一本书或或一集后收听卡片的处理方式';@@ -1527,8 +1502,7 @@ class AppLocalizationsZh extends AppLocalizations {String get mergeLibrariesInfoTitle => '合并媒体库';@override- String get mergeLibrariesInfoContent =>- '启用后,“正在收听”界面会将您所有媒体库中正在进行的书籍和播客集中显示在一个视图中。禁用时,仅显示您当前所选媒体库中的项目。';+ String get mergeLibrariesInfoContent => '启用后,“正在收听”界面会将您所有媒体库中正在进行的书籍和播客集中显示在一个视图中。禁用时,仅显示您当前所选媒体库中的项目。';@overrideString get mergeLibrariesOnSubtitle => '正在收听页面显示来自所有媒体库的项目';@@ -1552,8 +1526,7 @@ class AppLocalizationsZh extends AppLocalizations {String get queueModeInfoManual => '手动队列';@override- String get queueModeInfoManualDesc =>- '你的收听卡片将作为播放列表使用。当一个播放完成时,会自动播放下一个未完成的卡片。通过书籍或单集详情页的\"添加至正在收听\"按钮添加项目,并在收听界面重新排序。';+ String get queueModeInfoManualDesc => '你的收听卡片将作为播放列表使用。当一个播放完成时,会自动播放下一个未完成的卡片。通过书籍或单集详情页的\"添加至正在收听\"按钮添加项目,并在收听界面重新排序。';@overrideString get queueModeOff => '关闭';@@ -1588,8 +1561,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get queueModePlaylistHint =>- 'Start a playlist queue by opening a playlist on the home page.';+ String get queueModePlaylistHint => 'Start a playlist queue by opening a playlist on the home page.';@overrideString get exit => '退出';@@ -1668,19 +1640,16 @@ class AppLocalizationsZh extends AppLocalizations {String get skipForward => '快进';@override- String get iosLockScreenSkipHint =>- 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';+ String get iosLockScreenSkipHint => 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';@overrideString get longSkipButtons => 'Long skip buttons';@override- String get longSkipButtonsOnSubtitle =>- 'On - the player shows a second, bigger skip pair';+ String get longSkipButtonsOnSubtitle => 'On - the player shows a second, bigger skip pair';@override- String get longSkipButtonsOffSubtitle =>- 'Off - just the regular skip buttons';+ String get longSkipButtonsOffSubtitle => 'Off - just the regular skip buttons';@overrideString get longSkipBack => 'Long skip back';@@ -1704,12 +1673,10 @@ class AppLocalizationsZh extends AppLocalizations {String get showSubtitles => 'Show subtitles';@override- String get showSubtitlesOnSubtitle =>- 'Subtitles show under book titles in the library and on home';+ String get showSubtitlesOnSubtitle => 'Subtitles show under book titles in the library and on home';@override- String get showSubtitlesOffSubtitle =>- 'Off - subtitles only on the book details sheet';+ String get showSubtitlesOffSubtitle => 'Off - subtitles only on the book details sheet';@overrideString get subtitleVisibilityLabel => 'Subtitles';@@ -1732,12 +1699,10 @@ class AppLocalizationsZh extends AppLocalizations {String get currentLibrarySkipOverride => 'Custom skip amounts';@override- String get currentLibrarySkipOverrideOnSubtitle =>- 'On - this library uses its own skip amounts';+ String get currentLibrarySkipOverrideOnSubtitle => 'On - this library uses its own skip amounts';@override- String get currentLibrarySkipOverrideOffSubtitle =>- 'Off - this library uses the global skip amounts';+ String get currentLibrarySkipOverrideOffSubtitle => 'Off - this library uses the global skip amounts';@overrideString get currentLibrarySkipBack => 'Skip back';@@ -1755,19 +1720,16 @@ class AppLocalizationsZh extends AppLocalizations {String get chapterProgressOffSubtitle => '关闭 - 锁屏显示全书进度';@override- String get chapterProgressInNotificationIos =>- 'Chapter progress on lock screen & CarPlay';+ String get chapterProgressInNotificationIos => 'Chapter progress on lock screen & CarPlay';@override- String get chapterProgressOnSubtitleIos =>- 'On - lock screen & CarPlay show chapter progress';+ String get chapterProgressOnSubtitleIos => 'On - lock screen & CarPlay show chapter progress';@overrideString get nowPlayingText => 'Now playing text';@override- String get nowPlayingTextSubtitle =>- 'Choose what the media controls show on each line';+ String get nowPlayingTextSubtitle => 'Choose what the media controls show on each line';@overrideString get nowPlayingTopLine => 'Top line';@@ -1779,8 +1741,7 @@ class AppLocalizationsZh extends AppLocalizations {String get nowPlayingNotShown => 'Not shown';@override- String get nowPlayingTopLineRequired =>- 'The top line needs at least one item';+ String get nowPlayingTopLineRequired => 'The top line needs at least one item';@overrideString get nowPlayingPieceChapter => 'Chapter';@@ -1961,15 +1922,13 @@ class AppLocalizationsZh extends AppLocalizations {String get bookDockPickLibrary => 'Add to which library?';@override- String get bookDockNoLibraries =>- 'Your account can\'t add books to a library';+ String get bookDockNoLibraries => 'Your account can\'t add books to a library';@overrideString get bookDockFileFailed => 'Couldn\'t add this file to the library';@override- String get bookDockDuplicateBody =>- 'A file with this name is already in that library. Remove it from Book Dock?';+ String get bookDockDuplicateBody => 'A file with this name is already in that library. Remove it from Book Dock?';@overrideString get bookDockDetailsUpdated => 'Details updated';@@ -2009,8 +1968,7 @@ class AppLocalizationsZh extends AppLocalizations {String get bomatchSearching => 'Searching...';@override- String get bomatchSearchFailed =>- 'Couldn\'t search for matches. Check your connection and try again.';+ String get bomatchSearchFailed => 'Couldn\'t search for matches. Check your connection and try again.';@overrideString get bomatchNoResults => 'No matches found';@@ -2164,8 +2122,7 @@ class AppLocalizationsZh extends AppLocalizations {String get breqTabAll => 'All requests';@override- String get breqNoAccess =>- 'Your account can\'t request books on this server.';+ String get breqNoAccess => 'Your account can\'t request books on this server.';@overrideString get breqTitleHint => 'Book title';@@ -2189,12 +2146,10 @@ class AppLocalizationsZh extends AppLocalizations {String get breqSearching => 'Searching...';@override- String get breqSearchFailed =>- 'Couldn\'t search. Check your connection and try again.';+ String get breqSearchFailed => 'Couldn\'t search. Check your connection and try again.';@override- String get breqSearchPrompt =>- 'Search for a book the library does not have yet to request it.';+ String get breqSearchPrompt => 'Search for a book the library does not have yet to request it.';@overrideString get breqNoResults => 'No matching books found';@@ -2347,8 +2302,7 @@ class AppLocalizationsZh extends AppLocalizations {String get breqOpenBook => 'Open book';@override- String get breqCancelConfirm =>- 'Cancel this request? A download in progress stops too.';+ String get breqCancelConfirm => 'Cancel this request? A download in progress stops too.';@overrideString get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';@@ -2363,8 +2317,7 @@ class AppLocalizationsZh extends AppLocalizations {String get breqApproveTitle => 'Approve request';@override- String get breqApproveLibraryNeeded =>- 'Choose the library this book goes into.';+ String get breqApproveLibraryNeeded => 'Choose the library this book goes into.';@overrideString get breqApprovedToast => 'Request approved';@@ -2415,8 +2368,7 @@ class AppLocalizationsZh extends AppLocalizations {String get breqLibraryCta => 'Request a book';@override- String get breqSettingsSubtitle =>- 'Ask for books the library does not have yet';+ String get breqSettingsSubtitle => 'Ask for books the library does not have yet';@overrideString get navHoldBookRequests => 'Book requests';@@ -2431,6 +2383,17 @@ class AppLocalizationsZh extends AppLocalizations {return 'Couldn\'t send the request: $reason';}+ @override+ String breqBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }+@overrideString breqDownloadingPercent(int percent) {return 'Downloading, $percent%';@@ -2494,15 +2457,13 @@ class AppLocalizationsZh extends AppLocalizations {String get breqStopDownload => 'Stop download';@override- String get breqStopDownloadConfirm =>- 'Stop this download? The request goes back to approved so another release can be picked.';+ String get breqStopDownloadConfirm => 'Stop this download? The request goes back to approved so another release can be picked.';@overrideString get breqDiscardImport => 'Discard download';@override- String get breqDiscardConfirm =>- 'Discard this download? The request is marked failed and can be tried again with another release.';+ String get breqDiscardConfirm => 'Discard this download? The request is marked failed and can be tried again with another release.';@overrideString get breqFileAnyway => 'Add to library';@@ -2529,16 +2490,13 @@ class AppLocalizationsZh extends AppLocalizations {String get breqGrabFailed => 'Couldn\'t start that download';@override- String get breqReleaseVipWarning =>- 'This tracker only lets VIP accounts download it.';+ String get breqReleaseVipWarning => 'This tracker only lets VIP accounts download it.';@override- String get breqReleaseNoBookFile =>- 'This release has no book file BookOrbit can add to a library.';+ String get breqReleaseNoBookFile => 'This release has no book file BookOrbit can add to a library.';@override- String get breqReleaseCheckFailed =>- 'Couldn\'t check what\'s in this release. Try again or pick another one.';+ String get breqReleaseCheckFailed => 'Couldn\'t check what\'s in this release. Try again or pick another one.';@overrideString get breqCheckingRelease => 'Checking the files...';@@ -2553,8 +2511,7 @@ class AppLocalizationsZh extends AppLocalizations {String get breqIsbnHint => 'Leave empty to search by title and author';@override- String get breqSearchingIndexers =>- 'Searching your indexers. This can take up to a minute.';+ String get breqSearchingIndexers => 'Searching your indexers. This can take up to a minute.';@overrideString get breqReleasesFailed => 'Couldn\'t search for releases.';@@ -2563,12 +2520,10 @@ class AppLocalizationsZh extends AppLocalizations {String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';@override- String get breqNoSourcesOn =>- 'Every search source is switched off in BookOrbit.';+ String get breqNoSourcesOn => 'Every search source is switched off in BookOrbit.';@override- String get breqNoSourceCarries =>- 'None of your search sources carry this kind of book.';+ String get breqNoSourceCarries => 'None of your search sources carry this kind of book.';@overrideString get breqNoReleases => 'No releases found. Try different search terms.';@@ -2646,12 +2601,10 @@ class AppLocalizationsZh extends AppLocalizations {String get breqReviewFailed => 'Couldn\'t load the download details.';@override- String get breqReviewDockGone =>- 'The downloaded files are no longer in the Book Dock.';+ String get breqReviewDockGone => 'The downloaded files are no longer in the Book Dock.';@override- String get breqReviewNoLibrary =>- 'This request has no library to add the book to.';+ String get breqReviewNoLibrary => 'This request has no library to add the book to.';@overrideString breqGrabFailedReason(String reason) {@@ -2778,37 +2731,31 @@ class AppLocalizationsZh extends AppLocalizations {String get breqPairSubmitted => 'Requested the e-book and the audiobook';@override- String get breqPairOneJoined =>- 'Requested both. One was already on its way, so you were added to that request';+ String get breqPairOneJoined => 'Requested both. One was already on its way, so you were added to that request';@overrideString get breqJoinedBoth => 'Added you to both requests';@override- String get breqJoinsOwned =>- 'Requested. It will join the copy already in your library';+ String get breqJoinsOwned => 'Requested. It will join the copy already in your library';@overrideString get speedBookmarkInControls => 'Speed & bookmark in media controls';@override- String get speedBookmarkOnSubtitle =>- 'On - notification shows speed & bookmark; chapter skip stays in Android Auto';+ String get speedBookmarkOnSubtitle => 'On - notification shows speed & bookmark; chapter skip stays in Android Auto';@override- String get speedBookmarkOffSubtitle =>- 'Off - notification shows chapter skip; speed & bookmark stay in Android Auto';+ String get speedBookmarkOffSubtitle => 'Off - notification shows chapter skip; speed & bookmark stay in Android Auto';@overrideString get lockSeekBar => '锁定搜索栏';@override- String get lockSeekBarOnSubtitle =>- 'On - the scrubber in the notification, lockscreen and car shows progress but can\'t be dragged';+ String get lockSeekBarOnSubtitle => 'On - the scrubber in the notification, lockscreen and car shows progress but can\'t be dragged';@override- String get lockSeekBarOffSubtitle =>- 'Off - drag the scrubber in the notification, lockscreen and car to jump around';+ String get lockSeekBarOffSubtitle => 'Off - drag the scrubber in the notification, lockscreen and car to jump around';@overrideString get autoRewindOnResume => '恢复播放时自动倒退';@@ -2917,8 +2864,7 @@ class AppLocalizationsZh extends AppLocalizations {String get buttonDuringSleepTimer => 'Headphone button during wind-down';@override- String get buttonDuringSleepTimerHint =>- 'In the final wind-down moments, one press resets the timer instead of pausing. Double press still skips.';+ String get buttonDuringSleepTimerHint => 'In the final wind-down moments, one press resets the timer instead of pausing. Double press still skips.';@overrideString get resetTimerOnPause => '暂停时重置定时器';@@ -3004,8 +2950,7 @@ class AppLocalizationsZh extends AppLocalizations {String get autoDownloadOnWifiInfoTitle => 'Wi-Fi 下自动下载';@override- String get autoDownloadOnWifiInfoContent =>- '当您开始在线播放书籍时,系统会在后台同步下载完整内容,无需手动操作即可实现离线收听。后台下载将严格遵循上方的“下载网络设置”,若您希望在移动网络下也能自动下载,请将其设置为“任意网络”。';+ String get autoDownloadOnWifiInfoContent => '当您开始在线播放书籍时,系统会在后台同步下载完整内容,无需手动操作即可实现离线收听。后台下载将严格遵循上方的“下载网络设置”,若您希望在移动网络下也能自动下载,请将其设置为“任意网络”。';@overrideString get autoDownloadOnWifiOnSubtitle => '在 Wi-Fi 下开始流式播放时,书籍将在后台下载';@@ -3038,8 +2983,7 @@ class AppLocalizationsZh extends AppLocalizations {String get keepNextInfoTitle => '保留接下来';@override- String get keepNextInfoContent =>- '要保留下载的项目数量,包括你当前正在收听的项目。例如,\"保留接下来3个\"意味着当前书籍加上系列或播客中的下2本将保持下载状态。';+ String get keepNextInfoContent => '要保留下载的项目数量,包括你当前正在收听的项目。例如,\"保留接下来3个\"意味着当前书籍加上系列或播客中的下2本将保持下载状态。';@overrideString get deleteAbsorbedDownloads => '删除已完成的下载';@@ -3048,8 +2992,7 @@ class AppLocalizationsZh extends AppLocalizations {String get deleteAbsorbedDownloadsInfoTitle => '删除已完成的下载';@override- String get deleteAbsorbedDownloadsInfoContent =>- '启用后,在 Absorb 中听完的已下载书籍或剧集会自动从此设备删除。如果你在网页端或其他设备上听完,保存在此设备上的下载不会被删除。';+ String get deleteAbsorbedDownloadsInfoContent => '启用后,在 Absorb 中听完的已下载书籍或剧集会自动从此设备删除。如果你在网页端或其他设备上听完,保存在此设备上的下载不会被删除。';@overrideString get deleteAbsorbedOnSubtitle => '已完成项目将被移除以节省空间';@@ -3083,8 +3026,7 @@ class AppLocalizationsZh extends AppLocalizations {String get streamingCacheInfoTitle => '流式缓存';@override- String get streamingCacheInfoContent =>- '将流式播放的音频缓存到磁盘,以便在快退或重复收听时无需重新下载。缓存会自动管理 - 达到大小限制时,最旧的文件会被移除。这与完全下载的书籍是分开的';+ String get streamingCacheInfoContent => '将流式播放的音频缓存到磁盘,以便在快退或重复收听时无需重新下载。缓存会自动管理 - 达到大小限制时,最旧的文件会被移除。这与完全下载的书籍是分开的';@overrideString get streamingCacheOff => '关闭';@@ -3119,12 +3061,10 @@ class AppLocalizationsZh extends AppLocalizations {String get homeCardsOpenDetails => 'Open details from Home';@override- String get homeCardsOpenDetailsOnSubtitle =>- 'Tapping a Continue Listening or Continue Reading card opens its details';+ String get homeCardsOpenDetailsOnSubtitle => 'Tapping a Continue Listening or Continue Reading card opens its details';@override- String get homeCardsOpenDetailsOffSubtitle =>- 'Tapping a Continue Listening or Continue Reading card picks up where you left off';+ String get homeCardsOpenDetailsOffSubtitle => 'Tapping a Continue Listening or Continue Reading card picks up where you left off';@overrideString get showGoodreadsButton => '显示 Goodreads 按钮';@@ -3213,8 +3153,7 @@ class AppLocalizationsZh extends AppLocalizations {String get clearLogsQuestion => 'Clear logs?';@override- String get clearLogsContent =>- 'This can\'t be undone. Send them first if you might want them.';+ String get clearLogsContent => 'This can\'t be undone. Send them first if you might want them.';@overrideString get sectionAdvanced => '高级';@@ -3226,8 +3165,7 @@ class AppLocalizationsZh extends AppLocalizations {String get localServerInfoTitle => '本地服务器';@override- String get localServerInfoContent =>- '如果你在家运行 Audiobookshelf 服务器,可以在此设置本地/局域网 URL。Absorb 在检测到您处于家庭网络时会自动切换到更快的本地连接,而在外出时则回退到远程 URL。';+ String get localServerInfoContent => '如果你在家运行 Audiobookshelf 服务器,可以在此设置本地/局域网 URL。Absorb 在检测到您处于家庭网络时会自动切换到更快的本地连接,而在外出时则回退到远程 URL。';@overrideString get localServerOnConnectedSubtitle => '已通过本地服务器连接';@@ -3254,8 +3192,7 @@ class AppLocalizationsZh extends AppLocalizations {String get disableAudioFocusInfoTitle => '音频焦点';@override- String get disableAudioFocusInfoContent =>- '默认情况下,Android 一次只给一个应用音频“焦点” - 当 Absorb 播放时,其他音频(音乐、视频)会暂停。禁用音频焦点可让 Absorb 与其他应用同时播放。无论此设置如何,来电时始终会暂停播放。';+ String get disableAudioFocusInfoContent => '默认情况下,Android 一次只给一个应用音频“焦点” - 当 Absorb 播放时,其他音频(音乐、视频)会暂停。禁用音频焦点可让 Absorb 与其他应用同时播放。无论此设置如何,来电时始终会暂停播放。';@overrideString get disableAudioFocusOnSubtitle => '开启 - 与其他音频同时播放(来电时仍会暂停)';@@ -3285,19 +3222,16 @@ class AppLocalizationsZh extends AppLocalizations {String get mp3IndexSeekingInfoTitle => 'MP3 Index Seeking';@override- String get mp3IndexSeekingInfoContent =>- 'Only enable this if you have MP3 files that don\'t seek to the right position. Inaccurate seeking usually comes from variable bitrate (VBR) MP3s. Index seeking builds an exact time map as the file is read, so jumping near the end of a large MP3 can take a moment - especially when streaming, since the file has to be read up to that point. Takes effect the next time a book or podcast episode starts.';+ String get mp3IndexSeekingInfoContent => 'Only enable this if you have MP3 files that don\'t seek to the right position. Inaccurate seeking usually comes from variable bitrate (VBR) MP3s. Index seeking builds an exact time map as the file is read, so jumping near the end of a large MP3 can take a moment - especially when streaming, since the file has to be read up to that point. Takes effect the next time a book or podcast episode starts.';@override- String get mp3IndexSeekingOnSubtitle =>- 'On - exact seeking for VBR MP3 files';+ String get mp3IndexSeekingOnSubtitle => 'On - exact seeking for VBR MP3 files';@overrideString get mp3IndexSeekingOffSubtitle => 'Off - normal seeking';@override- String get trustAllCertificatesInfoContent =>- '如果你的 Audiobookshelf 服务器使用自签名证书或自定义根 CA,请启用此选项。启用后,Absorb 将跳过所有连接的 TLS 证书验证。仅在您信任当前网络环境时启用。';+ String get trustAllCertificatesInfoContent => '如果你的 Audiobookshelf 服务器使用自签名证书或自定义根 CA,请启用此选项。启用后,Absorb 将跳过所有连接的 TLS 证书验证。仅在您信任当前网络环境时启用。';@overrideString get trustAllCertificatesOnSubtitle => '开启 - 接受所有证书';@@ -3357,8 +3291,7 @@ class AppLocalizationsZh extends AppLocalizations {String get includeLoginInfoTitle => '包含登录信息?';@override- String get includeLoginInfoContent =>- '你是否希望在备份中包含所有已保存账号的登录凭据?\n\n这会让在新设备上恢复变得容易,但文件中将包含您的身份验证令牌。';+ String get includeLoginInfoContent => '你是否希望在备份中包含所有已保存账号的登录凭据?\n\n这会让在新设备上恢复变得容易,但文件中将包含您的身份验证令牌。';@overrideString get noSettingsOnly => '否,仅设置';@@ -3425,8 +3358,7 @@ class AppLocalizationsZh extends AppLocalizations {String get changePasswordTitle => 'Change Password';@override- String get changePasswordSubtitle =>- 'Update your Audiobookshelf password safely';+ String get changePasswordSubtitle => 'Update your Audiobookshelf password safely';@overrideString get currentPassword => 'Current password';@@ -3438,8 +3370,7 @@ class AppLocalizationsZh extends AppLocalizations {String get confirmNewPassword => 'Confirm new password';@override- String get passwordChangeEffect =>- 'Changing your password signs out your other Audiobookshelf sessions. This device stays signed in.';+ String get passwordChangeEffect => 'Changing your password signs out your other Audiobookshelf sessions. This device stays signed in.';@overrideString get passwordFieldsRequired => 'Fill in all password fields';@@ -3448,29 +3379,25 @@ class AppLocalizationsZh extends AppLocalizations {String get passwordsDoNotMatch => 'New passwords do not match';@override- String get passwordChanged =>- 'Password changed. Other signed-in devices were disconnected.';+ String get passwordChanged => 'Password changed. Other signed-in devices were disconnected.';@overrideString get passwordInvalid => 'The current password is incorrect';@override- String get passwordChangeUnsupported =>- 'This server version does not support safe password changes in Absorb';+ String get passwordChangeUnsupported => 'This server version does not support safe password changes in Absorb';@overrideString get passwordChangeFailed => 'Could not change your password';@override- String get otherUserPasswordResetWarning =>- 'Changing this password signs the user out on every device.';+ String get otherUserPasswordResetWarning => 'Changing this password signs the user out on every device.';@overrideString get manageSessionsTitle => 'Signed-in Devices';@override- String get manageSessionsSubtitle =>- 'Review and remove Audiobookshelf sessions';+ String get manageSessionsSubtitle => 'Review and remove Audiobookshelf sessions';@overrideString get sessionsCurrent => 'Current device';@@ -3490,15 +3417,13 @@ class AppLocalizationsZh extends AppLocalizations {String get sessionsLoadMore => 'Load more';@override- String get sessionsUnsupported =>- 'Session management requires Audiobookshelf 2.36 or newer.';+ String get sessionsUnsupported => 'Session management requires Audiobookshelf 2.36 or newer.';@overrideString get sessionsLoadFailed => 'Could not load signed-in devices';@override- String get sessionsLegacyNotice =>- 'This login does not have a refresh session, so Absorb cannot identify this device in the list.';+ String get sessionsLegacyNotice => 'This login does not have a refresh session, so Absorb cannot identify this device in the list.';@overrideString get sessionsRemove => 'Sign out device';@@ -3507,8 +3432,7 @@ class AppLocalizationsZh extends AppLocalizations {String get sessionsRemoveTitle => 'Sign out this device?';@override- String get sessionsRemoveContent =>- 'This removes its refresh session. Its current access may keep working until that short-lived token expires.';+ String get sessionsRemoveContent => 'This removes its refresh session. Its current access may keep working until that short-lived token expires.';@overrideString get sessionsRemoved => 'Device signed out';@@ -3523,8 +3447,7 @@ class AppLocalizationsZh extends AppLocalizations {String get sessionsSignOutAllTitle => 'Sign out everywhere?';@override- String get sessionsSignOutAllContent =>- 'This removes every refresh session, including this device. Existing access tokens may work until they expire.';+ String get sessionsSignOutAllContent => 'This removes every refresh session, including this device. Existing access tokens may work until they expire.';@overrideString podcastScheduleServerTime(String timeZone) {@@ -3572,8 +3495,7 @@ class AppLocalizationsZh extends AppLocalizations {String get editServerConnectionFailed => 'Couldn\'t update server connection';@override- String get editCustomHeadersDescription =>- 'Used for Cloudflare tunnels or reverse proxies. These headers apply only to this saved account.';+ String get editCustomHeadersDescription => 'Used for Cloudflare tunnels or reverse proxies. These headers apply only to this saved account.';@overrideString get removeAccountAction => 'Remove account';@@ -3643,10 +3565,8 @@ class AppLocalizationsZh extends AppLocalizations {String _temp0 = intl.Intl.pluralLogic(count,locale: localeName,- other:- '$count downloads are in an old custom folder that can no longer be opened. Re-download them or dismiss this notice.',- one:- '1 download is in an old custom folder that can no longer be opened. Re-download it or dismiss this notice.',+ other: '$count downloads are in an old custom folder that can no longer be opened. Re-download them or dismiss this notice.',+ one: '1 download is in an old custom folder that can no longer be opened. Re-download it or dismiss this notice.',);return '$_temp0';}@@ -3800,23 +3720,19 @@ class AppLocalizationsZh extends AppLocalizations {String get adminRmabAskAdmin => '请向您的服务器管理员获取登录 URL';@override- String get adminRmabUrlHelpUser =>- '请向您的服务器管理员获取登录 URL,管理员可在 RMAB 的管理 -> 用户中生成。';+ String get adminRmabUrlHelpUser => '请向您的服务器管理员获取登录 URL,管理员可在 RMAB 的管理 -> 用户中生成。';@override- String get adminRmabSettingsInfo =>- 'ReadMeABook 是一个用于请求和下载有声书的自托管服务,需要由您的服务器管理员安装和设置。';+ String get adminRmabSettingsInfo => 'ReadMeABook 是一个用于请求和下载有声书的自托管服务,需要由您的服务器管理员安装和设置。';@overrideString get rmabConfigTitle => 'Connect ReadMeABook';@override- String get rmabConfigExplainerAdmin =>- 'ReadMeABook is a self-hosted service for requesting audiobooks. Generate an API token in RMAB under Admin Dashboard > Settings > API, then paste the server URL and token below. Absorb doesn\'t host or download any content, it just sends requests to your server.';+ String get rmabConfigExplainerAdmin => 'ReadMeABook is a self-hosted service for requesting audiobooks. Generate an API token in RMAB under Admin Dashboard > Settings > API, then paste the server URL and token below. Absorb doesn\'t host or download any content, it just sends requests to your server.';@override- String get rmabConfigExplainerUser =>- 'ReadMeABook is a self-hosted service for requesting audiobooks. Ask your server admin for the RMAB URL and an API token. Absorb doesn\'t host or download any content, it just sends requests to your server.';+ String get rmabConfigExplainerUser => 'ReadMeABook is a self-hosted service for requesting audiobooks. Ask your server admin for the RMAB URL and an API token. Absorb doesn\'t host or download any content, it just sends requests to your server.';@overrideString get rmabConfigLearnMore => 'Learn more about ReadMeABook';@@ -3840,12 +3756,10 @@ class AppLocalizationsZh extends AppLocalizations {String get rmabConfigLegacyUrlHint => 'https://rmab.example.com/?token=...';@override- String get rmabConfigLegacyUrlHelp =>- 'Paste your auto-login URL so \'Open in browser view\' lands you signed in. Leave blank to use a regular login.';+ String get rmabConfigLegacyUrlHelp => 'Paste your auto-login URL so \'Open in browser view\' lands you signed in. Leave blank to use a regular login.';@override- String get rmabConfigHeadersHelp =>- 'Extra headers sent with every ReadMeABook request, for reverse proxies like Cloudflare Access.';+ String get rmabConfigHeadersHelp => 'Extra headers sent with every ReadMeABook request, for reverse proxies like Cloudflare Access.';@overrideString get rmabConfigConnect => 'Connect';@@ -3871,8 +3785,7 @@ class AppLocalizationsZh extends AppLocalizations {String get rmabConfigErrorUnauthorized => 'Token rejected by server';@override- String get rmabConfigErrorForbidden =>- 'This token isn\'t allowed for that action';+ String get rmabConfigErrorForbidden => 'This token isn\'t allowed for that action';@overrideString get rmabConfigErrorNetwork => 'Couldn\'t reach RMAB. Check the URL.';@@ -3913,8 +3826,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get rmabBookDetailExplainer =>- 'This request will be sent through your ReadMeABook server. The admin will review and process it. You can track it under My Requests on the ReadMeABook tile.';+ String get rmabBookDetailExplainer => 'This request will be sent through your ReadMeABook server. The admin will review and process it. You can track it under My Requests on the ReadMeABook tile.';@overrideString get rmabBookAlreadyAvailable => 'Already in your library';@@ -3941,8 +3853,7 @@ class AppLocalizationsZh extends AppLocalizations {String get rmabRequestErrorValidation => 'Couldn\'t send the request';@override- String get rmabRequestErrorUserNotFound =>- 'Token user no longer exists. Reconnect ReadMeABook.';+ String get rmabRequestErrorUserNotFound => 'Token user no longer exists. Reconnect ReadMeABook.';@overrideString get rmabRequestErrorIgnored => 'This book is on your ignore list';@@ -3951,8 +3862,7 @@ class AppLocalizationsZh extends AppLocalizations {String get rmabRequestErrorGeneric => 'Couldn\'t send the request';@override- String get rmabRequestErrorTokenRejected =>- 'Token rejected by server. Reconnect ReadMeABook.';+ String get rmabRequestErrorTokenRejected => 'Token rejected by server. Reconnect ReadMeABook.';@overrideString get rmabMyRequestsTab => 'My Requests';@@ -4037,8 +3947,7 @@ class AppLocalizationsZh extends AppLocalizations {String get absorbAudioNotDownloaded => 'Audio not downloaded';@override- String get absorbAudioNotDownloadedEbookOnly =>- 'Audio not downloaded, ebook only';+ String get absorbAudioNotDownloadedEbookOnly => 'Audio not downloaded, ebook only';@overrideString get fullyAbsorbed => '已完成';@@ -4183,8 +4092,7 @@ class AppLocalizationsZh extends AppLocalizations {String get encodeTimeNote => 'Encoding can take up to 30 minutes.';@override- String get encodeRescanNote =>- 'If you have the watcher disabled you will need to re-scan this audiobook afterwards.';+ String get encodeRescanNote => 'If you have the watcher disabled you will need to re-scan this audiobook afterwards.';@overrideString get aboutSection => '关于';@@ -4259,20 +4167,16 @@ class AppLocalizationsZh extends AppLocalizations {String get resetProgressQuestion => '重置进度?';@override- String get resetProgressListeningAndReading =>- 'Your listening and reading progress will both go back to 0%.';+ String get resetProgressListeningAndReading => 'Your listening and reading progress will both go back to 0%.';@override- String get resetProgressListening =>- 'Your listening progress will go back to 0%.';+ String get resetProgressListening => 'Your listening progress will go back to 0%.';@override- String get resetProgressReading =>- 'Your reading progress will go back to 0%.';+ String get resetProgressReading => 'Your reading progress will go back to 0%.';@override- String get resetProgressMarksUnread =>- 'The book will also be marked as unread.';+ String get resetProgressMarksUnread => 'The book will also be marked as unread.';@overrideString get resetProgressCantUndo => 'This can\'t be undone.';@@ -4542,8 +4446,7 @@ class AppLocalizationsZh extends AppLocalizations {String get coverRemove => 'Remove cover';@override- String get coverRemoveConfirm =>- 'Remove this book\'s cover? It will show the generated title card instead.';+ String get coverRemoveConfirm => 'Remove this book\'s cover? It will show the generated title card instead.';@overrideString get coverRemoved => 'Cover removed';@@ -4648,19 +4551,16 @@ class AppLocalizationsZh extends AppLocalizations {String get deleteCollectionFailed => 'Couldn\'t delete the collection';@override- String get deletePermissionRequired =>- 'Delete permission required. Ask the root admin to grant you the delete permission.';+ String get deletePermissionRequired => 'Delete permission required. Ask the root admin to grant you the delete permission.';@overrideString get deleteFilesCheckbox => 'Also delete the files on the server';@override- String get deleteFilesCheckedHint =>- 'The files are deleted from the server for good.';+ String get deleteFilesCheckedHint => 'The files are deleted from the server for good.';@override- String get deleteFilesUncheckedHint =>- 'The files stay on the server, so the next library scan can add this back.';+ String get deleteFilesUncheckedHint => 'The files stay on the server, so the next library scan can add this back.';@overrideString get deleteFromServerAction => 'Delete from Server';@@ -4679,8 +4579,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get deleteFromServerFailed =>- 'Couldn\'t delete that. Check the server logs.';+ String get deleteFromServerFailed => 'Couldn\'t delete that. Check the server logs.';@overrideString get playlistNotFound => '未找到播放列表';@@ -4715,8 +4614,7 @@ class AppLocalizationsZh extends AppLocalizations {String get listsNewCollectionSubtitle => 'Group books into a list you keep';@override- String get listsNewCollectionNeedsBookSubtitle =>- 'Start it with at least one book';+ String get listsNewCollectionNeedsBookSubtitle => 'Start it with at least one book';@overrideString get listsNewPlaylistSubtitle => 'Line up books to listen to in order';@@ -4725,15 +4623,13 @@ class AppLocalizationsZh extends AppLocalizations {String get listsAddBooksNow => 'Add books now';@override- String get listsPickBooksNext =>- 'You\'ll pick books next. A collection on this server needs at least one.';+ String get listsPickBooksNext => 'You\'ll pick books next. A collection on this server needs at least one.';@overrideString get listsCreate => 'Create';@override- String get listsCollectionNeedsBook =>- 'A collection needs at least one book, so nothing was created.';+ String get listsCollectionNeedsBook => 'A collection needs at least one book, so nothing was created.';@overrideString get listsCreateFailed => 'Couldn\'t create it';@@ -4784,15 +4680,13 @@ class AppLocalizationsZh extends AppLocalizations {String get welcomeGettingAroundTitle => '界面操作';@override- String get welcomeGettingAroundBody =>- '点击任意封面打开详情。继续收听卡片不一样 - 点击立即播放,长按打开详情。';+ String get welcomeGettingAroundBody => '点击任意封面打开详情。继续收听卡片不一样 - 点击立即播放,长按打开详情。';@overrideString get welcomeMakeItYoursTitle => '个性化设置';@override- String get welcomeMakeItYoursBody =>- '在设置中自定义 Absorb 以符合你的喜好。其中的「技巧与隐藏功能」区块值得一看。';+ String get welcomeMakeItYoursBody => '在设置中自定义 Absorb 以符合你的喜好。其中的「技巧与隐藏功能」区块值得一看。';@overrideString get getStarted => '开始使用';@@ -4813,8 +4707,7 @@ class AppLocalizationsZh extends AppLocalizations {String get removeDownloadContent => '这将从你的设备中移除。';@override- String get removeWhichDownload =>- 'The audiobook and the ebook are both on this device. Choose what to remove.';+ String get removeWhichDownload => 'The audiobook and the ebook are both on this device. Choose what to remove.';@overrideString get downloadRemoved => '下载已移除';@@ -4942,16 +4835,13 @@ class AppLocalizationsZh extends AppLocalizations {String get chapterBarrierInfoTitle => 'Chapter barrier';@override- String get chapterBarrierInfoContent =>- 'When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.';+ String get chapterBarrierInfoContent => 'When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.';@override- String get chapterBarrierOnRewindOnSubtitle =>- 'On - rewind snaps to chapter start';+ String get chapterBarrierOnRewindOnSubtitle => 'On - rewind snaps to chapter start';@override- String get chapterBarrierOnRewindOffSubtitle =>- 'Off - rewind crosses chapter boundaries';+ String get chapterBarrierOnRewindOffSubtitle => 'Off - rewind crosses chapter boundaries';@overrideString autoRewindOnSubtitleFormat(String min, String max) {@@ -4962,8 +4852,7 @@ class AppLocalizationsZh extends AppLocalizations {String get rewindOnSessionStart => 'Rewind on session start';@override- String get rewindOnSessionStartInfoContent =>- 'Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.';+ String get rewindOnSessionStartInfoContent => 'Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.';@overrideString rewindOnSessionStartOnSubtitle(String seconds) {@@ -5036,11 +4925,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String autoSleepTimerEnabledSubtitle(- String start,- String end,- String duration,- ) {+ String autoSleepTimerEnabledSubtitle(String start, String end, String duration) {return '$start – $end · $duration';}@@ -5066,8 +4951,7 @@ class AppLocalizationsZh extends AppLocalizations {String get showEbookBadge => 'Show ebook badge';@override- String get showEbookBadgeOnSubtitle =>- 'Books with an ebook show a book icon on the cover';+ String get showEbookBadgeOnSubtitle => 'Books with an ebook show a book icon on the cover';@overrideString get showEbookBadgeOffSubtitle => 'Off - ebook badge hidden';@@ -5079,15 +4963,13 @@ class AppLocalizationsZh extends AppLocalizations {String get preReleaseUpdatesInfoTitle => 'Pre-release Updates';@override- String get preReleaseUpdatesInfoContent =>- 'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.';+ String get preReleaseUpdatesInfoContent => 'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.';@overrideString get includePreReleases => 'Include pre-releases';@override- String get includePreReleasesOnSubtitle =>- 'On - checking for alpha & pre-release builds';+ String get includePreReleasesOnSubtitle => 'On - checking for alpha & pre-release builds';@overrideString get includePreReleasesOffSubtitle => 'Off - stable releases only';@@ -5128,8 +5010,7 @@ class AppLocalizationsZh extends AppLocalizations {String get updateDownloading => 'Downloading update...';@override- String get updateInstallPermissionDenied =>- 'Install permission denied. Enable \"Install unknown apps\" for Absorb in system settings.';+ String get updateInstallPermissionDenied => 'Install permission denied. Enable \"Install unknown apps\" for Absorb in system settings.';@overrideString get updateOpeningInBrowser => 'In-app update failed, opening browser';@@ -5283,8 +5164,7 @@ class AppLocalizationsZh extends AppLocalizations {String get backupDetailsSeparator => ' · ';@override- String get bookmarksSortedByPositionReversed =>- 'Sorted by position (reversed)';+ String get bookmarksSortedByPositionReversed => 'Sorted by position (reversed)';@overrideString bookmarksJumpShortContent(String title, String position) {@@ -5384,8 +5264,7 @@ class AppLocalizationsZh extends AppLocalizations {String get fileInfoOther => 'Other files';@override- String get fileInfoBookOrbitNote =>- 'BookOrbit doesn\'t report codec or bitrate.';+ String get fileInfoBookOrbitNote => 'BookOrbit doesn\'t report codec or bitrate.';@overrideString fileInfoChannels(int count) {@@ -5405,8 +5284,7 @@ class AppLocalizationsZh extends AppLocalizations {String get fileInfoPathCopied => 'Path copied';@override- String get resetMayNotHaveSynced =>- 'Reset may not have synced - check your server';+ String get resetMayNotHaveSynced => 'Reset may not have synced - check your server';@overrideString failedToDownloadEbook(int code) {@@ -5414,8 +5292,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get serverReturnedErrorPage =>- 'Server returned an error page instead of the ebook file';+ String get serverReturnedErrorPage => 'Server returned an error page instead of the ebook file';@overrideString ebookSaved(String filename) {@@ -5783,12 +5660,10 @@ class AppLocalizationsZh extends AppLocalizations {String get adminPodcastsCheckNewEpisodesTitle => 'Check for New Episodes';@override- String get adminPodcastsCheckNewEpisodesContent =>- 'This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).';+ String get adminPodcastsCheckNewEpisodesContent => 'This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).';@override- String get adminPodcastsCheckNewEpisodesSubtitle =>- 'Scan RSS feed and download new episodes';+ String get adminPodcastsCheckNewEpisodesSubtitle => 'Scan RSS feed and download new episodes';@overrideString get adminPodcastsCheck => 'Check';@@ -6063,8 +5938,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get adminPodcastsFailedToCheckNew =>- 'Failed to check for new episodes';+ String get adminPodcastsFailedToCheckNew => 'Failed to check for new episodes';@overrideString get adminPodcastsCheckAndDownload => 'Check & Download';@@ -6073,31 +5947,25 @@ class AppLocalizationsZh extends AppLocalizations {String get adminPodcastsMatchPodcast => 'Match Podcast';@override- String get adminPodcastsMatchPodcastSubtitle =>- 'Search iTunes to update cover and metadata';+ String get adminPodcastsMatchPodcastSubtitle => 'Search iTunes to update cover and metadata';@override- String get adminPodcastsAutoDownloadNewEpisodes =>- 'Auto-Download New Episodes';+ String get adminPodcastsAutoDownloadNewEpisodes => 'Auto-Download New Episodes';@override- String get adminPodcastsAutoDownloadOnSubtitle =>- 'Server downloads new episodes automatically';+ String get adminPodcastsAutoDownloadOnSubtitle => 'Server downloads new episodes automatically';@override- String get adminPodcastsAutoDownloadOffSubtitle =>- 'New episodes are not auto-downloaded';+ String get adminPodcastsAutoDownloadOffSubtitle => 'New episodes are not auto-downloaded';@override- String get adminPodcastsFailedAutoDownloadUpdate =>- 'Failed to update auto-download setting';+ String get adminPodcastsFailedAutoDownloadUpdate => 'Failed to update auto-download setting';@overrideString get adminPodcastsMaxEpisodesToKeep => 'Max episodes to keep';@override- String get adminPodcastsMaxEpisodesToKeepHelp =>- '0 keeps every episode. After a new episode is auto-downloaded, Audiobookshelf removes the oldest episode when the show is over this limit.';+ String get adminPodcastsMaxEpisodesToKeepHelp => '0 keeps every episode. After a new episode is auto-downloaded, Audiobookshelf removes the oldest episode when the show is over this limit.';@overrideString get adminPodcastsNoEpisodeLimit => 'No limit';@@ -6200,8 +6068,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminPodcastsEditInfo => 'Edit Info';@override- String get adminPodcastsEditInfoSubtitle =>- 'Change title, description, cover and more';+ String get adminPodcastsEditInfoSubtitle => 'Change title, description, cover and more';@overrideString get adminPodcastsEditTitle => 'Edit Podcast';@@ -6244,8 +6111,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get episodeListUnsubscribeFromNewEpisodes =>- 'Unsubscribe from New Episodes';+ String get episodeListUnsubscribeFromNewEpisodes => 'Unsubscribe from New Episodes';@overrideString get episodeListSubscribeToNewEpisodes => 'Subscribe to New Episodes';@@ -6254,8 +6120,7 @@ class AppLocalizationsZh extends AppLocalizations {String get episodeListSubscribeTitle => 'Subscribe to this podcast?';@override- String get episodeListSubscribeContent =>- 'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.';+ String get episodeListSubscribeContent => 'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.';@overrideString get episodeListSubscribe => 'Subscribe';@@ -6348,12 +6213,10 @@ class AppLocalizationsZh extends AppLocalizations {String get episodeDetailMarkedFinishedNice => 'Marked as finished - nice!';@override- String get episodeDetailMarkAbsorbedContent =>- 'This will set your progress to 100% for this episode.';+ String get episodeDetailMarkAbsorbedContent => 'This will set your progress to 100% for this episode.';@override- String get episodeDetailResetProgressContent =>- 'This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.';+ String get episodeDetailResetProgressContent => 'This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.';@overrideString get episodeDetailToday => 'Today';@@ -6414,20 +6277,17 @@ class AppLocalizationsZh extends AppLocalizations {String get seriesBooksFindMissingTitle => '扫描缺失书籍';@override- String get seriesBooksFindMissingContent =>- '此功能将检索 Audible以查找该系列中你的媒体库可能缺失的书籍。\n\n系统会优先通过 ASIN 进行匹配(取决于你的服务器中书籍是否包含 ASIN),若无则通过书名进行匹配。搜索结果可能不会完全准确。';+ String get seriesBooksFindMissingContent => '此功能将检索 Audible以查找该系列中你的媒体库可能缺失的书籍。\n\n系统会优先通过 ASIN 进行匹配(取决于你的服务器中书籍是否包含 ASIN),若无则通过书名进行匹配。搜索结果可能不会完全准确。';@override- String get seriesBooksCouldNotFindOnAudible =>- 'Could not find this series on Audible';+ String get seriesBooksCouldNotFindOnAudible => 'Could not find this series on Audible';@overrideString seriesBooksMarkAllNotFinishedContent(int count) {String _temp0 = intl.Intl.pluralLogic(count,locale: localeName,- other:- 'This will clear the finished status for all $count books in this series.',+ other: 'This will clear the finished status for all $count books in this series.',one: 'This will clear the finished status for the 1 book in this series.',);return '$_temp0';@@ -6579,8 +6439,7 @@ class AppLocalizationsZh extends AppLocalizations {String get sessionEndPosition => 'Ending position';@override- String get sessionEndPositionHint =>- 'Changing this may also update your current progress.';+ String get sessionEndPositionHint => 'Changing this may also update your current progress.';@overrideString get statsViewSessions => 'View sessions';@@ -6591,8 +6450,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get statsNoSessionsForDate =>- 'No listening sessions found for this day';+ String get statsNoSessionsForDate => 'No listening sessions found for this day';@overrideString get statsSearchSessions => 'Search sessions';@@ -6607,8 +6465,7 @@ class AppLocalizationsZh extends AppLocalizations {String get sessionDeleteConfirmTitle => 'Delete session?';@override- String get sessionDeleteConfirmBody =>- 'This removes the session and lowers your listening totals by its time. It cannot be undone.';+ String get sessionDeleteConfirmBody => 'This removes the session and lowers your listening totals by its time. It cannot be undone.';@overrideString get sessionSaved => 'Session updated';@@ -6677,14 +6534,7 @@ class AppLocalizationsZh extends AppLocalizations {String get statsScreenPmLabel => 'PM';@override- String statsScreenDateAtTime(- String month,- int day,- int year,- int hour,- String minute,- String ampm,- ) {+ String statsScreenDateAtTime(String month, int day, int year, int hour, String minute, String ampm) {return '$month $day, $year at $hour:$minute $ampm';}@@ -6832,12 +6682,10 @@ class AppLocalizationsZh extends AppLocalizations {String get upcomingReleasesScanSettingsTitle => 'Scan settings';@override- String get upcomingReleasesFinishedAfterTitle =>- 'Consider a series finished after';+ String get upcomingReleasesFinishedAfterTitle => 'Consider a series finished after';@override- String get upcomingReleasesFinishedAfterDesc =>- 'Series whose last book is older than this are skipped during scans and only re-checked every month or two.';+ String get upcomingReleasesFinishedAfterDesc => 'Series whose last book is older than this are skipped during scans and only re-checked every month or two.';@overrideString upcomingReleasesFinishedAfterYears(int count) {@@ -6883,8 +6731,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get upcomingReleasesSkippedUnmatched =>- 'Couldn\'t match this series on Audible';+ String get upcomingReleasesSkippedUnmatched => 'Couldn\'t match this series on Audible';@overrideString get upcomingReleasesSkippedScanNow => 'Scan now';@@ -6906,8 +6753,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get upcomingReleasesSkippedOtherLibrary =>- 'This list came from a different library. Run a rescan to refresh it.';+ String get upcomingReleasesSkippedOtherLibrary => 'This list came from a different library. Run a rescan to refresh it.';@overrideString get upcomingReleasesChipUpcoming => 'Upcoming';@@ -6934,19 +6780,16 @@ class AppLocalizationsZh extends AppLocalizations {String get upcomingReleasesScanUpcomingOption => 'Upcoming releases';@override- String get upcomingReleasesScanUpcomingOptionDesc =>- 'Quick scan for new and upcoming books';+ String get upcomingReleasesScanUpcomingOptionDesc => 'Quick scan for new and upcoming books';@overrideString get upcomingReleasesScanDeepOption => 'Deep scan';@override- String get upcomingReleasesScanDeepOptionDesc =>- 'Also finds missing books in every series - takes longer';+ String get upcomingReleasesScanDeepOptionDesc => 'Also finds missing books in every series - takes longer';@override- String get upcomingReleasesFirstScanNote =>- 'The first scan checks every series on Audible and can take a few minutes. Later scans get much quicker once your series are sorted.';+ String get upcomingReleasesFirstScanNote => 'The first scan checks every series on Audible and can take a few minutes. Later scans get much quicker once your series are sorted.';@overrideString get upcomingReleasesLastScanReport => 'Last scan report';@@ -6977,11 +6820,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String upcomingReleasesReportFoundDeep(- int upcoming,- int recent,- int missing,- ) {+ String upcomingReleasesReportFoundDeep(int upcoming, int recent, int missing) {return 'Found $upcoming upcoming, $recent recent, $missing missing';}@@ -7003,8 +6842,7 @@ class AppLocalizationsZh extends AppLocalizations {String get upcomingReleasesSetSeriesAsin => 'Set series ASIN';@override- String get upcomingReleasesSetAsinInstructions =>- 'Find the series on audible.com and copy the page link - the ASIN is the 10-character code starting with B0 (like B08S2YN3YS). Pasting the whole link works too.';+ String get upcomingReleasesSetAsinInstructions => 'Find the series on audible.com and copy the page link - the ASIN is the 10-character code starting with B0 (like B08S2YN3YS). Pasting the whole link works too.';@overrideString get upcomingReleasesSetAsinHint => 'B0… or audible.com link';@@ -7033,20 +6871,16 @@ class AppLocalizationsZh extends AppLocalizations {String get upcomingReleasesRemoveThisScan => 'Remove from this scan';@override- String get upcomingReleasesRemoveThisScanDesc =>- 'Can come back on a future scan';+ String get upcomingReleasesRemoveThisScanDesc => 'Can come back on a future scan';@override- String get upcomingReleasesRemoveForever =>- 'Remove from this and future scans';+ String get upcomingReleasesRemoveForever => 'Remove from this and future scans';@override- String get upcomingReleasesRemoveForeverDesc =>- 'Goes to the removed list, restore any time';+ String get upcomingReleasesRemoveForeverDesc => 'Goes to the removed list, restore any time';@override- String get upcomingReleasesRemovedForeverToast =>- 'Removed - won\'t show on future scans';+ String get upcomingReleasesRemovedForeverToast => 'Removed - won\'t show on future scans';@overrideString get upcomingReleasesRemovedBooksTitle => 'Removed books';@@ -7072,8 +6906,7 @@ class AppLocalizationsZh extends AppLocalizations {String get upcomingReleasesRestoredToast => 'Restored';@override- String get upcomingReleasesRestoredNextScan =>- 'Restored - it will show after the next scan';+ String get upcomingReleasesRestoredNextScan => 'Restored - it will show after the next scan';@overrideString upcomingReleasesSelectedCount(int count) {@@ -7196,8 +7029,7 @@ class AppLocalizationsZh extends AppLocalizations {String get smartScopeNew => 'New Smart Scope';@override- String get smartScopeNewSubtitle =>- 'Save a set of filters as a list that keeps itself up to date';+ String get smartScopeNewSubtitle => 'Save a set of filters as a list that keeps itself up to date';@overrideString get smartScopeEditTitle => 'Edit Smart Scope';@@ -7281,8 +7113,7 @@ class AppLocalizationsZh extends AppLocalizations {String get smartScopeLoadFailed => 'Couldn\'t load the Smart Scope';@override- String get smartScopeUnsupportedRule =>- 'This rule can only be changed on the BookOrbit web. It\'s kept as it is.';+ String get smartScopeUnsupportedRule => 'This rule can only be changed on the BookOrbit web. It\'s kept as it is.';@overrideString get smartScopeAnd => 'and';@@ -7560,11 +7391,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String audibleSeriesSummaryWithUpcoming(- int total,- int missing,- int upcoming,- ) {+ String audibleSeriesSummaryWithUpcoming(int total, int missing, int upcoming) {return '$total on Audible · $missing missing · $upcoming upcoming';}@@ -7713,8 +7540,7 @@ class AppLocalizationsZh extends AppLocalizations {String get librarySortFilterUpcomingReleases => '即将发布';@override- String get librarySortFilterMatchAllAuthorsSubtitle =>- 'Fetch a photo and bio for every author from the metadata provider';+ String get librarySortFilterMatchAllAuthorsSubtitle => 'Fetch a photo and bio for every author from the metadata provider';@overrideString get librarySortFilterUpcomingReleasesSubtitle => 'Audible 中检查系列新书';@@ -7929,8 +7755,7 @@ class AppLocalizationsZh extends AppLocalizations {String get tipsSheetCoverPlayPauseTitle => '点击封面播放/暂停';@override- String get tipsSheetCoverPlayPauseDesc =>- '点击任意卡片的封面即可播放或暂停。可在设置的“收听卡片”中切换此功能。播放时会显示淡淡的暂停图标,提示封面可点击。';+ String get tipsSheetCoverPlayPauseDesc => '点击任意卡片的封面即可播放或暂停。可在设置的“收听卡片”中切换此功能。播放时会显示淡淡的暂停图标,提示封面可点击。';@overrideString get tipsSheetFullScreenPlayerTitle => '全屏播放器';@@ -7942,92 +7767,79 @@ class AppLocalizationsZh extends AppLocalizations {String get tipsSheetQuickAddAbsorbingTitle => '快速加入收听卡片';@override- String get tipsSheetQuickAddAbsorbingDesc =>- '在列表页(系列、作者、搜索结果)中向右滑动任意书籍,即可将其立即加入收听队列。';+ String get tipsSheetQuickAddAbsorbingDesc => '在列表页(系列、作者、搜索结果)中向右滑动任意书籍,即可将其立即加入收听队列。';@overrideString get tipsSheetShakeExtendSleepTitle => '摇一摇延长睡眠定时';@override- String get tipsSheetShakeExtendSleepDesc =>- '如果睡眠定时器正在运行,摇动手机即可延长时间。可在设置中的“睡眠定时器”调整延长的分钟数。';+ String get tipsSheetShakeExtendSleepDesc => '如果睡眠定时器正在运行,摇动手机即可延长时间。可在设置中的“睡眠定时器”调整延长的分钟数。';@overrideString get tipsSheetSeriesNavigationTitle => '系列导航';@override- String get tipsSheetSeriesNavigationDesc =>- '在任意书籍的详情弹窗中点击系列名称,即可查看该系列的所有书籍,并按阅读顺序排序,每本书的封面都会显示序号徽章。';+ String get tipsSheetSeriesNavigationDesc => '在任意书籍的详情弹窗中点击系列名称,即可查看该系列的所有书籍,并按阅读顺序排序,每本书的封面都会显示序号徽章。';@overrideString get tipsSheetSwipeBetweenBooksTitle => '滑动切换书籍';@override- String get tipsSheetSwipeBetweenBooksDesc =>- '在收听界面左右滑动即可切换你正在收听的书籍。开启手动队列模式后,卡片也会作为你的队列使用,因此当前书籍播放结束时会自动播放下一本。';+ String get tipsSheetSwipeBetweenBooksDesc => '在收听界面左右滑动即可切换你正在收听的书籍。开启手动队列模式后,卡片也会作为你的队列使用,因此当前书籍播放结束时会自动播放下一本。';@overrideString get tipsSheetTapToSeekTitle => '点击跳转';@override- String get tipsSheetTapToSeekDesc =>- '点击章节或书籍进度条的任意位置即可直接跳转到对应进度。你也可以拖动进度条以进行更精细的控制。';+ String get tipsSheetTapToSeekDesc => '点击章节或书籍进度条的任意位置即可直接跳转到对应进度。你也可以拖动进度条以进行更精细的控制。';@overrideString get tipsSheetSpeedAdjustedTimeTitle => '实际播放时长';@override- String get tipsSheetSpeedAdjustedTimeDesc =>- '剩余时间和章节时长会根据你的播放速度自动调整。用 1.5×倍播放?界面显示的时间就是你实际需要的时长。';+ String get tipsSheetSpeedAdjustedTimeDesc => '剩余时间和章节时长会根据你的播放速度自动调整。用 1.5×倍播放?界面显示的时间就是你实际需要的时长。';@overrideString get tipsSheetPlaybackHistoryTitle => '播放历史';@override- String get tipsSheetPlaybackHistoryDesc =>- '点击任意卡片上的历史按钮即可查看所有播放、暂停、跳转和倍速调整的时间线。点击任意事件即可跳回对应位置。';+ String get tipsSheetPlaybackHistoryDesc => '点击任意卡片上的历史按钮即可查看所有播放、暂停、跳转和倍速调整的时间线。点击任意事件即可跳回对应位置。';@overrideString get tipsSheetAutoRewindTitle => '自动回退';@override- String get tipsSheetAutoRewindDesc =>- '暂停后恢复播放时,Absorb 会自动回退几秒,确保你不会错过内容。回退时长会根据你离开的时间自动调整。你可以在设置中进行修改。';+ String get tipsSheetAutoRewindDesc => '暂停后恢复播放时,Absorb 会自动回退几秒,确保你不会错过内容。回退时长会根据你离开的时间自动调整。你可以在设置中进行修改。';@overrideString get tipsSheetSeriesQueueModeTitle => '系列连播模式';@override- String get tipsSheetSeriesQueueModeDesc =>- '当你听完某个系列中的一本书时,Absorb 可以自动播放下一本书。请在“设置”中将队列模式更改为“系列”。';+ String get tipsSheetSeriesQueueModeDesc => '当你听完某个系列中的一本书时,Absorb 可以自动播放下一本书。请在“设置”中将队列模式更改为“系列”。';@overrideString get tipsSheetOfflineModeTitle => '离线模式';@override- String get tipsSheetOfflineModeDesc =>- '点击“正在收听”界面上的同步图标即可进入离线模式。这将暂停同步并节省流量,且仅显示你已下载的书籍。非常适合在飞机上或信号较弱的区域使用。';+ String get tipsSheetOfflineModeDesc => '点击“正在收听”界面上的同步图标即可进入离线模式。这将暂停同步并节省流量,且仅显示你已下载的书籍。非常适合在飞机上或信号较弱的区域使用。';@overrideString get tipsSheetUpcomingReleasesTitle => '即将上架';@override- String get tipsSheetUpcomingReleasesDesc =>- '在“系列”标签页中,再次点击该标签即可打开其排序与筛选面板,然后选择“即将上架”,即可按出版日期查看当前系列中已推出和即将推出的新书。';+ String get tipsSheetUpcomingReleasesDesc => '在“系列”标签页中,再次点击该标签即可打开其排序与筛选面板,然后选择“即将上架”,即可按出版日期查看当前系列中已推出和即将推出的新书。';@overrideString get tipsSheetPerBookEqTitle => '为每本书单独配置均衡器';@override- String get tipsSheetPerBookEqDesc =>- 'Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.';+ String get tipsSheetPerBookEqDesc => 'Each book remembers its own equalizer settings. Tweak EQ once for a sci-fi epic and the next time you play it, it sounds the same.';@overrideString get tipsSheetPerBookSpeedTitle => '针对单本有声书的语速设置';@override- String get tipsSheetPerBookSpeedDesc =>- '播放速度支持书籍单独配置。非虚构内容 1.5x 效率拉满,有声剧 1.0x 原汁原味,省去频繁调整的麻烦。';+ String get tipsSheetPerBookSpeedDesc => '播放速度支持书籍单独配置。非虚构内容 1.5x 效率拉满,有声剧 1.0x 原汁原味,省去频繁调整的麻烦。';@overrideString get tipsSheetAutoSleepWindowTitle => '自动睡眠时间段';@@ -8039,8 +7851,7 @@ class AppLocalizationsZh extends AppLocalizations {String get tipsSheetSleepFadeChimeTitle => '睡眠淡出与提示音';@override- String get tipsSheetSleepFadeChimeDesc =>- '睡眠定时结束时,音频将逐渐淡出并伴有可选提示音,避免在听书时突然中断。';+ String get tipsSheetSleepFadeChimeDesc => '睡眠定时结束时,音频将逐渐淡出并伴有可选提示音,避免在听书时突然中断。';@overrideString get tipsSheetCarModeTitle => '车载模式';@@ -8052,65 +7863,55 @@ class AppLocalizationsZh extends AppLocalizations {String get tipsSheetAudibleSeriesTitle => '获取 Audible 系列信息';@override- String get tipsSheetAudibleSeriesDesc =>- '打开任意系列,点击右上角的“更多”图标(三个点),即可从 Audible 获取完整的系列清单,包含缺失以及您尚未开始阅读的书籍。';+ String get tipsSheetAudibleSeriesDesc => '打开任意系列,点击右上角的“更多”图标(三个点),即可从 Audible 获取完整的系列清单,包含缺失以及您尚未开始阅读的书籍。';@overrideString get tipsSheetTranscribeBookmarkTitle => 'Transcribe Bookmarks';@override- String get tipsSheetTranscribeBookmarkDesc =>- 'Turn the audio at any bookmark into text, fully on your device. Enable it in Settings under Advanced > Transcription and download a model, then tap Transcribe on a bookmark - the text lands in its note, ready to fix up or share.';+ String get tipsSheetTranscribeBookmarkDesc => 'Turn the audio at any bookmark into text, fully on your device. Enable it in Settings under Advanced > Transcription and download a model, then tap Transcribe on a bookmark - the text lands in its note, ready to fix up or share.';@override- String get tipsSheetFindBetweenFormatsTitle =>- 'Jump Between Audiobook and Ebook';+ String get tipsSheetFindBetweenFormatsTitle => 'Jump Between Audiobook and Ebook';@override- String get tipsSheetFindBetweenFormatsDesc =>- 'With transcription on and the book downloaded, pause and tap Find position in ebook on the player to open the ebook at the passage you just heard. In the reader, select some text and tap the headphones to start the audiobook right there.';+ String get tipsSheetFindBetweenFormatsDesc => 'With transcription on and the book downloaded, pause and tap Find position in ebook on the player to open the ebook at the passage you just heard. In the reader, select some text and tap the headphones to start the audiobook right there.';@overrideString get tipsSheetShareQuoteTitle => 'Share Quotes';@override- String get tipsSheetShareQuoteDesc =>- 'Share an ebook highlight or a bookmark note as an image with the quote over the book cover. Look for the share option on highlights and in the bookmark sheet.';+ String get tipsSheetShareQuoteDesc => 'Share an ebook highlight or a bookmark note as an image with the quote over the book cover. Look for the share option on highlights and in the bookmark sheet.';@overrideString get tipsSheetClipExportTitle => 'Export Audio Clips';@override- String get tipsSheetClipExportDesc =>- 'Open a bookmark and tap Export clip to trim and save a short audio snippet of the book, cover art included - great for sharing a favorite scene.';+ String get tipsSheetClipExportDesc => 'Open a bookmark and tap Export clip to trim and save a short audio snippet of the book, cover art included - great for sharing a favorite scene.';@overrideString get tipsSheetAllHighlightsTitle => 'All Highlights in One Place';@override- String get tipsSheetAllHighlightsDesc =>- 'The All Bookmarks page has a Highlights tab collecting every ebook highlight from every book. Tap one to share it or jump back into the book.';+ String get tipsSheetAllHighlightsDesc => 'The All Bookmarks page has a Highlights tab collecting every ebook highlight from every book. Tap one to share it or jump back into the book.';@overrideString get tipsSheetVolumeKeyPagesTitle => 'Volume-Key Page Turns';@override- String get tipsSheetVolumeKeyPagesDesc =>- 'Turn ebook pages with the volume keys. Enable it in the reader\'s settings - normal or mirrored direction, and it can stay on even while audio is playing.';+ String get tipsSheetVolumeKeyPagesDesc => 'Turn ebook pages with the volume keys. Enable it in the reader\'s settings - normal or mirrored direction, and it can stay on even while audio is playing.';@overrideString get tipsSheetSettingsSyncTitle => 'Settings Sync';@override- String get tipsSheetSettingsSyncDesc =>- 'Keep your settings, per-book speeds and Absorbing order in step across devices through your own WebDAV server. Set it up in Settings under Backup and sync.';+ String get tipsSheetSettingsSyncDesc => 'Keep your settings, per-book speeds and Absorbing order in step across devices through your own WebDAV server. Set it up in Settings under Backup and sync.';@overrideString get tipsSheetNavLongPressTitle => 'Long-Press the Bottom Tabs';@override- String get tipsSheetNavLongPressDesc =>- 'Hold the Home tab to switch libraries from any page. Hold the Library tab to jump straight into search.';+ String get tipsSheetNavLongPressDesc => 'Hold the Home tab to switch libraries from any page. Hold the Library tab to jump straight into search.';@overrideString get bookCardUnknownTitle => 'Unknown Title';@@ -8263,8 +8064,7 @@ class AppLocalizationsZh extends AppLocalizations {String get authInvalidApiKey => 'Invalid API key';@override- String get authLoginFailedDetail =>- 'Login failed - check your server address and credentials';+ String get authLoginFailedDetail => 'Login failed - check your server address and credentials';@overrideString get authUnexpectedServerResponse => 'Unexpected server response';@@ -8375,15 +8175,13 @@ class AppLocalizationsZh extends AppLocalizations {String get downloadNotifProgressChannelName => 'Download Progress';@override- String get downloadNotifProgressChannelDesc =>- 'Shows progress during audiobook downloads';+ String get downloadNotifProgressChannelDesc => 'Shows progress during audiobook downloads';@overrideString get downloadNotifAlertChannelName => 'Download Alerts';@override- String get downloadNotifAlertChannelDesc =>- 'Notifications when downloads finish or fail';+ String get downloadNotifAlertChannelDesc => 'Notifications when downloads finish or fail';@overrideString get downloadNotifDownloadingTitle => 'Downloading…';@@ -8431,11 +8229,7 @@ class AppLocalizationsZh extends AppLocalizations {String get upcomingNotifStartingScan => 'Starting scan…';@override- String upcomingNotifCheckingSeries(- String seriesName,- int current,- int total,- ) {+ String upcomingNotifCheckingSeries(String seriesName, int current, int total) {return 'Checking $seriesName… ($current/$total)';}@@ -8475,12 +8269,10 @@ class AppLocalizationsZh extends AppLocalizations {String get carConnectAutoplayIos => 'Start playback when CarPlay connects';@override- String get carConnectAutoplayOnSubtitle =>- 'The last book you were listening to starts by itself when the car connects';+ String get carConnectAutoplayOnSubtitle => 'The last book you were listening to starts by itself when the car connects';@override- String get carConnectAutoplayOffSubtitle =>- 'Playback waits for you to press play';+ String get carConnectAutoplayOffSubtitle => 'Playback waits for you to press play';@overrideString get sectionCar => 'Android Auto';@@ -8495,16 +8287,13 @@ class AppLocalizationsZh extends AppLocalizations {String get siriUseWithSiri => 'Use with Siri';@override- String get siriStatusOn =>- 'On. Siri can find and play your books and podcasts by name.';+ String get siriStatusOn => 'On. Siri can find and play your books and podcasts by name.';@override- String get siriStatusAsk =>- 'Let Siri find and play your books and podcasts by name.';+ String get siriStatusAsk => 'Let Siri find and play your books and podcasts by name.';@override- String get siriStatusOff =>- 'Siri is turned off for Absorb. Turn it on in iOS Settings.';+ String get siriStatusOff => 'Siri is turned off for Absorb. Turn it on in iOS Settings.';@overrideString get siriAllow => 'Allow';@@ -8516,12 +8305,10 @@ class AppLocalizationsZh extends AppLocalizations {String get siriThingsToSay => 'Things to say';@override- String get siriExamples =>- '\"Play [book title] on Absorb\"\n\"Play [series name] on Absorb\"\n\"Play something by [author] on Absorb\"\n\"Play the latest episode of [podcast] on Absorb\"\n\"Resume Absorb\"\n\"Skip back in Absorb\"\n\"Next chapter in Absorb\"\n\"Set a sleep timer in Absorb\"\n\"Add a bookmark in Absorb\"\n\"What am I listening to in Absorb\"';+ String get siriExamples => '\"Play [book title] on Absorb\"\n\"Play [series name] on Absorb\"\n\"Play something by [author] on Absorb\"\n\"Play the latest episode of [podcast] on Absorb\"\n\"Resume Absorb\"\n\"Skip back in Absorb\"\n\"Next chapter in Absorb\"\n\"Set a sleep timer in Absorb\"\n\"Add a bookmark in Absorb\"\n\"What am I listening to in Absorb\"';@override- String get siriShortcutsNote =>- 'Resume, pause, skips, chapters, the sleep timer, bookmarks and what\'s playing work even without this permission. They are also in the Shortcuts app for automations and the Action button.';+ String get siriShortcutsNote => 'Resume, pause, skips, chapters, the sleep timer, bookmarks and what\'s playing work even without this permission. They are also in the Shortcuts app for automations and the Action button.';@overrideString get carBookOrder => 'Book order in the car';@@ -8539,8 +8326,7 @@ class AppLocalizationsZh extends AppLocalizations {String get carEpisodesOldestFirst => 'Oldest episodes first';@override- String get carEpisodesOldestFirstSubtitle =>- 'For shows you listen to from the start';+ String get carEpisodesOldestFirstSubtitle => 'For shows you listen to from the start';@overrideString get androidAutoCatBooks => 'Books';@@ -8591,8 +8377,7 @@ class AppLocalizationsZh extends AppLocalizations {String get authorRemoveImageTitle => 'Remove author image?';@override- String get authorRemoveImageConfirm =>- 'This deletes the image on the server.';+ String get authorRemoveImageConfirm => 'This deletes the image on the server.';@overrideString get authorImageRemoved => 'Image removed';@@ -8618,8 +8403,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get authorQuickMatchHint =>- 'Pull name, ASIN, description and image from Audible for the chosen region.';+ String get authorQuickMatchHint => 'Pull name, ASIN, description and image from Audible for the chosen region.';@overrideString get region => 'Region';@@ -8646,8 +8430,7 @@ class AppLocalizationsZh extends AppLocalizations {String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';@override- String get chapterErrorStartAfterPrevious =>- 'Start must come after the previous chapter';+ String get chapterErrorStartAfterPrevious => 'Start must come after the previous chapter';@overrideString get chapterErrorStartBeforeEnd => 'Start must be before the book ends';@@ -8722,8 +8505,7 @@ class AppLocalizationsZh extends AppLocalizations {String get chapterRemoveAllTitle => 'Remove all chapters?';@override- String get chapterRemoveAllMessage =>- 'This removes every chapter from this book.';+ String get chapterRemoveAllMessage => 'This removes every chapter from this book.';@overrideString get chapterAllRemoved => 'All chapters removed';@@ -8782,8 +8564,7 @@ class AppLocalizationsZh extends AppLocalizations {String get chapterFindStartWider => 'Search wider';@override- String get chapterFindStartCeiling =>- 'Searched half an hour around the marker. The start is further off than that, or there\'s no chapter announcement to hear.';+ String get chapterFindStartCeiling => 'Searched half an hour around the marker. The start is further off than that, or there\'s no chapter announcement to hear.';@overrideString get chapterFindStartStrong => 'Sounds like this chapter';@@ -8802,8 +8583,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get chapterFindStartNeedsModel =>- 'Turn on transcription in Settings and download a model first';+ String get chapterFindStartNeedsModel => 'Turn on transcription in Settings and download a model first';@overrideString get chapterFindStartUseThis => 'Use this';@@ -8817,8 +8597,7 @@ class AppLocalizationsZh extends AppLocalizations {String get chapterShiftBySeconds => 'Shift by (seconds)';@override- String get chapterShiftHint =>- 'Shifts every unlocked chapter. Use a negative value to move them earlier.';+ String get chapterShiftHint => 'Shifts every unlocked chapter. Use a negative value to move them earlier.';@overrideString get chapterTitleHint => 'Chapter title';@@ -8850,8 +8629,7 @@ class AppLocalizationsZh extends AppLocalizations {String get chapterFindTitle => 'Find chapters';@override- String get chapterFindSubtitle =>- 'Looks up chapters from Audible/Audnexus by ASIN.';+ String get chapterFindSubtitle => 'Looks up chapters from Audible/Audnexus by ASIN.';@overrideString get chapterEnterAsin => 'Enter an ASIN';@@ -8876,12 +8654,10 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get chapterAudibleLonger =>- 'The Audible version is longer than your file - later chapters may not line up.';+ String get chapterAudibleLonger => 'The Audible version is longer than your file - later chapters may not line up.';@override- String get chapterAudibleShorter =>- 'The Audible version is shorter than your file - chapters may not line up.';+ String get chapterAudibleShorter => 'The Audible version is shorter than your file - chapters may not line up.';@overrideString get chapterTitlesOnly => 'Titles only';@@ -8893,8 +8669,7 @@ class AppLocalizationsZh extends AppLocalizations {String get coverSearchTitle => 'Search for a cover';@override- String get coverSearchRefineHint =>- 'Refine the title/author to clean up results - this does not change the book.';+ String get coverSearchRefineHint => 'Refine the title/author to clean up results - this does not change the book.';@overrideString get coverNoneFound => 'No covers found';@@ -8915,23 +8690,19 @@ class AppLocalizationsZh extends AppLocalizations {String get coverUnknownResolution => 'Unknown resolution';@override- String get embedIntro =>- 'Embed metadata into audio files including cover image and chapters.';+ String get embedIntro => 'Embed metadata into audio files including cover image and chapters.';@overrideString get embedBackupOption => 'Back up audio files first';@override- String get embedNoteInFolder =>- 'Metadata will be embedded in the audio tracks inside your audiobook folder.';+ String get embedNoteInFolder => 'Metadata will be embedded in the audio tracks inside your audiobook folder.';@override- String get embedNoteMultiTrack =>- 'Chapters are not embedded in multi-track audiobooks.';+ String get embedNoteMultiTrack => 'Chapters are not embedded in multi-track audiobooks.';@override- String get embedNoteNavigateAway =>- 'Once the task is started you can navigate away from this page.';+ String get embedNoteNavigateAway => 'Once the task is started you can navigate away from this page.';@overrideString get embedStartButton => 'Start Metadata Embed';@@ -8953,8 +8724,7 @@ class AppLocalizationsZh extends AppLocalizations {String get taskStarting => 'Starting...';@override- String get embedBackupNoteIntro =>- 'A backup of your original audio files will be stored on the server in ';+ String get embedBackupNoteIntro => 'A backup of your original audio files will be stored on the server in ';@overrideString embedBackupNotePath(String itemId) {@@ -8962,8 +8732,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get embedBackupNoteOutro =>- '. Make sure to periodically purge the items cache.';+ String get embedBackupNoteOutro => '. Make sure to periodically purge the items cache.';@overrideString get embedDialogTitle => 'Embed metadata';@@ -9054,8 +8823,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminApiKeysTokenLabel => 'Your new API key';@override- String get adminApiKeysCopyWarning =>- 'Copy this key now. For security it won\'t be shown again.';+ String get adminApiKeysCopyWarning => 'Copy this key now. For security it won\'t be shown again.';@overrideString get adminApiKeysCopy => 'Copy';@@ -9094,8 +8862,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminApiKeysEmpty => 'No API keys yet';@override- String get adminApiKeysEmptySub =>- 'Create one to let apps and scripts reach your server';+ String get adminApiKeysEmptySub => 'Create one to let apps and scripts reach your server';@overrideString get adminApiKeysNeverUsed => 'Never used';@@ -9184,15 +8951,13 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get clipExportClamped =>- 'Clip saved, shortened to the end of this track';+ String get clipExportClamped => 'Clip saved, shortened to the end of this track';@overrideString get clipExportFailed => 'Couldn\'t export the clip.';@override- String get clipDownloadToExport =>- 'Download this book first to export a clip on iPhone.';+ String get clipDownloadToExport => 'Download this book first to export a clip on iPhone.';@overrideString get fsPickerTitle => 'Select folder';@@ -9219,8 +8984,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminUploadSubtitle => 'Add books and podcasts from files';@override- String get adminUploadNoLibraries =>- 'Create a library before uploading media.';+ String get adminUploadNoLibraries => 'Create a library before uploading media.';@overrideString get adminUploadDestination => 'Destination';@@ -9238,8 +9002,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminUploadAutoMetadata => 'Auto-fetch metadata';@override- String get adminUploadAutoMetadataSubtitle =>- 'Fill title, author and series from the best match';+ String get adminUploadAutoMetadataSubtitle => 'Fill title, author and series from the best match';@overrideString get adminUploadMetadataProvider => 'Metadata provider';@@ -9248,12 +9011,10 @@ class AppLocalizationsZh extends AppLocalizations {String get adminUploadMetadataSearching => 'Searching for metadata...';@override- String get adminUploadMetadataNoResults =>- 'No metadata match found. You can still upload this item.';+ String get adminUploadMetadataNoResults => 'No metadata match found. You can still upload this item.';@override- String get adminUploadMetadataFailed =>- 'Couldn\'t search for metadata. You can still upload this item.';+ String get adminUploadMetadataFailed => 'Couldn\'t search for metadata. You can still upload this item.';@overrideString get adminUploadDestinationPreview => 'Server destination';@@ -9279,20 +9040,16 @@ class AppLocalizationsZh extends AppLocalizations {String get adminUploadAddFiles => 'Add files';@override- String get adminUploadBookFilesHint =>- 'Choose audio or ebook files. You can also include covers and metadata files.';+ String get adminUploadBookFilesHint => 'Choose audio or ebook files. You can also include covers and metadata files.';@override- String get adminUploadPodcastFilesHint =>- 'Choose one or more audio files. You can also include covers and metadata files.';+ String get adminUploadPodcastFilesHint => 'Choose one or more audio files. You can also include covers and metadata files.';@override- String get adminUploadUnsupportedFiles =>- 'Some selected files are not supported by Audiobookshelf.';+ String get adminUploadUnsupportedFiles => 'Some selected files are not supported by Audiobookshelf.';@override- String get adminUploadFilePickerFailed =>- 'Couldn\'t open the selected files.';+ String get adminUploadFilePickerFailed => 'Couldn\'t open the selected files.';@overrideString get adminUploadTitleRequired => 'Enter a title';@@ -9307,20 +9064,16 @@ class AppLocalizationsZh extends AppLocalizations {String get adminUploadFilesRequired => 'Choose at least one file';@override- String get adminUploadPodcastFileRequired =>- 'Choose at least one audio file for this podcast.';+ String get adminUploadPodcastFileRequired => 'Choose at least one audio file for this podcast.';@override- String get adminUploadBookFileRequired =>- 'Choose at least one audio or ebook file for this book.';+ String get adminUploadBookFileRequired => 'Choose at least one audio or ebook file for this book.';@override- String get adminUploadPathCheckFailed =>- 'Couldn\'t check the destination folder. Nothing was uploaded.';+ String get adminUploadPathCheckFailed => 'Couldn\'t check the destination folder. Nothing was uploaded.';@override- String get adminUploadDestinationExists =>- 'That destination folder already exists on the server.';+ String get adminUploadDestinationExists => 'That destination folder already exists on the server.';@overrideString adminUploadDestinationUsedBy(String title) {@@ -9336,8 +9089,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get adminUploadAddToExistingNoItem =>- 'That folder already exists on the server. Add the files to it?';+ String get adminUploadAddToExistingNoItem => 'That folder already exists on the server. Add the files to it?';@overrideString get adminUploadAddToBook => 'Add to an existing book';@@ -9359,8 +9111,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get adminUploadTargetNoFolder =>- 'Couldn\'t find that book\'s folder on the server.';+ String get adminUploadTargetNoFolder => 'Couldn\'t find that book\'s folder on the server.';@overrideString adminUploadTargetFolderMismatch(String preview, String folder) {@@ -9392,8 +9143,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get adminUploadReselectFiles =>- 'Choose the files again before retrying.';+ String get adminUploadReselectFiles => 'Choose the files again before retrying.';@overrideString get adminServerSettings => 'Server settings';@@ -9405,8 +9155,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminAuthentication => 'Authentication';@override- String get adminAuthenticationSubtitle =>- 'Password and OpenID Connect sign-in';+ String get adminAuthenticationSubtitle => 'Password and OpenID Connect sign-in';@overrideString get adminStats => 'Statistics';@@ -9418,8 +9167,7 @@ class AppLocalizationsZh extends AppLocalizations {String get adminAllSessions => 'All sessions';@override- String get adminAllSessionsSubtitle =>- 'View and manage all listening sessions';+ String get adminAllSessionsSubtitle => 'View and manage all listening sessions';@overrideString get adminSessionsAllUsers => 'All users';@@ -9602,8 +9350,7 @@ class AppLocalizationsZh extends AppLocalizations {String get authSetRedirectUris => 'Allowed mobile redirect URIs';@override- String get authSetRedirectUrisInfo =>- 'Apps can only return to these addresses after sign-in. Absorb uses absorb://oauth. An asterisk (*) as the only entry allows any address.';+ String get authSetRedirectUrisInfo => 'Apps can only return to these addresses after sign-in. Absorb uses absorb://oauth. An asterisk (*) as the only entry allows any address.';@overrideString get authSetAddRedirectUri => 'Add URI';@@ -9618,8 +9365,7 @@ class AppLocalizationsZh extends AppLocalizations {String get authSetSubfolderNone => 'None';@override- String get authSetWebRedirectInfo =>- 'Allow these URLs in your OAuth provider so sign-in can return to the web app:';+ String get authSetWebRedirectInfo => 'Allow these URLs in your OAuth provider so sign-in can return to the web app:';@overrideString get authSetButtonText => 'Button text';@@ -9637,44 +9383,37 @@ class AppLocalizationsZh extends AppLocalizations {String get authSetMatchUsername => 'Username';@override- String get authSetMatchExistingInfo =>- 'Used to link existing users. Once linked, users are matched by their unique ID from the provider.';+ String get authSetMatchExistingInfo => 'Used to link existing users. Once linked, users are matched by their unique ID from the provider.';@overrideString get authSetAutoLaunch => 'Auto launch';@override- String get authSetAutoLaunchInfo =>- 'Open the provider automatically from the web login page. /login?autoLaunch=0 skips it.';+ String get authSetAutoLaunchInfo => 'Open the provider automatically from the web login page. /login?autoLaunch=0 skips it.';@overrideString get authSetAutoRegister => 'Auto register';@override- String get authSetAutoRegisterInfo =>- 'Create new users automatically after they sign in';+ String get authSetAutoRegisterInfo => 'Create new users automatically after they sign in';@override- String get authSetClaimsInfo =>- 'Leave these empty to turn off group and permission assignment. New users then get the User role.';+ String get authSetClaimsInfo => 'Leave these empty to turn off group and permission assignment. New users then get the User role.';@overrideString get authSetGroupClaim => 'Group claim';@override- String get authSetGroupClaimInfo =>- 'Claim that lists the user\'s groups, usually groups. Groups named admin, user or guest set the role, and the highest one wins. If no group matches, sign-in is refused.';+ String get authSetGroupClaimInfo => 'Claim that lists the user\'s groups, usually groups. Groups named admin, user or guest set the role, and the highest one wins. If no group matches, sign-in is refused.';@overrideString get authSetPermsClaim => 'Advanced permission claim';@override- String get authSetPermsClaimInfo =>- 'Claim with permissions for non-admin users. If the claim is missing, sign-in is refused, and a missing option counts as off. Expected format:';+ String get authSetPermsClaimInfo => 'Claim with permissions for non-admin users. If the claim is missing, sign-in is refused, and a missing option counts as off. Expected format:';@override- String get authSetRestartNote =>- 'Restart the server after saving to apply OpenID Connect changes.';+ String get authSetRestartNote => 'Restart the server after saving to apply OpenID Connect changes.';@overrideString get authSetNoChanges => 'No changes to save';@@ -9693,8 +9432,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get authSetAsteriskAlone =>- 'An asterisk (*) must be the only redirect URI';+ String get authSetAsteriskAlone => 'An asterisk (*) must be the only redirect URI';@overrideString authSetInvalidClaim(String field) {@@ -9716,8 +9454,7 @@ class AppLocalizationsZh extends AppLocalizations {String get libDeleteTitle => 'Delete library?';@override- String get libDeleteBody =>- 'This permanently removes the library and all of its items from the server.';+ String get libDeleteBody => 'This permanently removes the library and all of its items from the server.';@overrideString get libDeleted => 'Library deleted';@@ -9839,8 +9576,7 @@ class AppLocalizationsZh extends AppLocalizations {String get libRemoveFoldersTitle => 'Remove folders?';@override- String get libRemoveFoldersBody =>- 'Removing a folder deletes its items from the library. This can\'t be undone.';+ String get libRemoveFoldersBody => 'Removing a folder deletes its items from the library. This can\'t be undone.';@overrideString get readEbook => 'Read';@@ -9867,16 +9603,13 @@ class AppLocalizationsZh extends AppLocalizations {String get ebookSaveToDeviceTitle => 'Save to device?';@override- String get ebookSaveToDeviceBody =>- 'This saves a copy of the ebook file somewhere on your device (you pick where). It won\'t make the book available offline in the reader - use Download for that.';+ String get ebookSaveToDeviceBody => 'This saves a copy of the ebook file somewhere on your device (you pick where). It won\'t make the book available offline in the reader - use Download for that.';@override- String get readerFormatUnsupported =>- 'This ebook format can\'t be opened in the reader yet';+ String get readerFormatUnsupported => 'This ebook format can\'t be opened in the reader yet';@override- String get readerCouldNotOpen =>- 'This ebook couldn\'t be opened. The file may be damaged.';+ String get readerCouldNotOpen => 'This ebook couldn\'t be opened. The file may be damaged.';@overrideString get moreActions => 'More';@@ -9915,8 +9648,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readerPinTopBar => 'Keep the title and progress bar on screen';@override- String get readerPinTopBarHint =>- 'Pins them above the page instead of showing them on tap. The page gets a little shorter so no text is covered.';+ String get readerPinTopBarHint => 'Pins them above the page instead of showing them on tap. The page gets a little shorter so no text is covered.';@overrideString get readerTopBarProgress => 'Top bar progress';@@ -9955,8 +9687,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readerTapZones => 'Tap zones';@override- String get readerTapZonesHint =>- 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';+ String get readerTapZonesHint => 'Drag the lines to resize the squares. Tap a square to change what it does, or start from a layout.';@overrideString get readerTapPrev => 'Previous page';@@ -9988,8 +9719,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get playerDownloadStreamingInstead =>- 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';+ String get playerDownloadStreamingInstead => 'This download couldn\'t be played, so it\'s streaming from the server. Downloading it again may fix it.';@overrideString get readerPageTurn => 'Page turn';@@ -10010,15 +9740,13 @@ class AppLocalizationsZh extends AppLocalizations {String get readerScrollMode => 'Scroll mode';@override- String get readerScrollModeHint =>- 'Scroll down through the book instead of turning pages. Applies to every book.';+ String get readerScrollModeHint => 'Scroll down through the book instead of turning pages. Applies to every book.';@overrideString get readerKeepAwake => 'Keep the screen on';@override- String get readerKeepAwakeHint =>- 'Stops the screen timing out while you read at your own pace. Auto scroll and read along always keep it on.';+ String get readerKeepAwakeHint => 'Stops the screen timing out while you read at your own pace. Auto scroll and read along always keep it on.';@overrideString get readerLayoutAuto => 'Auto';@@ -10051,8 +9779,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readerAutoScroll => 'Auto scroll';@override- String get readerAutoScrollSubtitle =>- 'The next page paints over this one from the top down - drag the middle of the screen to change speed, tap to stop';+ String get readerAutoScrollSubtitle => 'The next page paints over this one from the top down - drag the middle of the screen to change speed, tap to stop';@overrideString get readerAutoScrollStarted => 'Auto scroll started';@@ -10081,8 +9808,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readerAutoScrollSleep => 'Auto scroll sleep timer';@override- String get readerAutoScrollSleepHint =>- 'Stops the scrolling after a while and lets the screen go dark.';+ String get readerAutoScrollSleepHint => 'Stops the scrolling after a while and lets the screen go dark.';@overrideString readerAutoScrollSleepMinutes(int minutes) {@@ -10186,8 +9912,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readerTranslateWeb => 'Opens in your browser';@override- String get readerTranslateHint =>- 'Selected text is sent to the translator you pick.';+ String get readerTranslateHint => 'Selected text is sent to the translator you pick.';@overrideString get readerMoreFonts => 'Download more fonts';@@ -10223,8 +9948,7 @@ class AppLocalizationsZh extends AppLocalizations {String get sessionReading => 'Reading';@override- String get readerHistoryEmpty =>- 'Pages you leave are listed here, so you can always get back to them.';+ String get readerHistoryEmpty => 'Pages you leave are listed here, so you can always get back to them.';@overrideString get readerHistoryClosed => 'Closed the book';@@ -10239,8 +9963,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readerLogReading => 'Count reading time in stats';@override- String get readerLogReadingHint =>- 'Logs your time in the reader as a session so it shows in your stats. On Audiobookshelf it counts as listening time.';+ String get readerLogReadingHint => 'Logs your time in the reader as a session so it shows in your stats. On Audiobookshelf it counts as listening time.';@overrideString get readerNoBookmarks => 'No bookmarks yet';@@ -10258,22 +9981,19 @@ class AppLocalizationsZh extends AppLocalizations {String get backupAndSync => 'Backup and sync';@override- String get backupAndSyncSubtitle =>- 'Save a backup file, or keep settings in step across devices';+ String get backupAndSyncSubtitle => 'Save a backup file, or keep settings in step across devices';@overrideString get syncSettingsExperimental => 'Experimental';@override- String get syncSettingsExperimentalBody =>- 'Sync is new and still being worked on. If two devices change things while they are apart, one side can lose its changes. Keep a backup file as your safe copy.';+ String get syncSettingsExperimentalBody => 'Sync is new and still being worked on. If two devices change things while they are apart, one side can lose its changes. Keep a backup file as your safe copy.';@overrideString get syncSettingsNeedServer => 'Need a server?';@override- String get syncSettingsNeedServerSub =>- 'Any WebDAV server works. Nextcloud is a free self-hosted one.';+ String get syncSettingsNeedServerSub => 'Any WebDAV server works. Nextcloud is a free self-hosted one.';@overrideString get syncSettingsConnection => 'Connection';@@ -10285,12 +10005,10 @@ class AppLocalizationsZh extends AppLocalizations {String get syncSettingsBackupFile => 'Backup file';@override- String get syncSettingsBackupFilePlain =>- 'Save everything to a file you keep.';+ String get syncSettingsBackupFilePlain => 'Save everything to a file you keep.';@override- String get syncSettingsBackupFileWithSync =>- 'Save everything to a file you keep. Include login info and restoring it on another phone turns sync on there too.';+ String get syncSettingsBackupFileWithSync => 'Save everything to a file you keep. Include login info and restoring it on another phone turns sync on there too.';@overrideString get syncSettingsStatusOff => 'Not syncing';@@ -10308,12 +10026,10 @@ class AppLocalizationsZh extends AppLocalizations {String get syncSettingsIncludeRmab => 'ReadMeABook settings';@override- String get syncSettingsIncludeRmabSub =>- 'Puts your ReadMeABook API token in the synced file';+ String get syncSettingsIncludeRmabSub => 'Puts your ReadMeABook API token in the synced file';@override- String get syncSettingsSubtitle =>- 'Keep your settings in step through your own WebDAV server';+ String get syncSettingsSubtitle => 'Keep your settings in step through your own WebDAV server';@overrideString get syncSettingsEnable => 'Sync settings';@@ -10322,8 +10038,7 @@ class AppLocalizationsZh extends AppLocalizations {String get syncSettingsServerUrl => 'WebDAV folder URL';@override- String get syncSettingsServerUrlHint =>- 'https://cloud.example.com/remote.php/dav/files/you/Absorb';+ String get syncSettingsServerUrlHint => 'https://cloud.example.com/remote.php/dav/files/you/Absorb';@overrideString get syncSettingsUsername => 'Username';@@ -10335,8 +10050,7 @@ class AppLocalizationsZh extends AppLocalizations {String get syncSettingsHeaders => 'Custom headers (optional)';@override- String get syncSettingsHeadersHint =>- 'One per line, like CF-Access-Client-Id: abc123';+ String get syncSettingsHeadersHint => 'One per line, like CF-Access-Client-Id: abc123';@overrideString get syncSettingsTest => 'Test connection';@@ -10363,8 +10077,7 @@ class AppLocalizationsZh extends AppLocalizations {String get syncSettingsNetworkError => 'Could not reach that address';@override- String get syncSettingsNotConfigured =>- 'Fill in the address, username and password first';+ String get syncSettingsNotConfigured => 'Fill in the address, username and password first';@overrideString get syncSettingsTooLarge => 'Your settings are too big to sync';@@ -10403,8 +10116,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get navHoldPickBody =>- 'Choose what a long press on this tab does. You can change it later in Settings.';+ String get navHoldPickBody => 'Choose what a long press on this tab does. You can change it later in Settings.';@overrideString get navHoldSettingTitle => 'Tab hold shortcuts';@@ -10500,8 +10212,7 @@ class AppLocalizationsZh extends AppLocalizations {String get bookStatsNobody => 'Nobody has started this yet';@override- String get bookStatsScanning =>- 'Scanning through sessions, this could take a while...';+ String get bookStatsScanning => 'Scanning through sessions, this could take a while...';@overrideString bookStatsScanningCount(int done, int total) {@@ -10755,8 +10466,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readingLogEmpty => 'No sessions recorded yet';@override- String get readingLogEmptyHint =>- 'Sessions show up here as you read or listen, from any app or device that syncs with BookOrbit.';+ String get readingLogEmptyHint => 'Sessions show up here as you read or listen, from any app or device that syncs with BookOrbit.';@overrideString get readingLogNoMatches => 'No sessions in this range';@@ -10807,8 +10517,7 @@ class AppLocalizationsZh extends AppLocalizations {String get readingLogDeleteTitle => 'Delete this session?';@override- String get readingLogDeleteBody =>- 'It comes off the book\'s reading log and your stats on BookOrbit.';+ String get readingLogDeleteBody => 'It comes off the book\'s reading log and your stats on BookOrbit.';@overrideString get readingLogDeleteFailed => 'Couldn\'t delete the session';@@ -10854,8 +10563,7 @@ class AppLocalizationsZh extends AppLocalizations {String get syncSourceTitle => 'Which copy should sync keep?';@override- String get syncSourceBody =>- 'This backup turned settings sync on. Use the server\'s last sync, or make this backup the source of truth? Choosing the backup replaces the copy on the server for all your synced devices.';+ String get syncSourceBody => 'This backup turned settings sync on. Use the server\'s last sync, or make this backup the source of truth? Choosing the backup replaces the copy on the server for all your synced devices.';@overrideString get syncSourceUseServer => 'Server\'s last sync';@@ -10864,16 +10572,13 @@ class AppLocalizationsZh extends AppLocalizations {String get syncSourceUseBackup => 'This backup';@override- String get syncSettingsWhatTravels =>- 'Your preferences, per-book speeds, home layout, Absorbing order, notes and ebook highlights travel. Logins, download folders, auto-download switches, reader looks and anything not yet sent to your server stay on this device.';+ String get syncSettingsWhatTravels => 'Your preferences, per-book speeds, home layout, Absorbing order, notes and ebook highlights travel. Logins, download folders, auto-download switches, reader looks and anything not yet sent to your server stay on this device.';@override- String get syncSettingsDownloadWarnTitle =>- 'Replace this device\'s settings?';+ String get syncSettingsDownloadWarnTitle => 'Replace this device\'s settings?';@override- String get syncSettingsDownloadWarnBody =>- 'The synced copy will overwrite the settings on this device.';+ String get syncSettingsDownloadWarnBody => 'The synced copy will overwrite the settings on this device.';@overrideString get syncSettingsDownloadWarnConfirm => 'Replace';@@ -10885,8 +10590,7 @@ class AppLocalizationsZh extends AppLocalizations {String get dictionaryNotFound => 'No definition found for this word.';@override- String get dictionaryError =>- 'Couldn\'t reach the dictionary. Check your connection.';+ String get dictionaryError => 'Couldn\'t reach the dictionary. Check your connection.';@overrideString get dictionaryRetry => 'Retry';@@ -10932,23 +10636,19 @@ class AppLocalizationsZh extends AppLocalizations {String get transcriptionTitle => 'Transcription';@override- String get transcriptionAdvancedSubtitle =>- 'For transcribing bookmarks and finding your spot between audiobook and ebook';+ String get transcriptionAdvancedSubtitle => 'For transcribing bookmarks and finding your spot between audiobook and ebook';@overrideString get transcriptionEnable => 'Enable transcription';@override- String get transcriptionEnableSubtitle =>- 'Adds Transcribe to bookmarks, Find position in ebook to the player, and Find in audiobook to the reader';+ String get transcriptionEnableSubtitle => 'Adds Transcribe to bookmarks, Find position in ebook to the player, and Find in audiobook to the reader';@override- String get transcriptionDisclaimer =>- 'Runs entirely on your device, nothing is sent anywhere. It uses extra battery and processing while it works, and only downloaded books can be transcribed.';+ String get transcriptionDisclaimer => 'Runs entirely on your device, nothing is sent anywhere. It uses extra battery and processing while it works, and only downloaded books can be transcribed.';@override- String get transcriptionNeedModelHint =>- 'Download a model below to start transcribing.';+ String get transcriptionNeedModelHint => 'Download a model below to start transcribing.';@overrideString get transcriptionModelSection => 'Models';@@ -10957,8 +10657,7 @@ class AppLocalizationsZh extends AppLocalizations {String get transcriptionModelTiny => 'Tiny';@override- String get transcriptionModelTinyDesc =>- 'Quickest, less accurate. About 31 MB.';+ String get transcriptionModelTinyDesc => 'Quickest, less accurate. About 31 MB.';@overrideString get transcriptionModelBase => 'Base';@@ -10970,19 +10669,16 @@ class AppLocalizationsZh extends AppLocalizations {String get transcriptionModelSmall => 'Small';@override- String get transcriptionModelSmallDesc =>- 'Slower but most accurate - best on a high-end phone. About 182 MB.';+ String get transcriptionModelSmallDesc => 'Slower but most accurate - best on a high-end phone. About 182 MB.';@override- String get transcriptionAutoHint =>- 'With more than one downloaded, each job picks between them. Books with an ebook get the quickest one, since the exact words come from the ebook anyway. Books without one get the most accurate - except read along, which stays below Small so it can keep up with the narration.';+ String get transcriptionAutoHint => 'With more than one downloaded, each job picks between them. Books with an ebook get the quickest one, since the exact words come from the ebook anyway. Books without one get the most accurate - except read along, which stays below Small so it can keep up with the narration.';@overrideString get transcriptionDownload => 'Download';@override- String get transcriptionDownloadFailed =>- 'Download failed. Check your connection and try again.';+ String get transcriptionDownloadFailed => 'Download failed. Check your connection and try again.';@overrideString get transcribe => 'Transcribe';@@ -11000,31 +10696,25 @@ class AppLocalizationsZh extends AppLocalizations {String get transcriptionSavedToNote => 'Saved to bookmark note';@override- String get transcriptionDisabledHint =>- 'Turn on bookmark transcription in Settings, under Advanced.';+ String get transcriptionDisabledHint => 'Turn on bookmark transcription in Settings, under Advanced.';@override- String get transcriptionNoModelDownloaded =>- 'Download a transcription model in Settings first.';+ String get transcriptionNoModelDownloaded => 'Download a transcription model in Settings first.';@override- String get transcriptionNotDownloadedBook =>- 'Download this book or connect to your server to transcribe it.';+ String get transcriptionNotDownloadedBook => 'Download this book or connect to your server to transcribe it.';@override- String get transcriptionNoMetadataMsg =>- 'Can\'t locate this spot in the download. Try re-downloading the book.';+ String get transcriptionNoMetadataMsg => 'Can\'t locate this spot in the download. Try re-downloading the book.';@override- String get transcriptionBusyMsg =>- 'Already transcribing something. Give it a moment.';+ String get transcriptionBusyMsg => 'Already transcribing something. Give it a moment.';@overrideString get transcriptionEmptyMsg => 'No speech was found at this spot.';@override- String get transcriptionFailedMsg =>- 'Couldn\'t transcribe this spot. Please try again.';+ String get transcriptionFailedMsg => 'Couldn\'t transcribe this spot. Please try again.';@overrideString get transcriptionPlaySnippet => 'Listen';@@ -11033,12 +10723,10 @@ class AppLocalizationsZh extends AppLocalizations {String get transcriptionPauseSnippet => 'Pause';@override- String get transcriptionIntroBody =>- 'This listens to the chosen amount of audio, starting just before the bookmark, and turns it into text on your device. Longer clips take longer, and transcription isn\'t 100% accurate. The text is saved into the bookmark\'s note when it\'s done, ready to fix up or share.';+ String get transcriptionIntroBody => 'This listens to the chosen amount of audio, starting just before the bookmark, and turns it into text on your device. Longer clips take longer, and transcription isn\'t 100% accurate. The text is saved into the bookmark\'s note when it\'s done, ready to fix up or share.';@override- String get transcriptionUseEbookText =>- 'Use the ebook\'s exact text when it can be matched';+ String get transcriptionUseEbookText => 'Use the ebook\'s exact text when it can be matched';@overrideString get lyricsMode => 'Live transcript';@@ -11059,12 +10747,10 @@ class AppLocalizationsZh extends AppLocalizations {String get lyricsFullCover => 'Use the whole cover';@override- String get lyricsFullCoverHint =>- 'Shows the transcript in place of the artwork while it runs, fitting as many lines as there is room for.';+ String get lyricsFullCoverHint => 'Shows the transcript in place of the artwork while it runs, fitting as many lines as there is room for.';@override- String get lyricsBatteryInfo =>- 'Live transcript and read along use extra battery and processing while they run. On phones with slower processors, lines can take longer to appear.';+ String get lyricsBatteryInfo => 'Live transcript and read along use extra battery and processing while they run. On phones with slower processors, lines can take longer to appear.';@overrideString get lyricsClearCache => 'Clear transcript cache';@@ -11075,15 +10761,13 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get lyricsClearCacheConfirm =>- 'Delete the saved transcripts for every book and episode? They rebuild automatically as you listen.';+ String get lyricsClearCacheConfirm => 'Delete the saved transcripts for every book and episode? They rebuild automatically as you listen.';@overrideString get lyricsCacheCleared => 'Transcript cache cleared';@override- String get lyricsIntroBody =>- 'This listens a little ahead of the narration and shows each line as it is spoken, transcribed on your phone - nothing leaves the device. After turning it on, hold off on pressing play for a few seconds while it gets ahead. The transcript appears once its head start is ready, and starting paused gives it the smoothest run. It uses extra battery and processing while it runs.';+ String get lyricsIntroBody => 'This listens a little ahead of the narration and shows each line as it is spoken, transcribed on your phone - nothing leaves the device. After turning it on, hold off on pressing play for a few seconds while it gets ahead. The transcript appears once its head start is ready, and starting paused gives it the smoothest run. It uses extra battery and processing while it runs.';@overrideString lyricsBuildingLead(String percent) {@@ -11120,16 +10804,13 @@ class AppLocalizationsZh extends AppLocalizations {String get narrationDownloadTitle => 'Download to listen';@override- String get narrationDownloadBody =>- 'This book is an EPUB3 that reads itself aloud. Audiobookshelf can\'t stream its narration, so the audio needs to be downloaded before it plays.';+ String get narrationDownloadBody => 'This book is an EPUB3 that reads itself aloud. Audiobookshelf can\'t stream its narration, so the audio needs to be downloaded before it plays.';@override- String get narrationDownloadStarted =>- 'Downloading the narration. Tap Absorb when it finishes.';+ String get narrationDownloadStarted => 'Downloading the narration. Tap Absorb when it finishes.';@override- String get narrationTextBody =>- 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';+ String get narrationTextBody => 'This book\'s EPUB has its own words for every moment of the audio, so the text is copied straight from the book. Pick how much to add to the bookmark\'s note.';@overrideString get narrationTextLoading => 'Getting the words from the book';@@ -11151,12 +10832,10 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get transcriptionNeedsDownload =>- 'This needs the audio on your phone. Download it now?';+ String get transcriptionNeedsDownload => 'This needs the audio on your phone. Download it now?';@override- String get transcriptionDownloadStarted =>- 'Downloading. Turn this on again when it finishes';+ String get transcriptionDownloadStarted => 'Downloading. Turn this on again when it finishes';@overrideString get readAlongFollow => 'Read along follows';@@ -11165,8 +10844,7 @@ class AppLocalizationsZh extends AppLocalizations {String get syncReadingListening => 'Keep reading and listening in sync';@override- String get syncReadingListeningHint =>- 'For books with an audiobook and an ebook. When you stop listening, the ebook moves to where you stopped. When you leave the reader, the audiobook moves to your page. Only moves forward.';+ String get syncReadingListeningHint => 'For books with an audiobook and an ebook. When you stop listening, the ebook moves to where you stopped. When you leave the reader, the audiobook moves to your page. Only moves forward.';@overrideString get syncEbookMoved => 'Ebook moved to where you stopped listening';@@ -11193,8 +10871,7 @@ class AppLocalizationsZh extends AppLocalizations {String get syncPosition => 'Sync position';@override- String get readAlongFollowHint =>- 'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';+ String get readAlongFollowHint => 'Word timing is worked out between the transcript\'s timestamps, so it can drift slightly inside a sentence.';@overrideString get readAlongFollowWord => 'Word';@@ -11230,31 +10907,25 @@ class AppLocalizationsZh extends AppLocalizations {String get findInAudiobook => 'Find in audiobook';@override- String get findInAudiobookSearching =>- 'Finding this spot in the audiobook...';+ String get findInAudiobookSearching => 'Finding this spot in the audiobook...';@override- String get findInAudiobookStillSearching =>- 'Still searching the audio for this spot...';+ String get findInAudiobookStillSearching => 'Still searching the audio for this spot...';@override- String get findInAudiobookSearchingLong =>- 'Long chapter, still searching. This can take a minute or two...';+ String get findInAudiobookSearchingLong => 'Long chapter, still searching. This can take a minute or two...';@override- String get findInAudiobookNotFound =>- 'Couldn\'t find this spot in the audiobook.';+ String get findInAudiobookNotFound => 'Couldn\'t find this spot in the audiobook.';@override- String get transcriptionWhisperInfo =>- 'Transcription is powered by Whisper, an open speech recognition model that listens to the narration and writes out the words - all on this device.';+ String get transcriptionWhisperInfo => 'Transcription is powered by Whisper, an open speech recognition model that listens to the narration and writes out the words - all on this device.';@overrideString get transcriptionWhisperLearnMore => 'Learn more about Whisper';@override- String get findInAudiobookIntroBody =>- 'This listens to the audiobook near where you\'re reading and matches it to this passage, all on your device. It can take up to a minute. If the spot can\'t be matched confidently, nothing moves.';+ String get findInAudiobookIntroBody => 'This listens to the audiobook near where you\'re reading and matches it to this passage, all on your device. It can take up to a minute. If the spot can\'t be matched confidently, nothing moves.';@overrideString get findInAudiobookAfterLabel => 'When the spot is found';@@ -11269,12 +10940,10 @@ class AppLocalizationsZh extends AppLocalizations {String get findInAudiobookPlaying => 'Playing this passage in the audiobook';@override- String get catchUpAudioAhead =>- 'The audiobook is further along. Tap to go there.';+ String get catchUpAudioAhead => 'The audiobook is further along. Tap to go there.';@override- String get catchUpPageAhead =>- 'This page is ahead of the audiobook. Tap to move the audiobook here.';+ String get catchUpPageAhead => 'This page is ahead of the audiobook. Tap to move the audiobook here.';@overrideString get readerShortcutButton => 'Shortcut button';@@ -11286,66 +10955,55 @@ class AppLocalizationsZh extends AppLocalizations {String get keepScreenOnActive => 'Screen stays on';@override- String get keepScreenOnUntilClosed =>- 'Screen stays on until you close the app';+ String get keepScreenOnUntilClosed => 'Screen stays on until you close the app';@overrideString get keepScreenOnOff => 'Screen can turn off again';@override- String get keepScreenOnOffUntilRestart =>- 'Off until the app restarts. The Settings switch stays on';+ String get keepScreenOnOffUntilRestart => 'Off until the app restarts. The Settings switch stays on';@overrideString get keepScreenOnPlayer => 'Keep the screen on in the player';@override- String get keepScreenOnPlayerSubtitle =>- 'The screen stays on while the player is open';+ String get keepScreenOnPlayerSubtitle => 'The screen stays on while the player is open';@overrideString get keepScreenOnCarMode => 'Keep the screen on in car mode';@override- String get keepScreenOnCarModeSubtitle =>- 'The screen stays on while car mode is open';+ String get keepScreenOnCarModeSubtitle => 'The screen stays on while car mode is open';@overrideString get loginServerType => 'Server type';@override- String get authBookOrbitDefaultPassword =>- 'This account still has its default password. Change it in BookOrbit, then sign in again.';+ String get authBookOrbitDefaultPassword => 'This account still has its default password. Change it in BookOrbit, then sign in again.';@override- String get authBookOrbitPasswordOff =>- 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';+ String get authBookOrbitPasswordOff => 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';@override- String get authServerIsBookOrbit =>- 'This is a BookOrbit server. Choose BookOrbit above the server address.';+ String get authServerIsBookOrbit => 'This is a BookOrbit server. Choose BookOrbit above the server address.';@override- String get authServerIsAudiobookshelf =>- 'This is an Audiobookshelf server. Choose Audiobookshelf above the server address.';+ String get authServerIsAudiobookshelf => 'This is an Audiobookshelf server. Choose Audiobookshelf above the server address.';@override- String get castNotAvailableBookOrbit =>- 'Casting is not available with BookOrbit servers';+ String get castNotAvailableBookOrbit => 'Casting is not available with BookOrbit servers';@overrideString get loginMagicLink => 'Magic link';@override- String get loginMagicLinkDescription =>- 'Sign in with a BookOrbit magic link, or paste a password link to set your password.';+ String get loginMagicLinkDescription => 'Sign in with a BookOrbit magic link, or paste a password link to set your password.';@overrideString get collectionPublicTitle => 'Public';@override- String get collectionPublicSubtitle =>- 'Everyone on this server can see this collection';+ String get collectionPublicSubtitle => 'Everyone on this server can see this collection';@overrideString loginSignInWithProvider(String provider) {@@ -11359,15 +11017,13 @@ class AppLocalizationsZh extends AppLocalizations {String get loginChooseSsoProvider => 'Choose how to sign in';@override- String get loginRedirectUriBookOrbit =>- 'Redirect URI: bookorbit://oauth2-callback';+ String get loginRedirectUriBookOrbit => 'Redirect URI: bookorbit://oauth2-callback';@overrideString get readStatusTitle => 'Reading status';@override- String get readStatusHint =>- 'Listening to or reading the book can change this again.';+ String get readStatusHint => 'Listening to or reading the book can change this again.';@overrideString get readStatusUnread => 'Unread';@@ -11415,8 +11071,7 @@ class AppLocalizationsZh extends AppLocalizations {String get cardButtonFill => 'Button background';@override- String get cardButtonFillSubtitle =>- 'How the buttons on the player card are filled';+ String get cardButtonFillSubtitle => 'How the buttons on the player card are filled';@overrideString get cardButtonFillClear => 'Clear';@@ -11428,15 +11083,13 @@ class AppLocalizationsZh extends AppLocalizations {String get cardButtonFillSolid => 'Solid';@override- String get loginBookOrbitPreview =>- 'BookOrbit support is new. Playback, downloads and browsing work, but some screens may still look or act like Audiobookshelf. Follow the progress on GitHub, and let us know if something seems off.';+ String get loginBookOrbitPreview => 'BookOrbit support is new. Playback, downloads and browsing work, but some screens may still look or act like Audiobookshelf. Follow the progress on GitHub, and let us know if something seems off.';@overrideString get signedOutTapToSignIn => 'Signed out. Tap to sign in again.';@override- String get authSignedOutKeepListening =>- 'You\'ve been signed out. Downloads still play. Tap the red cloud to sign in again.';+ String get authSignedOutKeepListening => 'You\'ve been signed out. Downloads still play. Tap the red cloud to sign in again.';@overrideString signedOutSyncNote(String username, String server) {@@ -11452,8 +11105,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get comicBookmarkRemoveFailed =>- 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';+ String get comicBookmarkRemoveFailed => 'Couldn\'t remove the bookmark from the server. Try again when you\'re online.';@overrideString get comicLeftToRight => 'Left to right';@@ -11462,8 +11114,7 @@ class AppLocalizationsZh extends AppLocalizations {String get comicRightToLeft => 'Right to left (manga)';@override- String get comicNeedsConnection =>- 'This comic opens page by page from your server, so it needs a connection.';+ String get comicNeedsConnection => 'This comic opens page by page from your server, so it needs a connection.';@overrideString get comicNoPages => 'No pages found in this comic.';@@ -11562,8 +11213,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boUserUsername => 'Username';@override- String get boUserUsernameHint =>- 'At least 3 characters. It cannot be changed later.';+ String get boUserUsernameHint => 'At least 3 characters. It cannot be changed later.';@overrideString get boUserName => 'Name';@@ -11587,8 +11237,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boUserAdminSubtitle => 'Full access to everything on the server';@override- String get boUserAdminHasAll =>- 'Administrators have every permission and see every library.';+ String get boUserAdminHasAll => 'Administrators have every permission and see every library.';@overrideString get boUserPermissions => 'Permissions';@@ -11612,12 +11261,10 @@ class AppLocalizationsZh extends AppLocalizations {String get boUserPasswordLink => 'Send password link';@override- String get boUserPasswordLinkSubtitle =>- 'A link to set a new password, valid for 15 minutes';+ String get boUserPasswordLinkSubtitle => 'A link to set a new password, valid for 15 minutes';@override- String get boUserExternal =>- 'Signs in through single sign-on, so the password is managed there.';+ String get boUserExternal => 'Signs in through single sign-on, so the password is managed there.';@overrideString get boUserUnlock => 'Unlock account';@@ -11634,8 +11281,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get boUserDeleteBody =>- 'Their account and everything they have on this server are removed. This cannot be undone.';+ String get boUserDeleteBody => 'Their account and everything they have on this server are removed. This cannot be undone.';@overrideString get boUserDeleted => 'User deleted';@@ -11649,8 +11295,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get boPasswordRules =>- 'At least 8 characters, with an uppercase letter, a lowercase letter and a number.';+ String get boPasswordRules => 'At least 8 characters, with an uppercase letter, a lowercase letter and a number.';@overrideString get boSetPasswordTitle => 'Set your password';@@ -11669,16 +11314,13 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get boSetPasswordStartingBody =>- 'This account still has the password it was created with. Choose a new one to finish signing in.';+ String get boSetPasswordStartingBody => 'This account still has the password it was created with. Choose a new one to finish signing in.';@override- String get boSetPasswordTrust =>- 'Only continue if you trust who sent this link.';+ String get boSetPasswordTrust => 'Only continue if you trust who sent this link.';@override- String get boPasswordLinkExpired =>- 'This link has expired or was already used. Ask your server admin for a new one.';+ String get boPasswordLinkExpired => 'This link has expired or was already used. Ask your server admin for a new one.';@overrideString boPasswordSetSignInFailed(String error) {@@ -11689,12 +11331,10 @@ class AppLocalizationsZh extends AppLocalizations {String get boChangePasswordSubtitle => 'Update your BookOrbit password';@override- String get boPasswordChangeEffect =>- 'Changing your password signs out your other BookOrbit sessions. This device stays signed in.';+ String get boPasswordChangeEffect => 'Changing your password signs out your other BookOrbit sessions. This device stays signed in.';@override- String get boPasswordChanged =>- 'Password changed. Other signed-in devices were signed out.';+ String get boPasswordChanged => 'Password changed. Other signed-in devices were signed out.';@overrideString boPasswordShareDescription(String username) {@@ -11719,8 +11359,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boUserLinkShare => 'Share';@override- String get boUserNoLink =>- 'The user was added, but the server sent no password link. Send one from their page.';+ String get boUserNoLink => 'The user was added, but the server sent no password link. Send one from their page.';@overrideString get boPermGroupLibrary => 'Library and books';@@ -11762,8 +11401,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boPermBookRequestAutoApprove => 'Requests approved automatically';@override- String get boPermBookRequestSelfFulfill =>- 'Download requested books directly';+ String get boPermBookRequestSelfFulfill => 'Download requested books directly';@overrideString get boPermManageBookRequests => 'Manage book requests';@@ -11872,8 +11510,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boLibFolders => 'Folders';@override- String get boLibFoldersHint =>- 'Folders on the server where this library\'s books live.';+ String get boLibFoldersHint => 'Folders on the server where this library\'s books live.';@overrideString get boLibNeedFolder => 'Add at least one folder';@@ -11913,15 +11550,13 @@ class AppLocalizationsZh extends AppLocalizations {String get boLibPerFile => 'One book per file';@override- String get boLibOrganizationFixed =>- 'This cannot be changed after the library is created.';+ String get boLibOrganizationFixed => 'This cannot be changed after the library is created.';@overrideString get boLibWatch => 'Watch for changes';@override- String get boLibWatchSubtitle =>- 'Pick up new and changed files as they appear';+ String get boLibWatchSubtitle => 'Pick up new and changed files as they appear';@overrideString get boLibSchedule => 'Scheduled scan';@@ -11956,8 +11591,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boLibAccess => 'Who can see it';@override- String get boLibAccessHint =>- 'Administrators see every library. Others need access here.';+ String get boLibAccessHint => 'Administrators see every library. Others need access here.';@overrideString get boLibAccessNone => 'Only administrators so far';@@ -11989,8 +11623,7 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get boLibDeleteBody =>- 'The library is removed from BookOrbit, with its books\' progress and highlights. The files on the server stay where they are.';+ String get boLibDeleteBody => 'The library is removed from BookOrbit, with its books\' progress and highlights. The files on the server stay where they are.';@overrideString get boLibDeleted => 'Library deleted';@@ -12129,8 +11762,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boNotificationsClearTitle => 'Clear all notifications?';@override- String get boNotificationsClearBody =>- 'This removes every notification from your BookOrbit account.';+ String get boNotificationsClearBody => 'This removes every notification from your BookOrbit account.';@overrideString get boNotificationsEmpty => 'No notifications yet';@@ -12139,8 +11771,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boNotificationsLoadFailed => 'Couldn\'t load notifications';@override- String get boNotificationsUpdateFailed =>- 'Couldn\'t update notifications on BookOrbit';+ String get boNotificationsUpdateFailed => 'Couldn\'t update notifications on BookOrbit';@overrideString boNotificationsOccurrences(int count) {@@ -12151,12 +11782,10 @@ class AppLocalizationsZh extends AppLocalizations {String get boNotificationsSettings => 'Notification settings';@override- String get boNotificationsSettingsIntro =>- 'Choose which notifications BookOrbit keeps for you.';+ String get boNotificationsSettingsIntro => 'Choose which notifications BookOrbit keeps for you.';@override- String get boNotificationsProblemsHint =>- 'Problems only notifies you when something fails or needs attention.';+ String get boNotificationsProblemsHint => 'Problems only notifies you when something fails or needs attention.';@overrideString get boNotificationLevelOff => 'Off';@@ -12171,8 +11800,7 @@ class AppLocalizationsZh extends AppLocalizations {String get boNotificationsSaved => 'Notification settings saved';@override- String get boNotificationsSaveFailed =>- 'Couldn\'t save notification settings';+ String get boNotificationsSaveFailed => 'Couldn\'t save notification settings';@overrideString get boNotificationGroupLibrary => 'Library';@@ -12190,71 +11818,61 @@ class AppLocalizationsZh extends AppLocalizations {String get boNotifyScanning => 'Library scanning';@override- String get boNotifyScanningDesc =>- 'When a library scan finishes, fails, or finds missing books.';+ String get boNotifyScanningDesc => 'When a library scan finishes, fails, or finds missing books.';@overrideString get boNotifyMetadata => 'Metadata fetching';@override- String get boNotifyMetadataDesc =>- 'When metadata lookups for your books finish or fail.';+ String get boNotifyMetadataDesc => 'When metadata lookups for your books finish or fail.';@overrideString get boNotifyAuthorEnrichment => 'Author details';@override- String get boNotifyAuthorEnrichmentDesc =>- 'When author biographies and photos finish downloading.';+ String get boNotifyAuthorEnrichmentDesc => 'When author biographies and photos finish downloading.';@overrideString get boNotifyFileWriteBack => 'Saving to files';@override- String get boNotifyFileWriteBackDesc =>- 'When edited details are saved into the book files on disk.';+ String get boNotifyFileWriteBackDesc => 'When edited details are saved into the book files on disk.';@overrideString get boNotifyFileRename => 'File renaming';@override- String get boNotifyFileRenameDesc =>- 'When a book file is renamed to match your naming pattern.';+ String get boNotifyFileRenameDesc => 'When a book file is renamed to match your naming pattern.';@overrideString get boNotifyBulkRename => 'Bulk renaming';@override- String get boNotifyBulkRenameDesc =>- 'When renaming many books, or moving books between libraries, finishes or fails.';+ String get boNotifyBulkRenameDesc => 'When renaming many books, or moving books between libraries, finishes or fails.';@overrideString get boNotifyMigration => 'Imports';@override- String get boNotifyMigrationDesc =>- 'When an import from another library app finishes or fails.';+ String get boNotifyMigrationDesc => 'When an import from another library app finishes or fails.';@overrideString get boNotifyBookDock => 'Book Dock';@override- String get boNotifyBookDockDesc =>- 'When Book Dock finishes adding books or runs into problems.';+ String get boNotifyBookDockDesc => 'When Book Dock finishes adding books or runs into problems.';@overrideString get boNotifyBookRequests => 'Book requests';@override- String get boNotifyBookRequestsDesc =>- 'When a book request is submitted or decided, or the book becomes available.';+ String get boNotifyBookRequestsDesc => 'When a book request is submitted or decided, or the book becomes available.';@overrideString get boNotifyEmail => 'Email delivery';@override- String get boNotifyEmailDesc =>- 'When sending a book by email works or fails.';+ String get boNotifyEmailDesc => 'When sending a book by email works or fails.';@overrideString get boNotifyAchievements => 'Achievements';@@ -12518,8 +12136,7 @@ class AppLocalizationsZh extends AppLocalizations {String _temp0 = intl.Intl.pluralLogic(count,locale: localeName,- other:- '$count books of $pages pages or more are waiting on your shelves.',+ other: '$count books of $pages pages or more are waiting on your shelves.',one: '1 book of $pages pages or more is waiting on your shelves.',);return '$_temp0';@@ -12615,8 +12232,7 @@ class AppLocalizationsZh extends AppLocalizations {String get achievementsSwitch => 'Achievements';@override- String get achievementsSwitchSubtitle =>- 'Track achievements on BookOrbit. Turning this off hides them here and on the web.';+ String get achievementsSwitchSubtitle => 'Track achievements on BookOrbit. Turning this off hides them here and on the web.';@overrideString get achievementsTurnedOn => 'Achievements turned on';@@ -12625,6 +12241,1135 @@ class AppLocalizationsZh extends AppLocalizations {String get achievementsTurnedOff => 'Achievements turned off';@override- String get achievementsSwitchFailed =>- 'Couldn\'t change achievements on BookOrbit';+ String get achievementsSwitchFailed => 'Couldn\'t change achievements on BookOrbit';++ @override+ String get boNotifyReadAlong => 'Read alongs';++ @override+ String get boNotifyReadAlongDesc => 'When a read along you started is ready, needs a look, or fails.';++ @override+ String get readAlongCreate => 'Create read along';++ @override+ String get readAlongLoadFailed => 'Couldn\'t check whether a read along can be made for this book.';++ @override+ String get readAlongCheckAgain => 'Check again';++ @override+ String get readAlongWhyWorkerOffline => 'BookOrbit\'s read along worker is offline right now.';++ @override+ String get readAlongWhyWorkerOutdated => 'BookOrbit\'s read along worker needs an update to work with this server.';++ @override+ String get readAlongWhyFilesMissing => 'Restore this book\'s missing files to make a read along.';++ @override+ String get readAlongWhyNoEpub => 'Add a plain EPUB to this book to make a read along.';++ @override+ String get readAlongWhyNoEpubHasOne => 'This book already has a read along and no plain EPUB to make another from.';++ @override+ String get readAlongWhyTooManyTracks => 'This audiobook has more files than a read along can be made from.';++ @override+ String get readAlongWhyEpubNotAllowed => 'This library doesn\'t take EPUB files, so a read along can\'t be added.';++ @override+ String get readAlongWhyNotMounted => 'BookOrbit\'s read along worker can\'t reach this library\'s folder.';++ @override+ String get readAlongWhyRunning => 'A read along is already being made for this book.';++ @override+ String get readAlongWhyUnknown => 'A read along can\'t be made for this book right now.';++ @override+ String get readAlongSheetTitle => 'Create a read along';++ @override+ String get readAlongSheetIntro => 'BookOrbit matches the narration to the ebook text and adds an EPUB that highlights along with the audio.';++ @override+ String get readAlongEbook => 'Ebook';++ @override+ String get readAlongEbookHint => 'Pick the plain EPUB that matches the narration.';++ @override+ String get readAlongAudio => 'Audiobook';++ @override+ String readAlongTracks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count tracks',+ one: '1 track',+ );+ return '$_temp0';+ }++ @override+ String readAlongExistingTitle(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This book already has $count read alongs',+ one: 'This book already has a read along',+ );+ return '$_temp0';+ }++ @override+ String readAlongReplace(String name) {+ return 'Replace $name';+ }++ @override+ String readAlongKeepBoth(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Keep all of them',+ one: 'Keep both',+ );+ return '$_temp0';+ }++ @override+ String get readAlongKeepHint => 'The new read along is added as another file.';++ @override+ String get readAlongReplaceHint => 'The old file is only replaced once the new one passes its checks, and reading spots carry over.';++ @override+ String get readAlongReplaceNotAllowed => 'Replacing a read along needs permission to delete books, so the new one is added as another file.';++ @override+ String get readAlongMadeByBookOrbit => 'Made by BookOrbit';++ @override+ String get readAlongImported => 'Imported';++ @override+ String get readAlongLanguage => 'Narration language';++ @override+ String get readAlongPickLanguage => 'Choose a language';++ @override+ String readAlongLanguageUnsupported(String language) {+ return 'The speech model doesn\'t know this book\'s language ($language).';+ }++ @override+ String get readAlongLanguageFromBook => 'From this book\'s details.';++ @override+ String get readAlongLanguageIsDefault => 'Your default language.';++ @override+ String get readAlongLanguageSaved => 'Saved as your default language.';++ @override+ String get readAlongSetDefault => 'Set as default';++ @override+ String get readAlongDefaultFailed => 'Couldn\'t save your default language.';++ @override+ String get readAlongHighlighting => 'Highlighting';++ @override+ String get readAlongSentence => 'Sentence';++ @override+ String get readAlongSentenceHint => 'Highlights one sentence at a time. Recommended.';++ @override+ String get readAlongWord => 'Word';++ @override+ String get readAlongWordHint => 'Highlights each word. Takes longer and makes a bigger file. Still experimental.';++ @override+ String readAlongEstimatedSize(String size) {+ return 'Estimated size: $size';+ }++ @override+ String get readAlongBackgroundNote => 'Runs on the server, so you can close this. Long audiobooks can take hours, and the first run for a language downloads its speech model.';++ @override+ String readAlongLowDisk(String needed, String free) {+ return 'Low disk space: this needs about $needed of working space on the worker, which has $free free.';+ }++ @override+ String get readAlongStart => 'Start';++ @override+ String get readAlongStartFailed => 'The read along couldn\'t be started. Try again.';++ @override+ String get readAlongStartInvalid => 'Some of the picked files are no longer on this book. Check them and try again.';++ @override+ String get readAlongStartOffline => 'BookOrbit\'s read along worker is offline. Try again later.';++ @override+ String get readAlongNotAllowed => 'You don\'t have permission to do that.';++ @override+ String get readAlongGone => 'This read along job is gone.';++ @override+ String get readAlongMovedOn => 'This job had already moved on. It now shows where it is.';++ @override+ String get readAlongActionFailed => 'That didn\'t go through. Try again.';++ @override+ String readAlongStartedBy(String name) {+ return 'Started by $name';+ }++ @override+ String get readAlongStartedByOther => 'Started by another user';++ @override+ String get readAlongWaiting => 'Waiting to start';++ @override+ String get readAlongNextInLine => 'Next in line';++ @override+ String readAlongJobsAhead(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count jobs ahead',+ one: '1 job ahead',+ );+ return '$_temp0';+ }++ @override+ String get readAlongStopping => 'Stopping';++ @override+ String get readAlongStoppingHint => 'Finishing the current step, then it stops. Nothing will be added to this book.';++ @override+ String get readAlongStagePreparingAudio => 'Preparing the audio';++ @override+ String get readAlongStageDownloadingModel => 'Downloading the speech model';++ @override+ String get readAlongStageListening => 'Listening to the narration';++ @override+ String get readAlongStageMarkingUp => 'Marking up the ebook text';++ @override+ String get readAlongStageAligning => 'Matching the text to the narration';++ @override+ String get readAlongStageChecking => 'Checking the result';++ @override+ String get readAlongStagePublishing => 'Adding the read along to this book';++ @override+ String get readAlongStageWorking => 'Working';++ @override+ String readAlongFileOf(int current, int total) {+ return 'File $current of $total';+ }++ @override+ String readAlongTrackOf(int current, int total) {+ return 'Track $current of $total';+ }++ @override+ String readAlongChapterOf(int current, int total) {+ return 'Chapter $current of $total';+ }++ @override+ String readAlongStepOf(int current, int total) {+ return 'Step $current of $total';+ }++ @override+ String get readAlongFirstRun => 'First run for this language';++ @override+ String get readAlongJustStarted => 'Just started';++ @override+ String readAlongRunningFor(String duration) {+ return 'Running for $duration';+ }++ @override+ String get readAlongStepAudio => 'Audio';++ @override+ String get readAlongStepSpeech => 'Speech';++ @override+ String get readAlongStepText => 'Text';++ @override+ String get readAlongStepAlign => 'Align';++ @override+ String get readAlongStepCheck => 'Check';++ @override+ String get readAlongStepAdd => 'Add';++ @override+ String get readAlongReviewTitle => 'Ready for review';++ @override+ String readAlongReviewMatched(String percent) {+ return '$percent of the text matched the narration. Check it before adding it to the book.';+ }++ @override+ String get readAlongReviewPlain => 'Check it before adding it to the book.';++ @override+ String get readAlongReviewWeb => 'To leave chapters out and match again, open this book in BookOrbit on the web.';++ @override+ String readAlongReviewExpires(String date) {+ return 'Thrown away on its own on $date unless you review it.';+ }++ @override+ String get readAlongAddAnyway => 'Add it anyway';++ @override+ String get readAlongDiscard => 'Discard';++ @override+ String get readAlongDiscardPrompt => 'Discard this read along?';++ @override+ String get readAlongKeepIt => 'Keep it';++ @override+ String get readAlongReady => 'Read along ready';++ @override+ String get readAlongReadyWarnings => 'Read along ready, with warnings';++ @override+ String get readAlongAdded => 'Added to this book as a new EPUB.';++ @override+ String get readAlongReplaced => 'Replaced the old read along. Reading spots carry over.';++ @override+ String readAlongMatchedSentences(String matched, String total) {+ return '$matched of $total sentences matched the narration';+ }++ @override+ String readAlongAudioUsed(String percent) {+ return '$percent of the audio used';+ }++ @override+ String readAlongOutside(String chapters) {+ return 'Not in the narration, so left without audio: $chapters.';+ }++ @override+ String readAlongOutsideMore(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count more chapters',+ one: '1 more chapter',+ );+ return '$_temp0';+ }++ @override+ String get readAlongWarnUnaligned => 'One or more audio tracks couldn\'t be matched.';++ @override+ String get readAlongWarnUnmatched => 'A noticeable amount of the ebook text wasn\'t matched to the narration.';++ @override+ String get readAlongWarnInterpolated => 'Some text timing was estimated between confident matches.';++ @override+ String get readAlongWarnDropped => 'Some ebook text was left out of the highlighting.';++ @override+ String get readAlongFailed => 'Read along failed';++ @override+ String get readAlongCancelled => 'Read along cancelled';++ @override+ String get readAlongDiscarded => 'Read along thrown away';++ @override+ String get readAlongNothingAdded => 'Nothing was added to this book.';++ @override+ String get readAlongExpired => 'It wasn\'t reviewed within 14 days, so nothing was added to this book.';++ @override+ String readAlongRetryUntil(String date) {+ return 'Retry picks up from the last finished step until $date.';+ }++ @override+ String get readAlongStartOver => 'Start over';++ @override+ String get readAlongCancel => 'Cancel read along';++ @override+ String get readAlongCancelPrompt => 'Cancel this read along?';++ @override+ String get readAlongKeepRunning => 'Keep running';++ @override+ String get readAlongErrorWorkerOffline => 'BookOrbit couldn\'t reach its read along worker.';++ @override+ String get readAlongErrorWorkerCrashed => 'The read along worker stopped unexpectedly.';++ @override+ String get readAlongErrorSourceMissing => 'A picked file is no longer there.';++ @override+ String get readAlongErrorSourceChanged => 'A picked file changed after the job started.';++ @override+ String get readAlongErrorInvalidSource => 'The EPUB or audiobook couldn\'t be read.';++ @override+ String get readAlongErrorLanguage => 'The speech model doesn\'t know the picked language.';++ @override+ String get readAlongErrorStorage => 'There isn\'t enough free disk space on the worker to finish.';++ @override+ String get readAlongErrorAudio => 'The audiobook couldn\'t be prepared.';++ @override+ String get readAlongErrorModel => 'The speech model couldn\'t be downloaded.';++ @override+ String get readAlongErrorListening => 'Speech recognition failed while listening to the narration.';++ @override+ String get readAlongErrorMarkup => 'The ebook text couldn\'t be prepared for matching.';++ @override+ String get readAlongErrorAlignment => 'The text couldn\'t be matched to the narration.';++ @override+ String get readAlongErrorOutput => 'The new EPUB failed its checks.';++ @override+ String get readAlongErrorPublish => 'The new EPUB couldn\'t be added to this book.';++ @override+ String get readAlongErrorDiscarded => 'It was thrown away at review.';++ @override+ String get readAlongErrorCancelled => 'It was cancelled.';++ @override+ String get readAlongErrorUnknown => 'Something went wrong while making the read along.';++ @override+ String get fileInfoNoAudiobook => 'No audiobook yet';++ @override+ String get fileInfoNoEbook => 'No e-book yet';++ @override+ String get fileInfoRequestedBySomeone => 'Requested by someone else';++ @override+ String get fileInfoOwnedSeparately => 'In your library as a separate book';++ @override+ String get fileInfoCopyPath => 'Copy path';++ @override+ String get fileInfoDeleteTitle => 'Delete file?';++ @override+ String fileInfoDeletePrompt(String name) {+ return '\"$name\" will be deleted from the server. This can\'t be undone.';+ }++ @override+ String get fileInfoDeleteLast => 'It\'s the book\'s last audio or e-book file, so the book will show as missing.';++ @override+ String get fileInfoDeleteNotAllowed => 'You don\'t have permission to delete files';++ @override+ String get chapterSourceEmbedded => 'Read from the audio files';++ @override+ String get chapterSourceTracks => 'One chapter per audio file, not saved';++ @override+ String get chapterSourceProvider => 'From fetched metadata';++ @override+ String get chapterSourceMigration => 'Imported from Audiobookshelf';++ @override+ String get chapterSourceManual => 'Edited in BookOrbit';++ @override+ String chapterSourceManualBy(String name) {+ return 'Edited by $name';+ }++ @override+ String get chapterSourceNone => 'No chapters yet';++ @override+ String get chapterProtected => 'Protected from rescans';++ @override+ String get chapterNotProtected => 'A rescan can replace these';++ @override+ String get chapterProtectOnSave => 'Protect from rescans';++ @override+ String get chapterGetFrom => 'Get Chapters From';++ @override+ String get chapterFromFiles => 'The audio files';++ @override+ String get chapterFromEbookToc => 'The e-book\'s contents';++ @override+ String get chapterFromReadAlong => 'The read along';++ @override+ String get chapterFromHistory => 'Earlier versions';++ @override+ String get chapterHistoryTitle => 'Earlier versions';++ @override+ String get chapterHistoryEmpty => 'Saved versions show up here.';++ @override+ String chapterHistoryBy(String source, String name) {+ return '$source by $name';+ }++ @override+ String get chapterReadingFiles => 'Reading the audio files...';++ @override+ String get chapterRevertToFiles => 'Revert to Files';++ @override+ String get chapterRevertTitle => 'Go back to the chapters in the files?';++ @override+ String get chapterRevertMessage => 'BookOrbit reads the chapters in the audio files again and stops protecting them from rescans. Unsaved edits are lost. The current list stays in the earlier versions.';++ @override+ String get chapterReverted => 'Chapters set back to the audio files';++ @override+ String get chapterWriteFiles => 'Write to Files';++ @override+ String get chapterWriteTitle => 'Write the chapters into the audio files?';++ @override+ String chapterWriteMessage(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This rewrites the book\'s $count audio files with these chapters.',+ one: 'This rewrites the book\'s audio file with these chapters.',+ );+ return '$_temp0 The audio itself is copied unchanged. Phones that already downloaded the book keep their copy until it\'s downloaded again.';+ }++ @override+ String get chapterWriteConfirm => 'Write';++ @override+ String get chapterWriting => 'Writing the chapters into the audio files...';++ @override+ String chapterWritten(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Chapters written into all $count audio files',+ one: 'Chapters written into the audio file',+ );+ return '$_temp0';+ }++ @override+ String chapterWrittenPartly(int written, int total) {+ return 'Chapters written into $written of $total files. The rest were left as they were.';+ }++ @override+ String get chapterStaleTitle => 'These chapters changed';++ @override+ String get chapterStaleMessage => 'Someone else saved these chapters after you opened them. Reload to see their version. Your edits stay until you do.';++ @override+ String get chapterReload => 'Reload';++ @override+ String get chapterKeepEditing => 'Keep editing';++ @override+ String get matchExplicitYes => 'Marked explicit';++ @override+ String get matchExplicitNo => 'Not explicit';++ @override+ String get matchAbridgedYes => 'Abridged';++ @override+ String get matchAbridgedNo => 'Unabridged';++ @override+ String boQuickMatchBody(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'these $count books',+ one: 'this book',+ );+ return 'BookOrbit looks up $_temp0 and fills in what it finds, following its metadata settings.';+ }++ @override+ String get boQuickMatchIgnoreCache => 'Ask every source again';++ @override+ String get boQuickMatchIgnoreCacheHint => 'Skips saved answers. Slower, and uses more of each source\'s request limit.';++ @override+ String boAdminServerCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count mail servers',+ one: '1 mail server',+ zero: 'None yet',+ );+ return '$_temp0';+ }++ @override+ String get boEmailTitle => 'Send by email';++ @override+ String get boEmailSubtitle => 'Devices, mail servers and templates for sending books';++ @override+ String get boEmailTabDevices => 'Devices';++ @override+ String get boEmailTabServers => 'Mail servers';++ @override+ String get boEmailTabTemplates => 'Templates';++ @override+ String get boEmailTabHistory => 'History';++ @override+ String get boEmailName => 'Name';++ @override+ String boEmailDeleteTitle(String name) {+ return 'Delete $name?';+ }++ @override+ String get boEmailMakeDefault => 'Make default';++ @override+ String get boEmailBadgeDefault => 'Default';++ @override+ String get boEmailBadgeShared => 'Shared';++ @override+ String get boEmailBadgeSystem => 'Password resets';++ @override+ String get boEmailBadgeBuiltIn => 'Built in';++ @override+ String get boEmailDevicesEmpty => 'No devices yet. Add your e-reader\'s email address to send it books.';++ @override+ String get boEmailAddDevice => 'Add device';++ @override+ String get boEmailNewDevice => 'New device';++ @override+ String get boEmailDeviceNameHint => 'My Kindle';++ @override+ String get boEmailDeviceAddress => 'Email address';++ @override+ String get boEmailDeviceType => 'Device';++ @override+ String get boEmailDeviceNone => 'Person or inbox';++ @override+ String get boEmailDeviceKindle => 'Kindle';++ @override+ String get boEmailDeviceKobo => 'Kobo';++ @override+ String get boEmailDeviceOther => 'Other e-reader';++ @override+ String get boEmailKindleHint => 'Kindle gets the subject \"convert\" and only takes EPUB and PDF by email.';++ @override+ String boEmailKindleApprove(String address) {+ return 'Kindle drops mail from addresses it doesn\'t know. In Amazon\'s Personal Document Settings, add $address to the approved list.';+ }++ @override+ String get boEmailKindleApproveNoServer => 'Add a mail server first to see the address Kindle needs to approve.';++ @override+ String get boEmailFormat => 'Format';++ @override+ String get boEmailFormatPrimary => 'Book\'s main file';++ @override+ String get boEmailFormatHint => 'A book without this format gets its main file.';++ @override+ String get boEmailReadAlong => 'Read along books';++ @override+ String get boEmailReadAlongAuto => 'Automatic';++ @override+ String get boEmailReadAlongAutoHint => 'Text only when a copy can be made, otherwise the original.';++ @override+ String get boEmailReadAlongText => 'Text only';++ @override+ String get boEmailReadAlongTextHint => 'Narration removed. Small enough for email.';++ @override+ String get boEmailReadAlongOriginal => 'With narration';++ @override+ String get boEmailReadAlongOriginalHint => 'Keeps the narration. Often 100 MB or more, over most mail servers\' limits.';++ @override+ String get boEmailTemplate => 'Template';++ @override+ String get boEmailTemplateYourDefault => 'Your default';++ @override+ String get boEmailTemplateKindleHint => 'Kindle never shows the message, so it skips the template.';++ @override+ String get boEmailDefaultDevice => 'Default device';++ @override+ String get boEmailDefaultDeviceHint => 'Picked first when you send a book.';++ @override+ String get boEmailSendTest => 'Send a test email';++ @override+ String get boEmailTestSubject => 'Test email from Absorb';++ @override+ String boEmailTestBody(String name) {+ return 'This is a test from Absorb. If you can read it, books sent to $name will arrive here too.';+ }++ @override+ String boEmailTestSent(String name) {+ return 'Test email sent to $name';+ }++ @override+ String boEmailTestFailed(String error) {+ return 'The test email didn\'t go out: $error';+ }++ @override+ String get boEmailDeleteDevice => 'Delete device';++ @override+ String get boEmailDeleteDeviceBody => 'Its send history stays.';++ @override+ String get boEmailDeviceRequired => 'Enter a name and an email address';++ @override+ String get boEmailLastSendFailed => 'Last send failed';++ @override+ String get boEmailGroups => 'Groups';++ @override+ String get boEmailGroupsHint => 'Send to several devices at once.';++ @override+ String get boEmailNewGroup => 'New group';++ @override+ String get boEmailGroupNameHint => 'Book club';++ @override+ String get boEmailGroupMembers => 'Devices in this group';++ @override+ String get boEmailGroupMembersEmpty => 'Add a device first.';++ @override+ String boEmailGroupMemberCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count devices',+ one: '1 device',+ zero: 'No devices',+ );+ return '$_temp0';+ }++ @override+ String get boEmailDeleteGroup => 'Delete group';++ @override+ String get boEmailDeleteGroupBody => 'The devices in it stay.';++ @override+ String get boEmailGroupRequired => 'Enter a group name';++ @override+ String get boEmailServersEmptyManage => 'No mail servers yet. Add one to start sending books.';++ @override+ String get boEmailServersEmpty => 'No mail servers yet. Ask an admin to add one.';++ @override+ String get boEmailAddServer => 'Add mail server';++ @override+ String get boEmailNewServer => 'New mail server';++ @override+ String get boEmailServerPresetOther => 'Other';++ @override+ String get boEmailServerPresetHint => 'A preset fills in the host, port and security. You can still change them.';++ @override+ String get boEmailServerHost => 'Host';++ @override+ String get boEmailServerPort => 'Port';++ @override+ String get boEmailServerSecurity => 'Security';++ @override+ String get boEmailServerSecurityNone => 'None';++ @override+ String get boEmailServerSecurityHint => 'STARTTLS on port 587, SSL/TLS on 465.';++ @override+ String get boEmailServerNeedsPassword => 'Signs in with a password';++ @override+ String get boEmailServerUsername => 'Username';++ @override+ String get boEmailServerPassword => 'Password';++ @override+ String get boEmailServerAppPassword => 'App password';++ @override+ String get boEmailServerPasswordKeep => 'Saved. Type to replace it';++ @override+ String get boEmailServerAppPasswordHint => 'Gmail and iCloud need an app password, not your account password.';++ @override+ String get boEmailServerFromName => 'From name';++ @override+ String get boEmailServerFromAddress => 'From address';++ @override+ String get boEmailServerFromAddressHint => 'Kindle owners need to approve this address.';++ @override+ String get boEmailServerShare => 'Share with everyone';++ @override+ String get boEmailServerShareHint => 'Other people can send books through this server without seeing the password.';++ @override+ String get boEmailServerSystem => 'Send password resets and sign-in links';++ @override+ String get boEmailServerSystemHint => 'The server BookOrbit uses for its own mail.';++ @override+ String get boEmailServerVerifyTls => 'Check the server\'s certificate';++ @override+ String get boEmailServerVerifyTlsHint => 'Turn this off only for a server on your own network with a self-signed certificate.';++ @override+ String get boEmailServerTest => 'Test connection';++ @override+ String get boEmailServerTestSaveFirst => 'Save first, then test';++ @override+ String get boEmailServerTestOk => 'Connected';++ @override+ String boEmailServerTestFailed(String error) {+ return 'Can\'t connect: $error';+ }++ @override+ String get boEmailServerDelete => 'Delete mail server';++ @override+ String get boEmailServerDeleteBody => 'Everyone it\'s shared with loses it.';++ @override+ String get boEmailServerSystemFirst => 'Turn off password resets on this server before deleting it.';++ @override+ String get boEmailServerRequired => 'Enter a name and a host';++ @override+ String get boEmailServerNotYours => 'Someone else added this server. Only they can change it.';++ @override+ String get boEmailTemplatesEmpty => 'No templates yet.';++ @override+ String get boEmailNewTemplate => 'New template';++ @override+ String get boEmailTemplateSubject => 'Subject';++ @override+ String get boEmailTemplateMessage => 'Message';++ @override+ String get boEmailTemplateInsert => 'Insert';++ @override+ String get boEmailTemplateInsertHint => 'Goes in where the cursor is. Details a book doesn\'t have print nothing.';++ @override+ String get boEmailVarBook => 'Book';++ @override+ String get boEmailVarFile => 'File';++ @override+ String get boEmailVarOther => 'Other';++ @override+ String get boEmailTemplatePreview => 'Preview';++ @override+ String get boEmailTemplatePreviewNone => 'Send a book once to preview a template with it.';++ @override+ String boEmailTemplateAttached(String name) {+ return 'Attached: $name';+ }++ @override+ String get boEmailTemplateBuiltIn => 'Built in. Only an admin can change it.';++ @override+ String get boEmailTemplateKindleNote => 'Kindle never shows a template. It always gets the subject \"convert\".';++ @override+ String get boEmailTemplateDelete => 'Delete template';++ @override+ String get boEmailTemplateDeleteBody => 'Devices that use it go back to your default template.';++ @override+ String get boEmailTemplateRequired => 'Enter a name and a subject';++ @override+ String get boEmailHistoryEmpty => 'Nothing sent yet.';++ @override+ String get boEmailHistoryAll => 'All';++ @override+ String get boEmailHistoryEveryone => 'Everyone';++ @override+ String get boEmailStatusSent => 'Sent';++ @override+ String get boEmailStatusSending => 'Sending';++ @override+ String boEmailStatusRetrying(int attempt) {+ return 'Trying again ($attempt)';+ }++ @override+ String get boEmailStatusFailed => 'Failed';++ @override+ String boEmailTo(String name) {+ return 'To $name';+ }++ @override+ String get boEmailResend => 'Send again';++ @override+ String get boEmailResent => 'Sending again';++ @override+ String get boEmailForget => 'Remove from history';++ @override+ String get boEmailLoadMore => 'Load more';++ @override+ String get boEmailUnknownBook => 'Deleted book';++ @override+ String get boEmailSendNoServer => 'No mail server is set up on this server yet.';++ @override+ String get boEmailSendAskAdmin => 'Ask an admin to add one.';++ @override+ String get boEmailSendNoDevices => 'Add a device to send this book to.';++ @override+ String get boEmailSendOptions => 'Options';++ @override+ String get boEmailSendFormatEach => 'Each device\'s own';++ @override+ String get boEmailSendServer => 'Mail server';++ @override+ String get boEmailSendButton => 'Send';++ @override+ String boEmailSendGets(String format, String size) {+ return 'Gets $format · $size';+ }++ @override+ String boEmailSendMissing(String format, String got) {+ return 'No $format, gets the $got';+ }++ @override+ String boEmailSendKindleRejects(String format) {+ return 'Kindle doesn\'t take $format by email';+ }++ @override+ String boEmailSendOverKindle(String size) {+ return '$size, over Kindle\'s 50 MB limit';+ }++ @override+ String boEmailSendOverGmail(String size) {+ return '$size, over Gmail\'s 25 MB limit';+ }++ @override+ String boEmailSendNarrated(String size) {+ return 'Gets the narrated copy · $size';+ }++ @override+ String boEmailSendHanding(String server) {+ return 'Sending through $server';+ }++ @override+ String boEmailSendAccepted(String server) {+ return 'Sent through $server';+ }++ @override+ String boEmailSendFailedLine(String error) {+ return 'Didn\'t send: $error';+ }++ @override+ String get boEmailSendStillGoing => 'Still sending. You\'ll get a notification when it\'s done.';++ @override+ String get boEmailKindleOriginal => 'A Kindle can\'t take the narrated copy. Set it to text only.';++ @override+ String get boEmailNoCopy => 'Couldn\'t make a copy without the narration.';}diff --git a/lib/screens/app_shell.dart b/lib/screens/app_shell.dartindex 7fd4920a..5c20303c 100644--- a/lib/screens/app_shell.dart+++ b/lib/screens/app_shell.dart@@ -6,6 +6,7 @@ import 'package:flutter/services.dart';import 'package:provider/provider.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';+import '../services/api_service.dart';import '../services/audio_player_service.dart';import '../services/screen_wake.dart';import '../services/volume_key_service.dart';@@ -36,6 +37,10 @@ import 'admin_sessions_screen.dart';import 'admin_stats_screen.dart';import 'admin_upload_screen.dart';import 'admin_users_screen.dart';+import 'bookorbit_admin_screen.dart';+import 'bookorbit_email_screen.dart';+import 'bookorbit_libraries_screen.dart';+import 'bookorbit_users_screen.dart';import 'bookmarks_screen.dart';import 'downloads_screen.dart';import 'upcoming_releases_screen.dart';@@ -958,7 +963,7 @@ class _AppShellState extends State<AppShell>final key = navHoldPrefKey(tab);var id = navHoldResolve(await ScopedPrefs.getString(key), tab);if (!mounted) return;- final isAdmin = context.read<AuthProvider>().isAdmin;+ final admin = _navHoldAdmin();await _loadRmabAvailability();if (!mounted) return;// A choice that can't act on this account - admin pages after losing@@ -966,13 +971,13 @@ class _AppShellState extends State<AppShell>// nothing.if (id != null &&!navHoldIdAvailable(id,- isAdmin: isAdmin,+ admin: admin,rmabConfigured: _rmabConfigured,rmabWeb: _rmabWeb, bookRequests: _bookRequests)) {id = null;}if (id == null) {- final chosen = await _showNavHoldPicker(tab, isAdmin);+ final chosen = await _showNavHoldPicker(tab, admin);if (chosen == null || !mounted) return;await ScopedPrefs.setString(key, chosen);if (!mounted) return;@@ -983,7 +988,7 @@ class _AppShellState extends State<AppShell>// Always-show-menu: the saved choice stays 'menu' forever - what gets// tapped here runs once and is deliberately NOT written back, otherwise// the first pick would quietly replace the menu.- final picked = await _showNavHoldPicker(tab, isAdmin, forRun: true);+ final picked = await _showNavHoldPicker(tab, admin, forRun: true);if (picked == null || !mounted) return;debugPrint('[NavHold] $tab menu ran $picked (still menu)');_runNavHoldAction(picked);@@ -996,12 +1001,17 @@ class _AppShellState extends State<AppShell>/// The action grid. [forRun] is launcher mode - the sheet is the menu itself/// rather than a one-time setup, so the entries that only make sense as a/// saved choice are left out.- Future<String?> _showNavHoldPicker(String tab, bool isAdmin,+ NavHoldAdmin _navHoldAdmin() {+ final auth = context.read<AuthProvider>();+ return NavHoldAdmin.forAccount(isAdmin: auth.isAdmin, bookOrbit: auth.bookOrbitAdmin);+ }++ Future<String?> _showNavHoldPicker(String tab, NavHoldAdmin admin,{bool forRun = false}) async {final l = AppLocalizations.of(context)!;// Launcher mode shows the user's own arrangement, which they can edit in// place; setup mode always offers everything.- var ids = forRun ? await _launcherIds(isAdmin) : <String>[];+ var ids = forRun ? await _launcherIds(admin) : <String>[];if (!mounted) return null;final picked = await showModalBottomSheet<String>(context: context,@@ -1048,7 +1058,7 @@ class _AppShellState extends State<AppShell>icon: Icons.add_rounded,label: l.navHoldAdd,onTap: () async {- final next = await _addMenuItem(ids, isAdmin);+ final next = await _addMenuItem(ids, admin);if (next != null) setSheetState(() => ids = next);},),@@ -1056,12 +1066,10 @@ class _AppShellState extends State<AppShell>elseActionPillGrid(items: [for (final o in navHoldOptions)- if ((o.isFolder- ? isAdmin- : navHoldIdAvailable(o.id,- isAdmin: isAdmin,- rmabConfigured: _rmabConfigured,- rmabWeb: _rmabWeb, bookRequests: _bookRequests)))+ if (navHoldIdAvailable(o.id,+ admin: admin,+ rmabConfigured: _rmabConfigured,+ rmabWeb: _rmabWeb, bookRequests: _bookRequests))ActionPillData(icon: o.icon,label: navHoldLabel(o.id, l),@@ -1078,14 +1086,14 @@ class _AppShellState extends State<AppShell>);if (picked == null || !mounted) return null;// Folders open a second sheet; anything else is the answer.- if (picked == 'admin') return _showNavHoldSubSheet(_adminSubItems());+ if (picked == 'admin') return _showNavHoldSubSheet(_adminSubItems(admin));if (picked == 'scan') return _showNavHoldSubSheet(_scanSubItems());return picked;}/// The hold menu's contents: the user's saved arrangement, minus anything/// that no longer applies, or the default set when untouched.- Future<List<String>> _launcherIds(bool isAdmin) async {+ Future<List<String>> _launcherIds(NavHoldAdmin admin) async {final raw = await ScopedPrefs.getString(navHoldMenuPrefKey);List<String>? saved;if (raw != null && raw.isNotEmpty) {@@ -1095,14 +1103,14 @@ class _AppShellState extends State<AppShell>}final ids = saved ??navHoldDefaultMenu(- isAdmin: isAdmin,+ admin: admin,rmabConfigured: _rmabConfigured,rmabWeb: _rmabWeb, bookRequests: _bookRequests,);return [for (final id in ids)if (navHoldIdAvailable(id,- isAdmin: isAdmin,+ admin: admin,rmabConfigured: _rmabConfigured,rmabWeb: _rmabWeb, bookRequests: _bookRequests))id,@@ -1189,14 +1197,11 @@ class _AppShellState extends State<AppShell>/// Add anything not already in the menu, admin pages and library scans/// included, so a page like Users can sit on the front grid.- Future<List<String>?> _addMenuItem(List<String> ids, bool isAdmin) async {+ Future<List<String>?> _addMenuItem(List<String> ids, NavHoldAdmin admin) async {final l = AppLocalizations.of(context)!;final all = navHoldAllIds(- isAdmin: isAdmin,- libraryIds: [- for (final lib in context.read<LibraryProvider>().libraries)- if ((lib['id'] as String?)?.isNotEmpty == true) lib['id'] as String,- ],+ admin: admin,+ libraryIds: [for (final lib in _scannableLibraries()) lib['id'] as String],rmabConfigured: _rmabConfigured,rmabWeb: _rmabWeb, bookRequests: _bookRequests,).where((id) =>@@ -1212,26 +1217,32 @@ class _AppShellState extends State<AppShell>return next;}- List<(String, IconData, String)> _adminSubItems() {+ List<(String, IconData, String)> _adminSubItems(NavHoldAdmin admin) {final l = AppLocalizations.of(context)!;return [- for (final p in navHoldAdminPages)+ for (final p in admin.pages)('admin:$p', navHoldAdminIcon(p), navHoldAdminPageLabel(p, l)),];}+ /// The libraries a server scan can start on. BookOrbit's Book Dock isn't+ /// one of its libraries and rescans under its own permission.+ List<Map<String, dynamic>> _scannableLibraries() => [+ for (final lib in context.read<LibraryProvider>().libraries)+ if ((lib['id'] as String?)?.isNotEmpty == true && lib['id'] != ApiService.bookDockLibraryId)+ lib.cast<String, dynamic>(),+ ];+List<(String, IconData, String)> _scanSubItems() {final l = AppLocalizations.of(context)!;- final libs = context.read<LibraryProvider>().libraries;return [('scan:all', Icons.sync_rounded, l.navHoldScanAll),- for (final lib in libs)- if ((lib['id'] as String?)?.isNotEmpty == true)- (- 'scan:${lib['id']}',- Icons.folder_rounded,- (lib['name'] as String?) ?? '',- ),+ for (final lib in _scannableLibraries())+ (+ 'scan:${lib['id']}',+ Icons.folder_rounded,+ (lib['name'] as String?) ?? '',+ ),];}@@ -1283,8 +1294,7 @@ class _AppShellState extends State<AppShell>Navigator.push(context,MaterialPageRoute(builder: (_) => const DownloadsScreen()));case 'admin':- Navigator.push(- context, MaterialPageRoute(builder: (_) => const AdminScreen()));+ unawaited(_openAdminPage('home'));case 'sleep':showSleepTimerSheet(context, Theme.of(context).colorScheme.primary);case 'eink':@@ -1369,6 +1379,16 @@ class _AppShellState extends State<AppShell>final api = context.read<AuthProvider>().apiService;if (api == null) return;Widget? screen;+ if (api is BookOrbitApiService) {+ screen = switch (page) {+ 'users' => const BookOrbitUsersScreen(),+ 'libraries' => const BookOrbitLibrariesScreen(),+ 'email' => const BookOrbitEmailScreen(initialTab: BoEmailTab.servers),+ _ => const BookOrbitAdminScreen(),+ };+ await Navigator.push(context, MaterialPageRoute(builder: (_) => screen!));+ return;+ }switch (page) {case 'settings':screen = const AdminServerSettingsScreen();@@ -1428,12 +1448,8 @@ class _AppShellState extends State<AppShell>final l = AppLocalizations.of(context)!;final api = context.read<AuthProvider>().apiService;if (api == null) return;- final libs = context.read<LibraryProvider>().libraries;final ids = target == 'all'- ? [- for (final lib in libs)- if ((lib['id'] as String?)?.isNotEmpty == true) lib['id'] as String- ]+ ? [for (final lib in _scannableLibraries()) lib['id'] as String]: [target];if (ids.isEmpty) return;var ok = false;diff --git a/lib/screens/book_requests_screen.dart b/lib/screens/book_requests_screen.dartindex 72786f13..0e974bfa 100644--- a/lib/screens/book_requests_screen.dart+++ b/lib/screens/book_requests_screen.dart@@ -37,12 +37,37 @@ class BookRequestsScreen extends StatefulWidget {State<BookRequestsScreen> createState() => _BookRequestsScreenState();}-typedef _Library = ({int id, String name});+typedef BookRequestLibrary = ({int id, String name});++/// What a request sheet needs: who may ask, the libraries a request can land+/// in, and the server's default library for each kind.+typedef BookRequestSetup = ({+ BookRequestAccess access,+ List<BookRequestLibrary> libraries,+ Map<String, int> defaults,+});++Future<BookRequestSetup> loadBookRequestSetup(ApiService api) async {+ final results = await Future.wait([+ api.bookRequestAccess(),+ api.getLibraries(),+ api.bookRequestDefaultLibraries(),+ ]);+ return (+ access: results[0] as BookRequestAccess,+ libraries: [+ for (final lib in (results[1] as List<dynamic>).whereType<Map>())+ if (int.tryParse('${lib['id']}') != null)+ (id: int.parse('${lib['id']}'), name: '${lib['name'] ?? ''}'),+ ],+ defaults: results[2] as Map<String, int>,+ );+}class _BookRequestsScreenState extends State<BookRequestsScreen> with TickerProviderStateMixin {BookRequestAccess? _access;TabController? _tabs;- List<_Library> _libraries = const [];+ List<BookRequestLibrary> _libraries = const [];Map<String, int> _defaults = const {};final _mine = GlobalKey<_RequestListState>();final _all = GlobalKey<_RequestListState>();@@ -61,21 +86,13 @@ class _BookRequestsScreenState extends State<BookRequestsScreen> with TickerProvsetState(() => _access = BookRequestAccess.none);return;}- final results = await Future.wait([- api.bookRequestAccess(),- api.getLibraries(),- api.bookRequestDefaultLibraries(),- ]);+ final setup = await loadBookRequestSetup(api);if (!mounted) return;- final access = results[0] as BookRequestAccess;+ final access = setup.access;setState(() {_access = access;- _libraries = [- for (final lib in (results[1] as List<dynamic>).whereType<Map>())- if (int.tryParse('${lib['id']}') != null)- (id: int.parse('${lib['id']}'), name: '${lib['name'] ?? ''}'),- ];- _defaults = results[2] as Map<String, int>;+ _libraries = setup.libraries;+ _defaults = setup.defaults;if (access.canRequest) {_tabs = TabController(length: access.canManage ? 3 : 2,@@ -231,7 +248,7 @@ String _kindLabel(AppLocalizations l, String kind) => switch (kind) {Widget _libraryPicker({required BuildContext context,String? label,- required List<_Library> libraries,+ required List<BookRequestLibrary> libraries,required int? defaultId,required int? value,required bool allowNone,@@ -263,10 +280,107 @@ Widget _libraryPicker({);}+/// Confirms a request for one or more [kinds]: the library each lands in when+/// that's up to the user, and a note for whoever approves it. Null when+/// dismissed.+Future<({Map<String, int?> libraries, String note})?> showBookRequestSheet(+ BuildContext context, {+ required String title,+ List<String> authors = const [],+ String? coverUrl,+ required List<String> kinds,+ required BookRequestSetup setup,+}) {+ final l = AppLocalizations.of(context)!;+ final access = setup.access;+ // An approved request needs a library, so with nobody to approve and no+ // default the user picks one.+ bool mustPick(String kind, int? picked) => access.autoApprove && setup.defaults[kind] == null && picked == null;+ final showLibrary = access.autoApprove || setup.libraries.length > 1;+ final noteCtrl = TextEditingController();+ final libraries = <String, int?>{for (final k in kinds) k: null};+ final pair = kinds.length > 1;+ return showModalBottomSheet<({Map<String, int?> libraries, String note})>(+ context: context,+ isScrollControlled: true,+ useSafeArea: true,+ builder: (ctx) => StatefulBuilder(+ builder: (ctx, setSheet) {+ final cs = Theme.of(ctx).colorScheme;+ final tt = Theme.of(ctx).textTheme;+ return Padding(+ padding: EdgeInsets.fromLTRB(20, 16, 20, 16 + MediaQuery.of(ctx).viewInsets.bottom),+ child: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [+ _cover(ctx, coverUrl, width: 56),+ const SizedBox(width: 14),+ Expanded(+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text(title, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),+ if (authors.isNotEmpty)+ Text(authors.join(', '), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ const SizedBox(height: 6),+ _tag(_kindLabel(l, pair ? 'both' : kinds.single), cs.primary),+ ]),+ ),+ ]),+ const SizedBox(height: 18),+ if (showLibrary)+ for (final k in kinds) ...[+ _libraryPicker(+ context: ctx,+ label: !pair+ ? null+ : k == 'ebook'+ ? l.breqEbookLibrary+ : l.breqAudiobookLibrary,+ libraries: setup.libraries,+ defaultId: setup.defaults[k],+ value: libraries[k],+ allowNone: !access.autoApprove,+ onChanged: (v) => setSheet(() => libraries[k] = v),+ ),+ const SizedBox(height: 12),+ ],+ if (access.autoApprove)+ Padding(+ padding: const EdgeInsets.only(bottom: 12),+ child: Text(l.breqAutoApproved, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ )+ else ...[+ TextField(+ controller: noteCtrl,+ maxLength: 2000,+ minLines: 1,+ maxLines: 4,+ decoration: InputDecoration(+ labelText: l.breqNote,+ hintText: l.breqNoteHint,+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),+ ),+ ),+ const SizedBox(height: 4),+ ],+ SizedBox(+ width: double.infinity,+ child: FilledButton(+ onPressed: kinds.any((k) => mustPick(k, libraries[k]))+ ? null+ : () => Navigator.pop(ctx, (libraries: Map.of(libraries), note: noteCtrl.text)),+ child: Text(pair ? l.breqRequestBoth : l.breqRequest),+ ),+ ),+ ]),+ );+ },+ ),+ ).whenComplete(() => WidgetsBinding.instance.addPostFrameCallback((_) => noteCtrl.dispose()));+}+class _RequestSearch extends StatefulWidget {final ApiService api;final BookRequestAccess access;- final List<_Library> libraries;+ final List<BookRequestLibrary> libraries;final Map<String, int> defaults;final String initialQuery;final VoidCallback onRequested;@@ -510,92 +624,15 @@ class _RequestSearchState extends State<_RequestSearch> with AutomaticKeepAliveC}}- Future<({Map<String, int?> libraries, String note})?> _confirm(BookRequestWork work, List<String> kinds) {- final l = AppLocalizations.of(context)!;- final access = widget.access;- // An approved request needs a library, so with nobody to approve and no- // default the user picks one.- bool mustPick(String kind, int? picked) => access.autoApprove && widget.defaults[kind] == null && picked == null;- final showLibrary = access.autoApprove || widget.libraries.length > 1;- final noteCtrl = TextEditingController();- final libraries = <String, int?>{for (final k in kinds) k: null};- final pair = kinds.length > 1;- return showModalBottomSheet<({Map<String, int?> libraries, String note})>(- context: context,- isScrollControlled: true,- useSafeArea: true,- builder: (ctx) => StatefulBuilder(- builder: (ctx, setSheet) {- final cs = Theme.of(ctx).colorScheme;- final tt = Theme.of(ctx).textTheme;- return Padding(- padding: EdgeInsets.fromLTRB(20, 16, 20, 16 + MediaQuery.of(ctx).viewInsets.bottom),- child: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [- Row(crossAxisAlignment: CrossAxisAlignment.start, children: [- _cover(ctx, work.coverUrl, width: 56),- const SizedBox(width: 14),- Expanded(- child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text(work.title, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),- if (work.authors.isNotEmpty)- Text(work.authors.join(', '), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),- const SizedBox(height: 6),- _tag(_kindLabel(l, pair ? 'both' : kinds.single), cs.primary),- ]),- ),- ]),- const SizedBox(height: 18),- if (showLibrary)- for (final k in kinds) ...[- _libraryPicker(- context: ctx,- label: !pair- ? null- : k == 'ebook'- ? l.breqEbookLibrary- : l.breqAudiobookLibrary,- libraries: widget.libraries,- defaultId: widget.defaults[k],- value: libraries[k],- allowNone: !access.autoApprove,- onChanged: (v) => setSheet(() => libraries[k] = v),- ),- const SizedBox(height: 12),- ],- if (access.autoApprove)- Padding(- padding: const EdgeInsets.only(bottom: 12),- child: Text(l.breqAutoApproved, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),- )- else ...[- TextField(- controller: noteCtrl,- maxLength: 2000,- minLines: 1,- maxLines: 4,- decoration: InputDecoration(- labelText: l.breqNote,- hintText: l.breqNoteHint,- border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),- ),- ),- const SizedBox(height: 4),- ],- SizedBox(- width: double.infinity,- child: FilledButton(- onPressed: kinds.any((k) => mustPick(k, libraries[k]))- ? null- : () => Navigator.pop(ctx, (libraries: Map.of(libraries), note: noteCtrl.text)),- child: Text(pair ? l.breqRequestBoth : l.breqRequest),- ),- ),- ]),- );- },- ),- ).whenComplete(() => WidgetsBinding.instance.addPostFrameCallback((_) => noteCtrl.dispose()));- }+ Future<({Map<String, int?> libraries, String note})?> _confirm(BookRequestWork work, List<String> kinds) =>+ showBookRequestSheet(+ context,+ title: work.title,+ authors: work.authors,+ coverUrl: work.coverUrl,+ kinds: kinds,+ setup: (access: widget.access, libraries: widget.libraries, defaults: widget.defaults),+ );@overrideWidget build(BuildContext context) {@@ -802,7 +839,7 @@ class _RequestList extends StatefulWidget {final ApiService api;final BookRequestAccess access;final bool all;- final List<_Library> libraries;+ final List<BookRequestLibrary> libraries;final Map<String, int> defaults;final VoidCallback onChanged;diff --git a/lib/screens/bookorbit_admin_screen.dart b/lib/screens/bookorbit_admin_screen.dartindex dd344bd5..e09f6495 100644--- a/lib/screens/bookorbit_admin_screen.dart+++ b/lib/screens/bookorbit_admin_screen.dart@@ -7,10 +7,11 @@ import '../services/api_service.dart';import '../services/bookorbit_admin.dart';import '../widgets/absorb_page_header.dart';import '../widgets/overlay_toast.dart';+import 'bookorbit_email_screen.dart';import 'bookorbit_libraries_screen.dart';import 'bookorbit_users_screen.dart';-/// BookOrbit server administration: users and libraries.+/// BookOrbit server administration: users, libraries and mail servers.class BookOrbitAdminScreen extends StatefulWidget {const BookOrbitAdminScreen({super.key});@@ -21,6 +22,7 @@ class BookOrbitAdminScreen extends StatefulWidget {class _BookOrbitAdminScreenState extends State<BookOrbitAdminScreen> {int? _users;int? _libraries;+ int? _servers;@overridevoid initState() {@@ -42,6 +44,10 @@ class _BookOrbitAdminScreenState extends State<BookOrbitAdminScreen> {final libs = await api.adminLibraries();if (mounted) setState(() => _libraries = libs.length);}+ if (access.manageEmail) {+ final servers = await api.emailServers();+ if (mounted) setState(() => _servers = servers.length);+ }} on BookOrbitAdminError {// The counts are only a nicety on the tiles.}@@ -86,6 +92,13 @@ class _BookOrbitAdminScreenState extends State<BookOrbitAdminScreen> {subtitle: _libraries == null ? null : l.boAdminLibraryCount(_libraries!),onTap: () => _open(const BookOrbitLibrariesScreen()),),+ if (access?.manageEmail == true)+ _HubTile(+ icon: Icons.forward_to_inbox_rounded,+ title: l.boEmailTabServers,+ subtitle: _servers == null ? null : l.boAdminServerCount(_servers!),+ onTap: () => _open(const BookOrbitEmailScreen(initialTab: BoEmailTab.servers)),+ ),],),),diff --git a/lib/screens/bookorbit_email_editors.dart b/lib/screens/bookorbit_email_editors.dartnew file mode 100644index 00000000..48ece425--- /dev/null+++ b/lib/screens/bookorbit_email_editors.dart@@ -0,0 +1,1014 @@+import 'package:flutter/material.dart';+import 'package:flutter/services.dart';+import 'package:provider/provider.dart';++import '../l10n/app_localizations.dart';+import '../providers/auth_provider.dart';+import '../services/api_service.dart';+import '../services/bookorbit_email.dart';+import '../widgets/overlay_toast.dart';+import 'bookorbit_admin_screen.dart';+import 'bookorbit_email_screen.dart';++final _emailPattern = RegExp(r'^[^@\s]+@[^@\s]+\.[^@\s]+$');++/// A page that edits one thing. Saving or deleting pops it with true.+class _EditorPage extends StatelessWidget {+ final String title;+ final bool busy;+ final VoidCallback onSave;+ final List<Widget> children;++ const _EditorPage({required this.title, required this.busy, required this.onSave, required this.children});++ @override+ Widget build(BuildContext context) {+ final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;+ return Scaffold(+ backgroundColor: Theme.of(context).scaffoldBackgroundColor,+ body: SafeArea(+ child: Column(children: [+ Padding(+ padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),+ child: Row(children: [+ IconButton(+ icon: const Icon(Icons.arrow_back_rounded),+ onPressed: () => Navigator.pop(context, false),+ ),+ const SizedBox(width: 4),+ Expanded(+ child: Text(title,+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),+ ),+ FilledButton(onPressed: busy ? null : onSave, child: Text(l.save)),+ const SizedBox(width: 8),+ ]),+ ),+ if (busy) const LinearProgressIndicator(minHeight: 2) else const SizedBox(height: 2),+ Expanded(+ child: ListView(+ padding: const EdgeInsets.fromLTRB(16, 12, 16, 32),+ children: children,+ ),+ ),+ ]),+ ),+ );+ }+}++Future<bool> _confirmDelete(BuildContext context, String name, String body) async {+ final l = AppLocalizations.of(context)!;+ final ok = await showDialog<bool>(+ context: context,+ builder: (ctx) => AlertDialog(+ title: Text(l.boEmailDeleteTitle(name)),+ content: Text(body),+ actions: [+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(+ style: FilledButton.styleFrom(backgroundColor: Theme.of(ctx).colorScheme.error),+ onPressed: () => Navigator.pop(ctx, true),+ child: Text(l.delete),+ ),+ ],+ ),+ );+ return ok == true;+}++Widget _hint(BuildContext context, String text, {Color? color}) => Padding(+ padding: const EdgeInsets.fromLTRB(4, 4, 4, 4),+ child: Text(text,+ style: Theme.of(context).textTheme.bodySmall?.copyWith(+ color: color ?? Theme.of(context).colorScheme.onSurfaceVariant,+ )),+ );++Widget _label(BuildContext context, String text) => Padding(+ padding: const EdgeInsets.fromLTRB(4, 8, 4, 6),+ child: Text(text,+ style: Theme.of(context).textTheme.labelLarge?.copyWith(+ color: Theme.of(context).colorScheme.onSurfaceVariant,+ )),+ );++Widget _dangerTile(BuildContext context, String label, VoidCallback onTap) {+ final cs = Theme.of(context).colorScheme;+ return ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: Icon(Icons.delete_outline_rounded, color: cs.error),+ title: Text(label, style: TextStyle(color: cs.error)),+ onTap: onTap,+ );+}++Widget _templatePicker(+ BuildContext context, {+ required List<BoEmailTemplate> templates,+ required int? value,+ required ValueChanged<int?> onChanged,+}) {+ final l = AppLocalizations.of(context)!;+ final known = templates.any((t) => t.id == value);+ return DropdownButtonFormField<int?>(+ initialValue: known ? value : null,+ isExpanded: true,+ decoration: InputDecoration(labelText: l.boEmailTemplate),+ items: [+ DropdownMenuItem<int?>(value: null, child: Text(l.boEmailTemplateYourDefault)),+ for (final t in templates) DropdownMenuItem<int?>(value: t.id, child: Text(t.name, overflow: TextOverflow.ellipsis)),+ ],+ onChanged: onChanged,+ );+}++/// One device or inbox books are sent to.+class BoEmailDeviceScreen extends StatefulWidget {+ final BoEmailDevice? device;+ final BoEmailSetup setup;+ const BoEmailDeviceScreen({super.key, this.device, required this.setup});++ @override+ State<BoEmailDeviceScreen> createState() => _BoEmailDeviceScreenState();+}++class _BoEmailDeviceScreenState extends State<BoEmailDeviceScreen> {+ late final _name = TextEditingController(text: widget.device?.name ?? '');+ late final _email = TextEditingController(text: widget.device?.email ?? '');+ late String? _type = widget.device?.deviceType;+ late String? _format = widget.device?.preferredFormat;+ late String? _readAlong = widget.device?.readAlong;+ late int? _template = widget.device?.templateId;+ late bool _default = widget.device != null && widget.setup.defaults.deviceId == widget.device!.id;+ bool _busy = false;+ bool _testing = false;++ BoEmailDevice? get _d => widget.device;++ @override+ void dispose() {+ _name.dispose();+ _email.dispose();+ super.dispose();+ }++ void _setType(String? type) {+ setState(() {+ _type = type;+ if (type == 'kindle') {+ if (_format != null && !boKindleAccepts(_format!)) _format = null;+ if (_readAlong == 'original') _readAlong = 'audioless_epub';+ }+ });+ }++ Future<void> _save() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ if (api == null) return;+ final name = _name.text.trim();+ final email = _email.text.trim();+ if (name.isEmpty || email.isEmpty) {+ showOverlayToast(context, l.boEmailDeviceRequired, icon: Icons.error_outline_rounded);+ return;+ }+ if (!_emailPattern.hasMatch(email)) {+ showOverlayToast(context, l.boUserEmailInvalid, icon: Icons.error_outline_rounded);+ return;+ }+ setState(() => _busy = true);+ try {+ final saved = await api.emailSaveDevice(_d?.id, {+ 'name': name,+ 'email': email,+ 'deviceType': _type,+ 'preferredFormat': _format,+ 'defaultTemplateId': _template,+ if (widget.setup.readAlongChoice) 'readAloudDelivery': _readAlong,+ });+ final wasDefault = _d != null && widget.setup.defaults.deviceId == _d!.id;+ if (_default != wasDefault) await api.emailSetDefaults(deviceId: _default ? saved.id : null);+ if (!mounted) return;+ showOverlayToast(context, l.boAdminSaved, icon: Icons.check_circle_outline_rounded);+ Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _busy = false);+ }+ }++ Future<void> _test() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ final d = _d;+ if (api == null || d == null) return;+ setState(() => _testing = true);+ try {+ final r = await api.emailTestDevice(d.id, subject: l.boEmailTestSubject, text: l.boEmailTestBody(d.name));+ if (!mounted) return;+ showOverlayToast(+ context,+ r.ok ? l.boEmailTestSent(d.name) : l.boEmailTestFailed(r.error ?? ''),+ icon: r.ok ? Icons.check_circle_outline_rounded : Icons.error_outline_rounded,+ );+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _testing = false);+ }+ }++ Future<void> _delete() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ final d = _d;+ if (api == null || d == null) return;+ if (!await _confirmDelete(context, d.name, l.boEmailDeleteDeviceBody) || !mounted) return;+ try {+ await api.emailDeleteDevice(d.id);+ if (mounted) Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ }+ }++ @override+ Widget build(BuildContext context) {+ final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;+ final kindle = _type == 'kindle';+ final sender = widget.setup.defaultServer?.sender;+ final readAlongHint = switch (_readAlong) {+ 'audioless_epub' => l.boEmailReadAlongTextHint,+ 'original' => l.boEmailReadAlongOriginalHint,+ _ => l.boEmailReadAlongAutoHint,+ };++ return _EditorPage(+ title: _d?.name ?? l.boEmailNewDevice,+ busy: _busy,+ onSave: _save,+ children: [+ BoEmailSection(children: [+ TextField(+ controller: _name,+ textCapitalization: TextCapitalization.words,+ decoration: InputDecoration(labelText: l.boEmailName, hintText: l.boEmailDeviceNameHint),+ ),+ const SizedBox(height: 8),+ TextField(+ controller: _email,+ keyboardType: TextInputType.emailAddress,+ autocorrect: false,+ decoration: InputDecoration(labelText: l.boEmailDeviceAddress),+ ),+ const SizedBox(height: 8),+ _label(context, l.boEmailDeviceType),+ Wrap(spacing: 8, runSpacing: 4, children: [+ for (final t in [null, ...boEmailDeviceTypes])+ ChoiceChip(+ avatar: Icon(boDeviceIcon(t), size: 18),+ label: Text(boDeviceLabel(l, t)),+ selected: _type == t,+ onSelected: (_) => _setType(t),+ ),+ ]),+ if (kindle) ...[+ _hint(context, l.boEmailKindleHint),+ _hint(+ context,+ sender == null ? l.boEmailKindleApproveNoServer : l.boEmailKindleApprove(sender),+ color: cs.primary,+ ),+ ],+ ]),+ BoEmailSection(children: [+ _label(context, l.boEmailFormat),+ Wrap(spacing: 8, runSpacing: 4, children: [+ ChoiceChip(+ label: Text(l.boEmailFormatPrimary),+ selected: _format == null,+ onSelected: (_) => setState(() => _format = null),+ ),+ for (final f in boFormatsFor(_type))+ ChoiceChip(+ label: Text(f.toUpperCase()),+ selected: _format == f,+ onSelected: (_) => setState(() => _format = f),+ ),+ ]),+ _hint(context, l.boEmailFormatHint),+ if (widget.setup.readAlongChoice) ...[+ _label(context, l.boEmailReadAlong),+ Wrap(spacing: 8, runSpacing: 4, children: [+ ChoiceChip(+ label: Text(l.boEmailReadAlongAuto),+ selected: _readAlong == null,+ onSelected: (_) => setState(() => _readAlong = null),+ ),+ ChoiceChip(+ label: Text(l.boEmailReadAlongText),+ selected: _readAlong == 'audioless_epub',+ onSelected: (_) => setState(() => _readAlong = 'audioless_epub'),+ ),+ if (!kindle)+ ChoiceChip(+ label: Text(l.boEmailReadAlongOriginal),+ selected: _readAlong == 'original',+ onSelected: (_) => setState(() => _readAlong = 'original'),+ ),+ ]),+ _hint(context, readAlongHint),+ ],+ const SizedBox(height: 8),+ _templatePicker(+ context,+ templates: widget.setup.templates,+ value: _template,+ onChanged: (v) => setState(() => _template = v),+ ),+ if (kindle) _hint(context, l.boEmailTemplateKindleHint),+ ]),+ BoEmailSection(children: [+ SwitchListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ title: Text(l.boEmailDefaultDevice),+ subtitle: Text(l.boEmailDefaultDeviceHint),+ value: _default,+ onChanged: (v) => setState(() => _default = v),+ ),+ if (_d != null) ...[+ ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: _testing+ ? const SizedBox(width: 22, height: 22, child: CircularProgressIndicator(strokeWidth: 2))+ : const Icon(Icons.outgoing_mail),+ title: Text(l.boEmailSendTest),+ onTap: _testing ? null : _test,+ ),+ _dangerTile(context, l.boEmailDeleteDevice, _delete),+ ],+ ]),+ ],+ );+ }+}++/// Several devices that get a book in one send.+class BoEmailGroupScreen extends StatefulWidget {+ final BoEmailGroup? group;+ final BoEmailSetup setup;+ const BoEmailGroupScreen({super.key, this.group, required this.setup});++ @override+ State<BoEmailGroupScreen> createState() => _BoEmailGroupScreenState();+}++class _BoEmailGroupScreenState extends State<BoEmailGroupScreen> {+ late final _name = TextEditingController(text: widget.group?.name ?? '');+ late int? _template = widget.group?.templateId;+ late final Set<int> _members = {...?widget.group?.memberIds};+ bool _busy = false;++ @override+ void dispose() {+ _name.dispose();+ super.dispose();+ }++ Future<void> _save() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ if (api == null) return;+ final name = _name.text.trim();+ if (name.isEmpty) {+ showOverlayToast(context, l.boEmailGroupRequired, icon: Icons.error_outline_rounded);+ return;+ }+ setState(() => _busy = true);+ try {+ final g = widget.group;+ final int id;+ if (g == null) {+ id = await api.emailCreateGroup(name, templateId: _template);+ } else {+ await api.emailUpdateGroup(g.id, name: name, templateId: _template);+ id = g.id;+ }+ final before = g?.memberIds ?? const <int>{};+ for (final add in _members.difference(before)) {+ await api.emailAddToGroup(id, add);+ }+ for (final drop in before.difference(_members)) {+ await api.emailRemoveFromGroup(id, drop);+ }+ if (!mounted) return;+ showOverlayToast(context, l.boAdminSaved, icon: Icons.check_circle_outline_rounded);+ Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _busy = false);+ }+ }++ Future<void> _delete() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ final g = widget.group;+ if (api == null || g == null) return;+ if (!await _confirmDelete(context, g.name, l.boEmailDeleteGroupBody) || !mounted) return;+ try {+ await api.emailDeleteGroup(g.id);+ if (mounted) Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ }+ }++ @override+ Widget build(BuildContext context) {+ final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;+ final devices = widget.setup.devices;+ return _EditorPage(+ title: widget.group?.name ?? l.boEmailNewGroup,+ busy: _busy,+ onSave: _save,+ children: [+ BoEmailSection(children: [+ TextField(+ controller: _name,+ textCapitalization: TextCapitalization.sentences,+ decoration: InputDecoration(labelText: l.boEmailName, hintText: l.boEmailGroupNameHint),+ ),+ const SizedBox(height: 8),+ _templatePicker(+ context,+ templates: widget.setup.templates,+ value: _template,+ onChanged: (v) => setState(() => _template = v),+ ),+ ]),+ BoEmailSection(title: l.boEmailGroupMembers, children: [+ if (devices.isEmpty) BoEmailEmpty(l.boEmailGroupMembersEmpty),+ for (final d in devices)+ CheckboxListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ secondary: Icon(boDeviceIcon(d.deviceType), color: cs.primary),+ title: Text(d.name),+ subtitle: Text(d.email),+ value: _members.contains(d.id),+ onChanged: (v) => setState(() => v == true ? _members.add(d.id) : _members.remove(d.id)),+ ),+ ]),+ if (widget.group != null) BoEmailSection(children: [_dangerTile(context, l.boEmailDeleteGroup, _delete)]),+ ],+ );+ }+}++/// An SMTP server books go out through. Only the person who added it can+/// change it.+class BoEmailServerScreen extends StatefulWidget {+ final BoMailServer? server;+ final BoEmailSetup setup;+ const BoEmailServerScreen({super.key, this.server, required this.setup});++ @override+ State<BoEmailServerScreen> createState() => _BoEmailServerScreenState();+}++class _BoEmailServerScreenState extends State<BoEmailServerScreen> {+ late final _name = TextEditingController(text: widget.server?.name ?? '');+ late final _host = TextEditingController(text: widget.server?.host ?? '');+ late final _port = TextEditingController(text: '${widget.server?.port ?? 587}');+ late final _username = TextEditingController(text: widget.server?.username ?? '');+ final _password = TextEditingController();+ late final _fromName = TextEditingController(text: widget.server?.fromName ?? '');+ late final _fromAddress = TextEditingController(text: widget.server?.fromAddress ?? '');+ late BoMailSecurity _security = widget.server?.security ?? BoMailSecurity.startTls;+ late bool _auth = widget.server?.auth ?? true;+ late bool _shared = widget.server?.isShared ?? false;+ late bool _system = widget.server?.isSystem ?? false;+ late bool _verifyTls = widget.server?.verifyTls ?? true;+ late bool _default = widget.server != null && widget.setup.defaults.serverId == widget.server!.id;+ bool _showPassword = false;+ bool _busy = false;+ bool _testing = false;+ bool _dirty = false;+ ({bool ok, String? error})? _testResult;++ BoMailServer? get _s => widget.server;++ @override+ void initState() {+ super.initState();+ for (final c in [_name, _host, _port, _username, _password, _fromName, _fromAddress]) {+ c.addListener(_touch);+ }+ }++ @override+ void dispose() {+ for (final c in [_name, _host, _port, _username, _password, _fromName, _fromAddress]) {+ c.dispose();+ }+ super.dispose();+ }++ void _touch() {+ if (!_dirty) setState(() => _dirty = true);+ }++ void _change(VoidCallback f) => setState(() {+ f();+ _dirty = true;+ });++ void _applyPreset(BoMailPreset? p) {+ _change(() {+ if (p == null) {+ if (BoMailPreset.forHost(_host.text) != null) _host.text = '';+ return;+ }+ final previous = BoMailPreset.forHost(_host.text);+ if (_name.text.trim().isEmpty || _name.text.trim() == previous?.name) _name.text = p.name;+ _host.text = p.host;+ _port.text = '${p.port}';+ _security = p.security;+ _auth = true;+ });+ }++ void _setSecurity(BoMailSecurity s) => _change(() {+ _security = s;+ if (s == BoMailSecurity.ssl && _port.text.trim() == '587') _port.text = '465';+ if (s == BoMailSecurity.startTls && _port.text.trim() == '465') _port.text = '587';+ });++ Future<void> _save() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ final superuser = context.read<AuthProvider>().bookOrbitAdmin?.isSuperuser == true;+ if (api == null) return;+ final name = _name.text.trim();+ final host = _host.text.trim();+ final port = int.tryParse(_port.text.trim());+ if (name.isEmpty || host.isEmpty || port == null || port < 1 || port > 65535) {+ showOverlayToast(context, l.boEmailServerRequired, icon: Icons.error_outline_rounded);+ return;+ }+ setState(() => _busy = true);+ try {+ var saved = await api.emailSaveServer(_s?.id, {+ 'name': name,+ 'host': host,+ 'port': port,+ 'username': _username.text.trim(),+ if (_password.text.isNotEmpty) 'password': _password.text,+ 'fromName': _fromName.text.trim(),+ 'fromAddress': _fromAddress.text.trim(),+ 'auth': _auth,+ 'ssl': _security == BoMailSecurity.ssl,+ 'startTls': _security == BoMailSecurity.startTls,+ 'tlsRejectUnauthorized': _verifyTls,+ });+ if (saved.isShared != _shared) saved = await api.emailToggleShared(saved.id);+ if (superuser && saved.isSystem != _system) {+ if (_system) {+ await api.emailSetSystemServer(saved.id);+ } else {+ await api.emailClearSystemServer();+ }+ }+ final wasDefault = _s != null && widget.setup.defaults.serverId == _s!.id;+ if (_default != wasDefault && context.read<AuthProvider>().bookOrbitAdmin?.emailSend == true) {+ await api.emailSetDefaults(serverId: _default ? saved.id : null);+ }+ if (!mounted) return;+ showOverlayToast(context, l.boAdminSaved, icon: Icons.check_circle_outline_rounded);+ Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _busy = false);+ }+ }++ Future<void> _test() async {+ final api = boAdminApi(context);+ final s = _s;+ if (api == null || s == null) return;+ setState(() {+ _testing = true;+ _testResult = null;+ });+ try {+ final r = await api.emailTestServer(s.id);+ if (mounted) setState(() => _testResult = r);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _testing = false);+ }+ }++ Future<void> _delete() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ final s = _s;+ if (api == null || s == null) return;+ if (s.isSystem) {+ showOverlayToast(context, l.boEmailServerSystemFirst, icon: Icons.info_outline_rounded);+ return;+ }+ if (!await _confirmDelete(context, s.name, l.boEmailServerDeleteBody) || !mounted) return;+ try {+ await api.emailDeleteServer(s.id);+ if (mounted) Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ }+ }++ @override+ Widget build(BuildContext context) {+ final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;+ final access = context.watch<AuthProvider>().bookOrbitAdmin;+ final preset = BoMailPreset.forHost(_host.text);+ final appPassword = preset?.appPassword == true;++ return _EditorPage(+ title: _s?.name ?? l.boEmailNewServer,+ busy: _busy,+ onSave: _save,+ children: [+ BoEmailSection(children: [+ Wrap(spacing: 8, runSpacing: 4, children: [+ for (final p in BoMailPreset.all)+ ChoiceChip(label: Text(p.name), selected: preset == p, onSelected: (_) => _applyPreset(p)),+ ChoiceChip(+ label: Text(l.boEmailServerPresetOther),+ selected: preset == null,+ onSelected: (_) => _applyPreset(null),+ ),+ ]),+ _hint(context, l.boEmailServerPresetHint),+ const SizedBox(height: 4),+ TextField(controller: _name, decoration: InputDecoration(labelText: l.boEmailName)),+ const SizedBox(height: 8),+ Row(children: [+ Expanded(+ flex: 3,+ child: TextField(+ controller: _host,+ keyboardType: TextInputType.url,+ autocorrect: false,+ decoration: InputDecoration(labelText: l.boEmailServerHost, hintText: 'smtp.example.com'),+ ),+ ),+ const SizedBox(width: 12),+ Expanded(+ child: TextField(+ controller: _port,+ keyboardType: TextInputType.number,+ inputFormatters: [FilteringTextInputFormatter.digitsOnly],+ decoration: InputDecoration(labelText: l.boEmailServerPort),+ ),+ ),+ ]),+ _label(context, l.boEmailServerSecurity),+ SegmentedButton<BoMailSecurity>(+ showSelectedIcon: false,+ segments: [+ const ButtonSegment(value: BoMailSecurity.startTls, label: Text('STARTTLS')),+ const ButtonSegment(value: BoMailSecurity.ssl, label: Text('SSL/TLS')),+ ButtonSegment(value: BoMailSecurity.none, label: Text(l.boEmailServerSecurityNone)),+ ],+ selected: {_security},+ onSelectionChanged: (v) => _setSecurity(v.first),+ ),+ _hint(context, l.boEmailServerSecurityHint),+ ]),+ BoEmailSection(children: [+ SwitchListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ title: Text(l.boEmailServerNeedsPassword),+ value: _auth,+ onChanged: (v) => _change(() => _auth = v),+ ),+ if (_auth) ...[+ TextField(+ controller: _username,+ autocorrect: false,+ keyboardType: TextInputType.emailAddress,+ decoration: InputDecoration(labelText: l.boEmailServerUsername),+ ),+ const SizedBox(height: 8),+ TextField(+ controller: _password,+ obscureText: !_showPassword,+ autocorrect: false,+ enableSuggestions: false,+ decoration: InputDecoration(+ labelText: appPassword ? l.boEmailServerAppPassword : l.boEmailServerPassword,+ hintText: _s?.hasPassword == true ? l.boEmailServerPasswordKeep : null,+ floatingLabelBehavior: _s?.hasPassword == true ? FloatingLabelBehavior.always : null,+ suffixIcon: IconButton(+ icon: Icon(_showPassword ? Icons.visibility_off_rounded : Icons.visibility_rounded),+ onPressed: () => setState(() => _showPassword = !_showPassword),+ ),+ ),+ ),+ if (appPassword) _hint(context, l.boEmailServerAppPasswordHint),+ ],+ ]),+ BoEmailSection(children: [+ TextField(controller: _fromName, decoration: InputDecoration(labelText: l.boEmailServerFromName)),+ const SizedBox(height: 8),+ TextField(+ controller: _fromAddress,+ keyboardType: TextInputType.emailAddress,+ autocorrect: false,+ decoration: InputDecoration(labelText: l.boEmailServerFromAddress),+ ),+ _hint(context, l.boEmailServerFromAddressHint),+ ]),+ BoEmailSection(children: [+ SwitchListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ title: Text(l.boEmailServerShare),+ subtitle: Text(l.boEmailServerShareHint),+ value: _shared,+ onChanged: (v) => _change(() => _shared = v),+ ),+ if (access?.isSuperuser == true)+ SwitchListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ title: Text(l.boEmailServerSystem),+ subtitle: Text(l.boEmailServerSystemHint),+ value: _system,+ onChanged: (v) => _change(() => _system = v),+ ),+ if (access?.emailSend == true)+ SwitchListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ title: Text(l.boEmailBadgeDefault),+ value: _default,+ onChanged: (v) => _change(() => _default = v),+ ),+ SwitchListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ title: Text(l.boEmailServerVerifyTls),+ subtitle: Text(l.boEmailServerVerifyTlsHint),+ value: _verifyTls,+ onChanged: (v) => _change(() => _verifyTls = v),+ ),+ ]),+ if (_s != null)+ BoEmailSection(children: [+ ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: _testing+ ? const SizedBox(width: 22, height: 22, child: CircularProgressIndicator(strokeWidth: 2))+ : const Icon(Icons.wifi_tethering_rounded),+ title: Text(l.boEmailServerTest),+ subtitle: _dirty+ ? Text(l.boEmailServerTestSaveFirst)+ : _testResult == null+ ? null+ : Text(+ _testResult!.ok ? l.boEmailServerTestOk : l.boEmailServerTestFailed(_testResult!.error ?? ''),+ style: TextStyle(color: _testResult!.ok ? Colors.green : cs.error),+ ),+ onTap: _testing || _dirty ? null : _test,+ ),+ _dangerTile(context, l.boEmailServerDelete, _delete),+ ]),+ ],+ );+ }+}++/// The subject and message that go with each book. Built-in templates are+/// for a superuser to change.+class BoEmailTemplateScreen extends StatefulWidget {+ final BoEmailTemplate? template;+ final BoEmailSetup setup;+ const BoEmailTemplateScreen({super.key, this.template, required this.setup});++ @override+ State<BoEmailTemplateScreen> createState() => _BoEmailTemplateScreenState();+}++class _BoEmailTemplateScreenState extends State<BoEmailTemplateScreen> {+ late final _name = TextEditingController(text: widget.template?.name ?? '');+ late final _subject = TextEditingController(text: widget.template?.subject ?? '');+ late final _body = TextEditingController(text: widget.template?.body ?? '');+ final _subjectFocus = FocusNode();+ final _bodyFocus = FocusNode();+ late TextEditingController _target = _body;+ late bool _default = widget.template != null && widget.setup.defaults.templateId == widget.template!.id;+ bool _busy = false;+ bool _previewing = false;++ BoEmailTemplate? get _t => widget.template;++ @override+ void initState() {+ super.initState();+ _subjectFocus.addListener(() {+ if (_subjectFocus.hasFocus) _target = _subject;+ });+ _bodyFocus.addListener(() {+ if (_bodyFocus.hasFocus) _target = _body;+ });+ }++ @override+ void dispose() {+ _name.dispose();+ _subject.dispose();+ _body.dispose();+ _subjectFocus.dispose();+ _bodyFocus.dispose();+ super.dispose();+ }++ bool get _editable {+ final t = _t;+ if (t == null) return true;+ final access = context.read<AuthProvider>().bookOrbitAdmin;+ if (t.isSystem) return access?.isSuperuser == true;+ return t.ownerId != null && '${t.ownerId}' == access?.userId;+ }++ void _insert(String key) {+ final c = _target;+ final token = '{{$key}}';+ final sel = c.selection;+ final text = c.text;+ final start = sel.isValid ? sel.start : text.length;+ final end = sel.isValid ? sel.end : text.length;+ c.value = TextEditingValue(+ text: text.replaceRange(start, end, token),+ selection: TextSelection.collapsed(offset: start + token.length),+ );+ }++ Future<void> _save() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ if (api == null) return;+ final name = _name.text.trim();+ if (name.isEmpty || _subject.text.trim().isEmpty) {+ showOverlayToast(context, l.boEmailTemplateRequired, icon: Icons.error_outline_rounded);+ return;+ }+ setState(() => _busy = true);+ try {+ var id = _t?.id;+ if (_editable) {+ id = (await api.emailSaveTemplate(_t?.id, name: name, subject: _subject.text, body: _body.text)).id;+ }+ final wasDefault = _t != null && widget.setup.defaults.templateId == _t!.id;+ if (_default != wasDefault && id != null) await api.emailSetDefaults(templateId: _default ? id : null);+ if (!mounted) return;+ showOverlayToast(context, l.boAdminSaved, icon: Icons.check_circle_outline_rounded);+ Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _busy = false);+ }+ }++ Future<void> _preview() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ if (api == null) return;+ setState(() => _previewing = true);+ try {+ final recent = await api.emailHistory(size: 10);+ final bookId = recent.where((e) => e.bookId != null).firstOrNull?.bookId;+ if (!mounted) return;+ if (bookId == null) {+ showOverlayToast(context, l.boEmailTemplatePreviewNone, icon: Icons.info_outline_rounded);+ return;+ }+ final p = await api.emailPreviewTemplate(subject: _subject.text, body: _body.text, bookId: bookId);+ if (!mounted) return;+ await showDialog<void>(+ context: context,+ builder: (ctx) => AlertDialog(+ title: Text(p.subject),+ content: SingleChildScrollView(+ child: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [+ SelectableText(p.body),+ if (p.attachment != null) ...[+ const SizedBox(height: 12),+ Text(l.boEmailTemplateAttached(p.attachment!),+ style: Theme.of(ctx).textTheme.bodySmall?.copyWith(color: Theme.of(ctx).colorScheme.onSurfaceVariant)),+ ],+ ]),+ ),+ actions: [FilledButton(onPressed: () => Navigator.pop(ctx), child: Text(l.done))],+ ),+ );+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _previewing = false);+ }+ }++ Future<void> _delete() async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ final t = _t;+ if (api == null || t == null) return;+ if (!await _confirmDelete(context, t.name, l.boEmailTemplateDeleteBody) || !mounted) return;+ try {+ await api.emailDeleteTemplate(t.id);+ if (mounted) Navigator.pop(context, true);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ }+ }++ @override+ Widget build(BuildContext context) {+ final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;+ final editable = _editable;+ final groups = {+ l.boEmailVarBook: boTemplateVariables['book']!,+ l.boEmailVarFile: boTemplateVariables['file']!,+ l.boEmailVarOther: boTemplateVariables['other']!,+ };++ return _EditorPage(+ title: _t?.name ?? l.boEmailNewTemplate,+ busy: _busy,+ onSave: _save,+ children: [+ BoEmailSection(children: [+ if (_t?.isSystem == true && !editable) _hint(context, l.boEmailTemplateBuiltIn, color: cs.primary),+ TextField(controller: _name, enabled: editable, decoration: InputDecoration(labelText: l.boEmailName)),+ const SizedBox(height: 8),+ TextField(+ controller: _subject,+ focusNode: _subjectFocus,+ enabled: editable,+ decoration: InputDecoration(labelText: l.boEmailTemplateSubject),+ ),+ const SizedBox(height: 8),+ TextField(+ controller: _body,+ focusNode: _bodyFocus,+ enabled: editable,+ minLines: 6,+ maxLines: 16,+ keyboardType: TextInputType.multiline,+ decoration: InputDecoration(labelText: l.boEmailTemplateMessage, alignLabelWithHint: true),+ ),+ _hint(context, l.boEmailTemplateKindleNote),+ ]),+ if (editable)+ BoEmailSection(title: l.boEmailTemplateInsert, hint: l.boEmailTemplateInsertHint, children: [+ for (final g in groups.entries) ...[+ _label(context, g.key),+ Wrap(spacing: 6, runSpacing: 4, children: [+ for (final v in g.value)+ ActionChip(label: Text(v), visualDensity: VisualDensity.compact, onPressed: () => _insert(v)),+ ]),+ ],+ ]),+ BoEmailSection(children: [+ ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: _previewing+ ? const SizedBox(width: 22, height: 22, child: CircularProgressIndicator(strokeWidth: 2))+ : const Icon(Icons.preview_rounded),+ title: Text(l.boEmailTemplatePreview),+ onTap: _previewing ? null : _preview,+ ),+ SwitchListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ title: Text(l.boEmailBadgeDefault),+ value: _default,+ onChanged: (v) => setState(() => _default = v),+ ),+ if (_t != null && !_t!.isSystem && editable) _dangerTile(context, l.boEmailTemplateDelete, _delete),+ ]),+ ],+ );+ }+}diff --git a/lib/screens/bookorbit_email_screen.dart b/lib/screens/bookorbit_email_screen.dartnew file mode 100644index 00000000..f7a3e695--- /dev/null+++ b/lib/screens/bookorbit_email_screen.dart@@ -0,0 +1,650 @@+import 'package:flutter/material.dart';+import 'package:provider/provider.dart';++import '../l10n/app_localizations.dart';+import '../providers/auth_provider.dart';+import '../services/api_service.dart';+import '../services/bookorbit_admin.dart';+import '../services/bookorbit_email.dart';+import '../utils/file_size.dart';+import '../widgets/absorb_page_header.dart';+import '../widgets/overlay_toast.dart';+import 'bookorbit_admin_screen.dart';+import 'bookorbit_email_editors.dart';+import 'server_notifications_screen.dart';++enum BoEmailTab { devices, servers, templates, history }++/// What a BookOrbit user has set up for sending books by email.+class BoEmailSetup {+ final List<BoMailServer> servers;+ final List<BoEmailDevice> devices;+ final List<BoEmailGroup> groups;+ final List<BoEmailTemplate> templates;+ final BoEmailDefaults defaults;+ final bool readAlongChoice;++ const BoEmailSetup({+ this.servers = const [],+ this.devices = const [],+ this.groups = const [],+ this.templates = const [],+ this.defaults = const BoEmailDefaults(),+ this.readAlongChoice = false,+ });++ /// Someone who only manages mail servers can't read the rest.+ static Future<BoEmailSetup> load(BookOrbitApiService api, {required bool canSend}) async {+ if (!canSend) return BoEmailSetup(servers: await api.emailServers());+ final r = await Future.wait<Object>([+ api.emailServers(),+ api.emailDevices(),+ api.emailGroups(),+ api.emailTemplates(),+ api.emailDefaults(),+ api.emailReadAlongChoice(),+ ]);+ return BoEmailSetup(+ servers: r[0] as List<BoMailServer>,+ devices: r[1] as List<BoEmailDevice>,+ groups: r[2] as List<BoEmailGroup>,+ templates: r[3] as List<BoEmailTemplate>,+ defaults: r[4] as BoEmailDefaults,+ readAlongChoice: r[5] as bool,+ );+ }++ /// The server a send goes through when none is picked.+ BoMailServer? get defaultServer {+ for (final s in servers) {+ if (s.id == defaults.serverId) return s;+ }+ for (final s in servers) {+ if (s.isShared && s.isDefault) return s;+ }+ return servers.isEmpty ? null : servers.first;+ }++ BoEmailTemplate? get defaultTemplate {+ for (final t in templates) {+ if (t.id == defaults.templateId) return t;+ }+ for (final t in templates) {+ if (t.isSystem) return t;+ }+ return templates.isEmpty ? null : templates.first;+ }+}++IconData boDeviceIcon(String? deviceType) => switch (deviceType) {+ 'kindle' || 'kobo' => Icons.tablet_android_rounded,+ 'other' => Icons.chrome_reader_mode_rounded,+ _ => Icons.person_rounded,+ };++String boDeviceLabel(AppLocalizations l, String? deviceType) => switch (deviceType) {+ 'kindle' => l.boEmailDeviceKindle,+ 'kobo' => l.boEmailDeviceKobo,+ 'other' => l.boEmailDeviceOther,+ _ => l.boEmailDeviceNone,+ };++/// Shows why an email request failed, naming the refusals BookOrbit only gives+/// a code for.+void showBoEmailError(BuildContext context, Object error) {+ if (!context.mounted) return;+ final l = AppLocalizations.of(context)!;+ final code = error is BookOrbitAdminError ? error.code : null;+ final message = switch (code) {+ 'KINDLE_ORIGINAL_UNAVAILABLE' => l.boEmailKindleOriginal,+ 'DELIVERY_ARTIFACT_UNAVAILABLE' || 'DELIVERY_PREPARATION_FAILED' => l.boEmailNoCopy,+ _ => null,+ };+ if (message == null) {+ showBoAdminError(context, error);+ } else {+ showOverlayToast(context, message, icon: Icons.error_outline_rounded);+ }+}++/// Sending books by email on BookOrbit: the devices books go to, the mail+/// servers they go through, the message that goes with them and what was sent.+class BookOrbitEmailScreen extends StatefulWidget {+ final BoEmailTab? initialTab;+ const BookOrbitEmailScreen({super.key, this.initialTab});++ @override+ State<BookOrbitEmailScreen> createState() => _BookOrbitEmailScreenState();+}++class _BookOrbitEmailScreenState extends State<BookOrbitEmailScreen> with SingleTickerProviderStateMixin {+ late final List<BoEmailTab> _tabs;+ late final TabController _tabController;+ BoEmailSetup _setup = const BoEmailSetup();+ bool _loading = true;++ List<BoEmailSend> _history = const [];+ bool _historyLoaded = false;+ bool _historyLoading = false;+ bool _historyMore = false;+ int _historyPage = 0;+ String? _historyStatus;+ bool _everyone = false;++ static const _pageSize = 30;++ BookOrbitAdminAccess? get _access => context.read<AuthProvider>().bookOrbitAdmin;++ @override+ void initState() {+ super.initState();+ _tabs = _access?.emailSend == true ? BoEmailTab.values : const [BoEmailTab.servers];+ final initial = _tabs.indexOf(widget.initialTab ?? _tabs.first);+ _tabController = TabController(length: _tabs.length, vsync: this, initialIndex: initial < 0 ? 0 : initial);+ _tabController.addListener(_tabChanged);+ _load();+ WidgetsBinding.instance.addPostFrameCallback((_) {+ if (mounted) _tabChanged();+ });+ }++ @override+ void dispose() {+ _tabController.dispose();+ super.dispose();+ }++ void _tabChanged() {+ if (_tabs[_tabController.index] == BoEmailTab.history && !_historyLoaded && !_historyLoading) {+ _loadHistory(reset: true);+ }+ }++ Future<void> _load() async {+ final api = boAdminApi(context);+ final access = _access;+ if (api == null || access == null) return;+ try {+ final setup = await BoEmailSetup.load(api, canSend: access.emailSend);+ if (mounted) setState(() => _setup = setup);+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _loading = false);+ }+ }++ Future<void> _loadHistory({bool reset = false}) async {+ final api = boAdminApi(context);+ if (api == null || _historyLoading) return;+ final page = reset ? 0 : _historyPage;+ setState(() => _historyLoading = true);+ try {+ final rows = _everyone+ ? await api.emailEveryonesHistory(page: page, size: _pageSize)+ : await api.emailHistory(page: page, size: _pageSize, status: _historyStatus);+ if (!mounted) return;+ setState(() {+ _history = reset ? rows : [..._history, ...rows];+ _historyPage = page + 1;+ _historyMore = rows.length == _pageSize;+ _historyLoaded = true;+ });+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _historyLoading = false);+ }+ }++ Future<void> _open(Widget screen) async {+ final changed = await Navigator.push<bool>(context, MaterialPageRoute(builder: (_) => screen));+ if (changed == true) await _load();+ }++ Future<void> _setDefault({int? serverId, int? deviceId, int? templateId}) async {+ final api = boAdminApi(context);+ if (api == null) return;+ try {+ final d = _setup.defaults;+ final defaults = serverId != null+ ? await api.emailSetDefaults(serverId: d.serverId == serverId ? null : serverId)+ : deviceId != null+ ? await api.emailSetDefaults(deviceId: d.deviceId == deviceId ? null : deviceId)+ : await api.emailSetDefaults(templateId: d.templateId == templateId ? null : templateId);+ if (!mounted) return;+ setState(() => _setup = BoEmailSetup(+ servers: _setup.servers,+ devices: _setup.devices,+ groups: _setup.groups,+ templates: _setup.templates,+ defaults: defaults,+ readAlongChoice: _setup.readAlongChoice,+ ));+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ }+ }++ @override+ Widget build(BuildContext context) {+ final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;+ final canSend = _tabs.length > 1;++ final header = Padding(+ padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),+ child: Row(children: [+ Expanded(+ child: AbsorbPageHeader(+ title: canSend ? l.boEmailTitle : l.boEmailTabServers,+ padding: EdgeInsets.zero,+ ),+ ),+ IconButton(+ icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant),+ onPressed: () => Navigator.pop(context),+ ),+ ]),+ );++ Widget body(BoEmailTab tab) => switch (tab) {+ BoEmailTab.devices => _devicesTab(),+ BoEmailTab.servers => _serversTab(),+ BoEmailTab.templates => _templatesTab(),+ BoEmailTab.history => _historyTab(),+ };++ return Scaffold(+ backgroundColor: Theme.of(context).scaffoldBackgroundColor,+ body: SafeArea(+ child: Column(children: [+ header,+ if (canSend) TabBar(controller: _tabController, tabs: [for (final t in _tabs) Tab(text: _tabLabel(l, t))]),+ if (_loading) const LinearProgressIndicator(minHeight: 2) else const SizedBox(height: 2),+ Expanded(+ child: TabBarView(controller: _tabController, children: [for (final t in _tabs) body(t)]),+ ),+ ]),+ ),+ );+ }++ String _tabLabel(AppLocalizations l, BoEmailTab t) => switch (t) {+ BoEmailTab.devices => l.boEmailTabDevices,+ BoEmailTab.servers => l.boEmailTabServers,+ BoEmailTab.templates => l.boEmailTabTemplates,+ BoEmailTab.history => l.boEmailTabHistory,+ };++ Widget _list(List<Widget> children, {Future<void> Function()? onRefresh}) => RefreshIndicator(+ onRefresh: onRefresh ?? _load,+ child: ListView(+ physics: const AlwaysScrollableScrollPhysics(),+ padding: const EdgeInsets.fromLTRB(16, 12, 16, 32),+ children: children,+ ),+ );++ Widget _devicesTab() {+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;+ final s = _setup;+ return _list([+ BoEmailSection(title: l.boEmailTabDevices, children: [+ if (s.devices.isEmpty && !_loading) BoEmailEmpty(l.boEmailDevicesEmpty),+ for (final d in s.devices)+ ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: Icon(boDeviceIcon(d.deviceType), color: cs.primary),+ title: Text(d.name, style: tt.bodyLarge?.copyWith(fontWeight: FontWeight.w600)),+ subtitle: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text(d.email, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ Text(+ [+ boDeviceLabel(l, d.deviceType),+ if (d.preferredFormat != null) d.preferredFormat!.toUpperCase(),+ ].join(' · '),+ style: tt.labelSmall?.copyWith(color: cs.primary),+ ),+ if (d.lastSend?.status == 'failed')+ Text(l.boEmailLastSendFailed, style: tt.labelSmall?.copyWith(color: cs.error)),+ ]),+ trailing: _star(s.defaults.deviceId == d.id, () => _setDefault(deviceId: d.id)),+ onTap: () => _open(BoEmailDeviceScreen(device: d, setup: s)),+ ),+ BoEmailAddButton(label: l.boEmailAddDevice, onPressed: () => _open(BoEmailDeviceScreen(setup: s))),+ ]),+ BoEmailSection(title: l.boEmailGroups, hint: l.boEmailGroupsHint, children: [+ for (final g in s.groups)+ ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: Icon(Icons.groups_rounded, color: cs.primary),+ title: Text(g.name, style: tt.bodyLarge?.copyWith(fontWeight: FontWeight.w600)),+ subtitle: Text(l.boEmailGroupMemberCount(g.members.length),+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ trailing: Icon(Icons.chevron_right_rounded, color: cs.onSurfaceVariant),+ onTap: () => _open(BoEmailGroupScreen(group: g, setup: s)),+ ),+ BoEmailAddButton(label: l.boEmailNewGroup, onPressed: () => _open(BoEmailGroupScreen(setup: s))),+ ]),+ ]);+ }++ Widget _serversTab() {+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;+ final access = _access;+ final manage = access?.manageEmail == true;+ final canSend = access?.emailSend == true;+ final me = access?.userId ?? '';+ final s = _setup;+ final def = canSend ? s.defaultServer : null;+ return _list([+ BoEmailSection(children: [+ if (s.servers.isEmpty && !_loading)+ BoEmailEmpty(manage ? l.boEmailServersEmptyManage : l.boEmailServersEmpty),+ for (final server in s.servers)+ ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: Icon(Icons.dns_rounded, color: cs.primary),+ title: Text(server.name, style: tt.bodyLarge?.copyWith(fontWeight: FontWeight.w600)),+ subtitle: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text('${server.host}:${server.port}', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ if (server.sender != null)+ Text(server.sender!, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ const SizedBox(height: 4),+ Wrap(spacing: 6, runSpacing: 4, children: [+ if (def?.id == server.id) BoEmailBadge(l.boEmailBadgeDefault),+ if (server.isShared) BoEmailBadge(l.boEmailBadgeShared),+ if (server.isSystem) BoEmailBadge(l.boEmailBadgeSystem),+ if (server.lastTestOk == true) BoEmailBadge(l.boEmailServerTestOk, color: Colors.green),+ if (server.lastTestOk == false)+ BoEmailBadge(l.boEmailServerTestFailed(server.lastTestError ?? ''), color: cs.error),+ ]),+ ]),+ trailing: canSend ? _star(s.defaults.serverId == server.id, () => _setDefault(serverId: server.id)) : null,+ onTap: () {+ if (manage && server.ownedBy(me)) {+ _open(BoEmailServerScreen(server: server, setup: s));+ } else {+ showOverlayToast(context, l.boEmailServerNotYours, icon: Icons.info_outline_rounded);+ }+ },+ ),+ if (manage) BoEmailAddButton(label: l.boEmailAddServer, onPressed: () => _open(BoEmailServerScreen(setup: s))),+ ]),+ ]);+ }++ Widget _templatesTab() {+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;+ final s = _setup;+ final def = s.defaultTemplate;+ return _list([+ BoEmailSection(children: [+ if (s.templates.isEmpty && !_loading) BoEmailEmpty(l.boEmailTemplatesEmpty),+ for (final t in s.templates)+ ListTile(+ contentPadding: const EdgeInsets.symmetric(horizontal: 4),+ leading: Icon(Icons.article_outlined, color: cs.primary),+ title: Text(t.name, style: tt.bodyLarge?.copyWith(fontWeight: FontWeight.w600)),+ subtitle: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text(t.subject, maxLines: 1, overflow: TextOverflow.ellipsis,+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ if (t.isSystem || def?.id == t.id) ...[+ const SizedBox(height: 4),+ Wrap(spacing: 6, children: [+ if (def?.id == t.id) BoEmailBadge(l.boEmailBadgeDefault),+ if (t.isSystem) BoEmailBadge(l.boEmailBadgeBuiltIn),+ ]),+ ],+ ]),+ trailing: _star(s.defaults.templateId == t.id, () => _setDefault(templateId: t.id)),+ onTap: () => _open(BoEmailTemplateScreen(template: t, setup: s)),+ ),+ BoEmailAddButton(+ label: l.boEmailNewTemplate,+ onPressed: () => _open(BoEmailTemplateScreen(setup: s)),+ ),+ ]),+ ]);+ }++ Widget _historyTab() {+ final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;+ final superuser = _access?.isSuperuser == true;+ void filter(String? status, {bool everyone = false}) {+ setState(() {+ _historyStatus = status;+ _everyone = everyone;+ });+ _loadHistory(reset: true);+ }++ return _list(onRefresh: () => _loadHistory(reset: true), [+ Wrap(spacing: 8, runSpacing: 4, children: [+ ChoiceChip(+ label: Text(l.boEmailHistoryAll),+ selected: !_everyone && _historyStatus == null,+ onSelected: (_) => filter(null),+ ),+ ChoiceChip(+ label: Text(l.boEmailStatusFailed),+ selected: !_everyone && _historyStatus == 'failed',+ onSelected: (_) => filter('failed'),+ ),+ ChoiceChip(+ label: Text(l.boEmailStatusSending),+ selected: !_everyone && _historyStatus == 'pending',+ onSelected: (_) => filter('pending'),+ ),+ if (superuser)+ ChoiceChip(+ label: Text(l.boEmailHistoryEveryone),+ selected: _everyone,+ onSelected: (_) => filter(null, everyone: true),+ ),+ ]),+ const SizedBox(height: 8),+ if (_historyLoaded && _history.isEmpty) BoEmailEmpty(l.boEmailHistoryEmpty),+ for (final e in _history) _historyTile(e),+ if (_historyLoading)+ const Padding(+ padding: EdgeInsets.all(16),+ child: Center(child: SizedBox(width: 22, height: 22, child: CircularProgressIndicator(strokeWidth: 2))),+ )+ else if (_historyMore)+ Center(+ child: TextButton(+ onPressed: () => _loadHistory(),+ child: Text(l.boEmailLoadMore, style: TextStyle(color: cs.primary)),+ ),+ ),+ ]);+ }++ Widget _historyTile(BoEmailSend e) {+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;+ final locale = Localizations.localeOf(context).toLanguageTag();+ final (icon, color, status) = switch (e.status) {+ 'sent' => (Icons.check_circle_rounded, Colors.green, l.boEmailStatusSent),+ 'failed' => (Icons.error_rounded, cs.error, l.boEmailStatusFailed),+ _ => (+ Icons.schedule_rounded,+ cs.primary,+ e.attempts > 1 ? l.boEmailStatusRetrying(e.attempts) : l.boEmailStatusSending,+ ),+ };+ final title = e.bookTitle ?? (_everyone ? e.subject : null) ?? l.boEmailUnknownBook;+ final file = [+ if (e.format != null) e.format!.toUpperCase(),+ if (e.size != null && e.size! > 0) formatFileSize(e.size!),+ ].join(' · ');+ return Padding(+ padding: const EdgeInsets.only(bottom: 8),+ child: Material(+ color: cs.surfaceContainerHigh,+ borderRadius: BorderRadius.circular(14),+ child: ListTile(+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),+ leading: Icon(icon, color: color),+ title: Text(title, maxLines: 2, overflow: TextOverflow.ellipsis,+ style: tt.bodyLarge?.copyWith(fontWeight: FontWeight.w600)),+ subtitle: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text(+ [l.boEmailTo(e.toLabel), notificationTimeAgo(l, e.sentAt ?? e.createdAt, locale)]+ .where((p) => p.isNotEmpty)+ .join(' · '),+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),+ ),+ Text([status, if (file.isNotEmpty) file].join(' · '), style: tt.labelSmall?.copyWith(color: color)),+ if (e.failed && e.error != null)+ Text(e.error!, maxLines: 3, overflow: TextOverflow.ellipsis,+ style: tt.bodySmall?.copyWith(color: cs.error)),+ ]),+ onTap: _everyone ? null : () => _historyActions(e),+ ),+ ),+ );+ }++ Future<void> _historyActions(BoEmailSend e) async {+ final l = AppLocalizations.of(context)!;+ final api = boAdminApi(context);+ if (api == null) return;+ final action = await showModalBottomSheet<String>(+ context: context,+ showDragHandle: true,+ builder: (ctx) => SafeArea(+ child: Column(mainAxisSize: MainAxisSize.min, children: [+ if (e.bookId != null && !e.pending)+ ListTile(+ leading: const Icon(Icons.send_rounded),+ title: Text(l.boEmailResend),+ onTap: () => Navigator.pop(ctx, 'resend'),+ ),+ ListTile(+ leading: const Icon(Icons.delete_outline_rounded),+ title: Text(l.boEmailForget),+ onTap: () => Navigator.pop(ctx, 'forget'),+ ),+ const SizedBox(height: 8),+ ]),+ ),+ );+ if (action == null || !mounted) return;+ try {+ if (action == 'resend') {+ await api.emailResend(e.id);+ if (mounted) showOverlayToast(context, l.boEmailResent, icon: Icons.send_rounded);+ } else {+ await api.emailForget(e.id);+ }+ await _loadHistory(reset: true);+ } catch (err) {+ if (mounted) showBoEmailError(context, err);+ }+ }++ Widget _star(bool on, VoidCallback onTap) {+ final cs = Theme.of(context).colorScheme;+ return IconButton(+ tooltip: AppLocalizations.of(context)!.boEmailMakeDefault,+ icon: Icon(on ? Icons.star_rounded : Icons.star_outline_rounded,+ color: on ? cs.primary : cs.onSurfaceVariant),+ onPressed: onTap,+ );+ }+}++class BoEmailSection extends StatelessWidget {+ final String? title;+ final String? hint;+ final List<Widget> children;++ const BoEmailSection({super.key, this.title, this.hint, required this.children});++ @override+ Widget build(BuildContext context) {+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ return Padding(+ padding: const EdgeInsets.only(bottom: 12),+ child: Container(+ padding: const EdgeInsets.fromLTRB(12, 12, 12, 8),+ decoration: BoxDecoration(color: cs.surfaceContainerHigh, borderRadius: BorderRadius.circular(16)),+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ if (title != null)+ Padding(+ padding: const EdgeInsets.symmetric(horizontal: 4),+ child: Text(title!, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),+ ),+ if (hint != null)+ Padding(+ padding: const EdgeInsets.fromLTRB(4, 2, 4, 0),+ child: Text(hint!, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ ),+ if (title != null || hint != null) const SizedBox(height: 6),+ ...children,+ ]),+ ),+ );+ }+}++class BoEmailBadge extends StatelessWidget {+ final String label;+ final Color? color;+ const BoEmailBadge(this.label, {super.key, this.color});++ @override+ Widget build(BuildContext context) {+ final c = color ?? Theme.of(context).colorScheme.primary;+ return Container(+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2),+ decoration: BoxDecoration(color: c.withValues(alpha: 0.14), borderRadius: BorderRadius.circular(8)),+ child: Text(label,+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: Theme.of(context).textTheme.labelSmall?.copyWith(color: c, fontWeight: FontWeight.w600)),+ );+ }+}++class BoEmailEmpty extends StatelessWidget {+ final String text;+ const BoEmailEmpty(this.text, {super.key});++ @override+ Widget build(BuildContext context) => Padding(+ padding: const EdgeInsets.fromLTRB(4, 8, 4, 8),+ child: Text(text,+ style: Theme.of(context).textTheme.bodyMedium?.copyWith(+ color: Theme.of(context).colorScheme.onSurfaceVariant,+ )),+ );+}++class BoEmailAddButton extends StatelessWidget {+ final String label;+ final VoidCallback onPressed;+ const BoEmailAddButton({super.key, required this.label, required this.onPressed});++ @override+ Widget build(BuildContext context) => Align(+ alignment: Alignment.centerLeft,+ child: TextButton.icon(+ onPressed: onPressed,+ icon: const Icon(Icons.add_rounded),+ label: Text(label),+ ),+ );+}diff --git a/lib/screens/chapter_editor_screen.dart b/lib/screens/chapter_editor_screen.dartindex 534b0a18..5dc225f4 100644--- a/lib/screens/chapter_editor_screen.dart+++ b/lib/screens/chapter_editor_screen.dart@@ -9,6 +9,7 @@ import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../services/api_service.dart';import '../services/audio_player_service.dart';+import '../services/bookorbit_chapters.dart';import '../services/chapter_start_finder.dart';import '../services/download_service.dart';import '../services/remote_audio_slice.dart';@@ -102,6 +103,13 @@ class _ChapterEditBodyState extends State<ChapterEditBody>String? _asin;List<Map<String, dynamic>> _tracks = [];+ // BookOrbit 3.6 and newer keep the list with a revision and a history, and+ // can take chapters from the files, the ebook or the read along.+ BoChapterState? _bo;+ bool _protect = true;+ String? _busyText;+ double? _busyProgress;+// Preview player - a separate just_audio instance (works on iOS + Android,// independent of the main native/ExoPlayer engine). Main playback is paused// while previewing and restored when leaving the screen.@@ -156,7 +164,10 @@ class _ChapterEditBodyState extends State<ChapterEditBody>@overridevoid initState() {super.initState();- _load();+ // _load reads the strings, which can't happen until initState is done.+ WidgetsBinding.instance.addPostFrameCallback((_) {+ if (mounted) _load();+ });}@override@@ -188,6 +199,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>}try {final item = await api.getLibraryItem(widget.itemId);+ final bo = api is BookOrbitApiService ? await api.chapterState(widget.itemId) : null;final media = item?['media'] as Map<String, dynamic>? ?? {};final meta = media['metadata'] as Map<String, dynamic>? ?? {};final dur = (media['duration'] as num?)?.toDouble() ?? 0;@@ -205,7 +217,12 @@ class _ChapterEditBodyState extends State<ChapterEditBody>_audioFiles = afs;_tracks = tracks;_asin = (meta['asin'] as String?)?.trim();- _originalChapters = chs.whereType<Map<String, dynamic>>().toList();+ if ((_asin ?? '').isEmpty) _asin = bo?.audibleId;+ _bo = bo;+ _protect = true;+ _originalChapters = bo != null && bo.chapters.isNotEmpty+ ? _fromBo(bo.chapters)+ : chs.whereType<Map<String, dynamic>>().toList();_initChapters(_originalChapters);_loading = false;});@@ -239,6 +256,252 @@ class _ChapterEditBodyState extends State<ChapterEditBody>_check();}+ List<Map<String, dynamic>> _fromBo(List<BoChapter> list) => [+ for (var i = 0; i < list.length; i++)+ {+ 'start': list[i].startMs / 1000,+ 'end': i + 1 < list.length ? list[i + 1].startMs / 1000 : _duration,+ 'title': list[i].title,+ },+ ];++ /// Chapters from elsewhere into the editor, in the shape a lookup gives,+ /// so locked rows stay put. Nothing is saved until Save.+ void _applyIncoming(List<BoChapter> list) {+ if (list.isEmpty) return;+ final sorted = [...list]..sort((a, b) => a.startMs.compareTo(b.startMs));+ final totalMs = (_duration * 1000).round();+ _applyChapters([+ for (var i = 0; i < sorted.length; i++)+ {+ 'title': sorted[i].title,+ 'startOffsetMs': sorted[i].startMs,+ 'lengthMs': (i + 1 < sorted.length ? sorted[i + 1].startMs : totalMs) - sorted[i].startMs,+ },+ ]);+ }++ Future<({BoChapterJob? value, BoChapterFailure? failure, String? message})?> _runJob(+ String kind, String text) async {+ final api = context.read<AuthProvider>().apiService;+ final bo = _bo;+ if (api is! BookOrbitApiService || bo == null) return null;+ setState(() {+ _busyText = text;+ _busyProgress = null;+ });+ final res = await api.runChapterJob(+ widget.itemId,+ kind,+ baseRevision: bo.revision,+ onProgress: (done, total) {+ if (mounted && total > 0) setState(() => _busyProgress = done / total);+ },+ stillWanted: () => mounted,+ );+ if (!mounted) return null;+ setState(() {+ _busyText = null;+ _busyProgress = null;+ });+ if (res.failure == BoChapterFailure.stale) {+ await _staleDialog();+ return null;+ }+ return res;+ }++ Future<void> _staleDialog() async {+ final l = AppLocalizations.of(context)!;+ final reload = await showDialog<bool>(+ context: context,+ builder: (dctx) => AlertDialog(+ title: Text(l.chapterStaleTitle),+ content: Text(l.chapterStaleMessage),+ actions: [+ TextButton(onPressed: () => Navigator.pop(dctx, false), child: Text(l.chapterKeepEditing)),+ TextButton(onPressed: () => Navigator.pop(dctx, true), child: Text(l.chapterReload)),+ ],+ ),+ );+ if (reload != true || !mounted) return;+ setState(() => _loading = true);+ await _load();+ }++ void _chapterFailed(BoChapterFailure? failure, String? message) {+ final l = AppLocalizations.of(context)!;+ showOverlayToast(+ context,+ message ?? (failure == BoChapterFailure.notFound ? l.chapterNoChaptersFound : l.couldNotUpdate),+ icon: Icons.error_outline_rounded,+ );+ }++ Future<void> _fromFiles() async {+ final l = AppLocalizations.of(context)!;+ final res = await _runJob('read', l.chapterReadingFiles);+ if (res == null || !mounted) return;+ final chapters = BoChapter.listFrom(res.value?.result?['chapters']);+ if (res.failure != null || chapters.isEmpty) {+ _chapterFailed(res.failure ?? BoChapterFailure.notFound, res.message);+ return;+ }+ _applyIncoming(chapters);+ }++ Future<void> _fromEbook(String source) async {+ final api = context.read<AuthProvider>().apiService;+ if (api is! BookOrbitApiService) return;+ setState(() => _saving = true);+ final res = await api.ebookChapters(widget.itemId, source);+ if (!mounted) return;+ setState(() => _saving = false);+ final got = res.value;+ if (got == null || got.chapters.isEmpty) {+ _chapterFailed(res.failure ?? BoChapterFailure.notFound, res.message);+ return;+ }+ if (got.titlesOnly) {+ _applyTitlesOnly([for (final c in got.chapters) {'title': c.title}]);+ return;+ }+ // A read along made from this audiobook runs the same length give or+ // take; within BookOrbit's own tolerance its times are stretched to fit.+ final runtime = got.runtimeMs ?? 0;+ final total = _duration * 1000;+ final close = runtime > 0 && total > 0 && (total - runtime).abs() <= (runtime * 0.05).clamp(0, 300000);+ final scale = close ? total / runtime : 1.0;+ _applyIncoming([for (final c in got.chapters) BoChapter(c.title, (c.startMs * scale).round())]);+ }++ Future<void> _openHistory() async {+ final l = AppLocalizations.of(context)!;+ final api = context.read<AuthProvider>().apiService;+ if (api is! BookOrbitApiService) return;+ setState(() => _saving = true);+ final res = await api.chapterVersions(widget.itemId);+ if (!mounted) return;+ setState(() => _saving = false);+ final versions = res.value;+ if (versions == null) {+ _chapterFailed(res.failure, res.message);+ return;+ }+ final ml = MaterialLocalizations.of(context);+ final picked = await showModalBottomSheet<BoChapterVersion>(+ context: context,+ useSafeArea: true,+ showDragHandle: true,+ builder: (sctx) => ListView(+ shrinkWrap: true,+ children: [+ Padding(+ padding: const EdgeInsets.fromLTRB(20, 0, 20, 8),+ child: Text(l.chapterHistoryTitle, style: Theme.of(sctx).textTheme.titleMedium),+ ),+ if (versions.isEmpty)+ Padding(+ padding: const EdgeInsets.fromLTRB(20, 8, 20, 24),+ child: Text(l.chapterHistoryEmpty),+ ),+ for (final v in versions)+ ListTile(+ leading: const Icon(Icons.history_rounded),+ title: Text(v.createdBy == null+ ? _sourceLabel(l, v.source)+ : l.chapterHistoryBy(_sourceLabel(l, v.source), v.createdBy!)),+ subtitle: Text([+ if (v.createdAt != null)+ '${ml.formatMediumDate(v.createdAt!.toLocal())} ${ml.formatTimeOfDay(TimeOfDay.fromDateTime(v.createdAt!.toLocal()))}',+ l.chaptersChip(v.chapterCount),+ ].join(' · ')),+ onTap: () => Navigator.pop(sctx, v),+ ),+ ],+ ),+ );+ if (picked == null || !mounted) return;+ setState(() => _saving = true);+ final full = await api.chapterVersion(widget.itemId, picked.id);+ if (!mounted) return;+ setState(() => _saving = false);+ final chapters = full.value?.chapters ?? const [];+ if (chapters.isEmpty) {+ _chapterFailed(full.failure, full.message);+ return;+ }+ _applyIncoming(chapters);+ }++ Future<void> _revertToFiles() async {+ final l = AppLocalizations.of(context)!;+ final ok = await _confirm(l.chapterRevertTitle, l.chapterRevertMessage);+ if (ok != true || !mounted) return;+ final res = await _runJob('revert', l.chapterReadingFiles);+ if (res == null || !mounted) return;+ if (res.failure != null) {+ _chapterFailed(res.failure, res.message);+ return;+ }+ final state = BoChapterState.fromJson(res.value?.result);+ if (state == null) {+ setState(() => _loading = true);+ await _load();+ } else {+ setState(() {+ _bo = state;+ _originalChapters = _fromBo(state.chapters);+ _initChapters(_originalChapters);+ });+ }+ if (mounted) showOverlayToast(context, l.chapterReverted, icon: Icons.check_rounded);+ }++ Future<void> _writeToFiles() async {+ final l = AppLocalizations.of(context)!;+ final bo = _bo;+ if (bo == null) return;+ final ok = await showDialog<bool>(+ context: context,+ builder: (dctx) => AlertDialog(+ title: Text(l.chapterWriteTitle),+ content: Text(l.chapterWriteMessage(bo.writeFileCount)),+ actions: [+ TextButton(onPressed: () => Navigator.pop(dctx, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(dctx, true), child: Text(l.chapterWriteConfirm)),+ ],+ ),+ );+ if (ok != true || !mounted) return;+ final res = await _runJob('write', l.chapterWriting);+ if (res == null || !mounted) return;+ final result = res.value?.result;+ final written = (result?['filesWritten'] as num?)?.toInt() ?? res.value?.filesWritten ?? 0;+ final total = (result?['filesTotal'] as num?)?.toInt() ?? res.value?.filesTotal ?? 0;+ if (res.failure != null || written == 0) {+ _chapterFailed(res.failure, res.message);+ return;+ }+ showOverlayToast(+ context,+ written < total ? l.chapterWrittenPartly(written, total) : l.chapterWritten(written),+ icon: written < total ? Icons.warning_amber_rounded : Icons.check_rounded,+ );+ final api = context.read<AuthProvider>().apiService;+ final fresh = api is BookOrbitApiService ? await api.chapterState(widget.itemId) : null;+ if (fresh != null && mounted) setState(() => _bo = fresh);+ }++ String _sourceLabel(AppLocalizations l, String? source) => switch (source) {+ 'embedded' => l.chapterSourceEmbedded,+ 'tracks' => l.chapterSourceTracks,+ 'provider' => l.chapterSourceProvider,+ 'migration' => l.chapterSourceMigration,+ 'manual' => l.chapterSourceManual,+ _ => l.chapterSourceNone,+ };+void _syncTitleControllers() {final uids = _chapters.map((c) => c.uid).toSet();for (final k in _titleCtl.keys.where((k) => !uids.contains(k)).toList()) {@@ -741,7 +1004,13 @@ class _ChapterEditBodyState extends State<ChapterEditBody>useSafeArea: true,backgroundColor: Theme.of(context).scaffoldBackgroundColor,shape: const RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(20))),- builder: (_) => _ChapterLookupSheet(api: api, initialAsin: _asin, mediaDuration: _duration),+ builder: (_) => _ChapterLookupSheet(+ api: api,+ itemId: widget.itemId,+ initialAsin: _asin,+ initialRegion: _bo?.audibleRegion,+ mediaDuration: _duration,+ ),);if (result == null || !mounted) return;var data = result.data;@@ -879,6 +1148,35 @@ class _ChapterEditBodyState extends State<ChapterEditBody>payload.add({'id': i, 'start': c.start, 'end': end, 'title': c.title.trim()});}+ final bo = _bo;+ if (bo != null && api is BookOrbitApiService) {+ setState(() => _saving = true);+ final res = await api.saveChapters(+ widget.itemId,+ [for (final p in payload) BoChapter(p['title'] as String, ((p['start'] as num) * 1000).round())],+ baseRevision: bo.revision,+ lock: _protect,+ );+ if (!mounted) return;+ final saved = res.value;+ setState(() {+ _saving = false;+ if (saved != null) {+ _bo = saved;+ _originalChapters = _fromBo(saved.chapters);+ _check();+ }+ });+ if (res.failure == BoChapterFailure.stale) {+ await _staleDialog();+ return;+ }+ HapticFeedback.mediumImpact();+ showOverlayToast(context, saved != null ? l.chaptersUpdated : (res.message ?? l.couldNotUpdate),+ icon: saved != null ? Icons.check_rounded : Icons.error_outline_rounded);+ return;+ }+setState(() => _saving = true);final success = await api.updateChapters(widget.itemId, payload);if (!mounted) return;@@ -932,6 +1230,27 @@ class _ChapterEditBodyState extends State<ChapterEditBody>child: Center(child: CircularProgressIndicator(strokeWidth: 2)),),),+ if (_busyText != null)+ Positioned.fill(+ child: ColoredBox(+ color: const Color(0x88000000),+ child: Center(+ child: Card(+ child: Padding(+ padding: const EdgeInsets.all(20),+ child: SizedBox(+ width: 260,+ child: Column(mainAxisSize: MainAxisSize.min, children: [+ Text(_busyText!, textAlign: TextAlign.center),+ const SizedBox(height: 16),+ LinearProgressIndicator(value: _busyProgress),+ ]),+ ),+ ),+ ),+ ),+ ),+ ),]);}@@ -942,7 +1261,22 @@ class _ChapterEditBodyState extends State<ChapterEditBody>padding: const EdgeInsets.fromLTRB(12, 10, 12, 0),child: Row(children: [OutlinedButton(onPressed: _saving ? null : _reset, child: Text(l.reset)),- const Spacer(),+ if (_bo != null)+ Expanded(+ child: InkWell(+ borderRadius: BorderRadius.circular(8),+ onTap: () => setState(() => _protect = !_protect),+ child: Row(mainAxisSize: MainAxisSize.min, children: [+ Checkbox(value: _protect, onChanged: (v) => setState(() => _protect = v ?? true)),+ Flexible(+ child: Text(l.chapterProtectOnSave,+ style: Theme.of(context).textTheme.bodySmall, maxLines: 2, overflow: TextOverflow.ellipsis),+ ),+ ]),+ ),+ )+ else+ const Spacer(),FilledButton(onPressed: _saving ? null : _save,child: Text(l.chapterSaveButton),@@ -1024,7 +1358,13 @@ class _ChapterEditBodyState extends State<ChapterEditBody>spacing: 8,runSpacing: 8,children: [- if (_chapters.isNotEmpty)+ if (_bo != null)+ OutlinedButton.icon(+ onPressed: _revertToFiles,+ icon: const Icon(Icons.settings_backup_restore_rounded, size: 18),+ label: Text(l.chapterRevertToFiles),+ )+ else if (_chapters.isNotEmpty)OutlinedButton.icon(onPressed: _removeAll,icon: const Icon(Icons.delete_sweep_rounded, size: 18),@@ -1047,8 +1387,66 @@ class _ChapterEditBodyState extends State<ChapterEditBody>icon: const Icon(Icons.travel_explore_rounded, size: 18),label: Text(l.chapterLookup),),+ if (_bo case final bo?)+ MenuAnchor(+ menuChildren: [+ MenuItemButton(+ leadingIcon: const Icon(Icons.audio_file_rounded, size: 18),+ onPressed: _fromFiles,+ child: Text(l.chapterFromFiles),+ ),+ if (bo.ebookFileId != null)+ MenuItemButton(+ leadingIcon: const Icon(Icons.menu_book_rounded, size: 18),+ onPressed: () => _fromEbook('toc'),+ child: Text(l.chapterFromEbookToc),+ ),+ if (bo.readAlongFileId != null)+ MenuItemButton(+ leadingIcon: const Icon(Icons.record_voice_over_rounded, size: 18),+ onPressed: () => _fromEbook('read_along'),+ child: Text(l.chapterFromReadAlong),+ ),+ if (bo.versionCount > 0)+ MenuItemButton(+ leadingIcon: const Icon(Icons.history_rounded, size: 18),+ onPressed: _openHistory,+ child: Text(l.chapterFromHistory),+ ),+ ],+ builder: (_, menu, _) => OutlinedButton.icon(+ onPressed: () => menu.isOpen ? menu.close() : menu.open(),+ icon: const Icon(Icons.input_rounded, size: 18),+ label: Text(l.chapterGetFrom),+ ),+ ),+ if (_bo case final bo? when bo.canWrite && !bo.derived && !_hasChanges && _chapters.isNotEmpty)+ OutlinedButton.icon(+ onPressed: _writeToFiles,+ icon: const Icon(Icons.save_as_rounded, size: 18),+ label: Text(l.chapterWriteFiles),+ ),],),+ if (_bo case final bo?) ...[+ const SizedBox(height: 8),+ Row(children: [+ Icon(bo.locked ? Icons.lock_rounded : Icons.lock_open_rounded, size: 14, color: cs.onSurfaceVariant),+ const SizedBox(width: 6),+ Expanded(+ child: Text(+ [+ bo.locked ? l.chapterProtected : l.chapterNotProtected,+ if (bo.source == 'manual' && bo.updatedBy != null)+ l.chapterSourceManualBy(bo.updatedBy!)+ else+ _sourceLabel(l, bo.derived ? 'tracks' : bo.source),+ ].join(' · '),+ style: Theme.of(context).textTheme.bodySmall?.copyWith(color: cs.onSurfaceVariant),+ ),+ ),+ ]),+ ],const SizedBox(height: 4),Row(children: [@@ -1470,9 +1868,17 @@ class _LookupResult {/// the server, previews the result, and returns how to apply it.class _ChapterLookupSheet extends StatefulWidget {final ApiService api;+ final String itemId;final String? initialAsin;+ final String? initialRegion;final double mediaDuration;- const _ChapterLookupSheet({required this.api, required this.initialAsin, required this.mediaDuration});+ const _ChapterLookupSheet({+ required this.api,+ required this.itemId,+ required this.initialAsin,+ this.initialRegion,+ required this.mediaDuration,+ });@overrideState<_ChapterLookupSheet> createState() => _ChapterLookupSheetState();@@ -1492,6 +1898,8 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {void initState() {super.initState();_asinCtl = TextEditingController(text: widget.initialAsin ?? '');+ final region = widget.initialRegion?.toUpperCase();+ if (region != null && _regions.contains(region)) _region = region;}@override@@ -1511,7 +1919,7 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {_finding = true;_error = null;});- final data = await widget.api.searchChapters(asin, _region);+ final data = await widget.api.searchChapters(asin, _region, itemId: widget.itemId);if (!mounted) return;setState(() {_finding = false;diff --git a/lib/screens/downloads_screen.dart b/lib/screens/downloads_screen.dartindex 9075acaa..b2284ea9 100644--- a/lib/screens/downloads_screen.dart+++ b/lib/screens/downloads_screen.dart@@ -78,16 +78,19 @@ class _DownloadsScreenState extends State<DownloadsScreen> {});}- /// The completed downloads currently visible, honoring the same library- /// filter as the list - select-all must never grab hidden items or a bulk- /// delete would remove downloads the user can't see.+ /// The completed downloads and kept ebooks currently visible, honoring the+ /// same library filter as the list - select-all must never grab hidden+ /// items or a bulk delete would remove downloads the user can't see.List<DownloadInfo> _visibleCompleted() {final lib = context.read<LibraryProvider>();final activeLibId = lib.selectedLibraryId;final shouldFilter = !lib.isOffline && !_mergeLibraries && activeLibId != null;- final completed = DownloadService().downloadedItems;- if (!shouldFilter) return completed;- return completed+ final ds = DownloadService();+ final completed = ds.downloadedItems;+ final downloadedIds = completed.map((d) => d.itemId).toSet();+ final all = [...completed, ...ds.keptEbooks.where((e) => !downloadedIds.contains(e.itemId))];+ if (!shouldFilter) return all;+ return all.where((d) => d.libraryId == null || d.libraryId == activeLibId).toList();}@@ -128,8 +131,14 @@ class _DownloadsScreenState extends State<DownloadsScreen> {if (confirmed != true || !mounted) return;+ final ds = DownloadService();+ final downloadedIds = ds.downloadedItems.map((d) => d.itemId).toSet();for (final itemId in _selected.toList()) {- await DownloadService().deleteDownload(itemId, byUser: true);+ if (downloadedIds.contains(itemId)) {+ await ds.deleteDownload(itemId, byUser: true);+ } else {+ await ds.deleteKeptEbook(itemId);+ }}_exitSelection();@@ -320,7 +329,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {onPressed: _exitSelection,),] else ...[- if (_items.isNotEmpty)+ if (_items.isNotEmpty || _visibleCompleted().isNotEmpty)IconButton(icon: Icon(Icons.checklist_rounded,color: cs.onSurfaceVariant),@@ -464,11 +473,11 @@ class _DownloadsScreenState extends State<DownloadsScreen> {fileSize: cachedEbookBytesSync(info.itemId),cs: cs,tt: tt,- selecting: false,- isSelected: false,- onToggle: () {},+ selecting: _selecting,+ isSelected: _selected.contains(info.itemId),+ onToggle: () => _toggleSelect(info.itemId),onPlay: () => _openEbook(info),- onLongPress: () {},+ onLongPress: () => _enterSelection(info.itemId),onDelete: () => _deleteEbook(info),formatBytes: _formatBytes,mediaHeaders: context.read<LibraryProvider>().mediaHeaders,diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dartindex 4d876a4a..c26b8b0a 100644--- a/lib/screens/home_screen.dart+++ b/lib/screens/home_screen.dart@@ -9,6 +9,7 @@ import '../utils/cover_accent.dart';import '../widgets/absorbing_shared.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';+import '../services/api_service.dart';import '../services/audio_player_service.dart';import '../services/download_service.dart';import '../services/ebook_cache.dart';@@ -56,6 +57,7 @@ class HomeScreenState extends State<HomeScreen> with SingleTickerProviderStateMi// ── Batch selection ──bool _selectionMode = false;bool _batchActionBusy = false;+ String? _bookMatchProgress;final Set<String> _selectedItemIds = {};void _resetSelectionState() {@@ -493,7 +495,12 @@ class HomeScreenState extends State<HomeScreen> with SingleTickerProviderStateMiselectedCount: _selectedItemIds.length,selectableCount: selectableItems.length,busy: _batchActionBusy,- canQuickMatch: auth.isAdmin && !lib.isPodcastLibrary,+ busyLabel: _bookMatchProgress,+ canQuickMatch: !lib.isPodcastLibrary &&+ (auth.isAdmin ||+ (auth.isBookOrbit &&+ auth.canUpdateMetadata &&+ lib.selectedLibraryId != ApiService.bookDockLibraryId)),canMarkProgress: !lib.isPodcastLibrary,canDelete: auth.canDelete,canDownload: !lib.isPodcastLibrary,@@ -507,12 +514,17 @@ class HomeScreenState extends State<HomeScreen> with SingleTickerProviderStateMi.toList(),),),- onQuickMatch: () => _runBatchAction(- () => DesktopBatchActions.quickMatch(+ onQuickMatch: () => _runBatchAction(() async {+ final ok = await DesktopBatchActions.quickMatch(context,_selectedItemIds.toList(),- ),- ),+ onProgress: (done, total) {+ if (mounted) setState(() => _bookMatchProgress = '$done/$total');+ },+ );+ if (mounted) setState(() => _bookMatchProgress = null);+ return ok;+ }),onMarkFinished: () => _runBatchAction(() => DesktopBatchActions.setFinished(context,diff --git a/lib/screens/library_screen.dart b/lib/screens/library_screen.dartindex bd0ac57c..e11fc6eb 100644--- a/lib/screens/library_screen.dart+++ b/lib/screens/library_screen.dart@@ -402,6 +402,7 @@ class LibraryScreenState extends State<LibraryScreen>String? _matchingAuthorId;int _authorMatchPosition = 0;int _authorMatchTotal = 0;+ String? _bookMatchProgress;final Set<String> _selectedItemIds = {};int? _lastSelectedVisibleIndex;@@ -2809,7 +2810,8 @@ class LibraryScreenState extends State<LibraryScreen>selectedCount: _selectedItemIds.length,selectableCount: selectableCount,busy: _batchActionBusy,- canQuickMatch: auth.isAdmin && !libWatch.isPodcastLibrary,+ busyLabel: _bookMatchProgress,+ canQuickMatch: _canQuickMatchBooks(auth, libWatch),canMarkProgress: !libWatch.isPodcastLibrary,canDelete: auth.canDelete,canDownload: !libWatch.isPodcastLibrary,@@ -2823,12 +2825,17 @@ class LibraryScreenState extends State<LibraryScreen>.toList(),),),- onQuickMatch: () => _runBatchAction(- () => DesktopBatchActions.quickMatch(+ onQuickMatch: () => _runBatchAction(() async {+ final ok = await DesktopBatchActions.quickMatch(context,_selectedItemIds.toList(),- ),- ),+ onProgress: (done, total) {+ if (mounted) setState(() => _bookMatchProgress = '$done/$total');+ },+ );+ if (mounted) setState(() => _bookMatchProgress = null);+ return ok;+ }),onMarkFinished: () => _runBatchAction(() => DesktopBatchActions.setFinished(context,@@ -3789,6 +3796,16 @@ class LibraryScreenState extends State<LibraryScreen>});}+ /// Audiobookshelf admins, and on BookOrbit anyone who may edit metadata.+ /// Book Dock files aren't books yet, so they can't be matched in bulk.+ bool _canQuickMatchBooks(AuthProvider auth, LibraryProvider lib) {+ if (lib.isPodcastLibrary) return false;+ if (auth.isAdmin) return true;+ return auth.isBookOrbit &&+ auth.canUpdateMetadata &&+ lib.selectedLibraryId != ApiService.bookDockLibraryId;+ }+List<Map<String, dynamic>> _selectedAuthors() {return _authors.where((author) => _selectedItemIds.contains(author['id']))diff --git a/lib/screens/login_screen.dart b/lib/screens/login_screen.dartindex 12eccd56..62fc0ee5 100644--- a/lib/screens/login_screen.dart+++ b/lib/screens/login_screen.dart@@ -1051,7 +1051,7 @@ class _LoginScreenState extends State<LoginScreen>),TextButton.icon(onPressed: () => launchUrl(- Uri.parse('https://discord.gg/bwH6hdvzZ4'),+ Uri.parse('https://discord.gg/vkEg8w7RUd'),mode: LaunchMode.externalApplication,),icon: const Icon(Icons.discord, size: 16),diff --git a/lib/screens/server_notifications_screen.dart b/lib/screens/server_notifications_screen.dartindex f54fbae9..268ee1f3 100644--- a/lib/screens/server_notifications_screen.dart+++ b/lib/screens/server_notifications_screen.dart@@ -327,6 +327,7 @@ IconData notificationCategoryIcon(String? category) => switch (category) {'email' => Icons.mail_outline_rounded,'achievements' => Icons.emoji_events_rounded,'podcasts' => Icons.podcasts_rounded,+ 'readAloud' => Icons.record_voice_over_rounded,_ => Icons.notifications_rounded,};@@ -433,6 +434,7 @@ class NotificationSettingsSheet extends StatefulWidget {class _NotificationSettingsSheetState extends State<NotificationSettingsSheet> {Map<String, String>? _levels;bool _requests = false;+ bool _readAlongs = false;bool _failed = false;@override@@ -444,11 +446,16 @@ class _NotificationSettingsSheetState extends State<NotificationSettingsSheet> {Future<void> _load() async {final api = context.read<AuthProvider>().apiService;if (api == null) return;- final (levels, access) = await (api.notificationLevels(), api.bookRequestAccess()).wait;+ final (levels, access, readAlongs) = await (+ api.notificationLevels(),+ api.bookRequestAccess(),+ api is BookOrbitApiService ? api.canMakeReadAlongs() : Future.value(false),+ ).wait;if (!mounted) return;setState(() {_levels = levels;_requests = access.canRequest;+ _readAlongs = readAlongs;_failed = levels == null;});}@@ -485,6 +492,7 @@ class _NotificationSettingsSheetState extends State<NotificationSettingsSheet> {'bookRequests' => (l.boNotifyBookRequests, l.boNotifyBookRequestsDesc),'email' => (l.boNotifyEmail, l.boNotifyEmailDesc),'achievements' => (l.boNotifyAchievements, l.boNotifyAchievementsDesc),+ 'readAloud' => (l.boNotifyReadAlong, l.boNotifyReadAlongDesc),_ => (category, ''),};@@ -532,7 +540,7 @@ class _NotificationSettingsSheetState extends State<NotificationSettingsSheet> {style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6), fontWeight: FontWeight.w600, letterSpacing: 0.5)),for (final category in categories)- if (category != 'bookRequests' || _requests)+ if ((category != 'bookRequests' || _requests) && (category != 'readAloud' || _readAlongs))_categoryRow(cs, tt, l, category, levels[category] ?? notificationLevelAll),],],diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dartindex 8ac2fc0e..6541a336 100644--- a/lib/screens/settings_screen.dart+++ b/lib/screens/settings_screen.dart@@ -29,6 +29,7 @@ import '../widgets/nav_hold_options.dart';import '../widgets/now_playing_text_sheet.dart';import '../screens/admin_screen.dart';import '../screens/bookorbit_admin_screen.dart';+import '../screens/bookorbit_email_screen.dart';import '../screens/book_requests_screen.dart';import '../screens/achievements_screen.dart';import '../screens/server_notifications_screen.dart';@@ -624,13 +625,14 @@ class _SettingsScreenState extends State<SettingsScreen> {Future<void> _showNavHoldDialog() async {final l = AppLocalizations.of(context)!;- final isAdmin = context.read<AuthProvider>().isAdmin;+ final auth = context.read<AuthProvider>();final libraries = context.read<LibraryProvider>().libraries;final ids = navHoldAllIds(- isAdmin: isAdmin,+ admin: NavHoldAdmin.forAccount(isAdmin: auth.isAdmin, bookOrbit: auth.bookOrbitAdmin),libraryIds: [for (final lib in libraries)- if ((lib['id'] as String?)?.isNotEmpty == true) lib['id'] as String,+ if ((lib['id'] as String?)?.isNotEmpty == true && lib['id'] != ApiService.bookDockLibraryId)+ lib['id'] as String,],bookRequests: context.read<AuthProvider>().apiService?.isBookOrbit == true,);@@ -4470,7 +4472,7 @@ class _SettingsScreenState extends State<SettingsScreen> {trailing: Icon(Icons.open_in_new_rounded,size: 18, color: cs.onSurfaceVariant),onTap: () => launchUrl(- Uri.parse('https://discord.gg/bwH6hdvzZ4'),+ Uri.parse('https://discord.gg/vkEg8w7RUd'),mode: LaunchMode.externalApplication),),const Divider(height: 1, indent: 16, endIndent: 16),@@ -5351,6 +5353,29 @@ class _SettingsScreenState extends State<SettingsScreen> {),Divider(height: 1, indent: 20, endIndent: 20, color: cs.onSurface.withValues(alpha: 0.06)),],+ if (auth.bookOrbitAdmin?.email == true) ...[+ InkWell(+ onTap: () {+ Navigator.pop(ctx);+ Navigator.of(context).push(MaterialPageRoute(+ builder: (_) => const BookOrbitEmailScreen(),+ ));+ },+ child: Padding(+ padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 12),+ child: Row(children: [+ Icon(Icons.forward_to_inbox_rounded, size: 20, color: cs.onSurfaceVariant),+ const SizedBox(width: 14),+ Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text(l.boEmailTitle, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.boEmailSubtitle, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),+ ])),+ Icon(Icons.chevron_right_rounded, size: 18, color: cs.onSurfaceVariant),+ ]),+ ),+ ),+ Divider(height: 1, indent: 20, endIndent: 20, color: cs.onSurface.withValues(alpha: 0.06)),+ ],if (auth.isBookOrbit && (_boAchievementsOn != null || _boNotificationsOn)) ...[if (_boNotificationsOn)InkWell(diff --git a/lib/screens/upcoming_releases_screen.dart b/lib/screens/upcoming_releases_screen.dartindex e42d74c4..d6690d14 100644--- a/lib/screens/upcoming_releases_screen.dart+++ b/lib/screens/upcoming_releases_screen.dart@@ -12,6 +12,7 @@ import '../services/upcoming_releases_service.dart';import '../utils/series_number_match.dart';import '../widgets/absorb_page_header.dart';+import '../widgets/audible_book_request.dart';import '../widgets/audible_series_sheet.dart';import '../widgets/overlay_toast.dart';import '../widgets/rmab_book_detail_sheet.dart';@@ -36,6 +37,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {String _region = 'us';bool _sortByDate = false;bool _rmabConfigured = false;+ bool _serverRequests = false;int _finishedAfterYears = 3;int _viewFilter = 0; // 0 = upcoming, 1 = missingfinal Set<String> _selectedAsins = {};@@ -48,6 +50,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {_service.addListener(_onServiceChanged);_initAndStart();_loadRmabConfigured();+ _loadServerRequests();if (widget.openScanChooser) {// After the first frame so the sheet has a laid-out screen behind it,// and not while a scan the screen kicked off itself is already running.@@ -69,6 +72,13 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {}}+ Future<void> _loadServerRequests() async {+ final ok = await canRequestAudibleBooks(context.read<AuthProvider>().apiService);+ if (mounted && ok) setState(() => _serverRequests = true);+ }++ bool get _canRequest => _serverRequests || _rmabConfigured;+Future<void> _initAndStart() async {final saved = await PlayerSettings.getAudibleRegion();_region = saved.isNotEmpty ? saved : ApiService.debugRegion;@@ -536,9 +546,9 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {final cs = Theme.of(context).colorScheme;final isOwned = book['_owned'] == true;final seriesContext = _seriesContextFor(book['asin'] as String? ?? '');- // Show the RMAB request entry only for books that have been released but- // aren't in the library yet, and only when the user has RMAB configured.- final showRequest = _rmabConfigured && !isOwned && !isUpcoming;+ // Request only books that are out but not in the library, from BookOrbit+ // when this account can ask it, otherwise from ReadMeABook.+ final showRequest = _canRequest && !isOwned && !isUpcoming;showAudibleBookMenu(context,book: book,seriesName: seriesName,@@ -575,13 +585,18 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {if (showRequest)ListTile(leading: Icon(Icons.menu_book_rounded, color: cs.primary, size: 22),- title: Text(l.rmabRequestCta,+ title: Text(_serverRequests ? l.breqRequest : l.rmabRequestCta,style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),dense: true,visualDensity: VisualDensity.compact,onTap: () {Navigator.pop(context);+ final api = context.read<AuthProvider>().apiService;+ if (_serverRequests && api != null) {+ requestAudibleBooks(context, api, [(book: book, seriesName: seriesName)]);+ return;+ }final asin = book['asin'] as String? ?? '';final title = book['title'] as String? ?? '';debugPrint(@@ -659,22 +674,22 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {}/// All books currently on the page, keyed by ASIN, for multi-select.- Map<String, ({Map<String, dynamic> book, bool isUpcoming})> _selectableBooks() {- final map = <String, ({Map<String, dynamic> book, bool isUpcoming})>{};+ Map<String, ({Map<String, dynamic> book, bool isUpcoming, String seriesName})> _selectableBooks() {+ final map = <String, ({Map<String, dynamic> book, bool isUpcoming, String seriesName})>{};for (final r in _service.results) {for (final b in r.upcomingBooks) {final a = b['asin'] as String? ?? '';- if (a.isNotEmpty) map[a] = (book: b, isUpcoming: true);+ if (a.isNotEmpty) map[a] = (book: b, isUpcoming: true, seriesName: r.seriesName);}for (final b in r.recentBooks) {final a = b['asin'] as String? ?? '';- if (a.isNotEmpty) map[a] = (book: b, isUpcoming: false);+ if (a.isNotEmpty) map[a] = (book: b, isUpcoming: false, seriesName: r.seriesName);}}for (final r in _service.missingResults) {for (final b in r.missingBooks) {final a = b['asin'] as String? ?? '';- if (a.isNotEmpty) map.putIfAbsent(a, () => (book: b, isUpcoming: false));+ if (a.isNotEmpty) map.putIfAbsent(a, () => (book: b, isUpcoming: false, seriesName: r.seriesName));}}return map;@@ -708,12 +723,26 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Future<void> _bulkRequest() async {final l = AppLocalizations.of(context)!;final books = _selectableBooks();- final targets = <Map<String, dynamic>>[+ final picked = [for (final a in _selectedAsins)if (books[a] != null && !books[a]!.isUpcoming && books[a]!.book['_owned'] != true)- books[a]!.book,+ books[a]!,];- if (targets.isEmpty) return;+ if (picked.isEmpty) return;+ final api = context.read<AuthProvider>().apiService;+ if (_serverRequests && api != null) {+ setState(() => _bulkBusy = true);+ final sent = await requestAudibleBooks(context, api, [+ for (final p in picked) (book: p.book, seriesName: p.seriesName),+ ]);+ if (!mounted) return;+ setState(() {+ _bulkBusy = false;+ if (sent) _selectedAsins.clear();+ });+ return;+ }+ final targets = [for (final p in picked) p.book];final base = await ScopedPrefs.getString(kRmabBaseUrlKey);final token = await ScopedPrefs.getString(kRmabApiTokenKey);final headers = await loadRmabCustomHeaders();@@ -1029,7 +1058,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Widget _buildSelectionBar(ColorScheme cs, TextTheme tt, AppLocalizations l) {final books = _selectableBooks();- final requestable = _rmabConfigured+ final requestable = _canRequest? _selectedAsins.where((a) {final e = books[a];return e != null && !e.isUpcoming && e.book['_owned'] != true;@@ -1054,7 +1083,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {child: CircularProgressIndicator(strokeWidth: 2)),)else ...[- if (_rmabConfigured)+ if (_canRequest)TextButton.icon(onPressed: requestable == 0 ? null : _bulkRequest,icon: const Icon(Icons.menu_book_rounded, size: 18),diff --git a/lib/services/api_service.dart b/lib/services/api_service.dartindex 6d523e40..1fc4846d 100644--- a/lib/services/api_service.dart+++ b/lib/services/api_service.dart@@ -10,6 +10,7 @@ import 'auth_tokens.dart';import 'book_dock.dart';import 'book_requests.dart';import 'bookorbit_admin.dart';+import 'bookorbit_email.dart';import 'bookorbit_match.dart';import 'bookorbit_mapper.dart';import 'media_overlay.dart';@@ -18,6 +19,8 @@ import 'narration_stream.dart';import 'bookorbit_media_proxy_stub.dart'if (dart.library.io) 'bookorbit_media_proxy.dart';import 'player_settings.dart';+import 'bookorbit_chapters.dart';+import 'read_along_jobs.dart';import 'scoped_prefs.dart';import 'server_notifications.dart';import 'server_backend.dart';@@ -28,6 +31,7 @@ import '../utils/percent_escapes.dart';part 'bookorbit_api_service.dart';part 'bookorbit_admin_api.dart';+part 'bookorbit_email_api.dart';/// Outcome of a local-session upsert. [serverTooOld] flags a 404/501 (the/// server predates /api/session/local) so the caller can fall back to the@@ -4767,10 +4771,12 @@ class ApiService {/// GET /api/search/chapters?asin=®ion=/// Returns the raw result map on 200 (chapters + runtime + brand-intro/outro/// durations, or {error, stringKey} when the lookup fails), else null.- Future<Map<String, dynamic>?> searchChapters(String asin, String region) async {+ /// [itemId] lets BookOrbit look the chapters up itself; Audiobookshelf+ /// ignores it.+ Future<Map<String, dynamic>?> searchChapters(String asin, String region, {String? itemId}) async {try {final uri = Uri.parse('$_cleanBaseUrl/api/search/chapters')- .replace(queryParameters: {'asin': asin, 'region': region});+ .replace(queryParameters: {'asin': asin, 'region': region, 'id': ?itemId});final r = await _authGet(uri, timeout: const Duration(seconds: 20));if (r.statusCode == 200) {final data = jsonDecode(r.body);@@ -4864,6 +4870,19 @@ class ApiService {return 0;}+ /// Delete one of an item's files from the server's disk: an audio track,+ /// the ebook or any other file in its folder. See [deletePodcastEpisode]+ /// for status semantics.+ Future<int> deleteLibraryFile(String itemId, String fileId) async {+ try {+ final r = await _authDelete(+ Uri.parse('$_cleanBaseUrl/api/items/$itemId/file/${Uri.encodeComponent(fileId)}'),+ );+ return r.statusCode;+ } catch (e) { debugPrint('deleteLibraryFile error: $e'); }+ return 0;+ }+/// Delete several library items in one server operation./// Returns the HTTP status code so callers can distinguish a missing/// `delete` permission (403) from other failures. Zero means no request wasdiff --git a/lib/services/book_requests.dart b/lib/services/book_requests.dartindex fca597af..ff265910 100644--- a/lib/services/book_requests.dart+++ b/lib/services/book_requests.dart@@ -12,6 +12,50 @@ const bookRequestMediaKinds = ['audiobook', 'ebook', 'comic'];/// e-books there, and 'both' asks for the e-book and the audiobook together.const bookRequestPairMediaKinds = ['audiobook', 'ebook', 'both'];+// What BookOrbit counts as each format a request brings (packages/types/src/book.ts).+const _requestEbookFormats = {'epub', 'kepub', 'mobi', 'azw3', 'azw', 'fb2', 'pdf', 'djvu', 'cbz', 'cbr', 'cb7', 'cbx'};+const _requestAudioFormats = {'m4b', 'mp3', 'm4a', 'opus', 'ogg', 'flac'};++/// The format a BookOrbit book could be asked for from the book itself, from+/// its detail's files: 'audiobook' when it only has something to read,+/// 'ebook' when it only has audio. Null when it has both, or when its EPUB+/// reads itself aloud, which is both already.+String? missingRequestFormat(List<Map<String, dynamic>> files) {+ var readable = false;+ var audio = false;+ for (final f in files) {+ final role = f['role'];+ if (role != 'primary' && role != 'content') continue;+ final format = '${f['format'] ?? ''}'.toLowerCase();+ if (format == 'epub' && (f['mediaOverlay'] as Map?)?['available'] == true) return null;+ if (_requestEbookFormats.contains(format)) readable = true;+ if (_requestAudioFormats.contains(format)) audio = true;+ }+ if (readable && !audio) return 'audiobook';+ if (audio && !readable) return 'ebook';+ return null;+}++/// A book's missing format and where asking for it stands.+class MissingFormatRequest {+ /// 'audiobook' or 'ebook'.+ final String mediaKind;+ final BookRequestAvailability? availability;++ const MissingFormatRequest(this.mediaKind, [this.availability]);++ /// The other format is in the library already, as a book of its own.+ int? get ownedBookId => availability?.ownedBookId;++ /// This account asked for it already.+ bool get following => ownedBookId == null && availability?.existingRequestId != null && availability!.alreadySubscribed;++ /// Someone else asked for it; this account can join.+ bool get joinable => ownedBookId == null && availability?.existingRequestId != null && !availability!.alreadySubscribed;++ bool get canAsk => ownedBookId == null && !following;+}+/// Statuses a request can still be cancelled from.bool canCancelBookRequest(String status) => !const {'rejected', 'cancelled', 'available'}.contains(status);@@ -411,6 +455,57 @@ Map<String, dynamic> bookRequestPairPayload(};}+/// An Audible book's authors: a comma-joined string from the series lookups,+/// or a list from other sources.+List<String> audibleBookAuthors(Map<String, dynamic> book) {+ final raw = book['authors'];+ final names = raw is List+ ? [for (final a in raw) a is Map ? '${a['name'] ?? ''}' : '$a']+ : '${raw ?? ''}'.split(',');+ return [+ for (final n in names)+ if (n.trim().isNotEmpty) n.trim(),+ ];+}++/// The body of `POST /book-requests` for an audiobook found on Audible, as+/// the series scan and Find Missing Books list them. Null without a title.+Map<String, dynamic>? audibleBookRequestPayload(+ Map<String, dynamic> book, {+ String? seriesName,+ String? note,+ int? libraryId,+}) {+ final title = _clip('${book['title'] ?? ''}', 500);+ if (title == null) return null;+ final asin = _clip('${book['asin'] ?? ''}', 255);+ final authors = audibleBookAuthors(book);+ final index = double.tryParse('${book['sequence'] ?? ''}'.trim());+ final year = DateTime.tryParse('${book['releaseDate'] ?? ''}')?.year;+ final cover = _clip('${book['coverUrl'] ?? ''}', 2048);+ return {+ 'title': title,+ 'mediaKind': 'audiobook',+ 'subtitle': ?_clip('${book['subtitle'] ?? ''}', 500),+ 'authors': [+ for (final a in authors.take(50)) ?_clip(a, 255),+ ],+ 'seriesName': ?_clip(seriesName, 500),+ if (index != null && index >= 0) 'seriesIndex': index.truncate(),+ if (year != null && year >= 0 && year <= 9999) 'publishedYear': year,+ if (cover != null && cover.startsWith('http')) 'coverUrl': cover,+ if (asin != null) ...{+ 'providerKey': 'audible',+ 'providerId': asin,+ 'metadataSources': [+ {'providerKey': 'audible', 'providerId': asin, 'providerLabel': 'Audible'},+ ],+ },+ 'note': ?_clip(note, 2000),+ 'targetLibraryId': ?libraryId,+ };+}+String? _text(Object? v) {final s = v?.toString().trim() ?? '';return s.isEmpty ? null : s;diff --git a/lib/services/book_stats_service.dart b/lib/services/book_stats_service.dartindex 1ff4bb07..7569b45c 100644--- a/lib/services/book_stats_service.dart+++ b/lib/services/book_stats_service.dart@@ -165,10 +165,20 @@ class BookUserStat {/// their sessions haven't changed.final int lastUpdate;double seconds = 0;++ /// Missing on totals cached before it was stored.+ final String? userId;BookUserStat(this.username, this.progress, this.finished, this.finishedAt,- this.lastUpdate);+ this.lastUpdate, {this.userId});++ /// A progress row with nothing on it isn't listening.+ bool get listened => finished || progress > 0 || seconds > 0;++ bool isMe({String? id, String? username}) =>+ id != null && userId != null ? userId == id : this.username == username;Map<String, dynamic> toJson() => {+ 'id': userId,'u': username,'p': progress,'f': finished,@@ -183,6 +193,7 @@ class BookUserStat {j['f'] == true,(j['fa'] as num?)?.toInt(),(j['lu'] as num?)?.toInt() ?? 0,+ userId: j['id'] as String?,)..seconds = (j['s'] as num?)?.toDouble() ?? 0;}@@ -223,9 +234,11 @@ class BookStats extends ChangeNotifier {? 'bookStats_${itemId}_$episodeId': 'bookStats_$itemId';- /// Everyone from the scan except [me].- int othersCount(String? me) =>- users.where((u) => u.username != me).length;+ List<BookUserStat> get listeners => users.where((u) => u.listened).toList();++ /// Everyone who listened except the signed-in account.+ int othersCount({String? id, String? username}) =>+ listeners.where((u) => !u.isMe(id: id, username: username)).length;/// The service mutates the fields above and calls this after each step.void bump() => notifyListeners();@@ -410,6 +423,7 @@ class BookStatsService {p['isFinished'] == true,(p['finishedAt'] as num?)?.toInt(),(p['lastUpdate'] as num?)?.toInt() ?? 0,+ userId: id,);break;}diff --git a/lib/services/bookorbit_admin.dart b/lib/services/bookorbit_admin.dartindex fd39ef42..fde01100 100644--- a/lib/services/bookorbit_admin.dart+++ b/lib/services/bookorbit_admin.dart@@ -7,8 +7,9 @@ library;class BookOrbitAdminError implements Exception {final int status;final String? message;+ final String? code;- const BookOrbitAdminError(this.status, [this.message]);+ const BookOrbitAdminError(this.status, [this.message, this.code]);@overrideString toString() => 'BookOrbit admin $status: ${message ?? ''}';@@ -19,16 +20,23 @@ class BookOrbitAdminAccess {final bool isSuperuser;final bool manageUsers;final bool manageLibraries;+ final bool emailSend;+ final bool manageEmail;final String userId;const BookOrbitAdminAccess({required this.isSuperuser,required this.manageUsers,required this.manageLibraries,+ this.emailSend = false,+ this.manageEmail = false,required this.userId,});- bool get any => isSuperuser || manageUsers || manageLibraries;+ bool get any => isSuperuser || manageUsers || manageLibraries || manageEmail;++ /// Whether the email settings have anything for this user.+ bool get email => emailSend || manageEmail;static BookOrbitAdminAccess? fromUser(Map<String, dynamic>? user) {final bo = user?['bookOrbit'];@@ -39,6 +47,8 @@ class BookOrbitAdminAccess {isSuperuser: superuser,manageUsers: superuser || perms.contains('manage_users'),manageLibraries: superuser || perms.contains('manage_libraries'),+ emailSend: superuser || perms.contains('email_send'),+ manageEmail: superuser || perms.contains('manage_email'),userId: '${user?['id'] ?? ''}',);}diff --git a/lib/services/bookorbit_admin_api.dart b/lib/services/bookorbit_admin_api.dartindex 5e3f3a32..c4f7b88e 100644--- a/lib/services/bookorbit_admin_api.dart+++ b/lib/services/bookorbit_admin_api.dart@@ -7,7 +7,7 @@ extension BookOrbitAdminApi on BookOrbitApiService {try {return await call();} on _BoHttpError catch (e) {- throw BookOrbitAdminError(e.status, e.serverMessage);+ throw BookOrbitAdminError(e.status, e.serverMessage, e.serverCode);} on TimeoutException {throw const BookOrbitAdminError(0);} on http.ClientException {diff --git a/lib/services/bookorbit_api_service.dart b/lib/services/bookorbit_api_service.dartindex 5d50df05..80ffda48 100644--- a/lib/services/bookorbit_api_service.dart+++ b/lib/services/bookorbit_api_service.dart@@ -19,6 +19,15 @@ class _BoHttpError implements Exception {} catch (_) {}return null;}++ /// The machine-readable reason some refusals carry ("KINDLE_ORIGINAL_UNAVAILABLE").+ String? get serverCode {+ try {+ final decoded = jsonDecode(body);+ if (decoded is Map && decoded['code'] is String) return decoded['code'] as String;+ } catch (_) {}+ return null;+ }}class _BoListenSession {@@ -165,6 +174,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {_serverFeatures.clear();_narrations.clear();_narrationLoads.clear();+ _readAlongTimings.clear();_placedSpots.clear();}@@ -1006,7 +1016,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {case 'books':return _json(await _searchBooks(q));case 'chapters':- return _json(await _searchChapters(q['asin'] ?? '', q['region'] ?? 'us'));+ return _json(await _searchChapters(q['asin'] ?? '', q['region'] ?? 'us', bookId: q['id']));}return null;case 'items':@@ -1034,6 +1044,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {return _json({'success': true});}if (n == 4 && at(3) == 'match' && method == 'POST') return _json(await _quickMatch(at(2)));+ if (n == 5 && at(3) == 'file' && method == 'DELETE') return _deleteFile(at(2), at(4));if (n == 4 && at(3) == 'chapters' && method == 'POST') {final chapters = BookOrbitMapper.chapters(body['chapters'] as List<dynamic>? ?? const []);await _boPatch('/books/${at(2)}/metadata', {@@ -1280,13 +1291,17 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {return _details[k]!;}final d = await _boGet('/books/$bookId') as Map<String, dynamic>;+ _keepDetail(k, d);+ return d;+ }++ void _keepDetail(String k, Map<String, dynamic> d) {_details[k] = d;_detailAt[k] = DateTime.now();final cv = d['coverVersion'] as String?;if (cv != null) _coverVersions[k] = cv;final lib = d['libraryId'];if (lib != null) _bookLibrary[k] = '$lib';- return d;}static bool _detailHasAudio(Map<String, dynamic> detail) =>@@ -3156,6 +3171,72 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {return {'updated': before != after, 'libraryItem': item};}+ /// [_quickMatch] for many books in one request. BookOrbit streams one event+ /// per book as it goes; [onProgress] hears how many are done. With+ /// [ignoreCache] every provider is asked again instead of reusing saved+ /// answers.+ Future<({int matched, int failed})> quickMatchBooks(+ List<String> itemIds, {+ bool ignoreCache = false,+ void Function(int done, int total)? onProgress,+ }) async {+ final ids = itemIds.map(int.tryParse).whereType<int>().toList();+ if (ids.isEmpty) return (matched: 0, failed: itemIds.length);+ await _ensureFreshAccessToken();+ final request = http.Request('POST', _boUri('/books/bulk-refresh-metadata'))+ ..headers.addAll({..._headers, 'Accept': 'text/event-stream'})+ ..body = jsonEncode({'bookIds': ids, if (ignoreCache) 'ignoreCache': true});+ final client = _httpClient ?? http.Client();+ var done = 0;+ var matched = 0;+ try {+ final response = await client.send(request).timeout(const Duration(seconds: 30));+ if (response.statusCode != 200) {+ final e = _BoHttpError(response.statusCode, await response.stream.bytesToString());+ throw BookOrbitAdminError(e.status, e.serverMessage, e.serverCode);+ }+ // A stream that goes quiet this long has stalled; what finished is kept.+ final lines = response.stream+ .transform(utf8.decoder)+ .transform(const LineSplitter())+ .timeout(const Duration(minutes: 3));+ await for (final line in lines) {+ if (!line.startsWith('data:')) continue;+ final Object? event;+ try {+ event = jsonDecode(line.substring(5).trim());+ } catch (_) {+ continue;+ }+ if (event is! Map) continue;+ if (event['done'] == true) {+ matched = (event['processed'] as num?)?.toInt() ?? matched;+ break;+ }+ final bookId = event['bookId'];+ if (bookId == null) continue;+ done++;+ final detail = event['detail'];+ if (event['success'] != false && detail is Map<String, dynamic>) {+ matched++;+ final k = _key('$bookId');+ _keepDetail(k, detail);+ _manifests.remove(k);+ _manifestAt.remove(k);+ SocketService().emitLocalItemUpdated(BookOrbitMapper.item(detail: detail));+ }+ onProgress?.call(done, ids.length);+ }+ } on TimeoutException {+ debugPrint('[BookOrbit] Quick match stream stalled after $done of ${ids.length}');+ } finally {+ if (_httpClient == null) client.close();+ }+ _recent.removeWhere((key, _) => key.startsWith('personalized:'));+ // Books the server never reported on count as not matched.+ return (matched: matched, failed: itemIds.length - matched);+ }+Future<http.Response> _deleteBooks(List<String> ids, {required bool hard}) async {// BookOrbit has no way to drop a book and keep its files.if (!hard) return _status(400, 'BookOrbit always deletes the files');@@ -3174,6 +3255,23 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {return _json({'success': true});}+ Future<http.Response> _deleteFile(String bookId, String fileId) async {+ final id = int.tryParse(fileId);+ if (id == null) return _status(404, 'File not found');+ await _boDelete('/books/files/$id');+ debugPrint('[BookOrbit] Deleted file $id of $bookId');+ if (_narrations[_key(bookId)]?.fileId == id) _narrations.remove(_key(bookId));+ if (_readAlongTimings[_key(bookId)]?.fileId == id) _readAlongTimings.remove(_key(bookId));+ // The file is gone either way; a book that couldn't be read back after+ // still shows its old files until the next refresh.+ try {+ await _afterEdit(bookId, chaptersChanged: true);+ } catch (e) {+ debugPrint('[BookOrbit] $bookId not refreshed after deleting file $id: $e');+ }+ return _json({'success': true});+ }+/// Sends only what changed: a new name makes BookOrbit look the author up/// again in the background.Future<Map<String, dynamic>> _updateAuthor(String authorId, Map<String, dynamic> body) async {@@ -3476,6 +3574,91 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {}}+ /// The format [bookId] is missing and could be asked for from the book,+ /// as BookOrbit's book page offers it. Null when this account can't make+ /// requests or hid them, the server can't file a request into a book+ /// (before 3.4), or the book has both formats or reads itself aloud.+ Future<MissingFormatRequest?> missingFormatRequest(String bookId) async {+ final access = await bookRequestAccess();+ if (!access.canRequest || !access.pairs) return null;+ final Map<String, dynamic> detail;+ try {+ detail = await _detail(bookId);+ } catch (e) {+ debugPrint('[BookOrbit] missing format for $bookId: $e');+ return null;+ }+ final kind = missingRequestFormat([+ for (final f in (detail['files'] as List<dynamic>? ?? const []).whereType<Map>()) Map<String, dynamic>.from(f),+ ]);+ if (kind == null) return null;+ final work = _requestWork(detail);+ final title = work['title'] as String?;+ if (title == null) return null;+ try {+ final authors = work['authors'] as List<String>;+ final res = await _boPost('/book-requests/availability', {+ 'items': [+ {+ 'title': title,+ 'mediaKind': kind,+ if (authors.isNotEmpty) 'author': authors.first,+ 'isbn13': ?work['isbn13'],+ },+ ],+ }) as List<dynamic>;+ return MissingFormatRequest(kind, res.isEmpty ? null : BookRequestAvailability.fromJson(res.first));+ } catch (e) {+ // The request can still be made; the answer only says who asked first.+ debugPrint('[BookOrbit] missing $kind availability for $bookId: $e');+ return MissingFormatRequest(kind);+ }+ }++ /// Asks for [mediaKind] of [bookId], aimed at the book so the new format+ /// lands beside the one there instead of as a second book.+ Future<BookRequestSubmitResult> requestMissingFormat(String bookId, String mediaKind) async {+ final id = int.tryParse(bookId);+ if (id == null) return const BookRequestSubmitResult();+ final Map<String, dynamic> detail;+ try {+ detail = await _detail(bookId);+ } catch (e) {+ debugPrint('[BookOrbit] missing format request for $bookId: $e');+ return const BookRequestSubmitResult();+ }+ final work = _requestWork(detail);+ if (work['title'] == null) return const BookRequestSubmitResult();+ debugPrint('[BookOrbit] Requesting the $mediaKind for book $bookId');+ return submitBookRequest({...work, 'mediaKind': mediaKind, 'targetBookId': id});+ }++ /// What BookOrbit's book page sends about a book when asking for its other+ /// format. Its form refuses unknown fields and caps each length.+ static Map<String, dynamic> _requestWork(Map<String, dynamic> detail) {+ String? clip(Object? v, int max) {+ final s = v is String ? v.trim() : '';+ if (s.isEmpty) return null;+ return s.length > max ? s.substring(0, max) : s;+ }++ final files = (detail['files'] as List<dynamic>? ?? const []).whereType<Map>();+ final year = (detail['publishedYear'] as num?)?.toInt();+ return {+ 'title': clip(detail['title'], 500) ?? clip(files.firstOrNull?['filename'], 500),+ 'authors': <String>[+ for (final a in (detail['authors'] as List<dynamic>? ?? const []).whereType<Map>().take(50))+ ?clip(a['name'], 255),+ ],+ 'isbn13': ?clip(detail['isbn13'], 20),+ 'isbn10': ?clip(detail['isbn10'], 20),+ 'seriesName': ?clip(detail['seriesName'], 500),+ if (year != null && year >= 0 && year <= 9999) 'publishedYear': year,+ // The other format should be in the language of the one on the shelf.+ 'language': ?clip(detail['language'], 20),+ };+ }+@overrideFuture<BookRequestPairResult> submitBookRequestPair(Map<String, dynamic> body) async {try {@@ -3759,10 +3942,17 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {/// Chapter lookup by ASIN. BookOrbit only fetches chapters for an ASIN a/// book already has stored, so this asks Audnexus directly, the same/// source Audiobookshelf's lookup reads.- Future<Map<String, dynamic>> _searchChapters(String asin, String region) async {+ Future<Map<String, dynamic>> _searchChapters(String asin, String region, {String? bookId}) async {const notFound = {'error': 'Chapters not found', 'stringKey': 'MessageChaptersNotFound'};final id = asin.trim();if (!RegExp(r'^[A-Za-z0-9]{10}$').hasMatch(id)) return notFound;+ // BookOrbit asks Audible first and Audnexus after; a server without its+ // chapter editor, or with neither reachable, leaves it to the phone.+ if (bookId != null && int.tryParse(bookId) != null) {+ final res = await lookupChapters(bookId, id, region);+ if (res.value != null) return res.value!;+ if (res.failure == BoChapterFailure.notFound && res.message != null) return notFound;+ }final uri = Uri.https('api.audnex.us', '/books/$id/chapters', {'region': region.toLowerCase()});try {final r = await http.get(uri).timeout(const Duration(seconds: 20));@@ -3775,6 +3965,168 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {}}+ static String? _errorCode(String body) {+ try {+ final decoded = jsonDecode(body);+ return decoded is Map ? decoded['errorCode'] as String? : null;+ } catch (_) {+ return null;+ }+ }++ Future<({T? value, BoChapterFailure? failure, String? message})> _chapterCall<T>(+ String what,+ Future<dynamic> Function() call,+ T? Function(Object?) parse,+ ) async {+ try {+ final value = parse(await call());+ if (value == null) return (value: null, failure: BoChapterFailure.failed, message: null);+ return (value: value, failure: null, message: null);+ } on _BoHttpError catch (e) {+ debugPrint('[BookOrbit] chapters: $what failed: $e');+ final code = _errorCode(e.body);+ return (+ value: null,+ failure: boChapterFailureFor(e.status, code),+ message: code == null ? null : e.serverMessage,+ );+ } catch (e) {+ debugPrint('[BookOrbit] chapters: $what failed: $e');+ return (value: null, failure: BoChapterFailure.failed, message: null);+ }+ }++ /// The chapter editor's view of [bookId]: the stored list, its revision and+ /// where else chapters can come from. Null on a server before 3.6.0, which+ /// keeps none of that, or when it couldn't be asked.+ Future<BoChapterState?> chapterState(String bookId) async {+ final res = await _chapterCall('state of $bookId', () => _boGet('/books/$bookId/chapters'), BoChapterState.fromJson);+ return res.value;+ }++ /// Saves the list over [baseRevision], kept in the history. [lock] keeps+ /// rescans and metadata refreshes from replacing it.+ Future<({BoChapterState? value, BoChapterFailure? failure, String? message})> saveChapters(+ String bookId,+ List<BoChapter> chapters, {+ required String baseRevision,+ bool lock = true,+ }) async {+ final res = await _chapterCall(+ 'save for $bookId',+ () => _boPut('/books/$bookId/chapters', {+ 'chapters': [for (final c in chapters) c.toJson()],+ 'baseRevision': baseRevision,+ 'lock': lock,+ }),+ BoChapterState.fromJson,+ );+ if (res.value != null) {+ debugPrint('[BookOrbit] chapters for $bookId saved: ${chapters.length}, ${lock ? 'protected' : 'not protected'}');+ await _chaptersChanged(bookId);+ }+ return res;+ }++ Future<void> _chaptersChanged(String bookId) async {+ try {+ await _afterEdit(bookId, chaptersChanged: true);+ } catch (e) {+ debugPrint('[BookOrbit] $bookId not refreshed after a chapter change: $e');+ }+ }++ Future<({Map<String, dynamic>? value, BoChapterFailure? failure, String? message})> lookupChapters(+ String bookId,+ String asin,+ String region,+ ) =>+ _chapterCall(+ 'lookup $asin for $bookId',+ () => _boGet('/books/$bookId/chapters/lookup', {'asin': asin, 'region': region.toLowerCase()}),+ (raw) => raw is Map<String, dynamic> ? boLookupAsAudnexus(raw) : null,+ );++ /// Chapters named by the book's EPUB: `toc` gives titles only, `read_along`+ /// times on the read along's own narration.+ Future<({BoEbookChapters? value, BoChapterFailure? failure, String? message})> ebookChapters(+ String bookId,+ String source,+ ) =>+ _chapterCall(+ '$source chapters for $bookId',+ () => _boGet('/books/$bookId/chapters/ebook', {'source': source}),+ (raw) => raw is Map+ ? BoEbookChapters(+ BoChapter.listFrom(raw['chapters']),+ titlesOnly: raw['titlesOnly'] == true,+ runtimeMs: (raw['runtimeMs'] as num?)?.round(),+ )+ : null,+ );++ Future<({List<BoChapterVersion>? value, BoChapterFailure? failure, String? message})> chapterVersions(+ String bookId,+ ) =>+ _chapterCall(+ 'history of $bookId',+ () => _boGet('/books/$bookId/chapters/versions'),+ (raw) => raw is List ? [for (final v in raw) ?BoChapterVersion.fromJson(v)] : null,+ );++ Future<({BoChapterVersion? value, BoChapterFailure? failure, String? message})> chapterVersion(+ String bookId,+ int versionId,+ ) =>+ _chapterCall(+ 'version $versionId of $bookId',+ () => _boGet('/books/$bookId/chapters/versions/$versionId'),+ BoChapterVersion.fromJson,+ );++ /// Runs `write` (the saved list into the audio files), `revert` (back to+ /// the files' own chapters) or `read` (the files' chapters, nothing saved)+ /// in BookOrbit's background queue and waits for it. [onProgress] hears+ /// files done of files to do.+ Future<({BoChapterJob? value, BoChapterFailure? failure, String? message})> runChapterJob(+ String bookId,+ String kind, {+ required String baseRevision,+ void Function(int done, int total)? onProgress,+ bool Function()? stillWanted,+ Duration pollEvery = const Duration(seconds: 2),+ Duration giveUpAfter = const Duration(minutes: 20),+ }) async {+ var res = await _chapterCall(+ '$kind for $bookId',+ () => _boPost('/books/$bookId/chapters/jobs/$kind', {'baseRevision': baseRevision}),+ BoChapterJob.fromJson,+ );+ final until = DateTime.now().add(giveUpAfter);+ while (res.value != null && !res.value!.finished) {+ if (DateTime.now().isAfter(until)) {+ debugPrint('[BookOrbit] chapters: $kind for $bookId still running after ${giveUpAfter.inMinutes} minutes');+ return (value: res.value, failure: BoChapterFailure.failed, message: null);+ }+ onProgress?.call(res.value!.filesWritten, res.value!.filesTotal);+ await Future.delayed(pollEvery);+ // BookOrbit carries on without anyone watching.+ if (stillWanted != null && !stillWanted()) return res;+ final id = res.value!.id;+ res = await _chapterCall('$kind $id for $bookId', () => _boGet('/books/$bookId/chapters/jobs/$id'), BoChapterJob.fromJson);+ }+ final job = res.value;+ if (job == null) return res;+ if (!job.succeeded) {+ debugPrint('[BookOrbit] chapters: $kind for $bookId failed: ${job.errorCode}');+ return (value: job, failure: boChapterFailureFor(409, job.errorCode), message: null);+ }+ debugPrint('[BookOrbit] chapters: $kind for $bookId done (${job.filesWritten}/${job.filesTotal} files)');+ if (kind != 'read') await _chaptersChanged(bookId);+ return res;+ }+/// Audiobookshelf-shaped content URLs (`/api/items/<book>/file/<file>`)/// become proxied BookOrbit asset streams.@override@@ -3832,7 +4184,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {final detail = _details[_key(itemId)];if (detail != null) {final media = BookOrbitMapper.item(detail: detail)['media'] as Map<String, dynamic>;- if ('${(media['narration'] as Map?)?['fileId']}' == ino) {+ if ('${(media['narration'] as Map?)?['fileId']}' == ino || '${(media['readAlongEpub'] as Map?)?['fileId']}' == ino) {return BookOrbitMediaProxy.instance.urlFor('/api/v1/books/files/$ino/audioless-epub/download');}}@@ -3978,6 +4330,31 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {return (cfi: cfi, percent: pct, updated: BookOrbitMapper.ms(p['updatedAt']), fileId: fileId);}}+ // A read along EPUB added after reading began has no place of its own+ // until BookOrbit next syncs one. The other copy's percent stands in; its+ // page can't be opened in this copy.+ if ((item['media'] as Map)['readAlongEpub'] != null) {+ final epubs = {+ for (final f in (detail['files'] as List<dynamic>? ?? const []).whereType<Map<String, dynamic>>())+ if ('${f['format']}'.toLowerCase() == 'epub') (f['id'] as num?)?.toInt(),+ };+ Map<String, dynamic>? newest;+ for (final p in fileProgress.whereType<Map<String, dynamic>>()) {+ final pct = (p['percentage'] as num?)?.toDouble() ?? 0;+ if (pct <= 0 || p['fileId'] == fileId || !epubs.contains((p['fileId'] as num?)?.toInt())) continue;+ if (newest == null || (BookOrbitMapper.ms(p['updatedAt']) ?? 0) > (BookOrbitMapper.ms(newest['updatedAt']) ?? 0)) {+ newest = p;+ }+ }+ if (newest != null) {+ return (+ cfi: null,+ percent: (newest['percentage'] as num).toDouble(),+ updated: BookOrbitMapper.ms(newest['updatedAt']),+ fileId: fileId,+ );+ }+ }return (cfi: null, percent: null, updated: null, fileId: fileId);}@@ -4633,19 +5010,69 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {// The same narrated file as last time has the same timings: reading// them again took seconds on a long book, and held up every start.if (cached != null && cached.fileId == fileId) return cached;+ final overlay = await _overlayOf(bookId, fileId);+ if (overlay == null) return null;+ return _narrations[k] = (overlay: overlay, fileId: fileId);+ }++ Future<MediaOverlay?> _overlayOf(String bookId, int fileId) async {final playlist = await _boGet('/epub/$bookId/media-overlay', {'fileId': '$fileId'}) as Map<String, dynamic>;final parsed = MediaOverlay.fromBookOrbit(playlist);if (parsed == null || parsed.isEmpty) return null;- var overlay = parsed;// The playlist names each narrated file only when the contents point// straight at it; the whole contents name the rest.try {final info = await _boGet('/epub/$bookId/info', {'fileId': '$fileId'}) as Map<String, dynamic>;- overlay = overlay.withBookOrbitContents(info);+ return parsed.withBookOrbitContents(info);} catch (e) {debugPrint('[BookOrbit] contents for $bookId not read: $e');+ return parsed;+ }+ }++ static final Map<String, ({MediaOverlay overlay, int fileId, double audio})> _readAlongTimings = {};++ /// The copy of [bookId] to read when it has a read along EPUB matching its+ /// audiobook, so read along can follow that EPUB's timings. Null for any+ /// other book, which keeps the copy it was opened with.+ Future<Map<String, dynamic>?> readAlongReaderFile(String bookId) async {+ Map<String, dynamic>? detail;+ try {+ detail = await _detail(bookId).timeout(const Duration(seconds: 10));+ } catch (e) {+ detail = _details[_key(bookId)];+ debugPrint('[BookOrbit] reader copy for $bookId from ${detail == null ? 'nothing' : 'the last details'}: $e');+ }+ if (detail == null) return null;+ final media = BookOrbitMapper.item(detail: detail)['media'] as Map<String, dynamic>;+ if (media['readAlongEpub'] == null) return null;+ return (media['ebookFile'] as Map?)?.cast<String, dynamic>();+ }++ /// The timings of a read along EPUB that sits beside its audiobook, laid on+ /// the audiobook's timeline so they follow the audiobook as it plays. Null+ /// for a book without one, or when BookOrbit doesn't keep the two in step.+ Future<MediaOverlay?> readAlongTimingsFor(String bookId) async {+ try {+ final media = BookOrbitMapper.item(detail: await _detail(bookId))['media'] as Map<String, dynamic>;+ final readAlong = media['readAlongEpub'] as Map?;+ final fileId = int.tryParse('${readAlong?['fileId']}');+ final audio = (readAlong?['audioDuration'] as num?)?.toDouble() ?? 0;+ if (fileId == null || audio <= 0) return null;+ final k = _key(bookId);+ final cached = _readAlongTimings[k];+ if (cached != null && cached.fileId == fileId && cached.audio == audio) return cached.overlay;+ final overlay = await _overlayOf(bookId, fileId);+ if (overlay == null) return null;+ final laid = overlay.scaledTo(audio);+ debugPrint('[BookOrbit] read along timings for $bookId from file $fileId: '+ '${overlay.clips.length} sentences, ${overlay.duration.toStringAsFixed(0)}s laid on ${audio.toStringAsFixed(0)}s');+ _readAlongTimings[k] = (overlay: laid, fileId: fileId, audio: audio);+ return laid;+ } catch (e) {+ debugPrint('[BookOrbit] read along timings for $bookId failed: $e');+ return null;}- return _narrations[k] = (overlay: overlay, fileId: fileId);}/// Public for the reader's read along: the same narration the player is@@ -4664,6 +5091,112 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {}}+ // BookOrbit checks this marker on its own, never through superuser.+ bool get _demoRestricted => _permissions?.contains('demo_restricted') ?? false;++ /// Whether this account may make read alongs. BookOrbit turns demo+ /// accounts away from every read along route.+ Future<bool> canMakeReadAlongs() async => await _can('library_generate_read_aloud') && !_demoRestricted;++ /// Replacing a read along deletes the old file, so BookOrbit only takes it+ /// from someone who may delete books.+ bool get canReplaceReadAlongs => _hasPermission('library_delete_books');++ /// What [bookId] has to make a read along from, with its latest job. Null+ /// when this account can't make them or the server is older than 3.6.0;+ /// throws when the server couldn't be asked.+ Future<ReadAlongCapability?> readAlongCapability(String bookId) async {+ if (!await canMakeReadAlongs()) return null;+ try {+ return ReadAlongCapability.fromJson(await _boGet('/books/$bookId/read-aloud') as Map<String, dynamic>);+ } on _BoHttpError catch (e) {+ if (e.status == 400 || e.status == 403 || e.status == 404) return null;+ rethrow;+ }+ }++ /// Every track goes in, in the book's order, which is what BookOrbit uses+ /// when none are named.+ Future<({ReadAlongJob? job, ReadAlongFailure? failure})> startReadAlong(+ String bookId, {+ required int epubFileId,+ required String language,+ String granularity = 'sentence',+ int? replaceFileId,+ }) async {+ debugPrint('[BookOrbit] Read along for $bookId: epub $epubFileId, $language, $granularity'+ '${replaceFileId != null ? ', replacing $replaceFileId' : ''}');+ return _readAlongCall('start for $bookId', () => _boPost('/books/$bookId/read-aloud-jobs', {+ 'epubFileId': epubFileId,+ 'language': language,+ 'granularity': granularity,+ 'replaceFileId': ?replaceFileId,+ }));+ }++ Future<({ReadAlongJob? job, ReadAlongFailure? failure})> readAlongJob(String jobId) =>+ _readAlongCall('job $jobId', () => _boGet('/read-aloud-jobs/$jobId'), quiet: true);++ Future<({ReadAlongJob? job, ReadAlongFailure? failure})> cancelReadAlong(String jobId) =>+ _readAlongCall('cancel $jobId', () => _boDelete('/read-aloud-jobs/$jobId'));++ /// Adds output waiting for review to the book as it is.+ Future<({ReadAlongJob? job, ReadAlongFailure? failure})> publishReadAlong(String jobId) =>+ _readAlongCall('publish $jobId', () => _boPost('/read-aloud-jobs/$jobId/publish', const <String, dynamic>{}));++ Future<({ReadAlongJob? job, ReadAlongFailure? failure})> retryReadAlong(String jobId) =>+ _readAlongCall('retry $jobId', () => _boPost('/read-aloud-jobs/$jobId/retry', const <String, dynamic>{}));++ Future<({ReadAlongJob? job, ReadAlongFailure? failure})> dismissReadAlong(String jobId) =>+ _readAlongCall('dismiss $jobId', () => _boPost('/read-aloud-jobs/$jobId/dismiss', const <String, dynamic>{}));++ Future<({ReadAlongJob? job, ReadAlongFailure? failure})> _readAlongCall(+ String what,+ Future<dynamic> Function() send, {+ bool quiet = false,+ }) async {+ try {+ final job = ReadAlongJob.fromJson(await send());+ if (job == null) {+ debugPrint('[BookOrbit] Read along $what: unreadable answer');+ return (job: null, failure: ReadAlongFailure.failed);+ }+ if (!quiet) debugPrint('[BookOrbit] Read along $what: ${job.status} at ${job.stage}');+ return (job: job, failure: null);+ } on _BoHttpError catch (e) {+ debugPrint('[BookOrbit] Read along $what: ${e.status} ${e.message}');+ return (job: null, failure: readAlongFailureFor(e.status));+ } catch (e) {+ debugPrint('[BookOrbit] Read along $what: $e');+ return (job: null, failure: ReadAlongFailure.failed);+ }+ }++ /// The narration language picked first when a book names none the speech+ /// model knows.+ Future<String?> readAlongDefaultLanguage() async {+ try {+ final res = await _boGet('/user-preferences/read-aloud') as Map<String, dynamic>;+ final code = (res['settings'] as Map?)?['defaultLanguage'];+ return code is String && code.isNotEmpty ? code : null;+ } catch (e) {+ debugPrint('[BookOrbit] Read along default language not read: $e');+ return null;+ }+ }++ Future<bool> setReadAlongDefaultLanguage(String code) async {+ try {+ await _boPut('/user-preferences/read-aloud', {+ 'settings': {'defaultLanguage': code},+ });+ return true;+ } catch (e) {+ debugPrint('[BookOrbit] Read along default language not saved: $e');+ return false;+ }+ }+/// BookOrbit keeps reading sessions of its own: the time goes on the ebook/// file as reading, not listening.@override@@ -5476,7 +6009,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {@overrideFuture<bool> hasServerNotifications() async =>- await _can('notification_access') && !_hasPermission('demo_restricted');+ await _can('notification_access') && !_demoRestricted;@overrideFuture<({List<ServerNotification> items, int total})?> serverNotifications({int limit = 20, int offset = 0}) async {diff --git a/lib/services/bookorbit_chapters.dart b/lib/services/bookorbit_chapters.dartnew file mode 100644index 00000000..07f8473f--- /dev/null+++ b/lib/services/bookorbit_chapters.dart@@ -0,0 +1,223 @@+/// BookOrbit's chapter editor (3.6.0 and newer): the stored list with its+/// revision, where it came from, and what else can name a book's chapters.+library;++class BoChapter {+ final String title;+ final int startMs;+ const BoChapter(this.title, this.startMs);++ static List<BoChapter> listFrom(Object? raw) => [+ for (final c in (raw as List<dynamic>? ?? const []).whereType<Map>())+ BoChapter('${c['title'] ?? ''}', (c['startMs'] as num?)?.round() ?? 0),+ ];++ Map<String, dynamic> toJson() => {'title': title, 'startMs': startMs};+}++class BoChapterState {+ final List<BoChapter> chapters;++ /// embedded, tracks, provider, migration or manual.+ final String? source;++ /// Nothing stored: one chapter per audio file, worked out on the fly.+ final bool derived;++ /// Rescans and metadata refreshes leave the list alone.+ final bool locked;+ final String revision;+ final DateTime? updatedAt;+ final String? updatedBy;+ final int? totalDurationMs;+ final String? audibleId;+ final int versionCount;+ final String audibleRegion;+ final int? ebookFileId;+ final int? readAlongFileId;+ final bool canWrite;+ final String? writeBlockedReason;+ final int writeFileCount;++ const BoChapterState({+ required this.chapters,+ required this.source,+ required this.derived,+ required this.locked,+ required this.revision,+ this.updatedAt,+ this.updatedBy,+ this.totalDurationMs,+ this.audibleId,+ this.versionCount = 0,+ this.audibleRegion = 'us',+ this.ebookFileId,+ this.readAlongFileId,+ this.canWrite = false,+ this.writeBlockedReason,+ this.writeFileCount = 0,+ });++ static BoChapterState? fromJson(Object? raw) {+ if (raw is! Map) return null;+ final revision = raw['revision'];+ if (revision is! String || revision.isEmpty) return null;+ final sources = raw['sources'] as Map? ?? const {};+ final write = raw['writeBack'] as Map? ?? const {};+ return BoChapterState(+ chapters: BoChapter.listFrom(raw['chapters']),+ source: raw['source'] as String?,+ derived: raw['derived'] == true,+ locked: raw['locked'] == true,+ revision: revision,+ updatedAt: DateTime.tryParse('${raw['updatedAt'] ?? ''}'),+ updatedBy: (raw['updatedBy'] as Map?)?['name'] as String?,+ totalDurationMs: (raw['totalDurationMs'] as num?)?.round(),+ audibleId: raw['audibleId'] as String?,+ versionCount: (raw['versionCount'] as num?)?.toInt() ?? 0,+ audibleRegion: raw['audibleRegion'] as String? ?? 'us',+ ebookFileId: (sources['ebookFileId'] as num?)?.toInt(),+ readAlongFileId: (sources['readAlongFileId'] as num?)?.toInt(),+ canWrite: write['available'] == true,+ writeBlockedReason: write['reason'] as String?,+ writeFileCount: (write['fileCount'] as num?)?.toInt() ?? 0,+ );+ }+}++class BoChapterVersion {+ final int id;+ final String source;+ final int chapterCount;+ final DateTime? createdAt;+ final String? createdBy;+ final List<BoChapter> chapters;++ const BoChapterVersion({+ required this.id,+ required this.source,+ required this.chapterCount,+ this.createdAt,+ this.createdBy,+ this.chapters = const [],+ });++ static BoChapterVersion? fromJson(Object? raw) {+ if (raw is! Map || raw['id'] is! num) return null;+ return BoChapterVersion(+ id: (raw['id'] as num).toInt(),+ source: '${raw['source'] ?? 'manual'}',+ chapterCount: (raw['chapterCount'] as num?)?.toInt() ?? 0,+ createdAt: DateTime.tryParse('${raw['createdAt'] ?? ''}'),+ createdBy: (raw['createdBy'] as Map?)?['name'] as String?,+ chapters: BoChapter.listFrom(raw['chapters']),+ );+ }+}++/// Chapters read from the book's EPUB: its contents (titles in order, no+/// times) or its read along (times on the narration's own timeline).+class BoEbookChapters {+ final List<BoChapter> chapters;+ final bool titlesOnly;+ final int? runtimeMs;+ const BoEbookChapters(this.chapters, {required this.titlesOnly, this.runtimeMs});+}++/// Why a chapter call didn't go through. [stale]: someone saved a newer list+/// since this one was loaded.+enum BoChapterFailure { stale, invalid, notFound, unavailable, forbidden, failed }++BoChapterFailure boChapterFailureFor(int status, String? errorCode) {+ if (errorCode == 'CHAPTERS_STALE') return BoChapterFailure.stale;+ if (errorCode == 'CHAPTERS_LOOKUP_NOT_FOUND') return BoChapterFailure.notFound;+ if (errorCode == 'CHAPTERS_LOOKUP_UNAVAILABLE' ||+ errorCode == 'CHAPTERS_EBOOK_UNAVAILABLE' ||+ errorCode == 'CHAPTERS_WRITE_UNAVAILABLE' ||+ errorCode == 'CHAPTERS_NOTHING_TO_WRITE' ||+ errorCode == 'CHAPTERS_FILES_UNREADABLE') {+ return BoChapterFailure.unavailable;+ }+ return switch (status) {+ 400 => BoChapterFailure.invalid,+ 403 => BoChapterFailure.forbidden,+ 404 => BoChapterFailure.notFound,+ 409 || 503 => BoChapterFailure.unavailable,+ _ => BoChapterFailure.failed,+ };+}++/// A write into the audio files, a revert, or a read of the files' own+/// chapters, which BookOrbit runs in the background.+class BoChapterJob {+ final String id;+ final String kind;+ final String status;+ final int filesWritten;+ final int filesTotal;+ final Map<String, dynamic>? result;+ final String? errorCode;++ const BoChapterJob({+ required this.id,+ required this.kind,+ required this.status,+ this.filesWritten = 0,+ this.filesTotal = 0,+ this.result,+ this.errorCode,+ });++ bool get finished => status == 'success' || status == 'failed';+ bool get succeeded => status == 'success';++ static BoChapterJob? fromJson(Object? raw) {+ if (raw is! Map || raw['id'] is! String) return null;+ return BoChapterJob(+ id: raw['id'] as String,+ kind: '${raw['kind'] ?? ''}',+ status: '${raw['status'] ?? 'queued'}',+ filesWritten: (raw['filesWritten'] as num?)?.toInt() ?? 0,+ filesTotal: (raw['filesTotal'] as num?)?.toInt() ?? 0,+ result: (raw['result'] as Map?)?.cast<String, dynamic>(),+ errorCode: raw['errorCode'] as String?,+ );+ }+}++/// A BookOrbit lookup in the Audnexus shape the chapter editor's lookup+/// takes. Audible nests chapters under parts; a part keeps its own chapter,+/// since it usually carries a few seconds of announcement.+Map<String, dynamic> boLookupAsAudnexus(Map<String, dynamic> lookup) {+ final flat = <Map<String, dynamic>>[];+ void walk(Object? nodes) {+ for (final n in (nodes as List<dynamic>? ?? const []).whereType<Map>()) {+ final start = (n['startMs'] as num?)?.round() ?? 0;+ final children = (n['children'] as List<dynamic>? ?? const []).whereType<Map>().toList();+ final firstChild = children.isEmpty ? null : (children.first['startMs'] as num?)?.round();+ // A part with no audio of its own starts with its first chapter.+ if (firstChild != null && start >= firstChild) {+ walk(children);+ continue;+ }+ flat.add({+ 'title': '${n['title'] ?? ''}',+ 'startOffsetMs': start,+ 'startOffsetSec': start ~/ 1000,+ 'lengthMs': (n['lengthMs'] as num?)?.round() ?? 0,+ });+ walk(n['children']);+ }+ }++ walk(lookup['chapters']);+ flat.sort((a, b) => (a['startOffsetMs'] as int).compareTo(b['startOffsetMs'] as int));+ return {+ 'asin': lookup['asin'],+ 'brandIntroDurationMs': (lookup['brandIntroMs'] as num?)?.round() ?? 0,+ 'brandOutroDurationMs': (lookup['brandOutroMs'] as num?)?.round() ?? 0,+ 'isAccurate': lookup['isAccurate'],+ if (lookup['runtimeMs'] is num) 'runtimeLengthMs': (lookup['runtimeMs'] as num).round(),+ 'chapters': flat,+ };+}diff --git a/lib/services/bookorbit_email.dart b/lib/services/bookorbit_email.dartnew file mode 100644index 00000000..4531cff1--- /dev/null+++ b/lib/services/bookorbit_email.dart@@ -0,0 +1,420 @@+/// Sending books by email on BookOrbit: mail servers, the devices and+/// people books go to, groups of them, message templates and what was sent.+/// The calls live on BookOrbitApiService (bookorbit_email_api.dart).+library;++DateTime? _date(Object? v) => v is String ? DateTime.tryParse(v)?.toLocal() : null;+int? _intOrNull(Object? v) => v is num ? v.toInt() : int.tryParse('${v ?? ''}');+String? _text(Object? v) => v is String && v.trim().isNotEmpty ? v : null;++/// Device types a BookOrbit recipient can be.+const boEmailDeviceTypes = ['kindle', 'kobo', 'other'];++/// Formats a recipient can ask for.+const boEmailFormats = ['epub', 'pdf', 'mobi', 'azw3', 'cbz', 'cbr', 'djvu'];++/// What Amazon's Send to Kindle takes by email since 2023.+const boKindleFormats = ['epub', 'pdf'];++List<String> boFormatsFor(String? deviceType) => deviceType == 'kindle' ? boKindleFormats : boEmailFormats;++bool boKindleAccepts(String format) => boKindleFormats.contains(format.toLowerCase());++const _audioFormats = {'m4b', 'mp3', 'm4a', 'opus', 'ogg', 'flac'};+const _bookFormats = {+ 'epub', 'kepub', 'mobi', 'azw3', 'azw', 'fb2', 'pdf', 'djvu', 'cbz', 'cbr', 'cb7', 'cbx',+};++class BoMailServer {+ final int id;+ final int? ownerId;+ final String name;+ final String host;+ final int port;+ final String? username;+ final String? fromName;+ final String? fromAddress;+ final bool auth;+ final bool ssl;+ final bool startTls;+ final bool verifyTls;+ final bool isDefault;+ final bool isShared;+ final bool isSystem;+ final bool hasPassword;+ final DateTime? lastTestedAt;+ final bool? lastTestOk;+ final String? lastTestError;++ const BoMailServer({+ required this.id,+ this.ownerId,+ required this.name,+ required this.host,+ required this.port,+ this.username,+ this.fromName,+ this.fromAddress,+ this.auth = true,+ this.ssl = false,+ this.startTls = true,+ this.verifyTls = true,+ this.isDefault = false,+ this.isShared = false,+ this.isSystem = false,+ this.hasPassword = false,+ this.lastTestedAt,+ this.lastTestOk,+ this.lastTestError,+ });++ factory BoMailServer.fromJson(Map<String, dynamic> j) => BoMailServer(+ id: (j['id'] as num).toInt(),+ ownerId: _intOrNull(j['userId']),+ name: '${j['name'] ?? ''}',+ host: '${j['host'] ?? ''}',+ port: _intOrNull(j['port']) ?? 587,+ username: _text(j['username']),+ fromName: _text(j['fromName']),+ fromAddress: _text(j['fromAddress']),+ auth: j['auth'] != false,+ ssl: j['ssl'] == true,+ startTls: j['startTls'] == true,+ verifyTls: j['tlsRejectUnauthorized'] != false,+ isDefault: j['isDefault'] == true,+ isShared: j['isShared'] == true,+ isSystem: j['isSystemProvider'] == true,+ hasPassword: j['hasPassword'] == true,+ lastTestedAt: _date(j['lastTestedAt']),+ lastTestOk: j['lastTestOk'] is bool ? j['lastTestOk'] as bool : null,+ lastTestError: _text(j['lastTestError']),+ );++ bool ownedBy(String userId) => ownerId != null && '$ownerId' == userId;++ /// The address a Kindle has to approve before it takes mail from here.+ String? get sender => fromAddress ?? (username != null && username!.contains('@') ? username : null);++ BoMailSecurity get security => ssl+ ? BoMailSecurity.ssl+ : startTls+ ? BoMailSecurity.startTls+ : BoMailSecurity.none;+}++enum BoMailSecurity { startTls, ssl, none }++/// Ready-made settings for the mail services most people use.+class BoMailPreset {+ final String key;+ final String name;+ final String host;+ final int port;+ final BoMailSecurity security;+ final bool appPassword;++ const BoMailPreset(this.key, this.name, this.host, this.port, this.security, {this.appPassword = false});++ static const all = [+ BoMailPreset('gmail', 'Gmail', 'smtp.gmail.com', 587, BoMailSecurity.startTls, appPassword: true),+ BoMailPreset('outlook', 'Outlook', 'smtp-mail.outlook.com', 587, BoMailSecurity.startTls),+ BoMailPreset('icloud', 'iCloud Mail', 'smtp.mail.me.com', 587, BoMailSecurity.startTls, appPassword: true),+ BoMailPreset('fastmail', 'Fastmail', 'smtp.fastmail.com', 465, BoMailSecurity.ssl),+ ];++ static BoMailPreset? forHost(String host) {+ final h = host.trim().toLowerCase();+ for (final p in all) {+ if (p.host == h) return p;+ }+ return null;+ }+}++class BoEmailLastSend {+ final String? bookTitle;+ final String status;+ final DateTime? createdAt;+ final String? errorMessage;++ const BoEmailLastSend({this.bookTitle, required this.status, this.createdAt, this.errorMessage});++ static BoEmailLastSend? fromJson(Object? j) {+ if (j is! Map) return null;+ return BoEmailLastSend(+ bookTitle: _text(j['bookTitle']),+ status: '${j['status'] ?? 'sent'}',+ createdAt: _date(j['createdAt']),+ errorMessage: _text(j['errorMessage']),+ );+ }+}++/// Where a book can be sent: an e-reader's address, or a person's inbox.+class BoEmailDevice {+ final int id;+ final String name;+ final String email;+ final String? deviceType;+ final String? preferredFormat;+ final int? templateId;+ final String? readAlong;+ final BoEmailLastSend? lastSend;++ const BoEmailDevice({+ required this.id,+ required this.name,+ required this.email,+ this.deviceType,+ this.preferredFormat,+ this.templateId,+ this.readAlong,+ this.lastSend,+ });++ factory BoEmailDevice.fromJson(Map<String, dynamic> j) => BoEmailDevice(+ id: (j['id'] as num).toInt(),+ name: '${j['name'] ?? ''}',+ email: '${j['email'] ?? ''}',+ deviceType: _text(j['deviceType']),+ preferredFormat: _text(j['preferredFormat'])?.toLowerCase(),+ templateId: _intOrNull(j['defaultTemplateId']),+ readAlong: _text(j['readAloudDelivery']),+ lastSend: BoEmailLastSend.fromJson(j['lastSend']),+ );++ bool get isKindle => deviceType == 'kindle';+}++class BoEmailGroup {+ final int id;+ final String name;+ final int? templateId;+ final List<BoEmailDevice> members;++ const BoEmailGroup({required this.id, required this.name, this.templateId, this.members = const []});++ factory BoEmailGroup.fromJson(Map<String, dynamic> j) => BoEmailGroup(+ id: (j['id'] as num).toInt(),+ name: '${j['name'] ?? ''}',+ templateId: _intOrNull(j['defaultTemplateId']),+ members: [+ for (final m in (j['members'] as List? ?? const []).whereType<Map<String, dynamic>>()) BoEmailDevice.fromJson(m),+ ],+ );++ Set<int> get memberIds => {for (final m in members) m.id};+}++class BoEmailTemplate {+ final int id;+ final int? ownerId;+ final String name;+ final String subject;+ final String body;+ final bool isSystem;++ const BoEmailTemplate({+ required this.id,+ this.ownerId,+ required this.name,+ required this.subject,+ required this.body,+ this.isSystem = false,+ });++ factory BoEmailTemplate.fromJson(Map<String, dynamic> j) => BoEmailTemplate(+ id: (j['id'] as num).toInt(),+ ownerId: _intOrNull(j['userId']),+ name: '${j['name'] ?? ''}',+ subject: '${j['subject'] ?? ''}',+ body: '${j['bodyText'] ?? ''}',+ isSystem: j['isSystem'] == true,+ );+}++/// The names a template can use, replaced with the book's details when it goes out.+const boTemplateVariables = {+ 'book': ['title', 'subtitle', 'authors', 'seriesName', 'seriesIndex', 'publisher', 'publishedYear', 'pageCount', 'isbn', 'language', 'tags'],+ 'file': ['format', 'fileSize'],+ 'other': ['senderName', 'appUrl', 'coverUrl'],+};++/// The server, device and template sending uses when none is picked.+class BoEmailDefaults {+ final int? serverId;+ final int? deviceId;+ final int? templateId;++ const BoEmailDefaults({this.serverId, this.deviceId, this.templateId});++ factory BoEmailDefaults.fromJson(Map<String, dynamic>? j) => BoEmailDefaults(+ serverId: _intOrNull(j?['defaultProviderId']),+ deviceId: _intOrNull(j?['defaultRecipientId']),+ templateId: _intOrNull(j?['defaultTemplateId']),+ );+}++/// One email the server sent or tried to send.+class BoEmailSend {+ final int id;+ final int? bookId;+ final String? bookTitle;+ final String? bookAuthors;+ final String toEmail;+ final String? toName;+ final String? subject;+ final String status;+ final int attempts;+ final String? error;+ final DateTime? sentAt;+ final DateTime? createdAt;+ final DateTime? nextRetryAt;+ final String? format;+ final int? size;+ final String? deviceType;+ final int? deviceId;+ final int? userId;++ const BoEmailSend({+ required this.id,+ this.bookId,+ this.bookTitle,+ this.bookAuthors,+ required this.toEmail,+ this.toName,+ this.subject,+ required this.status,+ this.attempts = 0,+ this.error,+ this.sentAt,+ this.createdAt,+ this.nextRetryAt,+ this.format,+ this.size,+ this.deviceType,+ this.deviceId,+ this.userId,+ });++ factory BoEmailSend.fromJson(Map<String, dynamic> j) => BoEmailSend(+ id: (j['id'] as num).toInt(),+ bookId: _intOrNull(j['bookId']),+ bookTitle: _text(j['bookTitle']),+ bookAuthors: _text(j['bookAuthors']),+ toEmail: '${j['toEmail'] ?? ''}',+ toName: _text(j['toName']),+ subject: _text(j['subject']),+ status: '${j['status'] ?? 'pending'}',+ attempts: _intOrNull(j['attemptCount']) ?? 0,+ error: _text(j['errorMessage']),+ sentAt: _date(j['sentAt']),+ createdAt: _date(j['createdAt']),+ nextRetryAt: _date(j['nextRetryAt']),+ format: _text(j['fileFormat'])?.toLowerCase(),+ size: _intOrNull(j['fileSizeBytes']),+ deviceType: _text(j['deviceType']),+ deviceId: _intOrNull(j['recipientId']),+ userId: _intOrNull(j['userId']),+ );++ bool get sent => status == 'sent';+ bool get failed => status == 'failed';+ bool get pending => status == 'pending';+ String get toLabel => toName ?? toEmail;+}++/// A file of the book an email can carry: a readable edition, never a cover,+/// sidecar or audiobook track.+class BoSendableFile {+ final int id;+ final String format;+ final String? name;+ final int? size;+ final bool primary;+ final bool readAlong;++ const BoSendableFile({+ required this.id,+ required this.format,+ this.name,+ this.size,+ this.primary = false,+ this.readAlong = false,+ });+}++/// The files of a BookOrbit item (with its detail loaded) an email can carry,+/// the primary one first.+List<BoSendableFile> boSendableFiles(Map<String, dynamic>? item) {+ final files = (item?['bookOrbit'] as Map?)?['files'];+ if (files is! List) return const [];+ final out = <BoSendableFile>[];+ for (final f in files.whereType<Map>()) {+ final role = f['role'];+ final format = '${f['format'] ?? ''}'.toLowerCase();+ final id = _intOrNull(f['id']);+ if (id == null || (role != 'content' && role != 'primary')) continue;+ if (_audioFormats.contains(format) || !_bookFormats.contains(format)) continue;+ out.add(BoSendableFile(+ id: id,+ format: format,+ name: _text(f['filename']),+ size: _intOrNull(f['size']),+ primary: role == 'primary',+ readAlong: f['readAlong'] == true,+ ));+ }+ out.sort((a, b) => (b.primary ? 1 : 0) - (a.primary ? 1 : 0));+ return out;+}++/// The file [device] would get, following BookOrbit's own choice: the picked+/// format first, then the device's format, then the book's primary. The+/// narrated EPUB goes only to a device set to get originals, never a Kindle.+({BoSendableFile file, String? missingFormat})? boPlanFile(+ List<BoSendableFile> files,+ BoEmailDevice device,+ String? chosenFormat,+) {+ final plain = files.where((f) => !f.readAlong).toList();+ final pool = plain.isNotEmpty ? plain : files;+ if (pool.isEmpty) return null;+ BoSendableFile? byFormat(String format) {+ for (final f in [...pool, ...files]) {+ if (f.format == format) return f;+ }+ return null;+ }++ if (chosenFormat != null) {+ final chosen = byFormat(chosenFormat);+ return chosen != null ? (file: chosen, missingFormat: null) : (file: pool.first, missingFormat: chosenFormat);+ }+ final wanted = device.preferredFormat;+ if (device.readAlong == 'original' && !device.isKindle && (wanted == null || wanted == 'epub')) {+ for (final f in files) {+ if (f.readAlong) return (file: f, missingFormat: null);+ }+ }+ if (wanted != null) {+ final match = byFormat(wanted);+ return match != null ? (file: match, missingFormat: null) : (file: pool.first, missingFormat: wanted);+ }+ return (file: pool.first, missingFormat: null);+}++enum BoSizeLimit { kindle, gmail }++const _mb = 1024 * 1024;++/// The first mail limit a file of [size] bytes is over, or null.+BoSizeLimit? boSizeLimit(int? size, String? deviceType, String? serverHost) {+ if (size == null || size <= 0) return null;+ if (deviceType == 'kindle' && size > 50 * _mb) return BoSizeLimit.kindle;+ final host = serverHost?.toLowerCase() ?? '';+ if ((host == 'smtp.gmail.com' || host.endsWith('.gmail.com') || host.endsWith('googlemail.com')) && size > 25 * _mb) {+ return BoSizeLimit.gmail;+ }+ return null;+}diff --git a/lib/services/bookorbit_email_api.dart b/lib/services/bookorbit_email_api.dartnew file mode 100644index 00000000..c9c53035--- /dev/null+++ b/lib/services/bookorbit_email_api.dart@@ -0,0 +1,177 @@+part of 'api_service.dart';++const _keep = Object();++/// BookOrbit's email: sending books and everything set up for it. Each call+/// throws a [BookOrbitAdminError] carrying the server's reason when it refuses.+extension BookOrbitEmailApi on BookOrbitApiService {+ List<T> _list<T>(Object? res, T Function(Map<String, dynamic>) parse) => [+ for (final e in (res is List ? res : const []).whereType<Map<String, dynamic>>()) parse(e),+ ];++ ({bool ok, String? error}) _testResult(Object? res) {+ final m = res is Map ? res : const {};+ return (ok: m['success'] == true, error: m['error'] is String ? m['error'] as String : null);+ }++ /// Whether the server can strip the narration from a read along EPUB before+ /// it goes out.+ Future<bool> emailReadAlongChoice() async => (await _features()).contains('read-aloud-delivery');++ Future<List<BoMailServer>> emailServers() =>+ _admin(() async => _list(await _boGet('/email/providers'), BoMailServer.fromJson));++ Future<BoMailServer> emailSaveServer(int? id, Map<String, dynamic> body) => _admin(() async {+ final res = id == null ? await _boPost('/email/providers', body) : await _boPut('/email/providers/$id', body);+ return BoMailServer.fromJson(res as Map<String, dynamic>);+ });++ Future<void> emailDeleteServer(int id) => _admin(() async {+ await _boDelete('/email/providers/$id');+ });++ /// Shares the server with everyone, or stops sharing it.+ Future<BoMailServer> emailToggleShared(int id) => _admin(() async =>+ BoMailServer.fromJson(await _boPatch('/email/providers/$id/share', const {}) as Map<String, dynamic>));++ /// Makes this the server BookOrbit sends its own mail through (password+ /// resets, sign-in links). Superusers only.+ Future<void> emailSetSystemServer(int id) => _admin(() async {+ await _boPatch('/email/providers/$id/system', const {});+ });++ Future<void> emailClearSystemServer() => _admin(() async {+ await _boDelete('/email/providers/system');+ });++ Future<({bool ok, String? error})> emailTestServer(int id) =>+ _admin(() async => _testResult(await _boPost('/email/providers/$id/test', null, const Duration(seconds: 45))));++ Future<List<BoEmailDevice>> emailDevices() =>+ _admin(() async => _list(await _boGet('/email/recipients'), BoEmailDevice.fromJson));++ Future<BoEmailDevice> emailSaveDevice(int? id, Map<String, dynamic> body) => _admin(() async {+ final res = id == null ? await _boPost('/email/recipients', body) : await _boPut('/email/recipients/$id', body);+ return BoEmailDevice.fromJson(res as Map<String, dynamic>);+ });++ Future<void> emailDeleteDevice(int id) => _admin(() async {+ await _boDelete('/email/recipients/$id');+ });++ /// Sends a short message to the device, written in the app's language+ /// since the server has none of its own.+ Future<({bool ok, String? error})> emailTestDevice(int id, {required String subject, required String text}) =>+ _admin(() async => _testResult(+ await _boPost('/email/recipients/$id/test', {'subject': subject, 'text': text}, const Duration(seconds: 45))));++ Future<List<BoEmailGroup>> emailGroups() =>+ _admin(() async => _list(await _boGet('/email/recipient-groups'), BoEmailGroup.fromJson));++ Future<int> emailCreateGroup(String name, {int? templateId}) => _admin(() async {+ final res = await _boPost('/email/recipient-groups', {+ 'name': name.trim(),+ 'defaultTemplateId': ?templateId,+ }) as Map<String, dynamic>;+ return (res['id'] as num).toInt();+ });++ Future<void> emailUpdateGroup(int id, {required String name, int? templateId}) => _admin(() async {+ await _boPut('/email/recipient-groups/$id', {'name': name.trim(), 'defaultTemplateId': templateId});+ });++ Future<void> emailDeleteGroup(int id) => _admin(() async {+ await _boDelete('/email/recipient-groups/$id');+ });++ Future<void> emailAddToGroup(int groupId, int deviceId) => _admin(() async {+ await _boPost('/email/recipient-groups/$groupId/members', {'recipientId': deviceId});+ });++ Future<void> emailRemoveFromGroup(int groupId, int deviceId) => _admin(() async {+ await _boDelete('/email/recipient-groups/$groupId/members/$deviceId');+ });++ Future<List<BoEmailTemplate>> emailTemplates() =>+ _admin(() async => _list(await _boGet('/email/templates'), BoEmailTemplate.fromJson));++ Future<BoEmailTemplate> emailSaveTemplate(int? id, {required String name, required String subject, required String body}) =>+ _admin(() async {+ final payload = {'name': name.trim(), 'subject': subject, 'bodyText': body};+ final res =+ id == null ? await _boPost('/email/templates', payload) : await _boPut('/email/templates/$id', payload);+ return BoEmailTemplate.fromJson(res as Map<String, dynamic>);+ });++ Future<void> emailDeleteTemplate(int id) => _admin(() async {+ await _boDelete('/email/templates/$id');+ });++ /// [subject] and [body] filled in with [bookId]'s details, and the file a+ /// send of it would attach.+ Future<({String subject, String body, String? attachment})> emailPreviewTemplate(+ {required String subject, required String body, required int bookId}) =>+ _admin(() async {+ final res = await _boPost('/email/templates/preview', {'subject': subject, 'bodyText': body, 'bookId': bookId})+ as Map<String, dynamic>;+ final file = res['attachment'];+ return (+ subject: '${res['subject'] ?? ''}',+ body: '${res['bodyText'] ?? ''}',+ attachment: file is Map ? file['fileName'] as String? : null,+ );+ });++ Future<BoEmailDefaults> emailDefaults() => _admin(+ () async => BoEmailDefaults.fromJson(await _boGet('/email/preferences') as Map<String, dynamic>?));++ /// Changes only the defaults given; null clears one.+ Future<BoEmailDefaults> emailSetDefaults({Object? serverId = _keep, Object? deviceId = _keep, Object? templateId = _keep}) =>+ _admin(() async => BoEmailDefaults.fromJson(await _boPut('/email/preferences', {+ if (!identical(serverId, _keep)) 'defaultProviderId': serverId,+ if (!identical(deviceId, _keep)) 'defaultRecipientId': deviceId,+ if (!identical(templateId, _keep)) 'defaultTemplateId': templateId,+ }) as Map<String, dynamic>?));++ /// Queues the book for each device. Returns how many emails were queued.+ Future<int> emailSendBook(+ int bookId, {+ required List<int> deviceIds,+ int? serverId,+ int? templateId,+ int? fileId,+ }) =>+ _admin(() async {+ final res = await _boPost('/email/send', {+ 'bookIds': [bookId],+ 'recipientIds': deviceIds,+ 'providerId': ?serverId,+ 'templateId': ?templateId,+ 'fileId': ?fileId,+ }) as Map<String, dynamic>?;+ return (res?['queued'] as num?)?.toInt() ?? deviceIds.length;+ });++ Future<List<BoEmailSend>> emailHistory({int page = 0, int size = 30, int? bookId, String? status, int? deviceId}) =>+ _admin(() async => _list(+ await _boGet('/email/log', {+ 'page': page,+ 'size': size,+ 'bookId': ?bookId,+ 'status': ?status,+ 'recipientId': ?deviceId,+ }),+ BoEmailSend.fromJson));++ /// Every user's sends. Superusers only.+ Future<List<BoEmailSend>> emailEveryonesHistory({int page = 0, int size = 30}) =>+ _admin(() async => _list(await _boGet('/email/admin/log', {'page': page, 'size': size}), BoEmailSend.fromJson));++ Future<void> emailResend(int sendId) => _admin(() async {+ await _boPost('/email/log/$sendId/resend');+ });++ Future<void> emailForget(int sendId) => _admin(() async {+ await _boDelete('/email/log/$sendId');+ });+}diff --git a/lib/services/bookorbit_mapper.dart b/lib/services/bookorbit_mapper.dartindex edbba080..e5190a91 100644--- a/lib/services/bookorbit_mapper.dart+++ b/lib/services/bookorbit_mapper.dart@@ -311,7 +311,10 @@ class BookOrbitMapper {final narrated = audioFiles.isEmpty ? narratedEpub(contentFiles) : null;final narrationSeconds =((narrated?['mediaOverlay'] as Map?)?['durationSeconds'] as num?)?.toDouble() ?? 0;- final ebook = narrated ?? _primaryEbook(contentFiles);+ // A read along EPUB beside the audiobook it matches: the copy to read, so+ // read along follows its timings while the audiobook plays.+ final readAlong = audioFiles.isEmpty ? null : matchingReadAlong(detail, contentFiles);+ final ebook = narrated ?? readAlong?.file ?? _primaryEbook(contentFiles);final ebookFormat = ebook == null ? null : _format(ebook);final duration = narrated != null? narrationSeconds@@ -332,21 +335,17 @@ class BookOrbitMapper {'duration': duration,'size': size,'tracks': tracks,- 'ebookFile': ebook == null- ? null- : {- 'ino': _str(ebook['id']),- 'ebookFormat': ebookFormat,- if ((ebook['fileHash'] ?? ebook['contentVersion']) != null)- 'version': '${ebook['fileHash'] ?? ebook['contentVersion']}',- 'metadata': {- 'filename': ebook['filename'] ?? 'book.$ebookFormat',- 'ext': '.$ebookFormat',- 'size': ebook['sizeBytes'] ?? 0,- },- },+ 'ebookFile': ebook == null ? null : _ebookFileEntry(ebook),'ebookFormat': ebookFormat,if (narrated != null) 'narration': {'fileId': _str(narrated['id']), 'duration': narrationSeconds},+ if (readAlong != null)+ 'readAlongEpub': {+ 'fileId': _str(readAlong.file['id']),+ 'duration': readAlong.narration,+ 'audioDuration': readAlong.audio,+ if (_primaryEbook(contentFiles) case final plain? when plain != readAlong.file)+ 'plainEbookFile': _ebookFileEntry(plain),+ },'numTracks': audioFiles.length,'numAudioFiles': audioFiles.length,'numChapters': chapters.length,@@ -674,6 +673,40 @@ class BookOrbitMapper {return null;}+ static Map<String, dynamic> _ebookFileEntry(Map<String, dynamic> f) {+ final format = _format(f);+ return {+ 'ino': _str(f['id']),+ 'ebookFormat': format,+ if ((f['fileHash'] ?? f['contentVersion']) != null) 'version': '${f['fileHash'] ?? f['contentVersion']}',+ 'metadata': {+ 'filename': f['filename'] ?? 'book.$format',+ 'ext': '.$format',+ 'size': f['sizeBytes'] ?? 0,+ },+ };+ }++ /// The read along EPUB BookOrbit keeps in step with the audiobook: its+ /// Read-aloud progress sync is on and the two lengths agree. Only a book's+ /// full details say so.+ static ({Map<String, dynamic> file, double narration, double audio})? matchingReadAlong(+ Map<String, dynamic>? detail,+ List<Map<String, dynamic>> contentFiles,+ ) {+ final sync = detail?['readAloudSync'];+ if (sync is! Map || sync['state'] != 'enabled') return null;+ final narration = (sync['overlayDurationSeconds'] as num?)?.toDouble() ?? 0;+ final audio = (sync['audioDurationSeconds'] as num?)?.toDouble() ?? 0;+ if (narration <= 0 || audio <= 0) return null;+ for (final f in contentFiles) {+ if (_str(f['id']) != _str(sync['overlayFileId']) || _format(f) != 'epub') continue;+ if ((f['mediaOverlay'] as Map?)?['available'] != true) return null;+ return (file: f, narration: narration, audio: audio);+ }+ return null;+ }+static Map<String, dynamic>? _primaryEbook(List<Map<String, dynamic>> contentFiles) {final ebooks = contentFiles.where((f) {final fmt = _format(f);diff --git a/lib/services/download_service.dart b/lib/services/download_service.dartindex b373fd58..b12d5339 100644--- a/lib/services/download_service.dart+++ b/lib/services/download_service.dart@@ -2984,6 +2984,9 @@ class DownloadService extends ChangeNotifier {@visibleForTestingvoid debugPutDownload(DownloadInfo info) => _downloads[info.itemId] = info;+ @visibleForTesting+ void debugPutKeptEbook(DownloadInfo info) => _keptEbooks[info.itemId] = info;+@visibleForTestingFuture<void> debugReset() async {_reconcileTimer?.cancel();@@ -2991,6 +2994,7 @@ class DownloadService extends ChangeNotifier {await _updatesSub?.cancel();_updatesSub = null;_downloads.clear();+ _keptEbooks.clear();_activeDownloadIds.clear();_cancelledIds.clear();_pending.clear();diff --git a/lib/services/ebook_cache.dart b/lib/services/ebook_cache.dartindex 6fbac278..072e8607 100644--- a/lib/services/ebook_cache.dart+++ b/lib/services/ebook_cache.dart@@ -29,6 +29,14 @@ const comicEbookFormats = {'cbz', 'cbr', 'cb7'};const readableEbookFormats = {'epub', 'pdf', 'cbz', ...foliateEbookFormats};const allEbookFormats = {...readableEbookFormats, 'cbr', 'cb7'};+/// The ebook to save to the device: the plain EPUB when a read along copy,+/// which carries the whole audiobook inside it, is the one opened for reading.+Map<String, dynamic>? exportEbookFile(Map<String, dynamic>? item) {+ final media = item?['media'] as Map<String, dynamic>?;+ final plain = (media?['readAlongEpub'] as Map?)?['plainEbookFile'];+ return plain is Map<String, dynamic> ? plain : resolveEbookFile(item);+}+/// The ebook to use for a library item: the server's primary (media.ebookFile)/// when set, otherwise the best supplementary ebook from libraryFiles - epub/// first (mirroring the server's own primary pick), then the first readablediff --git a/lib/services/find_in_ebook.dart b/lib/services/find_in_ebook.dartindex f76e2593..27fdc2c9 100644--- a/lib/services/find_in_ebook.dart+++ b/lib/services/find_in_ebook.dart@@ -75,10 +75,11 @@ Future<void> launchFindInEbook(return;}- // A book whose audio is its EPUB's narration knows the sentence at every- // moment: the reader opens on it, with nothing transcribed.+ // A book whose audio is its EPUB's narration, or that has a read along+ // EPUB matching its audiobook, knows the sentence at every moment: the+ // reader opens on it, with nothing transcribed.final narration = await NarrationService.instance- .audioNarration(context.read<AuthProvider>().apiService, itemId);+ .sentenceTimings(context.read<AuthProvider>().apiService, itemId);if (!context.mounted) return;if (narration != null) {final player = AudioPlayerService();diff --git a/lib/services/home_widget_service.dart b/lib/services/home_widget_service.dartindex 939bb6b1..b23afcb2 100644--- a/lib/services/home_widget_service.dart+++ b/lib/services/home_widget_service.dart@@ -328,8 +328,13 @@ class HomeWidgetService {final episodeId = (rawEpisode == null || rawEpisode.isEmpty)? null: rawEpisode;+ final position = double.tryParse(uri.queryParameters['position'] ?? '');if (itemId != null && itemId.isNotEmpty) {- _handlePlayItem(itemId, episodeId);+ _handlePlayItem(+ itemId,+ episodeId,+ position: position != null && position.isFinite && position > 0 ? position : null,+ );}break;case '/next_chapter':@@ -375,10 +380,12 @@ class HomeWidgetService {/// Start playback of a specific item. Used by the watch's Continue/// Listening tap → WearPlayerCommandListenerService → /play_item URI./// Always plays (no toggle path) — the watch already chose which book- /// it wants and the user expects an immediate switch.- Future<void> _handlePlayItem(String itemId, String? episodeId) async {+ /// it wants and the user expects an immediate switch. A [position] is+ /// where the watch was in it, so the phone carries on from there instead+ /// of from its own or the server's older spot.+ Future<void> _handlePlayItem(String itemId, String? episodeId, {double? position}) async {debugPrint(- '[HomeWidget] _handlePlayItem itemId=$itemId episodeId=$episodeId',+ '[HomeWidget] _handlePlayItem itemId=$itemId episodeId=$episodeId position=$position',);final player = AudioPlayerService();@@ -454,6 +461,8 @@ class HomeWidgetService {coverUrl: coverUrl,totalDuration: epDuration,chapters: const [],+ startTime: position ?? 0,+ forceStartTime: position != null,episodeId: episodeId,episodeTitle: epTitle,libraryId: fullItem['libraryId'] as String?,@@ -467,6 +476,8 @@ class HomeWidgetService {coverUrl: coverUrl,totalDuration: duration,chapters: chapters,+ startTime: position ?? 0,+ forceStartTime: position != null,libraryId: fullItem['libraryId'] as String?,);}diff --git a/lib/services/media_overlay.dart b/lib/services/media_overlay.dartindex 4c7069e0..00087e7b 100644--- a/lib/services/media_overlay.dart+++ b/lib/services/media_overlay.dart@@ -335,6 +335,30 @@ class MediaOverlay {return MediaOverlay._(laid, clips, secs);}+ /// This narration stretched evenly to last [total] seconds: a read along+ /// EPUB laid on its audiobook's own timeline, the way BookOrbit maps one+ /// onto the other.+ MediaOverlay scaledTo(double total) {+ final d = duration;+ if (d <= 0 || total <= 0) return this;+ final f = total / d;+ return MediaOverlay._(+ [for (final t in tracks) OverlayTrack(t.href, t.mediaType, t.duration * f, t.start * f)],+ [+ for (final c in clips)+ OverlayClip(+ section: c.section,+ textHref: c.textHref,+ fragment: c.fragment,+ track: c.track,+ begin: c.begin * f,+ end: c.end * f,+ ),+ ],+ [for (final s in sections) OverlaySection(s.index, s.href, s.label, s.start * f)],+ );+ }+/// The clip in this narration reading the same sentence as [other], which/// may come from an earlier layout of it.OverlayClip? sameClip(OverlayClip other) {diff --git a/lib/services/narration_service.dart b/lib/services/narration_service.dartindex 2bf302a3..58d34f78 100644--- a/lib/services/narration_service.dart+++ b/lib/services/narration_service.dart@@ -212,7 +212,7 @@ class NarrationService {File? epub,}) async {if (api is BookOrbitApiService) {- final o = await api.narrationFor(itemId);+ final o = await api.narrationFor(itemId) ?? await api.readAlongTimingsFor(itemId);if (o != null) {_overlays[itemId] = o;unawaited(_save(itemId, o));@@ -518,6 +518,11 @@ class NarrationService {return localOverlay(itemId);}+ /// Timings that say which sentence the book's audio is on: its narration,+ /// or on BookOrbit a read along EPUB laid on the audiobook beside it.+ Future<MediaOverlay?> sentenceTimings(ApiService? api, String itemId) async =>+ await audioNarration(api, itemId) ?? (api is BookOrbitApiService ? await api.readAlongTimingsFor(itemId) : null);+List<String> _trackNames(List<Map<String, dynamic>> tracks) => [for (final t in tracks)((t['metadata'] as Map)['filename'] as String).replaceAll(RegExp(r'[\\/:*?"<>|]'), '_'),diff --git a/lib/services/read_along_jobs.dart b/lib/services/read_along_jobs.dartnew file mode 100644index 00000000..12780c28--- /dev/null+++ b/lib/services/read_along_jobs.dart@@ -0,0 +1,424 @@+/// BookOrbit's read along maker (3.6.0 and up): it matches an audiobook's+/// narration to the book's EPUB and adds an EPUB that highlights along with+/// the audio. Follows BookOrbit's shared types (packages/types/src/read-aloud.ts).+library;++int? _int(Object? v) => v is num ? v.toInt() : int.tryParse('${v ?? ''}');++double? _double(Object? v) => v is num ? v.toDouble() : null;++DateTime? _date(Object? v) => v is String ? DateTime.tryParse(v)?.toLocal() : null;++List<Map<String, dynamic>> _maps(Object? v) =>+ (v is List ? v : const []).whereType<Map>().map((m) => Map<String, dynamic>.from(m)).toList();++/// A file on the book a read along can be made from.+class ReadAlongSource {+ final int id;+ final String filename;+ final int? size;+ final double? duration;++ const ReadAlongSource({required this.id, required this.filename, this.size, this.duration});++ static ReadAlongSource? fromJson(Map<String, dynamic> json) {+ final id = _int(json['id']);+ if (id == null) return null;+ return ReadAlongSource(+ id: id,+ filename: '${json['filename'] ?? ''}',+ size: _int(json['sizeBytes']),+ duration: _double(json['durationSeconds']),+ );+ }+}++/// A read along EPUB the book already has.+class ReadAlongExisting {+ final int fileId;+ final String filename;+ final int? size;++ /// Made by BookOrbit rather than imported, so it's safe to overwrite.+ final bool madeByBookOrbit;++ const ReadAlongExisting({required this.fileId, required this.filename, this.size, this.madeByBookOrbit = false});++ static ReadAlongExisting? fromJson(Map<String, dynamic> json) {+ final id = _int(json['fileId']);+ if (id == null) return null;+ return ReadAlongExisting(+ fileId: id,+ filename: '${json['filename'] ?? ''}',+ size: _int(json['sizeBytes']),+ madeByBookOrbit: json['generatedByJobId'] != null,+ );+ }+}++/// What the job card shows of the worker's own stages.+const readAlongSteps = <(String, List<String>)>[+ ('audio', ['preparing_audio']),+ ('speech', ['downloading_model', 'generating_emissions']),+ ('text', ['marking_up_ebook']),+ ('align', ['aligning']),+ ('check', ['validating']),+ ('publish', ['awaiting_review', 'publishing', 'completed']),+];++/// Index into [readAlongSteps] for [stage], -1 while queued or for a stage+/// this build doesn't know.+int readAlongStepOf(String stage) => readAlongSteps.indexWhere((s) => s.$2.contains(stage));++class ReadAlongJob {+ final String id;+ final String bookId;+ final String status;+ final String stage;++ /// 0 to 100.+ final double progress;+ final int? stageCurrent;+ final int? stageTotal;+ final String? stageUnit;++ /// Jobs ahead of this one while it waits.+ final int? queuePosition;+ final int? epubFileId;+ final List<int> audioFileIds;+ final String? language;+ final String granularity;+ final int? replaceFileId;+ final int? outputFileId;+ final List<String> warnings;+ final String? errorCode;+ final bool cancelRequested;+ final bool cancellable;++ /// Whether this account may cancel, add, retry or dismiss it.+ final bool canManage;+ final int? requestedById;+ final String? requestedByName;+ final DateTime? startedAt;+ final DateTime? updatedAt;+ final DateTime? dismissedAt;++ /// When output waiting for review is thrown away on its own.+ final DateTime? expiresAt;++ /// Until when Retry picks up from the last finished step.+ final DateTime? retryableUntil;++ /// Sentences with narration timing, and the sentences the narration+ /// covers (front and back matter left out when the server could tell).+ final int? matchedSentences;+ final int? totalSentences;++ /// Share of the audio placed against the text, 0 to 1.+ final double? audioUsed;++ /// Chapters the narration never reads, so they have no audio.+ final List<String> outsideTitles;+ final int outsideMore;++ const ReadAlongJob({+ required this.id,+ required this.bookId,+ required this.status,+ required this.stage,+ this.progress = 0,+ this.stageCurrent,+ this.stageTotal,+ this.stageUnit,+ this.queuePosition,+ this.epubFileId,+ this.audioFileIds = const [],+ this.language,+ this.granularity = 'sentence',+ this.replaceFileId,+ this.outputFileId,+ this.warnings = const [],+ this.errorCode,+ this.cancelRequested = false,+ this.cancellable = false,+ this.canManage = false,+ this.requestedById,+ this.requestedByName,+ this.startedAt,+ this.updatedAt,+ this.dismissedAt,+ this.expiresAt,+ this.retryableUntil,+ this.matchedSentences,+ this.totalSentences,+ this.audioUsed,+ this.outsideTitles = const [],+ this.outsideMore = 0,+ });++ static ReadAlongJob? fromJson(Object? raw) {+ if (raw is! Map) return null;+ final json = Map<String, dynamic>.from(raw);+ final id = json['id'];+ final status = json['status'];+ if (id is! String || status is! String) return null;+ final input = json['input'] is Map ? Map<String, dynamic>.from(json['input'] as Map) : const <String, dynamic>{};+ final detail = json['stageDetail'] is Map ? json['stageDetail'] as Map : null;+ final requester = json['requestedBy'] is Map ? json['requestedBy'] as Map : const {};+ final report = json['report'] is Map ? json['report'] as Map : null;+ final coverage = json['coverage'] is Map ? json['coverage'] as Map : null;++ int? matched;+ int? total;+ double? audioUsed;+ final sentences = _int(report?['sentences']) ?? 0;+ if (report != null && sentences > 0) {+ total = coverage != null ? (_int(coverage['storySentences']) ?? sentences) : sentences;+ final hit = (_int(report['matchedSentences']) ?? 0) + (_int(report['interpolatedSentences']) ?? 0);+ matched = hit > total ? total : hit;+ final seconds = _double(report['seconds']) ?? 0;+ if (seconds > 0) {+ final placed = (_double(report['matchedSeconds']) ?? 0) + (_double(report['interpolatedSeconds']) ?? 0);+ audioUsed = (placed / seconds).clamp(0.0, 1.0);+ }+ }+ final outside = [+ for (final t in (coverage?['outsideTitles'] as List? ?? const []))+ if (t is String && t.trim().isNotEmpty) t.trim(),+ ];+ final outsideCount = _int(coverage?['outsideChapterCount']) ?? outside.length;++ return ReadAlongJob(+ id: id,+ bookId: '${json['bookId'] ?? ''}',+ status: status,+ stage: '${json['stage'] ?? ''}',+ progress: (_double(json['progress']) ?? 0).clamp(0.0, 100.0),+ stageCurrent: _int(detail?['current']),+ stageTotal: _int(detail?['total']),+ stageUnit: detail?['unit'] as String?,+ queuePosition: _int(json['queuePosition']),+ epubFileId: _int(input['epubFileId']),+ audioFileIds: [for (final v in (input['audioFileIds'] as List? ?? const [])) ?_int(v)],+ language: input['language'] as String?,+ granularity: input['granularity'] == 'word' ? 'word' : 'sentence',+ replaceFileId: _int(input['replaceFileId']),+ outputFileId: _int(json['outputFileId']),+ warnings: [for (final w in (json['warnings'] as List? ?? const [])) '$w'],+ errorCode: json['errorCode'] as String?,+ cancelRequested: json['cancelRequested'] == true,+ cancellable: json['cancellable'] == true,+ canManage: json['canManage'] == true,+ requestedById: _int(requester['id']),+ requestedByName: requester['name'] as String?,+ startedAt: _date(json['startedAt']),+ updatedAt: _date(json['updatedAt']),+ dismissedAt: _date(json['dismissedAt']),+ expiresAt: _date(json['expiresAt']),+ retryableUntil: _date(json['retryableUntil']),+ matchedSentences: matched,+ totalSentences: total,+ audioUsed: audioUsed,+ outsideTitles: outside,+ outsideMore: outsideCount > outside.length ? outsideCount - outside.length : 0,+ );+ }++ bool get queued => status == 'queued';+ bool get processing => status == 'processing';+ bool get running => queued || processing;+ bool get stopping => running && cancelRequested;+ bool get awaitingReview => status == 'awaiting_review';++ /// Still holding the book's slot, so it can change.+ bool get active => running || awaitingReview;+ bool get completed => status == 'completed' || status == 'completed_with_warnings';+ bool get failed => status == 'failed';+ bool get cancelled => status == 'cancelled';+ bool get finished => completed || failed || cancelled;+ bool get expired => errorCode == 'review_expired';++ /// Output thrown away at review, or left there too long.+ bool get discarded => expired || errorCode == 'discarded';++ bool canRetry(DateTime now) => failed && !expired && (retryableUntil?.isAfter(now) ?? false);++ /// Whether Cancel would still be taken: not once the file is being added.+ bool get canCancel => running && canManage && cancellable && !cancelRequested && stage != 'publishing';+}++/// What the book's Create read along button shows.+enum ReadAlongEntry { hidden, available, blocked }++class ReadAlongCapability {+ final List<String> languages;+ final bool workerConfigured;+ final String? device;+ final int? workerFreeBytes;+ final bool eligible;++ /// Why a read along can't be made right now, in BookOrbit's codes.+ final String? reason;+ final List<ReadAlongSource> epubs;+ final List<ReadAlongSource> audio;+ final List<ReadAlongExisting> existing;+ final int? estimatedSize;+ final ReadAlongJob? latestJob;++ const ReadAlongCapability({+ this.languages = const [],+ this.workerConfigured = false,+ this.device,+ this.workerFreeBytes,+ this.eligible = false,+ this.reason,+ this.epubs = const [],+ this.audio = const [],+ this.existing = const [],+ this.estimatedSize,+ this.latestJob,+ });++ static ReadAlongCapability fromJson(Map<String, dynamic> json) => ReadAlongCapability(+ languages: [for (final c in (json['supportedLanguages'] as List? ?? const [])) '$c'],+ workerConfigured: json['workerConfigured'] == true,+ device: json['workerDevice'] as String?,+ workerFreeBytes: _int(json['workerFreeBytes']),+ eligible: json['eligible'] == true,+ reason: json['reason'] as String?,+ epubs: [for (final f in _maps(json['epubFiles'])) ?ReadAlongSource.fromJson(f)],+ audio: [for (final f in _maps(json['audioFiles'])) ?ReadAlongSource.fromJson(f)],+ existing: [for (final f in _maps(json['existingReadAlongs'])) ?ReadAlongExisting.fromJson(f)],+ estimatedSize: _int(json['estimatedOutputBytes']),+ latestJob: ReadAlongJob.fromJson(json['latestJob']),+ );++ // Reasons only an admin or a library change can clear: a button that can+ // never work on this book would just sit there on every visit.+ static const _hiddenReasons = {'worker_not_configured', 'single_file_library', 'no_audiobook'};++ ReadAlongEntry entry(ReadAlongJob? job) {+ if (!workerConfigured || _hiddenReasons.contains(reason)) return ReadAlongEntry.hidden;+ if (job != null && job.active) return ReadAlongEntry.blocked;+ if (reason != null || !eligible) return ReadAlongEntry.blocked;+ return ReadAlongEntry.available;+ }++ /// Working space a fresh run needs on the worker, BookOrbit's own+ /// estimate: 4x the audio, 7x the EPUB, the speech model's output and+ /// 512 MB to spare.+ static int workBytes({required int audioBytes, required int epubBytes, double? audioSeconds}) {+ final seconds = audioSeconds ?? audioBytes / 8000;+ return 4 * audioBytes + 7 * epubBytes + (seconds * 3200).ceil() + 512 * 1024 * 1024;+ }+}++/// Why a read along request didn't go through.+enum ReadAlongFailure {+ /// A file picked is gone or no longer fits (400).+ invalid,+ forbidden,++ /// Another job is running for the book, or this one moved on (409).+ conflict,++ /// The worker is offline (503).+ unavailable,++ /// The job is gone (404).+ gone,+ failed,+}++ReadAlongFailure readAlongFailureFor(int status) => switch (status) {+ 400 => ReadAlongFailure.invalid,+ 403 => ReadAlongFailure.forbidden,+ 404 => ReadAlongFailure.gone,+ 409 => ReadAlongFailure.conflict,+ 503 => ReadAlongFailure.unavailable,+ _ => ReadAlongFailure.failed,+ };++/// The languages BookOrbit's speech model knows, each in its own script.+const readAlongLanguageNames = <String, String>{+ 'ar': 'العربية',+ 'ca': 'Català',+ 'de': 'Deutsch',+ 'en': 'English',+ 'es': 'Español',+ 'fo': 'Føroyskt',+ 'fr': 'Français',+ 'hy': 'Հայերեն',+ 'is': 'Íslenska',+ 'it': 'Italiano',+ 'ja': '日本語',+ 'kk': 'Қазақ тілі',+ 'mt': 'Malti',+ 'pl': 'Polski',+ 'pt': 'Português',+ 'ru': 'Русский',+ 'zh': '中文',+};++const _englishNames = <String, String>{+ 'arabic': 'ar',+ 'catalan': 'ca',+ 'german': 'de',+ 'english': 'en',+ 'spanish': 'es',+ 'faroese': 'fo',+ 'french': 'fr',+ 'armenian': 'hy',+ 'icelandic': 'is',+ 'italian': 'it',+ 'japanese': 'ja',+ 'kazakh': 'kk',+ 'maltese': 'mt',+ 'polish': 'pl',+ 'portuguese': 'pt',+ 'russian': 'ru',+ 'chinese': 'zh',+};++const _threeLetterCodes = <String, String>{+ 'ara': 'ar',+ 'cat': 'ca',+ 'ger': 'de',+ 'deu': 'de',+ 'eng': 'en',+ 'spa': 'es',+ 'fao': 'fo',+ 'fre': 'fr',+ 'fra': 'fr',+ 'arm': 'hy',+ 'hye': 'hy',+ 'ice': 'is',+ 'isl': 'is',+ 'ita': 'it',+ 'jpn': 'ja',+ 'kaz': 'kk',+ 'mlt': 'mt',+ 'pol': 'pl',+ 'por': 'pt',+ 'rus': 'ru',+ 'chi': 'zh',+ 'zho': 'zh',+};++/// The language code a book's language field means, among [supported].+/// Metadata often says "English", "eng" or "en-US" rather than "en".+String? readAlongLanguageOf(String? value, List<String> supported) {+ final v = value?.trim().toLowerCase();+ if (v == null || v.isEmpty) return null;+ String? code = _englishNames[v];+ if (code == null) {+ for (final e in readAlongLanguageNames.entries) {+ if (e.value.toLowerCase() == v) code = e.key;+ }+ }+ if (code == null) {+ final first = v.split(RegExp(r'[-_ ]')).first;+ code = _threeLetterCodes[first] ?? first;+ }+ return supported.contains(code) ? code : null;+}diff --git a/lib/services/server_notifications.dart b/lib/services/server_notifications.dartindex 61ae21f4..661e139d 100644--- a/lib/services/server_notifications.dart+++ b/lib/services/server_notifications.dart@@ -39,6 +39,10 @@ const Map<String, (String, NotificationSeverity)> _typeMeta = {'bulk_rename_completed': ('bulkRename', _s),'bulk_rename_failed': ('bulkRename', _w),'achievement_unlocked': ('achievements', _s),+ 'read_aloud_ready': ('readAloud', _s),+ 'read_aloud_needs_review': ('readAloud', _w),+ 'read_aloud_failed': ('readAloud', _e),+ 'read_aloud_review_expiring': ('readAloud', _w),'podcast_episode_published': ('podcasts', _s),'podcast_feed_unhealthy': ('podcasts', _w),'podcast_download_failed': ('podcasts', _e),@@ -48,7 +52,7 @@ const Map<String, (String, NotificationSeverity)> _typeMeta = {/// left out the way BookOrbit leaves them out while its podcasts are off.const notificationCategoryGroups = <String, List<String>>{'library': ['scanning', 'metadata', 'authorEnrichment'],- 'files': ['fileWriteBack', 'fileRename', 'bulkRename', 'migration'],+ 'files': ['fileWriteBack', 'fileRename', 'bulkRename', 'readAloud', 'migration'],'integrations': ['bookDock', 'bookRequests', 'email'],'personal': ['achievements'],};diff --git a/lib/utils/file_size.dart b/lib/utils/file_size.dartnew file mode 100644index 00000000..5fc5cf68--- /dev/null+++ b/lib/utils/file_size.dart@@ -0,0 +1,7 @@+/// A file size the way the file info sheet shows it: "820 KB", "1.4 GB".+String formatFileSize(int bytes) {+ if (bytes < 1024) return '$bytes B';+ if (bytes < 1048576) return '${(bytes / 1024).round()} KB';+ if (bytes < 1073741824) return '${(bytes / 1048576).toStringAsFixed(1)} MB';+ return '${(bytes / 1073741824).toStringAsFixed(2)} GB';+}diff --git a/lib/widgets/audible_book_request.dart b/lib/widgets/audible_book_request.dartnew file mode 100644index 00000000..d7dcd89a--- /dev/null+++ b/lib/widgets/audible_book_request.dart@@ -0,0 +1,87 @@+import 'package:flutter/material.dart';++import '../l10n/app_localizations.dart';+import '../screens/book_requests_screen.dart';+import '../services/api_service.dart';+import '../services/book_requests.dart';+import 'overlay_toast.dart';++typedef AudibleRequestBook = ({Map<String, dynamic> book, String? seriesName});++/// Whether missing series books can be asked for on this account's+/// BookOrbit server, which needs the request permission and requests not+/// hidden in the user's settings.+Future<bool> canRequestAudibleBooks(ApiService? api) async {+ if (api == null || !api.isBookOrbit) return false;+ return (await api.bookRequestAccess()).canRequest;+}++/// Asks the BookOrbit server for audiobooks found on Audible. One sheet+/// covers them all: where they land and a note for the approver. True once+/// at least one request went in.+Future<bool> requestAudibleBooks(+ BuildContext context,+ ApiService api,+ List<AudibleRequestBook> books,+) async {+ final l = AppLocalizations.of(context)!;+ if (books.isEmpty) return false;+ final setup = await loadBookRequestSetup(api);+ if (!context.mounted) return false;+ if (!setup.access.canRequest) {+ showOverlayToast(context, l.breqFailed, icon: Icons.error_outline_rounded);+ return false;+ }+ final single = books.length == 1 ? books.single.book : null;+ final cover = '${single?['coverUrl'] ?? ''}';+ final choice = await showBookRequestSheet(+ context,+ title: single != null ? '${single['title'] ?? ''}' : l.breqBookCount(books.length),+ authors: single != null ? audibleBookAuthors(single) : const [],+ coverUrl: cover.isEmpty ? null : cover,+ kinds: const ['audiobook'],+ setup: setup,+ );+ if (choice == null || !context.mounted) return false;+ var sent = 0;+ var joined = 0;+ var failed = 0;+ String? reason;+ for (final b in books) {+ final body = audibleBookRequestPayload(+ b.book,+ seriesName: b.seriesName,+ note: choice.note,+ libraryId: choice.libraries['audiobook'],+ );+ if (body == null) {+ failed++;+ continue;+ }+ final result = await api.submitBookRequest(body);+ if (!result.ok) {+ failed++;+ reason ??= result.error;+ } else if (result.subscribed) {+ joined++;+ } else {+ sent++;+ }+ }+ debugPrint('[BookRequests] Audible requests: $sent sent, $joined joined, $failed failed');+ final ok = sent + joined > 0;+ if (!context.mounted) return ok;+ final String message;+ if (single != null) {+ message = failed > 0+ ? (reason != null ? l.breqFailedReason(reason) : l.breqFailed)+ : joined > 0+ ? l.breqJoined+ : l.breqSubmitted;+ } else {+ final done = l.upcomingReleasesBulkRequestDone(sent + joined);+ message = failed == 0 ? done : '$done - ${l.upcomingReleasesBulkRequestSkipped(failed)}';+ }+ showOverlayToast(context, message, icon: ok ? Icons.check_circle_outline_rounded : Icons.error_outline_rounded);+ return ok;+}diff --git a/lib/widgets/audible_series_sheet.dart b/lib/widgets/audible_series_sheet.dartindex 4d564991..37ce3f42 100644--- a/lib/widgets/audible_series_sheet.dart+++ b/lib/widgets/audible_series_sheet.dart@@ -1,14 +1,17 @@import 'dart:io';import 'package:flutter/material.dart';import 'package:cached_network_image/cached_network_image.dart';+import 'package:provider/provider.dart';import 'package:url_launcher/url_launcher.dart';import '../l10n/app_localizations.dart';+import '../providers/auth_provider.dart';import '../services/api_service.dart';import '../services/player_settings.dart';import '../services/rmab_service.dart';import '../services/scoped_prefs.dart';import '../services/upcoming_releases_service.dart';import '../utils/series_number_match.dart';+import 'audible_book_request.dart';import 'overlay_toast.dart';import 'rmab_book_detail_sheet.dart';import 'rmab_config_sheet.dart' show kRmabBaseUrlKey, kRmabApiTokenKey;@@ -68,6 +71,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {int _filter = 0; // 0 = missing, 1 = upcoming, 2 = alllate String _region;bool _rmabConfigured = false;+ bool _serverRequests = false;@overridevoid initState() {@@ -75,6 +79,12 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {_region = ApiService.debugRegion;_loadRegionAndFetch();_loadRmabConfigured();+ _loadServerRequests();+ }++ Future<void> _loadServerRequests() async {+ final ok = await canRequestAudibleBooks(context.read<AuthProvider>().apiService);+ if (mounted && ok) setState(() => _serverRequests = true);}Future<void> _loadRmabConfigured() async {@@ -170,9 +180,9 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {}) {final l = AppLocalizations.of(context)!;final cs = Theme.of(context).colorScheme;- // Surface the RMAB Request action only for missing-but-released books,- // and only when the user has RMAB configured.- final showRequest = _rmabConfigured && !owned && !upcoming;+ // Request only missing-but-released books, from BookOrbit when this+ // account can ask it, otherwise from ReadMeABook when that's set up.+ final showRequest = (_serverRequests || _rmabConfigured) && !owned && !upcoming;// Let upcoming or recently-released books be pushed onto the upcoming page// without rescanning the whole library.final canAddToUpcoming = upcoming || _isRecent(book);@@ -200,13 +210,18 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {ListTile(leading: Icon(Icons.menu_book_rounded,color: cs.primary, size: 22),- title: Text(l.rmabRequestCta,+ title: Text(_serverRequests ? l.breqRequest : l.rmabRequestCta,style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),dense: true,visualDensity: VisualDensity.compact,onTap: () {Navigator.pop(context);+ final api = context.read<AuthProvider>().apiService;+ if (_serverRequests && api != null) {+ requestAudibleBooks(context, api, [(book: book, seriesName: widget.seriesName)]);+ return;+ }final asin = book['asin'] as String? ?? '';final title = book['title'] as String? ?? '';debugPrint(diff --git a/lib/widgets/book_activity_card.dart b/lib/widgets/book_activity_card.dartindex e89f506b..d9a2e36a 100644--- a/lib/widgets/book_activity_card.dart+++ b/lib/widgets/book_activity_card.dart@@ -48,6 +48,7 @@ class BookActivityCard extends StatelessWidget {/// The everyone view, for admins.final VoidCallback? onOthers;final String? me;+ final String? meId;const BookActivityCard({super.key,@@ -58,6 +59,7 @@ class BookActivityCard extends StatelessWidget {this.onAllSessions,this.onOthers,this.me,+ this.meId,});static const int _shown = 3;@@ -163,7 +165,7 @@ class BookActivityCard extends StatelessWidget {TextButton.icon(onPressed: onOthers,icon: Icon(Icons.group_outlined, size: 16, color: cs.onSurfaceVariant),- label: Text(l.detailOtherListeners(s.othersCount(me)),+ label: Text(l.detailOtherListeners(s.othersCount(id: meId, username: me)),style: tt.labelMedium?.copyWith(color: cs.onSurfaceVariant)),),const Spacer(),diff --git a/lib/widgets/book_detail_sheet.dart b/lib/widgets/book_detail_sheet.dartindex f9f3bed1..73ecce05 100644--- a/lib/widgets/book_detail_sheet.dart+++ b/lib/widgets/book_detail_sheet.dart@@ -14,6 +14,7 @@ import '../services/media_overlay.dart';import '../services/narration_service.dart';import '../services/read_listen_sync.dart';import '../services/book_dock.dart';+import '../services/bookorbit_email.dart';import '../services/bookorbit_mapper.dart';import 'absorb_placement.dart';import 'package:cached_network_image/cached_network_image.dart';@@ -43,6 +44,7 @@ import '../services/bookmark_service.dart';import '../services/download_service.dart';import '../services/narrated_books.dart';import 'book_files_sheet.dart';+import 'bookorbit_send_sheet.dart';import '../services/transcription_service.dart';import '../services/ebook_cache.dart';import '../services/progress_sync_service.dart';@@ -434,6 +436,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {bookOrbit: bookOrbit,accent: accent,me: auth.username,+ meId: auth.userId,onOpen: () => bookOrbit? Navigator.of(context, rootNavigator: true).push(MaterialPageRoute(builder: (_) => ReadingLogScreen(itemId: widget.itemId, title: title, item: _item, accent: accent)))@@ -465,6 +468,12 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {});}+ /// A read along made from File info is a new file on the book, and it+ /// changes the buttons.+ void _filesChanged() {+ if (mounted) _loadItem();+ }+Future<void> _loadItem() async {debugPrint('[BookDetail] _loadItem start item=${widget.itemId}');final loadStart = DateTime.now();@@ -1972,11 +1981,18 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {final serverEbookFile = resolveEbookFile(_item);if (serverEbookFile != null) {add(_ebookSaved ? Icons.download_done_rounded : Icons.save_alt_rounded,- l.ebookSaveToDevice, () => _saveEbook(context, auth, serverEbookFile, title));+ l.ebookSaveToDevice, () => _saveEbook(context, auth, exportEbookFile(_item) ?? serverEbookFile, title));}if (serverEbookFile != null && auth.ereaderDevices.isNotEmpty) {add(Icons.send_to_mobile_rounded, l.sendToEreader, () => _sendToEreader(context, auth));}+ if (auth.bookOrbitAdmin?.emailSend == true &&+ !lib.isOffline &&+ !ApiService.isBookDockItem(widget.itemId) &&+ boSendableFiles(_item).isNotEmpty) {+ add(Icons.send_to_mobile_rounded, l.sendToEreader,+ () => showBookOrbitSendSheet(context, item: _item!, title: title));+ }final listened = !isEbookOnly && (progress > 0 || isFinished);final read = lib.getEbookProgress(widget.itemId) > 0 || (isEbookOnly && (progress > 0 || isFinished));if (listened || read) {@@ -2006,7 +2022,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {}final item = _item;if (item != null) {- add(Icons.info_outline_rounded, l.fileInfoTitle, () => showBookFilesSheet(context, item));+ add(Icons.info_outline_rounded, l.fileInfoTitle, () => showBookFilesSheet(context, item, onFilesChanged: _filesChanged));}if (auth.canDelete && !lib.isOffline) {add(Icons.delete_outline_rounded, l.deleteFromServerAction,@@ -2762,7 +2778,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {}final l = AppLocalizations.of(context)!;final item = _item;- final showFiles = item == null ? null : () => showBookFilesSheet(context, item);+ final showFiles = item == null ? null : () => showBookFilesSheet(context, item, onFilesChanged: _filesChanged);return [if (codec != null && codec.isNotEmpty) _chip(Icons.audio_file_rounded, codec, onTap: showFiles),if (bitRate != null && bitRate > 0) _chip(Icons.speed_rounded, l.kbpsValue((bitRate / 1000).round()), onTap: showFiles),diff --git a/lib/widgets/book_files_sheet.dart b/lib/widgets/book_files_sheet.dartindex 5eed0fac..ed80b206 100644--- a/lib/widgets/book_files_sheet.dart+++ b/lib/widgets/book_files_sheet.dart@@ -1,18 +1,30 @@+import 'dart:async';+import 'package:flutter/material.dart';import 'package:flutter/services.dart';+import 'package:provider/provider.dart';import '../l10n/app_localizations.dart';+import '../providers/auth_provider.dart';+import '../providers/library_provider.dart';+import '../screens/book_requests_screen.dart';+import '../services/api_service.dart';+import '../services/book_requests.dart';import '../services/bookorbit_mapper.dart';import '../services/ebook_cache.dart';import '../services/narrated_books.dart';import '../utils/duration_format.dart';+import '../utils/file_size.dart';import 'adaptive_modal.dart';+import 'book_detail_sheet.dart' show showBookDetailSheet;import 'overlay_toast.dart';+import 'read_along_panel.dart';enum _FileKind { audio, ebook, other }class _FileEntry {final _FileKind kind;+ final String? id;final String name;final String? path;final String? format;@@ -27,6 +39,7 @@ class _FileEntry {const _FileEntry({required this.kind,+ this.id,required this.name,this.path,this.format,@@ -43,18 +56,15 @@ class _FileEntry {/// A book's files with what the server knows about each: format, codec,/// bitrate, channels, length and size. BookOrbit keeps no codec or bitrate,-/// so its rows carry format, size and length.-Future<void> showBookFilesSheet(BuildContext context, Map<String, dynamic> item) {- final entries = _entriesFor(item);+/// so its rows carry format, size and length. On BookOrbit it's also where+/// a read along is made, as on BookOrbit's own Files tab; [onFilesChanged]+/// hears when one is added.+Future<void> showBookFilesSheet(BuildContext context, Map<String, dynamic> item, {VoidCallback? onFilesChanged}) {return showAdaptiveSheetDialog<void>(context: context,initialChildSize: 0.6,minChildSize: 0.4,- builder: (ctx, scroll) => _BookFilesBody(- entries: entries,- bookOrbit: item['bookOrbit'] is Map,- scroll: scroll,- ),+ builder: (ctx, scroll) => _BookFilesBody(item: item, onFilesChanged: onFilesChanged, scroll: scroll),);}@@ -73,6 +83,7 @@ List<_FileEntry> _entriesFor(Map<String, dynamic> item) {seen.add('${af['ino']}');entries.add(_FileEntry(kind: _FileKind.audio,+ id: af['ino']?.toString(),name: '${meta['filename'] ?? af['ino'] ?? ''}',path: meta['relPath'] as String? ?? meta['path'] as String?,format: (af['format'] as String?) ?? _extOf(meta),@@ -91,6 +102,7 @@ List<_FileEntry> _entriesFor(Map<String, dynamic> item) {final id = item['id'];entries.add(_FileEntry(kind: _FileKind.ebook,+ id: ebook['ino']?.toString(),name: '${meta['filename'] ?? ''}',path: meta['relPath'] as String? ?? meta['path'] as String?,format: (ebook['ebookFormat'] as String?) ?? _extOf(meta),@@ -105,6 +117,7 @@ List<_FileEntry> _entriesFor(Map<String, dynamic> item) {if (type == 'audio') continue;entries.add(_FileEntry(kind: type == 'ebook' ? _FileKind.ebook : _FileKind.other,+ id: lf['ino']?.toString(),name: '${meta['filename'] ?? ''}',path: meta['relPath'] as String? ?? meta['path'] as String?,format: _extOf(meta),@@ -128,6 +141,7 @@ _FileEntry _bookOrbitEntry(Map f) {: _FileKind.other;return _FileEntry(kind: kind,+ id: f['id']?.toString(),name: '${f['filename'] ?? ''}',path: f['path'] as String?,format: format,@@ -144,22 +158,207 @@ String? _extOf(Map meta) {return clean.isEmpty ? null : clean;}-String _size(int bytes) {- if (bytes < 1024) return '$bytes B';- if (bytes < 1048576) return '${(bytes / 1024).round()} KB';- if (bytes < 1073741824) return '${(bytes / 1048576).toStringAsFixed(1)} MB';- return '${(bytes / 1073741824).toStringAsFixed(2)} GB';+class _BookFilesBody extends StatefulWidget {+ final Map<String, dynamic> item;+ final VoidCallback? onFilesChanged;+ final ScrollController scroll;++ const _BookFilesBody({required this.item, required this.onFilesChanged, required this.scroll});++ @override+ State<_BookFilesBody> createState() => _BookFilesBodyState();}-class _BookFilesBody extends StatelessWidget {- final List<_FileEntry> entries;- final bool bookOrbit;- final ScrollController scroll;+class _BookFilesBodyState extends State<_BookFilesBody> {+ late Map<String, dynamic> _item = widget.item;+ late List<_FileEntry> _entries = _entriesFor(_item);++ MissingFormatRequest? _missing;+ bool _requesting = false;+ String? _deleting;+ int _panelVersion = 0;++ bool get bookOrbit => _item['bookOrbit'] is Map;+ ScrollController get scroll => widget.scroll;++ /// A BookOrbit book, not a Book Dock file.+ String? get _bookId {+ final id = _item['id'];+ return bookOrbit && id is String && !ApiService.isBookDockItem(id) ? id : null;+ }++ BookOrbitApiService? get _boApi {+ final api = context.read<AuthProvider?>()?.apiService;+ return api is BookOrbitApiService ? api : null;+ }++ @override+ void initState() {+ super.initState();+ _loadMissing();+ }++ Future<void> _loadMissing() async {+ final id = _bookId;+ final api = _boApi;+ if (id == null || api == null) return;+ final missing = await api.missingFormatRequest(id);+ if (mounted) setState(() => _missing = missing);+ }++ Future<void> _filesChanged() async {+ widget.onFilesChanged?.call();+ final id = _item['id'];+ final api = context.read<AuthProvider?>()?.apiService;+ if (id is! String || api == null) return;+ final fresh = await api.getLibraryItem(id);+ if (fresh == null || !mounted) return;+ setState(() {+ _item = fresh;+ _entries = _entriesFor(fresh);+ });+ // A read along is the audio and the text in one, and a deleted file can+ // leave a format missing.+ unawaited(_loadMissing());+ }++ bool get _canDelete {+ if (!(context.read<AuthProvider?>()?.canDelete ?? false)) return false;+ if (context.read<LibraryProvider?>()?.isOffline ?? true) return false;+ if (bookOrbit) return _bookId != null;+ return _item['id'] is String && _item['mediaType'] != 'podcast';+ }++ Future<void> _deleteFile(_FileEntry entry) async {+ final itemId = _item['id'];+ final fileId = entry.id;+ final api = context.read<AuthProvider?>()?.apiService;+ if (itemId is! String || fileId == null || api == null || _deleting != null) return;+ final l = AppLocalizations.of(context)!;+ final name = entry.name.isEmpty ? fileId : entry.name;+ final last = entry.kind != _FileKind.other && _entries.where((e) => e.kind != _FileKind.other).length == 1;+ final ok = await showDialog<bool>(+ context: context,+ builder: (ctx) => AlertDialog(+ title: Text(l.fileInfoDeleteTitle),+ content: Text([l.fileInfoDeletePrompt(name), if (last) l.fileInfoDeleteLast].join('\n\n')),+ actions: [+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ TextButton(+ onPressed: () => Navigator.pop(ctx, true),+ child: Text(l.delete, style: TextStyle(color: Theme.of(ctx).colorScheme.error)),+ ),+ ],+ ),+ );+ if (ok != true || !mounted) return;+ setState(() => _deleting = fileId);+ final status = await api.deleteLibraryFile(itemId, fileId);+ if (!mounted) return;+ if (status < 200 || status >= 300) {+ setState(() => _deleting = null);+ showOverlayToast(context, status == 403 ? l.fileInfoDeleteNotAllowed : l.deleteFromServerFailed,+ icon: status == 403 ? Icons.lock_outline_rounded : Icons.error_outline_rounded);+ return;+ }+ setState(() {+ _deleting = null;+ _entries = _entries.where((e) => e.id != fileId).toList();+ // BookOrbit's read along choices list the files a read along can be+ // made from or replace, so it looks again.+ _panelVersion++;+ });+ showOverlayToast(context, l.deletedFromServer(name), icon: Icons.delete_outline_rounded);+ await _filesChanged();+ }- const _BookFilesBody({required this.entries, required this.bookOrbit, required this.scroll});+ Future<void> _requestMissing() async {+ final id = _bookId;+ final api = _boApi;+ final missing = _missing;+ if (id == null || api == null || missing == null || _requesting) return;+ final l = AppLocalizations.of(context)!;+ setState(() => _requesting = true);+ final result = await api.requestMissingFormat(id, missing.mediaKind);+ if (!mounted) return;+ setState(() {+ _requesting = false;+ final request = result.request;+ if (request != null) {+ _missing = MissingFormatRequest(+ missing.mediaKind,+ BookRequestAvailability(+ existingRequestId: request.id,+ existingRequestStatus: request.status,+ alreadySubscribed: true,+ ),+ );+ }+ });+ if (result.ok) {+ showOverlayToast(context, result.subscribed ? l.breqJoined : l.breqJoinsOwned,+ icon: Icons.check_circle_outline_rounded);+ } else {+ showOverlayToast(context, result.error != null ? l.breqFailedReason(result.error!) : l.breqFailed,+ icon: Icons.error_outline_rounded);+ }+ }++ /// Where the missing format's files would be: a placeholder saying it+ /// isn't here yet, with the way to ask for it.+ List<Widget> _missingSection(BuildContext context, String title, MissingFormatRequest missing) {+ final l = AppLocalizations.of(context)!;+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final audiobook = missing.mediaKind == 'audiobook';+ final owned = missing.ownedBookId;+ final status = owned != null+ ? l.fileInfoOwnedSeparately+ : missing.following+ ? l.breqRequested+ : missing.joinable+ ? l.fileInfoRequestedBySomeone+ : audiobook+ ? l.fileInfoNoAudiobook+ : l.fileInfoNoEbook;+ final Widget action;+ if (owned != null) {+ action = TextButton(onPressed: () => showBookDetailSheet(context, '$owned'), child: Text(l.breqOpenBook));+ } else if (missing.following) {+ action = TextButton(onPressed: () => BookRequestsScreen.open(context, openList: true), child: Text(l.breqView));+ } else {+ action = FilledButton.tonal(+ onPressed: _requesting ? null : _requestMissing,+ child: _requesting+ ? const SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2))+ : Text(missing.joinable ? l.breqAddMeToo : (audiobook ? l.breqRequestAudiobook : l.breqRequestEbook)),+ );+ }+ return [+ const SizedBox(height: 20),+ Text(title, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w700)),+ const SizedBox(height: 8),+ Row(children: [+ Container(+ width: 32,+ height: 32,+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(8),+ border: Border.all(color: cs.outlineVariant),+ ),+ child: Icon(audiobook ? Icons.headphones_rounded : Icons.menu_book_rounded, size: 16, color: cs.onSurfaceVariant),+ ),+ const SizedBox(width: 12),+ Expanded(child: Text(status, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),+ const SizedBox(width: 8),+ action,+ ]),+ ];+ }@overrideWidget build(BuildContext context) {+ final entries = _entries;final l = AppLocalizations.of(context)!;final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;@@ -186,9 +385,16 @@ class _BookFilesBody extends StatelessWidget {Text(l.fileInfoTitle, style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w700)),const SizedBox(height: 4),Text(- [l.fileInfoFileCount(entries.length), if (totalSize > 0) _size(totalSize)].join(' · '),+ [l.fileInfoFileCount(entries.length), if (totalSize > 0) formatFileSize(totalSize)].join(' · '),style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant),),+ if (bookOrbit && _item['id'] is String && !ApiService.isBookDockItem(_item['id'] as String))+ ReadAlongPanel(+ key: ValueKey(_panelVersion),+ bookId: _item['id'] as String,+ bookLanguage: ((_item['media'] as Map?)?['metadata'] as Map?)?['language'] as String?,+ onAdded: _filesChanged,+ ),if (entries.isEmpty) ...[const SizedBox(height: 24),Text(l.fileInfoNone, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),@@ -199,7 +405,10 @@ class _BookFilesBody extends StatelessWidget {padding: const EdgeInsets.only(top: 4),child: Text(l.fileInfoBookOrbitNote, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),),+ if (_missing case final missing? when missing.mediaKind == 'audiobook')+ ..._missingSection(context, l.fileInfoAudio, missing),if (ebooks.isNotEmpty) ..._section(context, l.fileInfoEbook, ebooks),+ if (_missing case final missing? when missing.mediaKind == 'ebook') ..._missingSection(context, l.fileInfoEbook, missing),if (other.isNotEmpty) ..._section(context, l.fileInfoOther, other),],);@@ -230,13 +439,14 @@ class _BookFilesBody extends StatelessWidget {else if ((e.channels ?? 0) > 0)l.fileInfoChannels(e.channels!),if (withLength && (e.duration ?? 0) > 0) formatHm(e.duration!),- if (withLength && (e.size ?? 0) > 0) _size(e.size!),+ if (withLength && (e.size ?? 0) > 0) formatFileSize(e.size!),];}List<Widget> _section(BuildContext context, String title, List<_FileEntry> files, {List<String> shared = const []}) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final canDelete = _canDelete;return [const SizedBox(height: 20),Row(children: [@@ -251,7 +461,13 @@ class _BookFilesBody extends StatelessWidget {_SpecWrap(specs: shared),],const SizedBox(height: 8),- for (final f in files) _FileTile(entry: f, specs: _specs(context, f).where((s) => !shared.contains(s)).toList()),+ for (final f in files)+ _FileTile(+ entry: f,+ specs: _specs(context, f).where((s) => !shared.contains(s)).toList(),+ deleting: f.id != null && f.id == _deleting,+ onDelete: canDelete && f.id != null ? () => _deleteFile(f) : null,+ ),];}}@@ -289,7 +505,9 @@ class _SpecWrap extends StatelessWidget {class _FileTile extends StatelessWidget {final _FileEntry entry;final List<String> specs;- const _FileTile({required this.entry, required this.specs});+ final bool deleting;+ final VoidCallback? onDelete;+ const _FileTile({required this.entry, required this.specs, this.deleting = false, this.onDelete});@overrideWidget build(BuildContext context) {@@ -308,16 +526,18 @@ class _FileTile extends StatelessWidget {'supplement' => l.fileInfoSupplement,_ => null,};+ final copyPath = path == null || path.isEmpty+ ? null+ : () async {+ await Clipboard.setData(ClipboardData(text: path));+ if (context.mounted) {+ showOverlayToast(context, l.fileInfoPathCopied, icon: Icons.content_copy_rounded);+ }+ };+ final onDelete = this.onDelete;return InkWell(borderRadius: BorderRadius.circular(10),- onLongPress: path == null || path.isEmpty- ? null- : () async {- await Clipboard.setData(ClipboardData(text: path));- if (context.mounted) {- showOverlayToast(context, l.fileInfoPathCopied, icon: Icons.content_copy_rounded);- }- },+ onLongPress: copyPath,child: Padding(padding: const EdgeInsets.symmetric(vertical: 8),child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [@@ -341,6 +561,38 @@ class _FileTile extends StatelessWidget {],]),),+ if (deleting)+ const Padding(+ padding: EdgeInsets.all(12),+ child: SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2)),+ )+ else if (onDelete != null)+ PopupMenuButton<VoidCallback>(+ tooltip: l.moreActions,+ icon: Icon(Icons.more_vert_rounded, size: 20, color: cs.onSurfaceVariant),+ padding: EdgeInsets.zero,+ constraints: const BoxConstraints(minWidth: 160),+ onSelected: (action) => action(),+ itemBuilder: (_) => [+ if (copyPath != null)+ PopupMenuItem(+ value: copyPath,+ child: Row(children: [+ const Icon(Icons.content_copy_rounded, size: 18),+ const SizedBox(width: 12),+ Text(l.fileInfoCopyPath),+ ]),+ ),+ PopupMenuItem(+ value: onDelete,+ child: Row(children: [+ Icon(Icons.delete_outline_rounded, size: 18, color: cs.error),+ const SizedBox(width: 12),+ Text(l.delete, style: TextStyle(color: cs.error)),+ ]),+ ),+ ],+ ),]),),);diff --git a/lib/widgets/book_stats_sheet.dart b/lib/widgets/book_stats_sheet.dartindex ab5872d4..d315c4ce 100644--- a/lib/widgets/book_stats_sheet.dart+++ b/lib/widgets/book_stats_sheet.dart@@ -162,7 +162,7 @@ class _BookStatsSheetState extends State<_BookStatsSheet> {),]),)- else if (s.users.isEmpty)+ else if (s.listeners.isEmpty)Padding(padding: const EdgeInsets.symmetric(vertical: 12),child: Text(l.bookStatsNobody,@@ -170,16 +170,16 @@ class _BookStatsSheetState extends State<_BookStatsSheet> {tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),)else ...[- _row(l.bookStatsListeners, '${s.users.length}', cs, tt),+ _row(l.bookStatsListeners, '${s.listeners.length}', cs, tt),_row(l.bookStatsFinishedCount,- '${s.users.where((u) => u.finished).length}', cs, tt),+ '${s.listeners.where((u) => u.finished).length}', cs, tt),_row(l.bookStatsTotalTime,- _dur(s.users.fold(0.0, (a, u) => a + u.seconds), l),+ _dur(s.listeners.fold(0.0, (a, u) => a + u.seconds), l),cs,tt),const SizedBox(height: 12),- for (final u in s.users)+ for (final u in s.listeners)Padding(padding: const EdgeInsets.symmetric(vertical: 6),child: Row(children: [diff --git a/lib/widgets/bookorbit_send_sheet.dart b/lib/widgets/bookorbit_send_sheet.dartnew file mode 100644index 00000000..4a5ab8cf--- /dev/null+++ b/lib/widgets/bookorbit_send_sheet.dart@@ -0,0 +1,434 @@+import 'dart:async';++import 'package:flutter/material.dart';+import 'package:provider/provider.dart';++import '../l10n/app_localizations.dart';+import '../providers/auth_provider.dart';+import '../screens/bookorbit_admin_screen.dart';+import '../screens/bookorbit_email_editors.dart';+import '../screens/bookorbit_email_screen.dart';+import '../services/api_service.dart';+import '../services/bookorbit_email.dart';+import '../utils/file_size.dart';+import 'adaptive_modal.dart';++/// Sends a BookOrbit book to the user's devices by email, then follows each+/// email until the mail server takes it or turns it down.+Future<void> showBookOrbitSendSheet(BuildContext context, {required Map<String, dynamic> item, required String title}) {+ return showAdaptiveSheetDialog<void>(+ context: context,+ initialChildSize: 0.75,+ minChildSize: 0.4,+ builder: (ctx, scroll) => _SendBody(item: item, title: title, scroll: scroll),+ );+}++class _SendBody extends StatefulWidget {+ final Map<String, dynamic> item;+ final String title;+ final ScrollController scroll;+ const _SendBody({required this.item, required this.title, required this.scroll});++ @override+ State<_SendBody> createState() => _SendBodyState();+}++class _SendBodyState extends State<_SendBody> {+ static const _pollEvery = Duration(milliseconds: 1500);+ static const _followFor = Duration(seconds: 60);++ BoEmailSetup? _setup;+ late final List<BoSendableFile> _files = boSendableFiles(widget.item);+ late final int? _bookId = int.tryParse('${widget.item['id']}');+ final Set<int> _picked = {};+ String? _format;+ int? _serverId;+ int? _templateId;+ bool _loading = true;+ bool _sending = false;++ // After a send: which devices it went to, the newest email for this book+ // before it, and what has happened to each since.+ List<BoEmailDevice>? _sentTo;+ int _lastIdBefore = 0;+ DateTime? _sentAt;+ final Map<int, BoEmailSend> _deliveries = {};+ Timer? _poll;++ List<String> get _formats => {for (final f in _files) f.format}.toList();++ BoMailServer? get _server {+ for (final s in _setup?.servers ?? const <BoMailServer>[]) {+ if (s.id == _serverId) return s;+ }+ return _setup?.defaultServer;+ }++ @override+ void initState() {+ super.initState();+ _load(first: true);+ }++ @override+ void dispose() {+ _poll?.cancel();+ super.dispose();+ }++ Future<void> _load({bool first = false, int? select}) async {+ final api = boAdminApi(context);+ final access = context.read<AuthProvider>().bookOrbitAdmin;+ if (api == null || access == null) return;+ try {+ final r = await Future.wait<Object>([+ BoEmailSetup.load(api, canSend: true),+ if (first && _bookId != null) api.emailHistory(bookId: _bookId, size: 1),+ ]);+ final setup = r[0] as BoEmailSetup;+ if (!mounted) return;+ setState(() {+ _setup = setup;+ if (r.length > 1) _lastIdBefore = (r[1] as List<BoEmailSend>).firstOrNull?.id ?? 0;+ final ids = {for (final d in setup.devices) d.id};+ _picked.retainAll(ids);+ if (select != null && ids.contains(select)) {+ _picked.add(select);+ } else if (first) {+ final def = setup.defaults.deviceId;+ if (def != null && ids.contains(def)) {+ _picked.add(def);+ } else if (setup.devices.length == 1) {+ _picked.add(setup.devices.first.id);+ }+ }+ _serverId ??= setup.defaultServer?.id;+ });+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _loading = false);+ }+ }++ Future<void> _addDevice() async {+ final setup = _setup;+ if (setup == null) return;+ final before = {for (final d in setup.devices) d.id};+ final changed = await Navigator.push<bool>(+ context,+ MaterialPageRoute(builder: (_) => BoEmailDeviceScreen(setup: setup)),+ );+ if (changed != true || !mounted) return;+ await _load();+ final added = _setup?.devices.where((d) => !before.contains(d.id)).firstOrNull;+ if (added != null && mounted) setState(() => _picked.add(added.id));+ }++ Future<void> _addServer() async {+ final setup = _setup;+ if (setup == null) return;+ final changed = await Navigator.push<bool>(+ context,+ MaterialPageRoute(builder: (_) => BoEmailServerScreen(setup: setup)),+ );+ if (changed == true && mounted) await _load();+ }++ Future<void> _openSettings() async {+ await Navigator.push(context, MaterialPageRoute(builder: (_) => const BookOrbitEmailScreen()));+ if (mounted && _sentTo == null) await _load();+ }++ BoEmailDevice? get _blockingKindle {+ final f = _format;+ if (f == null || boKindleAccepts(f)) return null;+ return _setup?.devices.where((d) => d.isKindle && _picked.contains(d.id)).firstOrNull;+ }++ int? _fileIdFor(String? format) {+ if (format == null) return null;+ final plain = _files.where((f) => f.format == format && !f.readAlong).firstOrNull;+ return (plain ?? _files.where((f) => f.format == format).firstOrNull)?.id;+ }++ Future<void> _send() async {+ final api = boAdminApi(context);+ final setup = _setup;+ final bookId = _bookId;+ if (api == null || setup == null || bookId == null || _picked.isEmpty || _blockingKindle != null) return;+ setState(() => _sending = true);+ try {+ await api.emailSendBook(+ bookId,+ deviceIds: _picked.toList(),+ serverId: _serverId,+ templateId: _templateId,+ fileId: _fileIdFor(_format),+ );+ if (!mounted) return;+ setState(() {+ _sentTo = setup.devices.where((d) => _picked.contains(d.id)).toList();+ _sentAt = DateTime.now();+ });+ _follow();+ } catch (e) {+ if (mounted) showBoEmailError(context, e);+ } finally {+ if (mounted) setState(() => _sending = false);+ }+ }++ Future<void> _follow() async {+ final api = boAdminApi(context);+ final sentTo = _sentTo;+ final bookId = _bookId;+ if (api == null || sentTo == null || bookId == null) return;+ try {+ final rows = await api.emailHistory(bookId: bookId, size: sentTo.length * 2 + 4);+ if (!mounted) return;+ setState(() {+ for (final d in sentTo) {+ final row = rows+ .where((e) =>+ e.id > _lastIdBefore &&+ (e.deviceId == d.id || e.toEmail.toLowerCase() == d.email.toLowerCase()))+ .firstOrNull;+ if (row != null) _deliveries[d.id] = row;+ }+ });+ } catch (_) {+ // Tried again on the next tick; the sheet already says it's sending.+ }+ if (!mounted) return;+ final settled = sentTo.every((d) => _deliveries[d.id] != null && !_deliveries[d.id]!.pending);+ if (!settled && DateTime.now().difference(_sentAt!) < _followFor) {+ _poll = Timer(_pollEvery, _follow);+ } else {+ setState(() {});+ }+ }++ /// What [d] would get, or a warning about it.+ (String, bool)? _plan(AppLocalizations l, BoEmailDevice d) {+ final f = _format;+ if (f != null && d.isKindle && !boKindleAccepts(f)) return (l.boEmailSendKindleRejects(f.toUpperCase()), true);+ final plan = boPlanFile(_files, d, f);+ if (plan == null) return null;+ final file = plan.file;+ final size = file.size != null && file.size! > 0 ? formatFileSize(file.size!) : '';+ final limit = boSizeLimit(file.size, d.deviceType, _server?.host);+ if (limit == BoSizeLimit.kindle) return (l.boEmailSendOverKindle(size), true);+ if (limit == BoSizeLimit.gmail) return (l.boEmailSendOverGmail(size), true);+ if (plan.missingFormat != null) {+ return (l.boEmailSendMissing(plan.missingFormat!.toUpperCase(), file.format.toUpperCase()), false);+ }+ if (file.readAlong) return (l.boEmailSendNarrated(size), false);+ return (size.isEmpty ? file.format.toUpperCase() : l.boEmailSendGets(file.format.toUpperCase(), size), false);+ }++ Widget _deliveryLine(AppLocalizations l, BoEmailDevice d) {+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final e = _deliveries[d.id];+ final server = _server?.name ?? '';+ if (e == null || e.pending) {+ return Row(children: [+ const SizedBox(width: 12, height: 12, child: CircularProgressIndicator(strokeWidth: 1.5)),+ const SizedBox(width: 8),+ Flexible(child: Text(l.boEmailSendHanding(server), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant))),+ ]);+ }+ if (e.sent) {+ return Text(l.boEmailSendAccepted(server), style: tt.bodySmall?.copyWith(color: Colors.green));+ }+ return Text(l.boEmailSendFailedLine(e.error ?? ''), style: tt.bodySmall?.copyWith(color: cs.error));+ }++ @override+ Widget build(BuildContext context) {+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;+ final access = context.watch<AuthProvider>().bookOrbitAdmin;+ final setup = _setup;+ final sentTo = _sentTo;++ final children = <Widget>[+ Text(l.sendToEreader, style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w700)),+ const SizedBox(height: 2),+ Text(widget.title, maxLines: 2, overflow: TextOverflow.ellipsis,+ style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ const SizedBox(height: 16),+ ];++ if (_loading && setup == null) {+ children.add(const Padding(+ padding: EdgeInsets.all(24),+ child: Center(child: CircularProgressIndicator(strokeWidth: 2)),+ ));+ } else if (setup == null) {+ children.add(BoEmailEmpty(l.boAdminFailed));+ } else if (setup.servers.isEmpty) {+ children.addAll([+ BoEmailEmpty(access?.manageEmail == true ? l.boEmailSendNoServer : '${l.boEmailSendNoServer} ${l.boEmailSendAskAdmin}'),+ if (access?.manageEmail == true)+ Align(+ alignment: Alignment.centerLeft,+ child: FilledButton.tonalIcon(+ onPressed: _addServer,+ icon: const Icon(Icons.add_rounded),+ label: Text(l.boEmailAddServer),+ ),+ ),+ ]);+ } else if (sentTo != null) {+ for (final d in sentTo) {+ children.add(ListTile(+ contentPadding: EdgeInsets.zero,+ leading: Icon(boDeviceIcon(d.deviceType), color: cs.primary),+ title: Text(d.name),+ subtitle: _deliveryLine(l, d),+ ));+ }+ final stillGoing = sentTo.any((d) => _deliveries[d.id]?.pending != false) &&+ _sentAt != null &&+ DateTime.now().difference(_sentAt!) >= _followFor;+ if (stillGoing) children.add(BoEmailEmpty(l.boEmailSendStillGoing));+ children.addAll([+ const SizedBox(height: 16),+ FilledButton(onPressed: () => Navigator.pop(context), child: Text(l.done)),+ ]);+ } else {+ final groups = setup.groups.where((g) => g.members.isNotEmpty).toList();+ if (setup.devices.isEmpty) children.add(BoEmailEmpty(l.boEmailSendNoDevices));+ for (final d in setup.devices) {+ final plan = _plan(l, d);+ children.add(CheckboxListTile(+ contentPadding: EdgeInsets.zero,+ secondary: Icon(boDeviceIcon(d.deviceType), color: cs.primary),+ title: Text(d.name),+ subtitle: plan == null+ ? Text(d.email)+ : Text(plan.$1, style: TextStyle(color: plan.$2 ? cs.error : cs.onSurfaceVariant)),+ value: _picked.contains(d.id),+ onChanged: (v) => setState(() => v == true ? _picked.add(d.id) : _picked.remove(d.id)),+ ));+ }+ if (groups.isNotEmpty) {+ children.add(Padding(+ padding: const EdgeInsets.only(top: 4, bottom: 4),+ child: Wrap(spacing: 8, runSpacing: 4, children: [+ for (final g in groups)+ FilterChip(+ avatar: const Icon(Icons.groups_rounded, size: 18),+ label: Text(g.name),+ selected: _picked.containsAll(g.memberIds),+ onSelected: (on) => setState(() => on ? _picked.addAll(g.memberIds) : _picked.removeAll(g.memberIds)),+ ),+ ]),+ ));+ }+ children.add(Align(+ alignment: Alignment.centerLeft,+ child: TextButton.icon(+ onPressed: _addDevice,+ icon: const Icon(Icons.add_rounded),+ label: Text(l.boEmailAddDevice),+ ),+ ));++ final formats = _formats;+ final showServers = setup.servers.length > 1;+ final showTemplates = setup.templates.length > 1;+ if (formats.length > 1 || showServers || showTemplates) {+ children.add(Theme(+ data: Theme.of(context).copyWith(dividerColor: Colors.transparent),+ child: ExpansionTile(+ tilePadding: EdgeInsets.zero,+ childrenPadding: const EdgeInsets.only(bottom: 8),+ title: Text(l.boEmailSendOptions, style: tt.titleSmall),+ expandedCrossAxisAlignment: CrossAxisAlignment.start,+ children: [+ if (formats.length > 1) ...[+ Text(l.boEmailFormat, style: tt.labelLarge?.copyWith(color: cs.onSurfaceVariant)),+ const SizedBox(height: 6),+ Wrap(spacing: 8, runSpacing: 4, children: [+ ChoiceChip(+ label: Text(l.boEmailSendFormatEach),+ selected: _format == null,+ onSelected: (_) => setState(() => _format = null),+ ),+ for (final f in formats)+ ChoiceChip(+ label: Text(f.toUpperCase()),+ selected: _format == f,+ onSelected: (_) => setState(() => _format = f),+ ),+ ]),+ const SizedBox(height: 12),+ ],+ if (showServers) ...[+ DropdownButtonFormField<int>(+ initialValue: _server?.id,+ isExpanded: true,+ decoration: InputDecoration(labelText: l.boEmailSendServer),+ items: [+ for (final s in setup.servers)+ DropdownMenuItem(value: s.id, child: Text(s.name, overflow: TextOverflow.ellipsis)),+ ],+ onChanged: (v) => setState(() => _serverId = v),+ ),+ const SizedBox(height: 12),+ ],+ if (showTemplates)+ DropdownButtonFormField<int?>(+ initialValue: _templateId,+ isExpanded: true,+ decoration: InputDecoration(labelText: l.boEmailTemplate),+ items: [+ DropdownMenuItem<int?>(+ value: null,+ child: Text(+ setup.defaultTemplate == null+ ? l.boEmailTemplateYourDefault+ : '${l.boEmailTemplateYourDefault} (${setup.defaultTemplate!.name})',+ overflow: TextOverflow.ellipsis,+ ),+ ),+ for (final t in setup.templates)+ DropdownMenuItem<int?>(value: t.id, child: Text(t.name, overflow: TextOverflow.ellipsis)),+ ],+ onChanged: (v) => setState(() => _templateId = v),+ ),+ ],+ ),+ ));+ }++ final blocking = _blockingKindle;+ children.addAll([+ const SizedBox(height: 12),+ FilledButton.icon(+ onPressed: _picked.isEmpty || blocking != null || _sending ? null : _send,+ icon: _sending+ ? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))+ : const Icon(Icons.send_rounded),+ label: Text(l.boEmailSendButton),+ ),+ ]);+ }++ children.add(Align(+ alignment: Alignment.center,+ child: TextButton(onPressed: _openSettings, child: Text(l.boEmailTitle)),+ ));++ return ListView(+ controller: widget.scroll,+ padding: const EdgeInsets.fromLTRB(20, 20, 20, 24),+ children: children,+ );+ }+}diff --git a/lib/widgets/desktop_batch_actions.dart b/lib/widgets/desktop_batch_actions.dartindex 29b09fb4..84c96cbb 100644--- a/lib/widgets/desktop_batch_actions.dart+++ b/lib/widgets/desktop_batch_actions.dart@@ -4,7 +4,9 @@ import 'package:provider/provider.dart';import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';+import '../services/api_service.dart';import '../services/audio_player_service.dart';+import '../services/bookorbit_admin.dart';import '../services/download_service.dart';import 'delete_confirm_dialog.dart';import 'overlay_toast.dart';@@ -141,15 +143,20 @@ class DesktopBatchActions {return true;}+ /// [onProgress] hears how many books are done, on servers that report it.static Future<bool?> quickMatch(BuildContext context,- List<String> itemIds,- ) async {+ List<String> itemIds, {+ void Function(int done, int total)? onProgress,+ }) async {if (itemIds.isEmpty) return null;final auth = context.read<AuthProvider>();final lib = context.read<LibraryProvider>();final api = auth.apiService;if (api == null) return false;+ if (api is BookOrbitApiService) {+ return _bookOrbitQuickMatch(context, api, itemIds, onProgress);+ }final libraryProvider =lib.selectedLibrary?['provider']?.toString().trim() ?? '';@@ -185,6 +192,93 @@ class DesktopBatchActions {return success;}+ /// BookOrbit fills each book by its own metadata rules, so there is no+ /// provider or replace choice, only whether to ask the providers afresh.+ static Future<bool?> _bookOrbitQuickMatch(+ BuildContext context,+ BookOrbitApiService api,+ List<String> itemIds,+ void Function(int done, int total)? onProgress,+ ) async {+ final l = AppLocalizations.of(context)!;+ var ignoreCache = false;+ final go = await showDialog<bool>(+ context: context,+ builder: (dialogContext) => StatefulBuilder(+ builder: (context, setLocalState) => AlertDialog(+ title: Text(l.quickMatch),+ content: SizedBox(+ width: 360,+ child: Column(+ mainAxisSize: MainAxisSize.min,+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Text(l.boQuickMatchBody(itemIds.length)),+ const SizedBox(height: 8),+ CheckboxListTile(+ contentPadding: EdgeInsets.zero,+ title: Text(l.boQuickMatchIgnoreCache),+ subtitle: Text(l.boQuickMatchIgnoreCacheHint),+ value: ignoreCache,+ onChanged: (value) =>+ setLocalState(() => ignoreCache = value ?? false),+ ),+ ],+ ),+ ),+ actions: [+ TextButton(+ onPressed: () => Navigator.pop(dialogContext, false),+ child: Text(l.cancel),+ ),+ FilledButton(+ onPressed: () => Navigator.pop(dialogContext, true),+ child: Text(l.quickMatch),+ ),+ ],+ ),+ ),+ );+ if (go != true || !context.mounted) return null;++ showOverlayToast(+ context,+ l.adminMatchingStarted(l.selectedCount(itemIds.length)),+ icon: Icons.auto_fix_high_rounded,+ );+ final ({int matched, int failed}) result;+ try {+ result = await api.quickMatchBooks(+ itemIds,+ ignoreCache: ignoreCache,+ onProgress: onProgress,+ );+ } catch (e) {+ debugPrint('[QuickMatch] BookOrbit bulk match failed: $e');+ if (context.mounted) {+ showOverlayToast(+ context,+ (e is BookOrbitAdminError ? e.message : null) ?? l.failedToUpdateMetadata,+ icon: Icons.error_outline_rounded,+ );+ }+ return false;+ }+ if (!context.mounted) return result.failed == 0;+ final summary = <String>[+ if (result.matched > 0) '${l.metadataUpdated} (${result.matched})',+ if (result.failed > 0) '${l.failedToUpdateMetadata} (${result.failed})',+ ];+ showOverlayToast(+ context,+ summary.join(' - '),+ icon: result.failed > 0+ ? Icons.error_outline_rounded+ : Icons.check_circle_outline_rounded,+ );+ return result.failed == 0;+ }+static Future<bool> setFinished(BuildContext context,List<String> itemIds, {diff --git a/lib/widgets/ebook_reader_view.dart b/lib/widgets/ebook_reader_view.dartindex a78b763b..177c1043 100644--- a/lib/widgets/ebook_reader_view.dart+++ b/lib/widgets/ebook_reader_view.dart@@ -300,11 +300,21 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObs/// Read along can follow the narration when the book's audio is that/// narration: BookOrbit plays it as the audio, and an Audiobookshelf- /// ebook-only book has it fetched out of the EPUB. A book with its own- /// audiobook keeps transcription.+ /// ebook-only book has it fetched out of the EPUB. On BookOrbit it also+ /// follows a read along EPUB laid on the audiobook beside it. Any other+ /// book with its own audiobook keeps transcription.bool get _useNarration =>_narration != null && (_narrationFromServer || !_hasAudio || _audioIsNarration);+ /// Whether the page and the audio may move each other. A book with its own+ /// audiobook beside a read along EPUB does that only with Sync reading and+ /// listening on, as any book with both does.+ Future<bool> _narrationMovesSpots() async {+ await _audioMetaLookup;+ if (!_hasAudio || _audioIsNarration) return true;+ return PlayerSettings.getSyncReadingListening();+ }+// The narration and audio lookups started on open: read along waits for// them, since which kind it is depends on their answers.Future<void>? _narrationLookup;@@ -4560,6 +4570,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObsfinal player = AudioPlayerService();// Find in ebook names the spot, whether or not it is ahead of the page.double? at = widget.openAtAudioSeconds;+ if (at == null && !await _narrationMovesSpots()) return;if (at == null && player.currentItemId == widget.itemId && player.currentEpisodeId == null) {at = player.position.inMilliseconds / 1000.0;} else if (at == null) {@@ -4628,6 +4639,7 @@ class EbookReaderViewState extends State<EbookReaderView> with WidgetsBindingObsfinal t = _narrationReadAt;if (n == null || t == null || !_useNarration || _readAlongOn) return;_narrationReadAt = null;+ if (!await _narrationMovesSpots()) return;final player = AudioPlayerService();final inPlayer = player.currentItemId == widget.itemId && player.currentEpisodeId == null;if (inPlayer && player.isPlaying) return;diff --git a/lib/widgets/ebook_router.dart b/lib/widgets/ebook_router.dartindex 72b65bbd..d3dc2f95 100644--- a/lib/widgets/ebook_router.dart+++ b/lib/widgets/ebook_router.dart@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';import 'package:provider/provider.dart';import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';+import '../services/api_service.dart';import '../services/ebook_cache.dart';import '../services/image_epub.dart';import '../services/narration_service.dart';@@ -93,8 +94,8 @@ Future<void> openEbookReader(itemId: itemId,title: title,ebookFile: ebookFile,- epubReader: () => EbookReaderView(- itemId: itemId, title: title, ebookFile: ebookFile, openAtCfi: openAtCfi,+ epubReader: (file) => EbookReaderView(+ itemId: itemId, title: title, ebookFile: file, openAtCfi: openAtCfi,findText: findText, findChapterHint: findChapterHint,findPositionSeconds: findPositionSeconds, openAtAudioSeconds: openAtAudioSeconds,startReadAlong: startReadAlong),@@ -122,7 +123,7 @@ class _EpubGate extends StatefulWidget {final String itemId;final String title;final Map<String, dynamic> ebookFile;- final Widget Function() epubReader;+ final Widget Function(Map<String, dynamic> ebookFile) epubReader;const _EpubGate({required this.itemId,@@ -138,6 +139,7 @@ class _EpubGate extends StatefulWidget {class _EpubGateState extends State<_EpubGate> {bool _decided = false;File? _imageEpub;+ late Map<String, dynamic> _ebookFile = widget.ebookFile;@overridevoid initState() {@@ -151,9 +153,17 @@ class _EpubGateState extends State<_EpubGate> {File? imageEpub;try {final api = context.read<AuthProvider>().apiService;+ if (api is BookOrbitApiService) {+ final readAlong = await api.readAlongReaderFile(widget.itemId);+ if (readAlong != null && readAlong['ino'] != widget.ebookFile['ino']) {+ debugPrint('[EbookRouter] ${widget.itemId}: opening the read along EPUB ${readAlong['ino']} '+ 'instead of ${widget.ebookFile['ino']}');+ _ebookFile = readAlong;+ }+ }if (api != null) {final file = await NarrationService.instance- .readerFile(api, widget.itemId, widget.ebookFile, widget.title);+ .readerFile(api, widget.itemId, _ebookFile, widget.title);final pages = await imageEpubPageCount(file);if (pages > 0) {debugPrint('[EbookRouter] ${widget.itemId} is $pages page pictures - opening as a comic');@@ -179,10 +189,10 @@ class _EpubGateState extends State<_EpubGate> {return ComicReaderView(itemId: widget.itemId,title: widget.title,- ebookFile: widget.ebookFile,+ ebookFile: _ebookFile,imageEpub: imageEpub,);}- return widget.epubReader();+ return widget.epubReader(_ebookFile);}}diff --git a/lib/widgets/nav_hold_options.dart b/lib/widgets/nav_hold_options.dartindex e321613c..199018a9 100644--- a/lib/widgets/nav_hold_options.dart+++ b/lib/widgets/nav_hold_options.dart@@ -1,5 +1,6 @@import 'package:flutter/material.dart';import '../l10n/app_localizations.dart';+import '../services/bookorbit_admin.dart';import '../services/wording.dart';/// One choice for what holding a nav tab does. The shell maps ids to the@@ -57,6 +58,32 @@ const navHoldAdminPages = ['stats',];+/// The admin pages and server scans a hold can reach on this account. An+/// Audiobookshelf admin gets every Admin page. BookOrbit has its own Server+/// admin, with Users, Libraries (and scans) and mail servers for those its+/// permissions let manage them.+class NavHoldAdmin {+ final List<String> pages;+ final bool scans;+ const NavHoldAdmin({this.pages = const [], this.scans = false});++ static const none = NavHoldAdmin();++ factory NavHoldAdmin.forAccount({required bool isAdmin, BookOrbitAdminAccess? bookOrbit}) {+ if (isAdmin) return const NavHoldAdmin(pages: navHoldAdminPages, scans: true);+ if (bookOrbit == null || !bookOrbit.any) return none;+ return NavHoldAdmin(+ pages: [+ 'home',+ if (bookOrbit.manageUsers) 'users',+ if (bookOrbit.manageLibraries) 'libraries',+ if (bookOrbit.manageEmail) 'email',+ ],+ scans: bookOrbit.manageLibraries,+ );+ }+}+IconData navHoldAdminIcon(String page) => switch (page) {'home' => Icons.admin_panel_settings_rounded,'users' => Icons.people_rounded,@@ -131,10 +158,10 @@ String navHoldLabel(}/// Every id a saved choice may hold, in the order the settings dropdown shows-/// them. Admin entries and server scans are only offered to admins, and the-/// ReadMeABook ones only once it is set up.+/// them. Admin entries and server scans only show for what [admin] allows,+/// and the ReadMeABook ones only once it is set up.List<String> navHoldAllIds({- required bool isAdmin,+ required NavHoldAdmin admin,required List<String> libraryIds,bool rmabConfigured = true,bool rmabWeb = true,@@ -143,10 +170,10 @@ List<String> navHoldAllIds({[for (final o in navHoldOptions)if (!o.isFolder && navHoldIdAvailable(o.id,- isAdmin: isAdmin, rmabConfigured: rmabConfigured, rmabWeb: rmabWeb, bookRequests: bookRequests))+ admin: admin, rmabConfigured: rmabConfigured, rmabWeb: rmabWeb, bookRequests: bookRequests))o.id,- if (isAdmin) ...[- for (final p in navHoldAdminPages) 'admin:$p',+ for (final p in admin.pages) 'admin:$p',+ if (admin.scans) ...['scan:all',for (final id in libraryIds) 'scan:$id',],@@ -157,12 +184,14 @@ List<String> navHoldAllIds({/// is hidden rather than offered as a dead end.bool navHoldIdAvailable(String id, {- required bool isAdmin,+ required NavHoldAdmin admin,required bool rmabConfigured,required bool rmabWeb,bool bookRequests = false,}) {- if (id.startsWith('admin') || id.startsWith('scan:')) return isAdmin;+ if (id == 'admin') return admin.pages.isNotEmpty;+ if (id.startsWith('admin:')) return admin.pages.contains(id.substring(6));+ if (id == 'scan' || id.startsWith('scan:')) return admin.scans;if (id == 'bookRequests') return bookRequests;if (id == 'rmabWeb') return rmabWeb;if (id.startsWith('rmab')) return rmabConfigured;@@ -173,7 +202,7 @@ bool navHoldIdAvailable(/// simple action available to them, folders included so admin pages and/// scans are still reachable.List<String> navHoldDefaultMenu({- required bool isAdmin,+ required NavHoldAdmin admin,required bool rmabConfigured,required bool rmabWeb,bool bookRequests = false,@@ -183,7 +212,7 @@ List<String> navHoldDefaultMenu({if (o.id != 'menu' &&o.id != 'none' &&navHoldIdAvailable(o.id,- isAdmin: isAdmin,+ admin: admin,rmabConfigured: rmabConfigured,rmabWeb: rmabWeb,bookRequests: bookRequests))diff --git a/lib/widgets/read_along_panel.dart b/lib/widgets/read_along_panel.dartnew file mode 100644index 00000000..850b6e08--- /dev/null+++ b/lib/widgets/read_along_panel.dart@@ -0,0 +1,1004 @@+import 'dart:async';++import 'package:flutter/material.dart';+import 'package:intl/intl.dart';+import 'package:provider/provider.dart';++import '../l10n/app_localizations.dart';+import '../providers/auth_provider.dart';+import '../services/api_service.dart';+import '../services/read_along_jobs.dart';+import '../utils/duration_format.dart';+import '../utils/file_size.dart';+import 'adaptive_modal.dart';++/// BookOrbit's read along maker for one book, where BookOrbit's web has it+/// on the Files tab: the Create button, then the latest job and how far it+/// got. Shows nothing for an account or server that can't make read alongs.+class ReadAlongPanel extends StatefulWidget {+ final String bookId;+ final String? bookLanguage;++ /// A read along was added to the book.+ final VoidCallback onAdded;++ const ReadAlongPanel({super.key, required this.bookId, this.bookLanguage, required this.onAdded});++ @override+ State<ReadAlongPanel> createState() => _ReadAlongPanelState();+}++class _ReadAlongPanelState extends State<ReadAlongPanel> {+ // Jobs run for minutes to hours; this is often enough for the bar to move+ // while the sheet is open, and nothing is asked once it closes.+ static const _runningPoll = Duration(seconds: 5);+ static const _reviewPoll = Duration(seconds: 30);++ BookOrbitApiService? _api;+ String? _myId;+ ReadAlongCapability? _cap;+ ReadAlongJob? _job;+ bool _loadFailed = false;+ bool _checking = false;+ String? _busy;+ String? _jobError;+ Timer? _poll;++ /// A job whose status the server refused or forgot; asking again can't work.+ String? _pollStoppedFor;++ @override+ void initState() {+ super.initState();+ final auth = context.read<AuthProvider?>();+ final api = auth?.apiService;+ _api = api is BookOrbitApiService ? api : null;+ _myId = auth?.userId;+ _load();+ }++ @override+ void dispose() {+ _poll?.cancel();+ super.dispose();+ }++ Future<void> _load() async {+ final api = _api;+ if (api == null) return;+ setState(() => _checking = true);+ try {+ final cap = await api.readAlongCapability(widget.bookId);+ if (!mounted) return;+ setState(() {+ _cap = cap;+ _loadFailed = false;+ _checking = false;+ });+ _apply(cap?.latestJob, watched: false);+ } catch (e) {+ debugPrint('[ReadAlong] ${widget.bookId}: availability not checked: $e');+ if (!mounted) return;+ setState(() {+ _loadFailed = _cap == null;+ _checking = false;+ });+ }+ }++ /// [watched] is false for the job the book loaded with: a job that was+ /// already done then wasn't just added.+ void _apply(ReadAlongJob? next, {bool watched = true}) {+ final previous = _job;+ if (next != null && previous != null && next.id == previous.id) {+ final a = next.updatedAt;+ final b = previous.updatedAt;+ if (a != null && b != null && a.isBefore(b)) return;+ }+ setState(() {+ if (next?.id != previous?.id) _jobError = null;+ _job = next;+ });+ if (watched && previous != null && previous.id == next?.id && previous.active && !next!.active) {+ if (next.completed) {+ debugPrint('[ReadAlong] ${widget.bookId}: job ${next.id} added file ${next.outputFileId}');+ widget.onAdded();+ }+ // The book's read alongs and what's free to start changed with it.+ unawaited(_load());+ }+ _schedulePoll();+ }++ void _schedulePoll() {+ _poll?.cancel();+ _poll = null;+ final job = _job;+ if (!mounted || job == null || !job.active || _pollStoppedFor == job.id) return;+ _poll = Timer(job.awaitingReview ? _reviewPoll : _runningPoll, _pollTick);+ }++ Future<void> _pollTick() async {+ final api = _api;+ final job = _job;+ if (!mounted || api == null || job == null) return;+ // In the background nobody's watching; look again once the app's back.+ final state = WidgetsBinding.instance.lifecycleState;+ if (state == AppLifecycleState.hidden || state == AppLifecycleState.paused || state == AppLifecycleState.detached) {+ _schedulePoll();+ return;+ }+ final res = await api.readAlongJob(job.id);+ if (!mounted) return;+ if (res.job != null) {+ _apply(res.job);+ return;+ }+ if (res.failure == ReadAlongFailure.forbidden || res.failure == ReadAlongFailure.gone) {+ _pollStoppedFor = job.id;+ if (res.failure == ReadAlongFailure.gone) unawaited(_load());+ return;+ }+ _schedulePoll();+ }++ Future<void> _create({ReadAlongJob? startOver}) async {+ final api = _api;+ final cap = _cap;+ if (api == null || cap == null) return;+ final started = await showAdaptiveSheetDialog<ReadAlongJob>(+ context: context,+ initialChildSize: 0.85,+ minChildSize: 0.5,+ builder: (ctx, scroll) => _CreateReadAlongSheet(+ api: api,+ bookId: widget.bookId,+ cap: cap,+ bookLanguage: widget.bookLanguage,+ startOver: startOver,+ scroll: scroll,+ ),+ );+ if (!mounted) return;+ if (started != null) {+ _apply(started);+ } else {+ // A start that failed may have been because things moved on.+ unawaited(_load());+ }+ }++ Future<bool> _confirm(String prompt, String yes, String no) async {+ final ok = await showDialog<bool>(+ context: context,+ builder: (ctx) => AlertDialog(+ title: Text(prompt),+ actions: [+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(no)),+ TextButton(+ onPressed: () => Navigator.pop(ctx, true),+ child: Text(yes, style: TextStyle(color: Theme.of(ctx).colorScheme.error)),+ ),+ ],+ ),+ );+ return ok == true;+ }++ Future<void> _act(String name, Future<({ReadAlongJob? job, ReadAlongFailure? failure})> Function(String id) call) async {+ final api = _api;+ final job = _job;+ if (!mounted || api == null || job == null || _busy != null) return;+ setState(() {+ _busy = name;+ _jobError = null;+ });+ final res = await call(job.id);+ if (!mounted) return;+ setState(() => _busy = null);+ if (res.job != null) {+ _apply(res.job);+ return;+ }+ final l = AppLocalizations.of(context)!;+ setState(() => _jobError = switch (res.failure) {+ ReadAlongFailure.forbidden => l.readAlongNotAllowed,+ ReadAlongFailure.gone => l.readAlongGone,+ ReadAlongFailure.conflict => l.readAlongMovedOn,+ _ => l.readAlongActionFailed,+ });+ final fresh = await api.readAlongJob(job.id);+ if (mounted && fresh.job != null) _apply(fresh.job);+ if (res.failure == ReadAlongFailure.gone && mounted) unawaited(_load());+ }++ String? _blockedNote(AppLocalizations l, ReadAlongCapability cap, bool cardShown) {+ final job = _job;+ if (job != null && job.active) return cardShown ? null : l.readAlongWhyRunning;+ return switch (cap.reason) {+ 'worker_unavailable' => l.readAlongWhyWorkerOffline,+ 'worker_incompatible' => l.readAlongWhyWorkerOutdated,+ 'book_missing' => l.readAlongWhyFilesMissing,+ 'no_epub' => cap.existing.isNotEmpty ? l.readAlongWhyNoEpubHasOne : l.readAlongWhyNoEpub,+ 'too_many_audio_files' => l.readAlongWhyTooManyTracks,+ 'epub_not_allowed' => l.readAlongWhyEpubNotAllowed,+ 'library_not_mounted' => l.readAlongWhyNotMounted,+ 'job_active' => cardShown ? null : l.readAlongWhyRunning,+ _ => l.readAlongWhyUnknown,+ };+ }++ @override+ Widget build(BuildContext context) {+ if (_api == null) return const SizedBox.shrink();+ final l = AppLocalizations.of(context)!;+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final cap = _cap;++ if (cap == null) {+ if (!_loadFailed) return const SizedBox.shrink();+ return Padding(+ padding: const EdgeInsets.only(top: 16),+ child: Row(children: [+ Expanded(child: Text(l.readAlongLoadFailed, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant))),+ TextButton(onPressed: _checking ? null : _load, child: Text(l.readAlongCheckAgain)),+ ]),+ );+ }++ final job = _job;+ final card = job != null && job.dismissedAt == null && !(job.completed && job.outputFileId == null) ? job : null;+ final entry = cap.entry(job);+ if (entry == ReadAlongEntry.hidden && card == null) return const SizedBox.shrink();+ final note = entry == ReadAlongEntry.blocked ? _blockedNote(l, cap, card != null) : null;+ final myId = _myId;++ return Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [+ if (entry != ReadAlongEntry.hidden) ...[+ const SizedBox(height: 16),+ Align(+ alignment: AlignmentDirectional.centerStart,+ child: FilledButton.tonalIcon(+ onPressed: entry == ReadAlongEntry.available ? () => _create() : null,+ icon: const Icon(Icons.record_voice_over_rounded, size: 18),+ label: Text(l.readAlongCreate),+ ),+ ),+ if (note != null) ...[+ const SizedBox(height: 6),+ Text(note, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ ],+ ],+ if (card != null) ...[+ const SizedBox(height: 12),+ _JobCard(+ job: card,+ busy: _busy,+ error: _jobError,+ othersJob: !card.canManage || (myId != null && card.requestedById != null && '${card.requestedById}' != myId),+ canStartOver: entry == ReadAlongEntry.available,+ onCancel: () async {+ if (await _confirm(l.readAlongCancelPrompt, l.readAlongCancel, l.readAlongKeepRunning)) {+ await _act('cancel', _api!.cancelReadAlong);+ }+ },+ onDiscard: () async {+ if (await _confirm(l.readAlongDiscardPrompt, l.readAlongDiscard, l.readAlongKeepIt)) {+ await _act('discard', _api!.cancelReadAlong);+ }+ },+ onPublish: () => _act('publish', _api!.publishReadAlong),+ onRetry: () => _act('retry', _api!.retryReadAlong),+ onDismiss: () => _act('dismiss', _api!.dismissReadAlong),+ onStartOver: () => _create(startOver: card),+ ),+ ],+ ]);+ }+}++class _JobCard extends StatelessWidget {+ final ReadAlongJob job;+ final String? busy;+ final String? error;+ final bool othersJob;+ final bool canStartOver;+ final VoidCallback onCancel;+ final VoidCallback onDiscard;+ final VoidCallback onPublish;+ final VoidCallback onRetry;+ final VoidCallback onDismiss;+ final VoidCallback onStartOver;++ const _JobCard({+ required this.job,+ required this.busy,+ required this.error,+ required this.othersJob,+ required this.canStartOver,+ required this.onCancel,+ required this.onDiscard,+ required this.onPublish,+ required this.onRetry,+ required this.onDismiss,+ required this.onStartOver,+ });++ String _title(AppLocalizations l) {+ if (job.stopping) return l.readAlongStopping;+ if (job.queued) return l.readAlongWaiting;+ if (job.processing) return _stageLabel(l, job.stage);+ if (job.awaitingReview) return l.readAlongReviewTitle;+ if (job.completed) return job.status == 'completed_with_warnings' ? l.readAlongReadyWarnings : l.readAlongReady;+ if (job.discarded) return l.readAlongDiscarded;+ if (job.failed) return l.readAlongFailed;+ return l.readAlongCancelled;+ }++ static String _stageLabel(AppLocalizations l, String stage) => switch (stage) {+ 'queued' => l.readAlongWaiting,+ 'preparing_audio' => l.readAlongStagePreparingAudio,+ 'downloading_model' => l.readAlongStageDownloadingModel,+ 'generating_emissions' => l.readAlongStageListening,+ 'marking_up_ebook' => l.readAlongStageMarkingUp,+ 'aligning' => l.readAlongStageAligning,+ 'validating' => l.readAlongStageChecking,+ 'awaiting_review' => l.readAlongReviewTitle,+ 'publishing' => l.readAlongStagePublishing,+ _ => l.readAlongStageWorking,+ };++ static String errorText(AppLocalizations l, String? code) => switch (code) {+ 'worker_unavailable' => l.readAlongErrorWorkerOffline,+ 'worker_incompatible' => l.readAlongWhyWorkerOutdated,+ 'worker_crashed' => l.readAlongErrorWorkerCrashed,+ 'library_not_mounted' => l.readAlongWhyNotMounted,+ 'source_missing' => l.readAlongErrorSourceMissing,+ 'source_changed' => l.readAlongErrorSourceChanged,+ 'invalid_source' => l.readAlongErrorInvalidSource,+ 'unsupported_language' => l.readAlongErrorLanguage,+ 'insufficient_storage' => l.readAlongErrorStorage,+ 'audio_processing_failed' => l.readAlongErrorAudio,+ 'model_download_failed' => l.readAlongErrorModel,+ 'inference_failed' => l.readAlongErrorListening,+ 'markup_failed' => l.readAlongErrorMarkup,+ 'alignment_failed' => l.readAlongErrorAlignment,+ 'invalid_output' => l.readAlongErrorOutput,+ 'publication_failed' => l.readAlongErrorPublish,+ 'review_expired' => l.readAlongExpired,+ 'discarded' => l.readAlongErrorDiscarded,+ 'cancelled' => l.readAlongErrorCancelled,+ _ => l.readAlongErrorUnknown,+ };++ List<String> _description(AppLocalizations l, String locale) {+ if (job.stopping) return [l.readAlongStoppingHint];+ if (job.queued) {+ final ahead = job.queuePosition;+ if (ahead == null) return const [];+ return [ahead == 0 ? l.readAlongNextInLine : l.readAlongJobsAhead(ahead)];+ }+ if (job.processing) {+ final total = job.stageTotal ?? 0;+ // The worker counts finished items, so the one under way is the next.+ final current = ((job.stageCurrent ?? 0) + 1).clamp(1, total < 1 ? 1 : total);+ final started = job.startedAt;+ final seconds = started == null ? null : DateTime.now().difference(started).inSeconds;+ return [+ if (total > 0)+ switch (job.stageUnit) {+ 'file' => l.readAlongFileOf(current, total),+ 'track' => l.readAlongTrackOf(current, total),+ 'chapter' => l.readAlongChapterOf(current, total),+ _ => l.readAlongStepOf(current, total),+ },+ if (job.stage == 'downloading_model') l.readAlongFirstRun,+ if (seconds != null) seconds < 60 ? l.readAlongJustStarted : l.readAlongRunningFor(formatHm(seconds.toDouble())),+ ];+ }+ if (job.awaitingReview) {+ final matched = job.matchedSentences;+ final total = job.totalSentences;+ if (matched == null || total == null || total <= 0) return [l.readAlongReviewPlain];+ return [l.readAlongReviewMatched(NumberFormat.percentPattern(locale).format(matched / total))];+ }+ if (job.completed) return [job.replaceFileId != null ? l.readAlongReplaced : l.readAlongAdded];+ if (job.expired) return [l.readAlongExpired];+ if (job.failed) return [errorText(l, job.errorCode)];+ return [l.readAlongNothingAdded];+ }++ List<String> _coverage(AppLocalizations l, String locale) {+ final matched = job.matchedSentences;+ final total = job.totalSentences;+ if (!job.completed || matched == null || total == null) return const [];+ final numbers = NumberFormat.decimalPattern(locale);+ return [+ l.readAlongMatchedSentences(numbers.format(matched), numbers.format(total)),+ if (job.audioUsed != null) l.readAlongAudioUsed(NumberFormat.percentPattern(locale).format(job.audioUsed)),+ ];+ }++ String? _outside(AppLocalizations l) {+ if (!(job.completed || job.awaitingReview) || job.outsideTitles.isEmpty) return null;+ final names = [...job.outsideTitles, if (job.outsideMore > 0) l.readAlongOutsideMore(job.outsideMore)];+ return l.readAlongOutside(names.join(', '));+ }++ String _warning(AppLocalizations l, String code) => switch (code) {+ 'unaligned_tracks' => l.readAlongWarnUnaligned,+ 'unmatched_text' => l.readAlongWarnUnmatched,+ 'interpolated_text' => l.readAlongWarnInterpolated,+ 'dropped_text' => l.readAlongWarnDropped,+ _ => '',+ };++ @override+ Widget build(BuildContext context) {+ final l = AppLocalizations.of(context)!;+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final locale = Localizations.localeOf(context).toString();+ final date = DateFormat.MMMd(locale);+ final now = DateTime.now();+ final description = _description(l, locale);+ final coverage = _coverage(l, locale);+ final outside = _outside(l);+ final warnings = job.completed ? [for (final w in job.warnings) _warning(l, w)].where((w) => w.isNotEmpty).toList() : const <String>[];+ final expires = job.expiresAt;+ final reviewExpiry = job.awaitingReview && expires != null && expires.difference(now) < const Duration(days: 7)+ ? l.readAlongReviewExpires(date.format(expires))+ : null;+ final retryable = job.canRetry(now) && job.canManage;+ final retryHint = retryable ? l.readAlongRetryUntil(date.format(job.retryableUntil!)) : null;+ final subtle = tt.bodySmall?.copyWith(color: cs.onSurfaceVariant);++ final (IconData icon, Color iconColor) = job.running+ ? (Icons.sync_rounded, cs.primary)+ : job.awaitingReview+ ? (Icons.fact_check_rounded, cs.tertiary)+ : job.completed+ ? (Icons.check_circle_rounded, cs.primary)+ : job.failed && !job.expired+ ? (Icons.error_rounded, cs.error)+ : (Icons.block_rounded, cs.onSurfaceVariant);++ Widget spinner() => const SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2));++ final step = readAlongStepOf(job.stage);+ final stepLabels = [+ l.readAlongStepAudio,+ l.readAlongStepSpeech,+ l.readAlongStepText,+ l.readAlongStepAlign,+ l.readAlongStepCheck,+ l.readAlongStepAdd,+ ];++ final buttons = <Widget>[+ if (job.canCancel)+ OutlinedButton(+ onPressed: busy != null ? null : onCancel,+ child: busy == 'cancel' ? spinner() : Text(l.readAlongCancel),+ ),+ if (job.awaitingReview && job.canManage) ...[+ FilledButton(+ onPressed: busy != null ? null : onPublish,+ child: busy == 'publish' ? spinner() : Text(l.readAlongAddAnyway),+ ),+ OutlinedButton(+ onPressed: busy != null ? null : onDiscard,+ child: busy == 'discard' ? spinner() : Text(l.readAlongDiscard),+ ),+ ],+ if (retryable)+ FilledButton.tonalIcon(+ onPressed: busy != null ? null : onRetry,+ icon: busy == 'retry' ? spinner() : const Icon(Icons.replay_rounded, size: 18),+ label: Text(l.retry),+ ),+ if ((job.failed || job.cancelled) && job.canManage && canStartOver)+ OutlinedButton(onPressed: busy != null ? null : onStartOver, child: Text(l.readAlongStartOver)),+ ];++ return Container(+ decoration: BoxDecoration(+ color: cs.surfaceContainerHighest.withValues(alpha: 0.45),+ borderRadius: BorderRadius.circular(14),+ ),+ padding: const EdgeInsets.fromLTRB(14, 10, 6, 14),+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Row(children: [+ Expanded(+ child: Text(l.readAlong.toUpperCase(),+ style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w700, letterSpacing: 0.8)),+ ),+ if (othersJob)+ Flexible(+ child: Text(+ job.requestedByName != null ? l.readAlongStartedBy(job.requestedByName!) : l.readAlongStartedByOther,+ style: subtle,+ overflow: TextOverflow.ellipsis,+ ),+ ),+ if (job.finished && job.canManage)+ IconButton(+ tooltip: l.dismiss,+ visualDensity: VisualDensity.compact,+ onPressed: busy != null ? null : onDismiss,+ icon: busy == 'dismiss' ? spinner() : const Icon(Icons.close_rounded, size: 18),+ )+ else+ const SizedBox(height: 40),+ ]),+ Padding(+ padding: const EdgeInsets.only(right: 8),+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Padding(+ padding: const EdgeInsets.only(top: 1),+ child: job.running+ ? SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 2, color: iconColor))+ : Icon(icon, size: 18, color: iconColor),+ ),+ const SizedBox(width: 10),+ Expanded(+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text(_title(l), style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),+ if (description.isNotEmpty) ...[+ const SizedBox(height: 2),+ Text(description.join(' · '), style: subtle),+ ],+ if (coverage.isNotEmpty) ...[+ const SizedBox(height: 2),+ Text(coverage.join(' · '), style: subtle),+ ],+ if (outside != null) ...[+ const SizedBox(height: 2),+ Text(outside, style: subtle),+ ],+ if (reviewExpiry != null) ...[+ const SizedBox(height: 2),+ Text(reviewExpiry, style: subtle),+ ],+ if (retryHint != null) ...[+ const SizedBox(height: 2),+ Text(retryHint, style: subtle),+ ],+ ]),+ ),+ if (job.processing && !job.stopping) ...[+ const SizedBox(width: 8),+ Text(NumberFormat.percentPattern(locale).format(job.progress / 100),+ style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),+ ],+ ]),+ if (job.processing) ...[+ const SizedBox(height: 10),+ ClipRRect(+ borderRadius: BorderRadius.circular(3),+ child: LinearProgressIndicator(value: job.progress / 100, minHeight: 6),+ ),+ if (!job.stopping) ...[+ const SizedBox(height: 10),+ Wrap(spacing: 12, runSpacing: 6, children: [+ for (var i = 0; i < stepLabels.length; i++)+ Row(mainAxisSize: MainAxisSize.min, children: [+ if (step >= 0 && i < step)+ Icon(Icons.check_circle_rounded, size: 14, color: cs.primary)+ else if (i == step)+ SizedBox(width: 12, height: 12, child: CircularProgressIndicator(strokeWidth: 1.6, color: cs.primary))+ else+ Icon(Icons.circle_outlined, size: 14, color: cs.onSurfaceVariant.withValues(alpha: 0.5)),+ const SizedBox(width: 4),+ Text(stepLabels[i],+ style: tt.labelSmall?.copyWith(+ color: i <= step ? cs.onSurface : cs.onSurfaceVariant.withValues(alpha: 0.7))),+ ]),+ ]),+ ],+ ],+ if (job.awaitingReview) ...[+ const SizedBox(height: 8),+ Text(l.readAlongReviewWeb, style: subtle),+ ],+ for (final w in warnings) ...[+ const SizedBox(height: 6),+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Icon(Icons.warning_amber_rounded, size: 16, color: cs.tertiary),+ const SizedBox(width: 6),+ Expanded(child: Text(w, style: tt.bodySmall)),+ ]),+ ],+ if (error != null) ...[+ const SizedBox(height: 8),+ Text(error!, style: tt.bodySmall?.copyWith(color: cs.error)),+ ],+ if (buttons.isNotEmpty) ...[+ const SizedBox(height: 12),+ Wrap(spacing: 8, runSpacing: 8, children: buttons),+ ],+ ]),+ ),+ ]),+ );+ }+}++class _CreateReadAlongSheet extends StatefulWidget {+ final BookOrbitApiService api;+ final String bookId;+ final ReadAlongCapability cap;+ final String? bookLanguage;++ /// The job Start over came from, whose picks fill the form.+ final ReadAlongJob? startOver;+ final ScrollController scroll;++ const _CreateReadAlongSheet({+ required this.api,+ required this.bookId,+ required this.cap,+ required this.bookLanguage,+ required this.startOver,+ required this.scroll,+ });++ @override+ State<_CreateReadAlongSheet> createState() => _CreateReadAlongSheetState();+}++class _CreateReadAlongSheetState extends State<_CreateReadAlongSheet> {+ int? _epub;+ String _language = '';+ String _granularity = 'sentence';++ // Radio value for keeping the old read alongs beside the new one.+ static const _keep = -1;++ /// The read along to overwrite, or [_keep].+ int _replace = _keep;+ String? _savedDefault;+ bool _defaultLoaded = false;+ bool _defaultSaved = false;+ bool _defaultFailed = false;+ bool _savingDefault = false;+ bool _starting = false;+ String? _error;++ ReadAlongCapability get _cap => widget.cap;+ bool get _canReplace => widget.api.canReplaceReadAlongs;+ String? get _bookCode => readAlongLanguageOf(widget.bookLanguage, _cap.languages);++ @override+ void initState() {+ super.initState();+ final from = widget.startOver;+ final epubIds = _cap.epubs.map((f) => f.id).toList();+ _epub = from?.epubFileId != null && epubIds.contains(from!.epubFileId) ? from.epubFileId : epubIds.firstOrNull;+ _granularity = from?.granularity ?? 'sentence';+ _language = _preferredLanguage() ?? '';+ final existingIds = _cap.existing.map((f) => f.fileId).toSet();+ if (_canReplace) {+ final previous = from?.replaceFileId;+ if (previous != null && existingIds.contains(previous)) {+ _replace = previous;+ } else {+ // BookOrbit's own output is safe to overwrite; an imported one may+ // be the only copy of someone's work.+ _replace = _cap.existing.where((f) => f.madeByBookOrbit).firstOrNull?.fileId ?? _keep;+ }+ }+ _loadDefault();+ }++ /// The last job's language, then the book's, then the saved default.+ String? _preferredLanguage() {+ final from = widget.startOver?.language;+ final candidates = [+ if (from != null) readAlongLanguageOf(from, _cap.languages) else _bookCode,+ _savedDefault,+ ];+ return candidates.whereType<String>().where(_cap.languages.contains).firstOrNull;+ }++ Future<void> _loadDefault() async {+ final saved = await widget.api.readAlongDefaultLanguage();+ if (!mounted) return;+ setState(() {+ _savedDefault = saved;+ _defaultLoaded = true;+ if (_language.isEmpty) _language = _preferredLanguage() ?? '';+ });+ }++ Future<void> _saveDefault() async {+ final code = _language;+ if (code.isEmpty || _savingDefault) return;+ setState(() {+ _savingDefault = true;+ _defaultFailed = false;+ });+ final ok = await widget.api.setReadAlongDefaultLanguage(code);+ if (!mounted) return;+ setState(() {+ _savingDefault = false;+ if (ok) _savedDefault = code;+ if (_language == code) {+ _defaultSaved = ok;+ _defaultFailed = !ok;+ }+ });+ }++ String? _languageHint(AppLocalizations l) {+ final isDefault = _language.isNotEmpty && _language == _savedDefault;+ if (isDefault && _defaultSaved) return l.readAlongLanguageSaved;+ final raw = widget.bookLanguage?.trim();+ // Matching narration in one language against a model for another fails.+ if (raw != null && raw.isNotEmpty && _bookCode == null) return l.readAlongLanguageUnsupported(raw);+ if (isDefault) return l.readAlongLanguageIsDefault;+ if (_language.isNotEmpty && _language == _bookCode) return l.readAlongLanguageFromBook;+ return null;+ }++ String? _lowDisk(AppLocalizations l) {+ final free = _cap.workerFreeBytes;+ if (free == null) return null;+ final audioBytes = _cap.audio.fold<int>(0, (sum, f) => sum + (f.size ?? 0));+ final allTimed = _cap.audio.every((f) => f.duration != null);+ final needed = ReadAlongCapability.workBytes(+ audioBytes: audioBytes,+ epubBytes: _cap.epubs.where((f) => f.id == _epub).firstOrNull?.size ?? 0,+ audioSeconds: allTimed ? _cap.audio.fold<double>(0, (sum, f) => sum + f.duration!) : null,+ );+ if (needed <= free) return null;+ return l.readAlongLowDisk(formatFileSize(needed), formatFileSize(free));+ }++ Future<void> _start() async {+ final epub = _epub;+ if (epub == null || _language.isEmpty || _starting) return;+ final l = AppLocalizations.of(context)!;+ setState(() {+ _starting = true;+ _error = null;+ });+ final res = await widget.api.startReadAlong(+ widget.bookId,+ epubFileId: epub,+ language: _language,+ granularity: _granularity,+ replaceFileId: _canReplace && _replace != _keep ? _replace : null,+ );+ if (!mounted) return;+ if (res.job != null) {+ Navigator.of(context).pop(res.job);+ return;+ }+ setState(() {+ _starting = false;+ _error = switch (res.failure) {+ ReadAlongFailure.invalid => l.readAlongStartInvalid,+ ReadAlongFailure.forbidden => l.readAlongNotAllowed,+ ReadAlongFailure.conflict => l.readAlongWhyRunning,+ ReadAlongFailure.unavailable => l.readAlongStartOffline,+ _ => l.readAlongStartFailed,+ };+ });+ }++ @override+ Widget build(BuildContext context) {+ final l = AppLocalizations.of(context)!;+ final cs = Theme.of(context).colorScheme;+ final tt = Theme.of(context).textTheme;+ final subtle = tt.bodySmall?.copyWith(color: cs.onSurfaceVariant);+ final heading = tt.titleSmall?.copyWith(fontWeight: FontWeight.w700);+ final audioSeconds = _cap.audio.fold<double>(0, (sum, f) => sum + (f.duration ?? 0));+ final hint = _languageHint(l);+ final lowDisk = _lowDisk(l);+ final languages = [..._cap.languages]+ ..sort((a, b) => (readAlongLanguageNames[a] ?? a).compareTo(readAlongLanguageNames[b] ?? b));+ final canStart = _epub != null && _cap.audio.isNotEmpty && _language.isNotEmpty && !_starting;+ final existing = _cap.existing;++ String existingLine(ReadAlongExisting f) => [+ f.madeByBookOrbit ? l.readAlongMadeByBookOrbit : l.readAlongImported,+ if (f.size != null) formatFileSize(f.size!),+ ].join(' · ');++ return Column(children: [+ Expanded(+ child: ListView(+ controller: widget.scroll,+ padding: const EdgeInsets.fromLTRB(20, 12, 20, 16),+ children: [+ Center(+ child: Container(+ width: 40,+ height: 4,+ margin: const EdgeInsets.only(bottom: 16),+ decoration: BoxDecoration(+ color: cs.onSurface.withValues(alpha: 0.24),+ borderRadius: BorderRadius.circular(2),+ ),+ ),+ ),+ Text(l.readAlongSheetTitle, style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w700)),+ const SizedBox(height: 4),+ Text(l.readAlongSheetIntro, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ const SizedBox(height: 20),+ Text(l.readAlongEbook, style: heading),+ const SizedBox(height: 4),+ if (_cap.epubs.length > 1) ...[+ Text(l.readAlongEbookHint, style: subtle),+ RadioGroup<int>(+ groupValue: _epub,+ onChanged: (v) => setState(() => _epub = v ?? _epub),+ child: Column(children: [+ for (final f in _cap.epubs)+ RadioListTile<int>(+ contentPadding: EdgeInsets.zero,+ value: f.id,+ title: Text(f.filename, maxLines: 2, overflow: TextOverflow.ellipsis),+ subtitle: f.size != null ? Text(formatFileSize(f.size!)) : null,+ ),+ ]),+ ),+ ] else if (_cap.epubs.isNotEmpty)+ Text(+ [_cap.epubs.first.filename, if (_cap.epubs.first.size != null) formatFileSize(_cap.epubs.first.size!)]+ .join(' · '),+ style: tt.bodyMedium,+ ),+ const SizedBox(height: 16),+ Text(l.readAlongAudio, style: heading),+ const SizedBox(height: 4),+ Text(+ [l.readAlongTracks(_cap.audio.length), if (audioSeconds > 0) formatHm(audioSeconds)].join(' · '),+ style: tt.bodyMedium,+ ),+ if (existing.isNotEmpty) ...[+ const SizedBox(height: 20),+ Text(l.readAlongExistingTitle(existing.length), style: heading),+ if (_canReplace) ...[+ RadioGroup<int>(+ groupValue: _replace,+ onChanged: (v) => setState(() => _replace = v ?? _keep),+ child: Column(children: [+ for (final f in existing)+ RadioListTile<int>(+ contentPadding: EdgeInsets.zero,+ value: f.fileId,+ title: Text(l.readAlongReplace(f.filename), maxLines: 3, overflow: TextOverflow.ellipsis),+ subtitle: Text(existingLine(f)),+ ),+ RadioListTile<int>(+ contentPadding: EdgeInsets.zero,+ value: _keep,+ title: Text(l.readAlongKeepBoth(existing.length)),+ subtitle: Text(l.readAlongKeepHint),+ ),+ ]),+ ),+ if (_replace != _keep) Text(l.readAlongReplaceHint, style: subtle),+ ] else ...[+ const SizedBox(height: 6),+ for (final f in existing)+ Padding(+ padding: const EdgeInsets.only(bottom: 6),+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Text(f.filename, style: tt.bodyMedium),+ Text(existingLine(f), style: subtle),+ ]),+ ),+ Text(l.readAlongReplaceNotAllowed, style: subtle),+ ],+ ],+ const SizedBox(height: 20),+ Text(l.readAlongLanguage, style: heading),+ const SizedBox(height: 8),+ DropdownButtonFormField<String>(+ key: ValueKey('language-$_language'),+ initialValue: _language.isEmpty ? null : _language,+ isExpanded: true,+ decoration: InputDecoration(+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),+ isDense: true,+ ),+ hint: Text(l.readAlongPickLanguage),+ items: [+ for (final code in languages)+ DropdownMenuItem(value: code, child: Text(readAlongLanguageNames[code] ?? code)),+ ],+ onChanged: (v) => setState(() {+ _language = v ?? '';+ _defaultSaved = false;+ _defaultFailed = false;+ }),+ ),+ if (hint != null) ...[+ const SizedBox(height: 6),+ Text(hint, style: subtle),+ ],+ if (_defaultFailed) ...[+ const SizedBox(height: 6),+ Text(l.readAlongDefaultFailed, style: tt.bodySmall?.copyWith(color: cs.error)),+ ],+ if (_defaultLoaded && _language.isNotEmpty && _language != _savedDefault)+ Align(+ alignment: AlignmentDirectional.centerStart,+ child: TextButton(+ onPressed: _savingDefault ? null : _saveDefault,+ child: Text(l.readAlongSetDefault),+ ),+ ),+ const SizedBox(height: 16),+ Text(l.readAlongHighlighting, style: heading),+ RadioGroup<String>(+ groupValue: _granularity,+ onChanged: (v) => setState(() => _granularity = v ?? _granularity),+ child: Column(children: [+ RadioListTile<String>(+ contentPadding: EdgeInsets.zero,+ value: 'sentence',+ title: Text(l.readAlongSentence),+ subtitle: Text(l.readAlongSentenceHint),+ ),+ RadioListTile<String>(+ contentPadding: EdgeInsets.zero,+ value: 'word',+ title: Text(l.readAlongWord),+ subtitle: Text(l.readAlongWordHint),+ ),+ ]),+ ),+ const SizedBox(height: 12),+ if (_cap.estimatedSize != null) ...[+ Text(l.readAlongEstimatedSize(formatFileSize(_cap.estimatedSize!)), style: subtle),+ const SizedBox(height: 4),+ ],+ Text(l.readAlongBackgroundNote, style: subtle),+ if (lowDisk != null) ...[+ const SizedBox(height: 8),+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [+ Icon(Icons.warning_amber_rounded, size: 16, color: cs.tertiary),+ const SizedBox(width: 6),+ Expanded(child: Text(lowDisk, style: tt.bodySmall)),+ ]),+ ],+ if (_error != null) ...[+ const SizedBox(height: 12),+ Text(_error!, style: tt.bodyMedium?.copyWith(color: cs.error)),+ ],+ ],+ ),+ ),+ SafeArea(+ top: false,+ child: Padding(+ padding: const EdgeInsets.fromLTRB(20, 8, 20, 12),+ child: Row(children: [+ Expanded(+ child: OutlinedButton(+ onPressed: _starting ? null : () => Navigator.of(context).pop(),+ child: Text(l.cancel),+ ),+ ),+ const SizedBox(width: 12),+ Expanded(+ child: FilledButton(+ onPressed: canStart ? _start : null,+ child: _starting+ ? const SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 2))+ : Text(l.readAlongStart),+ ),+ ),+ ]),+ ),+ ),+ ]);+ }+}diff --git a/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js b/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.jsindex d930fff7..2487a378 100644--- a/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js+++ b/packages/flutter_epub_viewer/lib/assets/webpage/html/epubView.js@@ -182,6 +182,7 @@ function loadBook(data, cfi, initialXPath, manager, flow, spread, snap, allowScrlastRenderOpts.offset = Math.round((window.innerHeight || 800) * 2);}rendition = book.renderTo("viewer", lastRenderOpts);+ holdSpotThroughResize(rendition);var turnsFor = rendition;rendition.started.then(function () {setupTurns(turnsFor);@@ -2091,6 +2092,36 @@ function setupRenditionBlocking() {}}+// Absorb patch: epub.js answers a resize by showing the page that holds the+// first word of the page before it, and in the new size that page usually+// starts a little earlier. Turning the phone fires several resizes, so the+// book slid back a page or more each time, down to the start of the chapter.+// Every resize now goes back to where the reader last was, and the pages the+// resizes land on never replace that spot. Set before the rendition starts,+// which is when epub.js binds its resize handler.+function holdSpotThroughResize(r) {+ var spot = null;+ var resizing = 0;+ var quietUntil = 0;+ r.onResized = function (size, epubcfi) {+ this.emit("resized", { width: size.width, height: size.height }, epubcfi);+ if (!this.location || !this.location.start) return;+ var cfi = epubcfi || spot || this.location.start.cfi;+ resizing++;+ // The relocated event for this display comes a couple of frames after it+ // resolves.+ var settle = function () {+ resizing--;+ quietUntil = Date.now() + 500;+ };+ Promise.resolve(this.display(cfi)).then(settle, settle);+ };+ r.on("relocated", function (location) {+ if (resizing > 0 || Date.now() < quietUntil) return;+ if (location && location.start && location.start.cfi) spot = location.start.cfi;+ });+}+//move to next pagefunction next() {// Block navigation if there's an active selection