Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Localize the book editor strings

Barnabasf0184c5cace2
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index b9916b44..4422cde3 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -3236,5 +3236,197 @@
}
},
"authorQuickMatchHint": "Pull name, ASIN, description and image from Audible for the chosen region.",
- "region": "Region"
+ "region": "Region",
+
+ "editTabDetails": "Details",
+ "editTabCover": "Cover",
+ "editTabMatch": "Match",
+ "editTabEmbed": "Embed",
+
+ "chapterEditorTitle": "Edit Chapters",
+ "chapterNotConnected": "Not connected to a server",
+ "chapterErrorFirstNotZero": "First chapter must start at 0:00",
+ "chapterErrorStartAfterPrevious": "Start must come after the previous chapter",
+ "chapterErrorStartBeforeEnd": "Start must be before the book ends",
+ "chapterErrorTitleRequired": "Title required",
+ "chapterEditStartTitle": "Edit start time",
+ "chapterTimeHintSeconds": "Seconds",
+ "chapterTimeHintFull": "HH:MM:SS or seconds",
+ "chapterInvalidTime": "Invalid time",
+ "chapterLocked": "Chapter is locked",
+ "chapterAllLocked": "All chapters are locked",
+ "chapterTrackTitle": "Track {number}",
+ "@chapterTrackTitle": {
+ "placeholders": {
+ "number": {
+ "type": "int"
+ }
+ }
+ },
+ "chapterNoAudioForPosition": "No audio for this position",
+ "chapterCouldNotPlayPreview": "Could not play preview",
+ "chapterStartSetTo": "Start set to {time}",
+ "@chapterStartSetTo": {
+ "placeholders": {
+ "time": {
+ "type": "String"
+ }
+ }
+ },
+ "chapterAddNumberedTitle": "Add numbered chapters",
+ "chapterNextPreview": "Next: \"{first}\", \"{second}\", ...",
+ "@chapterNextPreview": {
+ "placeholders": {
+ "first": {
+ "type": "String"
+ },
+ "second": {
+ "type": "String"
+ }
+ }
+ },
+ "chapterHowMany": "How many chapters",
+ "add": "Add",
+ "chapterCountRange": "Enter a count between 1 and 150",
+ "chapterTitlesUpdated": "Chapter titles updated",
+ "chaptersApplied": "Chapters applied",
+ "chapterDiscardTitle": "Discard changes?",
+ "chapterDiscardMessage": "Revert to the saved chapters.",
+ "chapterRemoveAllTitle": "Remove all chapters?",
+ "chapterRemoveAllMessage": "This removes every chapter from this book.",
+ "chapterAllRemoved": "All chapters removed",
+ "chapterFixHighlighted": "Fix the highlighted chapters first",
+ "chaptersUpdated": "Chapters updated",
+ "ok": "OK",
+ "chapterSaveButton": "Save chapters",
+ "chapterAddHint": "Add chapter (e.g. \"Chapter 01\")",
+ "chapterAddTooltip": "Add chapter(s)",
+ "chapterRemoveAll": "Remove All",
+ "chapterShiftTimes": "Shift Times",
+ "chapterFromTracks": "From Tracks",
+ "chapterLookup": "Lookup",
+ "chapterShowSeconds": "Show seconds",
+ "chapterShiftBySeconds": "Shift by (seconds)",
+ "chapterShiftHint": "Shifts every unlocked chapter. Use a negative value to move them earlier.",
+ "chapterBack1Second": "Back 1 second",
+ "chapterForward1Second": "Forward 1 second",
+ "chapterTitleHint": "Chapter title",
+ "chapterStopPreview": "Stop preview",
+ "chapterPreviewFromHere": "Preview from here",
+ "chapterScrubHint": "Scrub to the exact spot, then set",
+ "chapterStartAt": "Start at {time}",
+ "@chapterStartAt": {
+ "placeholders": {
+ "time": {
+ "type": "String"
+ }
+ }
+ },
+ "chapterSetStartHere": "Set start here",
+ "chapterMore": "More",
+ "chapterUnlock": "Unlock",
+ "chapterLock": "Lock",
+ "chapterInsertBelow": "Insert below",
+ "chapterFindTitle": "Find chapters",
+ "chapterFindSubtitle": "Looks up chapters from Audible/Audnexus by ASIN.",
+ "chapterEnterAsin": "Enter an ASIN",
+ "chapterLookupFailed": "Lookup failed - check the ASIN",
+ "chapterNoChaptersFound": "No chapters found for that ASIN",
+ "chapterRemoveBranding": "Remove Audible branding (intro/outro)",
+ "chapterFoundCount": "{count} chapters found",
+ "@chapterFoundCount": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "chapterAudibleVsBook": "Audible {audible} - Book {book}",
+ "@chapterAudibleVsBook": {
+ "placeholders": {
+ "audible": {
+ "type": "String"
+ },
+ "book": {
+ "type": "String"
+ }
+ }
+ },
+ "chapterAudibleLonger": "The Audible version is longer than your file - later chapters may not line up.",
+ "chapterAudibleShorter": "The Audible version is shorter than your file - chapters may not line up.",
+ "chapterTitlesOnly": "Titles only",
+ "chapterApplyChapters": "Apply chapters",
+
+ "coverSearchTitle": "Search for a cover",
+ "coverSearchRefineHint": "Refine the title/author to clean up results - this does not change the book.",
+ "coverNoneFound": "No covers found",
+ "coverEnterTitleFirst": "Enter a title first",
+ "coverUpdated": "Cover updated",
+ "coverCouldNotUpdate": "Could not update cover",
+ "coverApply": "Apply cover",
+ "coverUnknownResolution": "Unknown resolution",
+
+ "embedIntro": "Embed metadata into audio files including cover image and chapters.",
+ "embedBackupOption": "Back up audio files first",
+ "embedNoteInFolder": "Metadata will be embedded in the audio tracks inside your audiobook folder.",
+ "embedNoteMultiTrack": "Chapters are not embedded in multi-track audiobooks.",
+ "embedNoteNavigateAway": "Once the task is started you can navigate away from this page.",
+ "embedStartButton": "Start Metadata Embed",
+ "embedProgress": "Embedding {percent}%",
+ "@embedProgress": {
+ "placeholders": {
+ "percent": {
+ "type": "String"
+ }
+ }
+ },
+ "embedProgressIndeterminate": "Embedding...",
+ "taskProgressKeepsRunning": "{percent}% - keeps running if you leave this page",
+ "@taskProgressKeepsRunning": {
+ "placeholders": {
+ "percent": {
+ "type": "String"
+ }
+ }
+ },
+ "taskStarting": "Starting...",
+ "embedBackupNoteIntro": "A backup of your original audio files will be stored on the server in ",
+ "embedBackupNotePath": "/metadata/cache/items/{itemId}/",
+ "@embedBackupNotePath": {
+ "placeholders": {
+ "itemId": {
+ "type": "String"
+ }
+ }
+ },
+ "embedBackupNoteOutro": ". Make sure to periodically purge the items cache.",
+ "embedDialogTitle": "Embed metadata",
+ "embedConfirmMessage": "Embed metadata into {count, plural, one{# audio file} other{# audio files}}? Your audio files will be rewritten{backup}.",
+ "@embedConfirmMessage": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ },
+ "backup": {
+ "type": "String"
+ }
+ }
+ },
+ "embedConfirmBackupClause": " (originals backed up first)",
+ "embedConfirmAction": "Embed",
+ "embedCouldNotStart": "Could not start embed",
+ "embedStarted": "Embed started",
+ "embedComplete": "Embed complete",
+ "embedFailed": "Embed failed",
+ "encodeComplete": "Encode complete",
+ "encodeFailedTask": "Encode failed",
+ "encodeProgress": "Encoding {percent}%",
+ "@encodeProgress": {
+ "placeholders": {
+ "percent": {
+ "type": "String"
+ }
+ }
+ },
+ "encodeProgressIndeterminate": "Encoding..."
}
\ No newline at end of file
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index 146a56e4..95291084 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -9179,6 +9179,618 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Region'**
String get region;
+
+ /// No description provided for @editTabDetails.
+ ///
+ /// In en, this message translates to:
+ /// **'Details'**
+ String get editTabDetails;
+
+ /// No description provided for @editTabCover.
+ ///
+ /// In en, this message translates to:
+ /// **'Cover'**
+ String get editTabCover;
+
+ /// No description provided for @editTabMatch.
+ ///
+ /// In en, this message translates to:
+ /// **'Match'**
+ String get editTabMatch;
+
+ /// No description provided for @editTabEmbed.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed'**
+ String get editTabEmbed;
+
+ /// No description provided for @chapterEditorTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Edit Chapters'**
+ String get chapterEditorTitle;
+
+ /// No description provided for @chapterNotConnected.
+ ///
+ /// In en, this message translates to:
+ /// **'Not connected to a server'**
+ String get chapterNotConnected;
+
+ /// No description provided for @chapterErrorFirstNotZero.
+ ///
+ /// In en, this message translates to:
+ /// **'First chapter must start at 0:00'**
+ String get chapterErrorFirstNotZero;
+
+ /// No description provided for @chapterErrorStartAfterPrevious.
+ ///
+ /// In en, this message translates to:
+ /// **'Start must come after the previous chapter'**
+ String get chapterErrorStartAfterPrevious;
+
+ /// No description provided for @chapterErrorStartBeforeEnd.
+ ///
+ /// In en, this message translates to:
+ /// **'Start must be before the book ends'**
+ String get chapterErrorStartBeforeEnd;
+
+ /// No description provided for @chapterErrorTitleRequired.
+ ///
+ /// In en, this message translates to:
+ /// **'Title required'**
+ String get chapterErrorTitleRequired;
+
+ /// No description provided for @chapterEditStartTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Edit start time'**
+ String get chapterEditStartTitle;
+
+ /// No description provided for @chapterTimeHintSeconds.
+ ///
+ /// In en, this message translates to:
+ /// **'Seconds'**
+ String get chapterTimeHintSeconds;
+
+ /// No description provided for @chapterTimeHintFull.
+ ///
+ /// In en, this message translates to:
+ /// **'HH:MM:SS or seconds'**
+ String get chapterTimeHintFull;
+
+ /// No description provided for @chapterInvalidTime.
+ ///
+ /// In en, this message translates to:
+ /// **'Invalid time'**
+ String get chapterInvalidTime;
+
+ /// No description provided for @chapterLocked.
+ ///
+ /// In en, this message translates to:
+ /// **'Chapter is locked'**
+ String get chapterLocked;
+
+ /// No description provided for @chapterAllLocked.
+ ///
+ /// In en, this message translates to:
+ /// **'All chapters are locked'**
+ String get chapterAllLocked;
+
+ /// No description provided for @chapterTrackTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Track {number}'**
+ String chapterTrackTitle(int number);
+
+ /// No description provided for @chapterNoAudioForPosition.
+ ///
+ /// In en, this message translates to:
+ /// **'No audio for this position'**
+ String get chapterNoAudioForPosition;
+
+ /// No description provided for @chapterCouldNotPlayPreview.
+ ///
+ /// In en, this message translates to:
+ /// **'Could not play preview'**
+ String get chapterCouldNotPlayPreview;
+
+ /// No description provided for @chapterStartSetTo.
+ ///
+ /// In en, this message translates to:
+ /// **'Start set to {time}'**
+ String chapterStartSetTo(String time);
+
+ /// No description provided for @chapterAddNumberedTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Add numbered chapters'**
+ String get chapterAddNumberedTitle;
+
+ /// No description provided for @chapterNextPreview.
+ ///
+ /// In en, this message translates to:
+ /// **'Next: \"{first}\", \"{second}\", ...'**
+ String chapterNextPreview(String first, String second);
+
+ /// No description provided for @chapterHowMany.
+ ///
+ /// In en, this message translates to:
+ /// **'How many chapters'**
+ String get chapterHowMany;
+
+ /// No description provided for @add.
+ ///
+ /// In en, this message translates to:
+ /// **'Add'**
+ String get add;
+
+ /// No description provided for @chapterCountRange.
+ ///
+ /// In en, this message translates to:
+ /// **'Enter a count between 1 and 150'**
+ String get chapterCountRange;
+
+ /// No description provided for @chapterTitlesUpdated.
+ ///
+ /// In en, this message translates to:
+ /// **'Chapter titles updated'**
+ String get chapterTitlesUpdated;
+
+ /// No description provided for @chaptersApplied.
+ ///
+ /// In en, this message translates to:
+ /// **'Chapters applied'**
+ String get chaptersApplied;
+
+ /// No description provided for @chapterDiscardTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Discard changes?'**
+ String get chapterDiscardTitle;
+
+ /// No description provided for @chapterDiscardMessage.
+ ///
+ /// In en, this message translates to:
+ /// **'Revert to the saved chapters.'**
+ String get chapterDiscardMessage;
+
+ /// No description provided for @chapterRemoveAllTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Remove all chapters?'**
+ String get chapterRemoveAllTitle;
+
+ /// No description provided for @chapterRemoveAllMessage.
+ ///
+ /// In en, this message translates to:
+ /// **'This removes every chapter from this book.'**
+ String get chapterRemoveAllMessage;
+
+ /// No description provided for @chapterAllRemoved.
+ ///
+ /// In en, this message translates to:
+ /// **'All chapters removed'**
+ String get chapterAllRemoved;
+
+ /// No description provided for @chapterFixHighlighted.
+ ///
+ /// In en, this message translates to:
+ /// **'Fix the highlighted chapters first'**
+ String get chapterFixHighlighted;
+
+ /// No description provided for @chaptersUpdated.
+ ///
+ /// In en, this message translates to:
+ /// **'Chapters updated'**
+ String get chaptersUpdated;
+
+ /// No description provided for @ok.
+ ///
+ /// In en, this message translates to:
+ /// **'OK'**
+ String get ok;
+
+ /// No description provided for @chapterSaveButton.
+ ///
+ /// In en, this message translates to:
+ /// **'Save chapters'**
+ String get chapterSaveButton;
+
+ /// No description provided for @chapterAddHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Add chapter (e.g. \"Chapter 01\")'**
+ String get chapterAddHint;
+
+ /// No description provided for @chapterAddTooltip.
+ ///
+ /// In en, this message translates to:
+ /// **'Add chapter(s)'**
+ String get chapterAddTooltip;
+
+ /// No description provided for @chapterRemoveAll.
+ ///
+ /// In en, this message translates to:
+ /// **'Remove All'**
+ String get chapterRemoveAll;
+
+ /// No description provided for @chapterShiftTimes.
+ ///
+ /// In en, this message translates to:
+ /// **'Shift Times'**
+ String get chapterShiftTimes;
+
+ /// No description provided for @chapterFromTracks.
+ ///
+ /// In en, this message translates to:
+ /// **'From Tracks'**
+ String get chapterFromTracks;
+
+ /// No description provided for @chapterLookup.
+ ///
+ /// In en, this message translates to:
+ /// **'Lookup'**
+ String get chapterLookup;
+
+ /// No description provided for @chapterShowSeconds.
+ ///
+ /// In en, this message translates to:
+ /// **'Show seconds'**
+ String get chapterShowSeconds;
+
+ /// No description provided for @chapterShiftBySeconds.
+ ///
+ /// In en, this message translates to:
+ /// **'Shift by (seconds)'**
+ String get chapterShiftBySeconds;
+
+ /// No description provided for @chapterShiftHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Shifts every unlocked chapter. Use a negative value to move them earlier.'**
+ String get chapterShiftHint;
+
+ /// No description provided for @chapterBack1Second.
+ ///
+ /// In en, this message translates to:
+ /// **'Back 1 second'**
+ String get chapterBack1Second;
+
+ /// No description provided for @chapterForward1Second.
+ ///
+ /// In en, this message translates to:
+ /// **'Forward 1 second'**
+ String get chapterForward1Second;
+
+ /// No description provided for @chapterTitleHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Chapter title'**
+ String get chapterTitleHint;
+
+ /// No description provided for @chapterStopPreview.
+ ///
+ /// In en, this message translates to:
+ /// **'Stop preview'**
+ String get chapterStopPreview;
+
+ /// No description provided for @chapterPreviewFromHere.
+ ///
+ /// In en, this message translates to:
+ /// **'Preview from here'**
+ String get chapterPreviewFromHere;
+
+ /// No description provided for @chapterScrubHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Scrub to the exact spot, then set'**
+ String get chapterScrubHint;
+
+ /// No description provided for @chapterStartAt.
+ ///
+ /// In en, this message translates to:
+ /// **'Start at {time}'**
+ String chapterStartAt(String time);
+
+ /// No description provided for @chapterSetStartHere.
+ ///
+ /// In en, this message translates to:
+ /// **'Set start here'**
+ String get chapterSetStartHere;
+
+ /// No description provided for @chapterMore.
+ ///
+ /// In en, this message translates to:
+ /// **'More'**
+ String get chapterMore;
+
+ /// No description provided for @chapterUnlock.
+ ///
+ /// In en, this message translates to:
+ /// **'Unlock'**
+ String get chapterUnlock;
+
+ /// No description provided for @chapterLock.
+ ///
+ /// In en, this message translates to:
+ /// **'Lock'**
+ String get chapterLock;
+
+ /// No description provided for @chapterInsertBelow.
+ ///
+ /// In en, this message translates to:
+ /// **'Insert below'**
+ String get chapterInsertBelow;
+
+ /// No description provided for @chapterFindTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Find chapters'**
+ String get chapterFindTitle;
+
+ /// No description provided for @chapterFindSubtitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Looks up chapters from Audible/Audnexus by ASIN.'**
+ String get chapterFindSubtitle;
+
+ /// No description provided for @chapterEnterAsin.
+ ///
+ /// In en, this message translates to:
+ /// **'Enter an ASIN'**
+ String get chapterEnterAsin;
+
+ /// No description provided for @chapterLookupFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Lookup failed - check the ASIN'**
+ String get chapterLookupFailed;
+
+ /// No description provided for @chapterNoChaptersFound.
+ ///
+ /// In en, this message translates to:
+ /// **'No chapters found for that ASIN'**
+ String get chapterNoChaptersFound;
+
+ /// No description provided for @chapterRemoveBranding.
+ ///
+ /// In en, this message translates to:
+ /// **'Remove Audible branding (intro/outro)'**
+ String get chapterRemoveBranding;
+
+ /// No description provided for @chapterFoundCount.
+ ///
+ /// In en, this message translates to:
+ /// **'{count} chapters found'**
+ String chapterFoundCount(int count);
+
+ /// No description provided for @chapterAudibleVsBook.
+ ///
+ /// In en, this message translates to:
+ /// **'Audible {audible} - Book {book}'**
+ String chapterAudibleVsBook(String audible, String book);
+
+ /// No description provided for @chapterAudibleLonger.
+ ///
+ /// In en, this message translates to:
+ /// **'The Audible version is longer than your file - later chapters may not line up.'**
+ String get chapterAudibleLonger;
+
+ /// No description provided for @chapterAudibleShorter.
+ ///
+ /// In en, this message translates to:
+ /// **'The Audible version is shorter than your file - chapters may not line up.'**
+ String get chapterAudibleShorter;
+
+ /// No description provided for @chapterTitlesOnly.
+ ///
+ /// In en, this message translates to:
+ /// **'Titles only'**
+ String get chapterTitlesOnly;
+
+ /// No description provided for @chapterApplyChapters.
+ ///
+ /// In en, this message translates to:
+ /// **'Apply chapters'**
+ String get chapterApplyChapters;
+
+ /// No description provided for @coverSearchTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Search for a cover'**
+ String get coverSearchTitle;
+
+ /// No description provided for @coverSearchRefineHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Refine the title/author to clean up results - this does not change the book.'**
+ String get coverSearchRefineHint;
+
+ /// No description provided for @coverNoneFound.
+ ///
+ /// In en, this message translates to:
+ /// **'No covers found'**
+ String get coverNoneFound;
+
+ /// No description provided for @coverEnterTitleFirst.
+ ///
+ /// In en, this message translates to:
+ /// **'Enter a title first'**
+ String get coverEnterTitleFirst;
+
+ /// No description provided for @coverUpdated.
+ ///
+ /// In en, this message translates to:
+ /// **'Cover updated'**
+ String get coverUpdated;
+
+ /// No description provided for @coverCouldNotUpdate.
+ ///
+ /// In en, this message translates to:
+ /// **'Could not update cover'**
+ String get coverCouldNotUpdate;
+
+ /// No description provided for @coverApply.
+ ///
+ /// In en, this message translates to:
+ /// **'Apply cover'**
+ String get coverApply;
+
+ /// No description provided for @coverUnknownResolution.
+ ///
+ /// In en, this message translates to:
+ /// **'Unknown resolution'**
+ String get coverUnknownResolution;
+
+ /// No description provided for @embedIntro.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed metadata into audio files including cover image and chapters.'**
+ String get embedIntro;
+
+ /// No description provided for @embedBackupOption.
+ ///
+ /// In en, this message translates to:
+ /// **'Back up audio files first'**
+ String get embedBackupOption;
+
+ /// No description provided for @embedNoteInFolder.
+ ///
+ /// In en, this message translates to:
+ /// **'Metadata will be embedded in the audio tracks inside your audiobook folder.'**
+ String get embedNoteInFolder;
+
+ /// No description provided for @embedNoteMultiTrack.
+ ///
+ /// In en, this message translates to:
+ /// **'Chapters are not embedded in multi-track audiobooks.'**
+ String get embedNoteMultiTrack;
+
+ /// No description provided for @embedNoteNavigateAway.
+ ///
+ /// In en, this message translates to:
+ /// **'Once the task is started you can navigate away from this page.'**
+ String get embedNoteNavigateAway;
+
+ /// No description provided for @embedStartButton.
+ ///
+ /// In en, this message translates to:
+ /// **'Start Metadata Embed'**
+ String get embedStartButton;
+
+ /// No description provided for @embedProgress.
+ ///
+ /// In en, this message translates to:
+ /// **'Embedding {percent}%'**
+ String embedProgress(String percent);
+
+ /// No description provided for @embedProgressIndeterminate.
+ ///
+ /// In en, this message translates to:
+ /// **'Embedding...'**
+ String get embedProgressIndeterminate;
+
+ /// No description provided for @taskProgressKeepsRunning.
+ ///
+ /// In en, this message translates to:
+ /// **'{percent}% - keeps running if you leave this page'**
+ String taskProgressKeepsRunning(String percent);
+
+ /// No description provided for @taskStarting.
+ ///
+ /// In en, this message translates to:
+ /// **'Starting...'**
+ String get taskStarting;
+
+ /// No description provided for @embedBackupNoteIntro.
+ ///
+ /// In en, this message translates to:
+ /// **'A backup of your original audio files will be stored on the server in '**
+ String get embedBackupNoteIntro;
+
+ /// No description provided for @embedBackupNotePath.
+ ///
+ /// In en, this message translates to:
+ /// **'/metadata/cache/items/{itemId}/'**
+ String embedBackupNotePath(String itemId);
+
+ /// No description provided for @embedBackupNoteOutro.
+ ///
+ /// In en, this message translates to:
+ /// **'. Make sure to periodically purge the items cache.'**
+ String get embedBackupNoteOutro;
+
+ /// No description provided for @embedDialogTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed metadata'**
+ String get embedDialogTitle;
+
+ /// No description provided for @embedConfirmMessage.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed metadata into {count, plural, one{# audio file} other{# audio files}}? Your audio files will be rewritten{backup}.'**
+ String embedConfirmMessage(int count, String backup);
+
+ /// No description provided for @embedConfirmBackupClause.
+ ///
+ /// In en, this message translates to:
+ /// **' (originals backed up first)'**
+ String get embedConfirmBackupClause;
+
+ /// No description provided for @embedConfirmAction.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed'**
+ String get embedConfirmAction;
+
+ /// No description provided for @embedCouldNotStart.
+ ///
+ /// In en, this message translates to:
+ /// **'Could not start embed'**
+ String get embedCouldNotStart;
+
+ /// No description provided for @embedStarted.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed started'**
+ String get embedStarted;
+
+ /// No description provided for @embedComplete.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed complete'**
+ String get embedComplete;
+
+ /// No description provided for @embedFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Embed failed'**
+ String get embedFailed;
+
+ /// No description provided for @encodeComplete.
+ ///
+ /// In en, this message translates to:
+ /// **'Encode complete'**
+ String get encodeComplete;
+
+ /// No description provided for @encodeFailedTask.
+ ///
+ /// In en, this message translates to:
+ /// **'Encode failed'**
+ String get encodeFailedTask;
+
+ /// No description provided for @encodeProgress.
+ ///
+ /// In en, this message translates to:
+ /// **'Encoding {percent}%'**
+ String encodeProgress(String percent);
+
+ /// No description provided for @encodeProgressIndeterminate.
+ ///
+ /// In en, this message translates to:
+ /// **'Encoding...'**
+ String get encodeProgressIndeterminate;
}
class _AppLocalizationsDelegate
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index fba30c25..5e1a62d9 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -5330,4 +5330,351 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_el.dart b/lib/l10n/app_localizations_el.dart
index edac48d4..9d08cc76 100644
--- a/lib/l10n/app_localizations_el.dart
+++ b/lib/l10n/app_localizations_el.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index d3288ff8..4939aa22 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index 0a4516ad..953b1f81 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index 75a2ab94..f1dc3068 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -5273,4 +5273,351 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index 05931437..3b30bd1e 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index 070255fe..17183251 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_no.dart b/lib/l10n/app_localizations_no.dart
index 9485c34b..255ea015 100644
--- a/lib/l10n/app_localizations_no.dart
+++ b/lib/l10n/app_localizations_no.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index 24296b2d..2662d8cc 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_ro.dart b/lib/l10n/app_localizations_ro.dart
index c4ac718e..77fb7388 100644
--- a/lib/l10n/app_localizations_ro.dart
+++ b/lib/l10n/app_localizations_ro.dart
@@ -5271,4 +5271,351 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index 42f41f12..1153ffd3 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -5274,4 +5274,351 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index 1b9087f6..00021b4b 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -5192,4 +5192,351 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get region => 'Region';
+
+ @override
+ String get editTabDetails => 'Details';
+
+ @override
+ String get editTabCover => 'Cover';
+
+ @override
+ String get editTabMatch => 'Match';
+
+ @override
+ String get editTabEmbed => 'Embed';
+
+ @override
+ String get chapterEditorTitle => 'Edit Chapters';
+
+ @override
+ String get chapterNotConnected => 'Not connected to a server';
+
+ @override
+ String get chapterErrorFirstNotZero => 'First chapter must start at 0:00';
+
+ @override
+ String get chapterErrorStartAfterPrevious =>
+ 'Start must come after the previous chapter';
+
+ @override
+ String get chapterErrorStartBeforeEnd => 'Start must be before the book ends';
+
+ @override
+ String get chapterErrorTitleRequired => 'Title required';
+
+ @override
+ String get chapterEditStartTitle => 'Edit start time';
+
+ @override
+ String get chapterTimeHintSeconds => 'Seconds';
+
+ @override
+ String get chapterTimeHintFull => 'HH:MM:SS or seconds';
+
+ @override
+ String get chapterInvalidTime => 'Invalid time';
+
+ @override
+ String get chapterLocked => 'Chapter is locked';
+
+ @override
+ String get chapterAllLocked => 'All chapters are locked';
+
+ @override
+ String chapterTrackTitle(int number) {
+ return 'Track $number';
+ }
+
+ @override
+ String get chapterNoAudioForPosition => 'No audio for this position';
+
+ @override
+ String get chapterCouldNotPlayPreview => 'Could not play preview';
+
+ @override
+ String chapterStartSetTo(String time) {
+ return 'Start set to $time';
+ }
+
+ @override
+ String get chapterAddNumberedTitle => 'Add numbered chapters';
+
+ @override
+ String chapterNextPreview(String first, String second) {
+ return 'Next: \"$first\", \"$second\", ...';
+ }
+
+ @override
+ String get chapterHowMany => 'How many chapters';
+
+ @override
+ String get add => 'Add';
+
+ @override
+ String get chapterCountRange => 'Enter a count between 1 and 150';
+
+ @override
+ String get chapterTitlesUpdated => 'Chapter titles updated';
+
+ @override
+ String get chaptersApplied => 'Chapters applied';
+
+ @override
+ String get chapterDiscardTitle => 'Discard changes?';
+
+ @override
+ String get chapterDiscardMessage => 'Revert to the saved chapters.';
+
+ @override
+ String get chapterRemoveAllTitle => 'Remove all chapters?';
+
+ @override
+ String get chapterRemoveAllMessage =>
+ 'This removes every chapter from this book.';
+
+ @override
+ String get chapterAllRemoved => 'All chapters removed';
+
+ @override
+ String get chapterFixHighlighted => 'Fix the highlighted chapters first';
+
+ @override
+ String get chaptersUpdated => 'Chapters updated';
+
+ @override
+ String get ok => 'OK';
+
+ @override
+ String get chapterSaveButton => 'Save chapters';
+
+ @override
+ String get chapterAddHint => 'Add chapter (e.g. \"Chapter 01\")';
+
+ @override
+ String get chapterAddTooltip => 'Add chapter(s)';
+
+ @override
+ String get chapterRemoveAll => 'Remove All';
+
+ @override
+ String get chapterShiftTimes => 'Shift Times';
+
+ @override
+ String get chapterFromTracks => 'From Tracks';
+
+ @override
+ String get chapterLookup => 'Lookup';
+
+ @override
+ String get chapterShowSeconds => 'Show seconds';
+
+ @override
+ String get chapterShiftBySeconds => 'Shift by (seconds)';
+
+ @override
+ String get chapterShiftHint =>
+ 'Shifts every unlocked chapter. Use a negative value to move them earlier.';
+
+ @override
+ String get chapterBack1Second => 'Back 1 second';
+
+ @override
+ String get chapterForward1Second => 'Forward 1 second';
+
+ @override
+ String get chapterTitleHint => 'Chapter title';
+
+ @override
+ String get chapterStopPreview => 'Stop preview';
+
+ @override
+ String get chapterPreviewFromHere => 'Preview from here';
+
+ @override
+ String get chapterScrubHint => 'Scrub to the exact spot, then set';
+
+ @override
+ String chapterStartAt(String time) {
+ return 'Start at $time';
+ }
+
+ @override
+ String get chapterSetStartHere => 'Set start here';
+
+ @override
+ String get chapterMore => 'More';
+
+ @override
+ String get chapterUnlock => 'Unlock';
+
+ @override
+ String get chapterLock => 'Lock';
+
+ @override
+ String get chapterInsertBelow => 'Insert below';
+
+ @override
+ String get chapterFindTitle => 'Find chapters';
+
+ @override
+ String get chapterFindSubtitle =>
+ 'Looks up chapters from Audible/Audnexus by ASIN.';
+
+ @override
+ String get chapterEnterAsin => 'Enter an ASIN';
+
+ @override
+ String get chapterLookupFailed => 'Lookup failed - check the ASIN';
+
+ @override
+ String get chapterNoChaptersFound => 'No chapters found for that ASIN';
+
+ @override
+ String get chapterRemoveBranding => 'Remove Audible branding (intro/outro)';
+
+ @override
+ String chapterFoundCount(int count) {
+ return '$count chapters found';
+ }
+
+ @override
+ String chapterAudibleVsBook(String audible, String book) {
+ return 'Audible $audible - Book $book';
+ }
+
+ @override
+ 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.';
+
+ @override
+ String get chapterTitlesOnly => 'Titles only';
+
+ @override
+ String get chapterApplyChapters => 'Apply chapters';
+
+ @override
+ 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.';
+
+ @override
+ String get coverNoneFound => 'No covers found';
+
+ @override
+ String get coverEnterTitleFirst => 'Enter a title first';
+
+ @override
+ String get coverUpdated => 'Cover updated';
+
+ @override
+ String get coverCouldNotUpdate => 'Could not update cover';
+
+ @override
+ String get coverApply => 'Apply cover';
+
+ @override
+ String get coverUnknownResolution => 'Unknown resolution';
+
+ @override
+ String get embedIntro =>
+ 'Embed metadata into audio files including cover image and chapters.';
+
+ @override
+ String get embedBackupOption => 'Back up audio files first';
+
+ @override
+ 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.';
+
+ @override
+ String get embedNoteNavigateAway =>
+ 'Once the task is started you can navigate away from this page.';
+
+ @override
+ String get embedStartButton => 'Start Metadata Embed';
+
+ @override
+ String embedProgress(String percent) {
+ return 'Embedding $percent%';
+ }
+
+ @override
+ String get embedProgressIndeterminate => 'Embedding...';
+
+ @override
+ String taskProgressKeepsRunning(String percent) {
+ return '$percent% - keeps running if you leave this page';
+ }
+
+ @override
+ String get taskStarting => 'Starting...';
+
+ @override
+ String get embedBackupNoteIntro =>
+ 'A backup of your original audio files will be stored on the server in ';
+
+ @override
+ String embedBackupNotePath(String itemId) {
+ return '/metadata/cache/items/$itemId/';
+ }
+
+ @override
+ String get embedBackupNoteOutro =>
+ '. Make sure to periodically purge the items cache.';
+
+ @override
+ String get embedDialogTitle => 'Embed metadata';
+
+ @override
+ String embedConfirmMessage(int count, String backup) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '# audio files',
+ one: '# audio file',
+ );
+ return 'Embed metadata into $_temp0? Your audio files will be rewritten$backup.';
+ }
+
+ @override
+ String get embedConfirmBackupClause => ' (originals backed up first)';
+
+ @override
+ String get embedConfirmAction => 'Embed';
+
+ @override
+ String get embedCouldNotStart => 'Could not start embed';
+
+ @override
+ String get embedStarted => 'Embed started';
+
+ @override
+ String get embedComplete => 'Embed complete';
+
+ @override
+ String get embedFailed => 'Embed failed';
+
+ @override
+ String get encodeComplete => 'Encode complete';
+
+ @override
+ String get encodeFailedTask => 'Encode failed';
+
+ @override
+ String encodeProgress(String percent) {
+ return 'Encoding $percent%';
+ }
+
+ @override
+ String get encodeProgressIndeterminate => 'Encoding...';
}
diff --git a/lib/screens/book_edit_screen.dart b/lib/screens/book_edit_screen.dart
index 0fa3b76f..4f19eb80 100644
--- a/lib/screens/book_edit_screen.dart
+++ b/lib/screens/book_edit_screen.dart
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
+import '../l10n/app_localizations.dart';
import '../widgets/edit_metadata_sheet.dart';
/// Full-screen unified per-book editor. Thin wrapper that hosts
@@ -29,13 +30,14 @@ class BookEditScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final cs = Theme.of(context).colorScheme;
+ final l = AppLocalizations.of(context)!;
return Scaffold(
appBar: AppBar(
title: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
- const Text('Edit', style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600)),
+ Text(l.edit, style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600)),
Text(bookTitle,
maxLines: 1,
overflow: TextOverflow.ellipsis,
diff --git a/lib/screens/chapter_editor_screen.dart b/lib/screens/chapter_editor_screen.dart
index 12d0af86..7e27cf58 100644
--- a/lib/screens/chapter_editor_screen.dart
+++ b/lib/screens/chapter_editor_screen.dart
@@ -3,14 +3,12 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:just_audio/just_audio.dart';
import 'package:provider/provider.dart';
+import '../l10n/app_localizations.dart';
import '../providers/auth_provider.dart';
import '../services/api_service.dart';
import '../services/audio_player_service.dart';
import '../widgets/overlay_toast.dart';
-// NOTE: strings here are intentionally hardcoded English for now; this admin
-// screen gets a single localization pass once the feature is finalized.
-
/// Mutable working copy of one chapter. [uid] is a stable identity that
/// survives reindexing/add/remove (used for controllers + locks); [id] is the
/// positional index recomputed on every change and sent to the server.
@@ -40,13 +38,14 @@ class ChapterEditorScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final cs = Theme.of(context).colorScheme;
+ final l = AppLocalizations.of(context)!;
return Scaffold(
appBar: AppBar(
title: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
- const Text('Edit Chapters', style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600)),
+ Text(l.chapterEditorTitle, style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600)),
Text(bookTitle,
maxLines: 1,
overflow: TextOverflow.ellipsis,
@@ -136,11 +135,12 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Future<void> _load() async {
+ final l = AppLocalizations.of(context)!;
final api = context.read<AuthProvider>().apiService;
if (api == null) {
setState(() {
_loading = false;
- _loadError = 'Not connected to a server';
+ _loadError = l.chapterNotConnected;
});
return;
}
@@ -215,6 +215,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
/// Reindex ids, recompute per-row validation errors, and recompute whether
/// anything differs from the saved chapters.
void _check() {
+ final l = AppLocalizations.of(context)!;
double prev = 0;
bool changed = _chapters.length != _originalChapters.length;
for (int i = 0; i < _chapters.length; i++) {
@@ -222,13 +223,13 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
c.id = i;
final t = c.title.trim();
if (i == 0 && c.start != 0) {
- c.error = 'First chapter must start at 0:00';
+ c.error = l.chapterErrorFirstNotZero;
} else if (i > 0 && c.start <= prev) {
- c.error = 'Start must come after the previous chapter';
+ c.error = l.chapterErrorStartAfterPrevious;
} else if (_duration > 0 && c.start >= _duration) {
- c.error = 'Start must be before the book ends';
+ c.error = l.chapterErrorStartBeforeEnd;
} else if (t.isEmpty) {
- c.error = 'Title required';
+ c.error = l.chapterErrorTitleRequired;
} else {
c.error = null;
}
@@ -317,6 +318,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
// ─── Edits ──────────────────────────────────────────────────
Future<void> _editStart(_Ch c) async {
+ final l = AppLocalizations.of(context)!;
final ctl = TextEditingController(text: _fmtStart(c.start));
final result = await showDialog<double>(
context: context,
@@ -324,31 +326,31 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
String? err;
return StatefulBuilder(builder: (dctx, setLocal) {
return AlertDialog(
- title: const Text('Edit start time'),
+ title: Text(l.chapterEditStartTitle),
content: TextField(
controller: ctl,
autofocus: true,
keyboardType: const TextInputType.numberWithOptions(decimal: true),
decoration: InputDecoration(
- hintText: _showSeconds ? 'Seconds' : 'HH:MM:SS or seconds',
+ hintText: _showSeconds ? l.chapterTimeHintSeconds : l.chapterTimeHintFull,
errorText: err,
),
),
actions: [
TextButton(
onPressed: () => Navigator.pop(dctx),
- child: const Text('Cancel'),
+ child: Text(l.cancel),
),
TextButton(
onPressed: () {
final v = _parseTime(ctl.text);
if (v == null) {
- setLocal(() => err = 'Invalid time');
+ setLocal(() => err = l.chapterInvalidTime);
return;
}
Navigator.pop(dctx, _clampStart(v));
},
- child: const Text('Done'),
+ child: Text(l.done),
),
],
);
@@ -397,7 +399,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
void _remove(_Ch c) {
if (_locked.contains(c.uid)) {
- showOverlayToast(context, 'Chapter is locked', icon: Icons.lock_rounded);
+ showOverlayToast(context, AppLocalizations.of(context)!.chapterLocked, icon: Icons.lock_rounded);
return;
}
if (_chapters.length <= 1) return;
@@ -413,7 +415,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
if (amount == null || amount == 0 || _chapters.length <= 1) return;
final anyUnlocked = _chapters.any((c) => !_locked.contains(c.uid));
if (!anyUnlocked) {
- showOverlayToast(context, 'All chapters are locked', icon: Icons.lock_rounded);
+ showOverlayToast(context, AppLocalizations.of(context)!.chapterAllLocked, icon: Icons.lock_rounded);
return;
}
setState(() {
@@ -430,13 +432,14 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
void _setFromTracks() {
if (_audioFiles.isEmpty) return;
+ final l = AppLocalizations.of(context)!;
final chs = <_Ch>[];
double t = 0;
int i = 0;
for (final af in _audioFiles) {
final dur = (af['duration'] as num?)?.toDouble() ?? 0;
final meta = af['metadata'] as Map<String, dynamic>? ?? {};
- final fname = meta['filename'] as String? ?? 'Track ${i + 1}';
+ final fname = meta['filename'] as String? ?? l.chapterTrackTitle(i + 1);
chs.add(_Ch(uid: _uid++, id: i++, start: t, end: t + dur, title: _basename(fname)));
t += dur;
}
@@ -468,13 +471,14 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Future<void> _playChapter(_Ch c) async {
+ final l = AppLocalizations.of(context)!;
await _stopPreview();
final track = _trackForTime(c.start);
final contentUrl = track?['contentUrl'] as String?;
final api = context.read<AuthProvider>().apiService;
if (track == null || contentUrl == null || api == null) {
- showOverlayToast(context, 'No audio for this position', icon: Icons.error_outline_rounded);
+ showOverlayToast(context, l.chapterNoAudioForPosition, icon: Icons.error_outline_rounded);
return;
}
final startOffset = (track['startOffset'] as num?)?.toDouble() ?? 0;
@@ -515,7 +519,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
} catch (e) {
debugPrint('[ChapterEditor] preview error: $e');
await _stopPreview();
- if (mounted) showOverlayToast(context, 'Could not play preview', icon: Icons.error_outline_rounded);
+ if (mounted) showOverlayToast(context, l.chapterCouldNotPlayPreview, icon: Icons.error_outline_rounded);
}
}
@@ -573,7 +577,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
_check();
});
HapticFeedback.mediumImpact();
- showOverlayToast(context, 'Start set to ${_clock(newStart)}', icon: Icons.check_rounded);
+ showOverlayToast(context, AppLocalizations.of(context)!.chapterStartSetTo(_clock(newStart)), icon: Icons.check_rounded);
}
// ─── Bulk add ───────────────────────────────────────────────
@@ -606,6 +610,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Future<void> _promptBulkCount(String input, RegExpMatch m) async {
+ final l = AppLocalizations.of(context)!;
final numStr = m.group(1)!;
final startNum = int.parse(numStr);
final width = numStr.length;
@@ -619,23 +624,27 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
builder: (dctx) {
final cs = Theme.of(dctx).colorScheme;
return AlertDialog(
- title: const Text('Add numbered chapters'),
+ title: Text(l.chapterAddNumberedTitle),
content: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
- Text('Next: "$before${_padNum(startNum + 1, width, zeros)}$after", "$before${_padNum(startNum + 2, width, zeros)}$after", ...',
+ Text(
+ l.chapterNextPreview(
+ '$before${_padNum(startNum + 1, width, zeros)}$after',
+ '$before${_padNum(startNum + 2, width, zeros)}$after',
+ ),
style: TextStyle(fontSize: 12, color: cs.onSurfaceVariant)),
const SizedBox(height: 12),
TextField(
controller: countCtl,
autofocus: true,
keyboardType: TextInputType.number,
- decoration: const InputDecoration(labelText: 'How many chapters'),
+ decoration: InputDecoration(labelText: l.chapterHowMany),
),
]),
actions: [
- TextButton(onPressed: () => Navigator.pop(dctx), child: const Text('Cancel')),
+ TextButton(onPressed: () => Navigator.pop(dctx), child: Text(l.cancel)),
TextButton(
onPressed: () => Navigator.pop(dctx, int.tryParse(countCtl.text.trim())),
- child: const Text('Add'),
+ child: Text(l.add),
),
],
);
@@ -644,7 +653,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
countCtl.dispose();
if (count == null) return;
if (count < 1 || count > 150) {
- showOverlayToast(context, 'Enter a count between 1 and 150', icon: Icons.error_outline_rounded);
+ showOverlayToast(context, l.chapterCountRange, icon: Icons.error_outline_rounded);
return;
}
final base = _chapters.isNotEmpty ? _chapters.last.start + 1 : 0.0;
@@ -698,7 +707,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
_syncTitleControllers();
_check();
});
- showOverlayToast(context, 'Chapter titles updated', icon: Icons.check_rounded);
+ showOverlayToast(context, AppLocalizations.of(context)!.chapterTitlesUpdated, icon: Icons.check_rounded);
}
void _applyChapters(List<Map<String, dynamic>> audible) {
@@ -733,7 +742,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
_syncTitleControllers();
_check();
});
- showOverlayToast(context, 'Chapters applied', icon: Icons.check_rounded);
+ showOverlayToast(context, AppLocalizations.of(context)!.chaptersApplied, icon: Icons.check_rounded);
}
/// Mirror the web client's "remove Audible branding": shift every chapter
@@ -767,13 +776,15 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Future<void> _reset() async {
- final ok = await _confirm('Discard changes?', 'Revert to the saved chapters.');
+ final l = AppLocalizations.of(context)!;
+ final ok = await _confirm(l.chapterDiscardTitle, l.chapterDiscardMessage);
if (ok != true) return;
setState(() => _initChapters(_originalChapters));
}
Future<void> _removeAll() async {
- final ok = await _confirm('Remove all chapters?', 'This removes every chapter from this book.');
+ final l = AppLocalizations.of(context)!;
+ final ok = await _confirm(l.chapterRemoveAllTitle, l.chapterRemoveAllMessage);
if (ok != true) return;
final api = context.read<AuthProvider>().apiService;
if (api == null) return;
@@ -787,15 +798,16 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
_initChapters(const []);
}
});
- showOverlayToast(context, success ? 'All chapters removed' : 'Could not update, try again',
+ showOverlayToast(context, success ? l.chapterAllRemoved : l.couldNotUpdate,
icon: success ? Icons.check_rounded : Icons.error_outline_rounded);
}
Future<void> _save() async {
+ final l = AppLocalizations.of(context)!;
_check();
for (final c in _chapters) {
if (c.error != null) {
- showOverlayToast(context, 'Fix the highlighted chapters first', icon: Icons.error_outline_rounded);
+ showOverlayToast(context, l.chapterFixHighlighted, icon: Icons.error_outline_rounded);
setState(() {});
return;
}
@@ -823,19 +835,20 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
});
HapticFeedback.mediumImpact();
- showOverlayToast(context, success ? 'Chapters updated' : 'Could not update, try again',
+ showOverlayToast(context, success ? l.chaptersUpdated : l.couldNotUpdate,
icon: success ? Icons.check_rounded : Icons.error_outline_rounded);
}
Future<bool?> _confirm(String title, String message) {
+ final l = AppLocalizations.of(context)!;
return showDialog<bool>(
context: context,
builder: (dctx) => AlertDialog(
title: Text(title),
content: Text(message),
actions: [
- TextButton(onPressed: () => Navigator.pop(dctx, false), child: const Text('Cancel')),
- TextButton(onPressed: () => Navigator.pop(dctx, true), child: const Text('OK')),
+ TextButton(onPressed: () => Navigator.pop(dctx, false), child: Text(l.cancel)),
+ TextButton(onPressed: () => Navigator.pop(dctx, true), child: Text(l.ok)),
],
),
);
@@ -867,14 +880,15 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
Widget _saveBar(ColorScheme cs) {
if (!_hasChanges) return const SizedBox.shrink();
+ final l = AppLocalizations.of(context)!;
return Padding(
padding: const EdgeInsets.fromLTRB(12, 10, 12, 0),
child: Row(children: [
- OutlinedButton(onPressed: _saving ? null : _reset, child: const Text('Reset')),
+ OutlinedButton(onPressed: _saving ? null : _reset, child: Text(l.reset)),
const Spacer(),
FilledButton(
onPressed: _saving ? null : _save,
- child: const Text('Save chapters'),
+ child: Text(l.chapterSaveButton),
),
]),
);
@@ -901,6 +915,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Widget _bulkBar(ColorScheme cs) {
+ final l = AppLocalizations.of(context)!;
return SafeArea(
top: false,
child: Container(
@@ -914,17 +929,17 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
child: TextField(
controller: _bulkCtl,
textInputAction: TextInputAction.done,
- decoration: const InputDecoration(
+ decoration: InputDecoration(
isDense: true,
- hintText: 'Add chapter (e.g. "Chapter 01")',
- border: OutlineInputBorder(),
+ hintText: l.chapterAddHint,
+ border: const OutlineInputBorder(),
),
onSubmitted: (_) => _handleBulkAdd(),
),
),
IconButton(
icon: const Icon(Icons.add_rounded),
- tooltip: 'Add chapter(s)',
+ tooltip: l.chapterAddTooltip,
onPressed: _handleBulkAdd,
),
]),
@@ -933,6 +948,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Widget _toolbar(ColorScheme cs) {
+ final l = AppLocalizations.of(context)!;
return Padding(
padding: const EdgeInsets.fromLTRB(12, 8, 12, 8),
child: Column(
@@ -946,24 +962,24 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
OutlinedButton.icon(
onPressed: _removeAll,
icon: const Icon(Icons.delete_sweep_rounded, size: 18),
- label: const Text('Remove All'),
+ label: Text(l.chapterRemoveAll),
),
if (_chapters.length > 1)
OutlinedButton.icon(
onPressed: () => setState(() => _showShift = !_showShift),
icon: const Icon(Icons.schedule_rounded, size: 18),
- label: const Text('Shift Times'),
+ label: Text(l.chapterShiftTimes),
),
if (_audioFiles.isNotEmpty)
OutlinedButton.icon(
onPressed: _setFromTracks,
icon: const Icon(Icons.library_music_rounded, size: 18),
- label: const Text('From Tracks'),
+ label: Text(l.chapterFromTracks),
),
OutlinedButton.icon(
onPressed: _openLookup,
icon: const Icon(Icons.travel_explore_rounded, size: 18),
- label: const Text('Lookup'),
+ label: Text(l.chapterLookup),
),
],
),
@@ -974,7 +990,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
value: _showSeconds,
onChanged: (v) => setState(() => _showSeconds = v),
),
- const Text('Show seconds'),
+ Text(l.chapterShowSeconds),
],
),
],
@@ -983,6 +999,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Widget _shiftPanel(ColorScheme cs) {
+ final l = AppLocalizations.of(context)!;
return Container(
color: cs.surfaceContainerHighest.withValues(alpha: 0.4),
padding: const EdgeInsets.fromLTRB(12, 8, 12, 12),
@@ -991,7 +1008,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
children: [
Row(
children: [
- const Text('Shift by (seconds)'),
+ Text(l.chapterShiftBySeconds),
const SizedBox(width: 12),
SizedBox(
width: 90,
@@ -1002,13 +1019,13 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
),
),
const SizedBox(width: 8),
- FilledButton(onPressed: _shift, child: const Text('Apply')),
+ FilledButton(onPressed: _shift, child: Text(l.apply)),
],
),
Padding(
padding: const EdgeInsets.only(top: 6),
child: Text(
- 'Shifts every unlocked chapter. Use a negative value to move them earlier.',
+ l.chapterShiftHint,
style: TextStyle(fontSize: 12, color: cs.onSurfaceVariant),
),
),
@@ -1018,6 +1035,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Widget _row(ColorScheme cs, _Ch c, int index) {
+ final l = AppLocalizations.of(context)!;
final locked = _locked.contains(c.uid);
final hasError = c.error != null;
final active = _previewUid == c.uid;
@@ -1052,7 +1070,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
icon: const Icon(Icons.remove_circle_outline_rounded),
iconSize: 24,
color: cs.onSurfaceVariant,
- tooltip: 'Back 1 second',
+ tooltip: l.chapterBack1Second,
),
Expanded(
child: InkWell(
@@ -1082,7 +1100,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
icon: const Icon(Icons.add_circle_outline_rounded),
iconSize: 24,
color: cs.onSurfaceVariant,
- tooltip: 'Forward 1 second',
+ tooltip: l.chapterForward1Second,
),
_previewButton(cs, c),
_rowMenu(cs, c, locked),
@@ -1097,10 +1115,10 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
setState(_check);
},
style: const TextStyle(fontSize: 16),
- decoration: const InputDecoration(
- hintText: 'Chapter title',
- contentPadding: EdgeInsets.symmetric(vertical: 10),
- border: UnderlineInputBorder(),
+ decoration: InputDecoration(
+ hintText: l.chapterTitleHint,
+ contentPadding: const EdgeInsets.symmetric(vertical: 10),
+ border: const UnderlineInputBorder(),
),
),
),
@@ -1124,16 +1142,18 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
child: Center(child: SizedBox(width: 22, height: 22, child: CircularProgressIndicator(strokeWidth: 2))),
);
}
+ final l = AppLocalizations.of(context)!;
return IconButton(
onPressed: () => active ? _stopPreview() : _playChapter(c),
icon: Icon(active ? Icons.stop_circle_rounded : Icons.play_circle_rounded),
iconSize: 32,
color: active ? cs.primary : cs.onSurfaceVariant,
- tooltip: active ? 'Stop preview' : 'Preview from here',
+ tooltip: active ? l.chapterStopPreview : l.chapterPreviewFromHere,
);
}
Widget _previewPanel(ColorScheme cs, _Ch c) {
+ final l = AppLocalizations.of(context)!;
final global = _previewTrackOffset + _previewPosSec;
final dur = _previewTrackDur > 0 ? _previewTrackDur : (_previewPosSec > 1 ? _previewPosSec : 1.0);
final val = _previewPosSec.clamp(0.0, dur);
@@ -1156,9 +1176,9 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
),
Expanded(
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
- Text('Scrub to the exact spot, then set',
+ Text(l.chapterScrubHint,
style: TextStyle(fontSize: 12, color: cs.onSurfaceVariant)),
- Text('Start at ${_clock(global)}',
+ Text(l.chapterStartAt(_clock(global)),
style: TextStyle(
fontSize: 17,
fontWeight: FontWeight.w700,
@@ -1192,7 +1212,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
child: FilledButton.icon(
onPressed: () => _adjustStart(c),
icon: const Icon(Icons.my_location_rounded, size: 18),
- label: const Text('Set start here'),
+ label: Text(l.chapterSetStartHere),
),
),
]),
@@ -1211,10 +1231,11 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
}
Widget _rowMenu(ColorScheme cs, _Ch c, bool locked) {
+ final l = AppLocalizations.of(context)!;
return PopupMenuButton<String>(
icon: const Icon(Icons.more_vert_rounded),
iconSize: 24,
- tooltip: 'More',
+ tooltip: l.chapterMore,
onSelected: (v) {
switch (v) {
case 'lock':
@@ -1235,7 +1256,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
Icon(locked ? Icons.lock_open_rounded : Icons.lock_rounded,
color: locked ? Colors.orange : cs.onSurfaceVariant),
const SizedBox(width: 12),
- Text(locked ? 'Unlock' : 'Lock'),
+ Text(locked ? l.chapterUnlock : l.chapterLock),
]),
),
PopupMenuItem(
@@ -1243,7 +1264,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
child: Row(children: [
Icon(Icons.add_box_outlined, color: cs.onSurfaceVariant),
const SizedBox(width: 12),
- const Text('Insert below'),
+ Text(l.chapterInsertBelow),
]),
),
if (_chapters.length > 1)
@@ -1252,7 +1273,7 @@ class _ChapterEditBodyState extends State<ChapterEditBody>
child: Row(children: [
Icon(Icons.delete_outline_rounded, color: cs.error),
const SizedBox(width: 12),
- Text('Delete', style: TextStyle(color: cs.error)),
+ Text(l.delete, style: TextStyle(color: cs.error)),
]),
),
],
@@ -1302,9 +1323,10 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
}
Future<void> _search() async {
+ final l = AppLocalizations.of(context)!;
final asin = _asinCtl.text.trim();
if (asin.isEmpty) {
- setState(() => _error = 'Enter an ASIN');
+ setState(() => _error = l.chapterEnterAsin);
return;
}
setState(() {
@@ -1316,9 +1338,9 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
setState(() {
_finding = false;
if (data == null) {
- _error = 'Lookup failed - check the ASIN';
+ _error = l.chapterLookupFailed;
} else if (data['error'] != null) {
- _error = 'No chapters found for that ASIN';
+ _error = l.chapterNoChaptersFound;
} else {
_data = data;
}
@@ -1355,13 +1377,14 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
);
Widget _inputView(ColorScheme cs) {
+ final l = AppLocalizations.of(context)!;
return Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 20),
child: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
_handle(cs),
- Text('Find chapters', style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600, color: cs.onSurface)),
+ Text(l.chapterFindTitle, style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600, color: cs.onSurface)),
const SizedBox(height: 4),
- Text('Looks up chapters from Audible/Audnexus by ASIN.',
+ Text(l.chapterFindSubtitle,
style: TextStyle(fontSize: 12, color: cs.onSurfaceVariant)),
const SizedBox(height: 16),
Row(children: [
@@ -1381,7 +1404,7 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
]),
Row(children: [
Checkbox(value: _removeBranding, onChanged: (v) => setState(() => _removeBranding = v ?? false)),
- const Flexible(child: Text('Remove Audible branding (intro/outro)')),
+ Flexible(child: Text(l.chapterRemoveBranding)),
]),
if (_error != null)
Padding(
@@ -1395,7 +1418,7 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
onPressed: _finding ? null : _search,
child: _finding
? const SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 2))
- : const Text('Search'),
+ : Text(l.search),
),
),
]),
@@ -1403,6 +1426,7 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
}
Widget _resultsView(ColorScheme cs, Map<String, dynamic> data) {
+ final l = AppLocalizations.of(context)!;
final chapters = (data['chapters'] as List<dynamic>? ?? []).whereType<Map<String, dynamic>>().toList();
final runtime = (data['runtimeLengthSec'] as num?)?.toDouble() ?? 0;
final bookDur = widget.mediaDuration;
@@ -1415,9 +1439,9 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
IconButton(icon: const Icon(Icons.arrow_back_rounded), onPressed: () => setState(() => _data = null)),
Expanded(
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
- Text('${chapters.length} chapters found',
+ Text(l.chapterFoundCount(chapters.length),
style: TextStyle(fontWeight: FontWeight.w600, color: cs.onSurface)),
- Text('Audible ${_clock(runtime)} - Book ${_clock(bookDur)}',
+ Text(l.chapterAudibleVsBook(_clock(runtime), _clock(bookDur)),
style: TextStyle(fontSize: 12, color: cs.onSurfaceVariant)),
]),
),
@@ -1428,8 +1452,8 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
padding: const EdgeInsets.fromLTRB(16, 0, 16, 4),
child: Text(
runtime > bookDur
- ? 'The Audible version is longer than your file - later chapters may not line up.'
- : 'The Audible version is shorter than your file - chapters may not line up.',
+ ? l.chapterAudibleLonger
+ : l.chapterAudibleShorter,
style: const TextStyle(fontSize: 12, color: Colors.orange),
),
),
@@ -1473,7 +1497,7 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
child: OutlinedButton(
onPressed: () => Navigator.pop(
context, _LookupResult(data: data, titlesOnly: true, removeBranding: _removeBranding)),
- child: const Text('Titles only'),
+ child: Text(l.chapterTitlesOnly),
),
),
const SizedBox(width: 10),
@@ -1481,7 +1505,7 @@ class _ChapterLookupSheetState extends State<_ChapterLookupSheet> {
child: FilledButton(
onPressed: () => Navigator.pop(
context, _LookupResult(data: data, titlesOnly: false, removeBranding: _removeBranding)),
- child: const Text('Apply chapters'),
+ child: Text(l.chapterApplyChapters),
),
),
]),
diff --git a/lib/widgets/book_detail_sheet.dart b/lib/widgets/book_detail_sheet.dart
index 15971bc6..efd943ef 100644
--- a/lib/widgets/book_detail_sheet.dart
+++ b/lib/widgets/book_detail_sheet.dart
@@ -764,7 +764,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
_moreItem(cs, Icons.local_library_rounded, l.searchOnGoodreads,
onTap: () { Navigator.pop(ctx); _openGoodreads(title, authorName); }),
if (auth.canUpdateMetadata && !lib.isOffline)
- _moreItem(cs, Icons.edit_rounded, 'Edit...',
+ _moreItem(cs, Icons.edit_rounded, '${l.edit}...',
onTap: () {
Navigator.pop(ctx);
_openEditPage(auth, title, isEbookOnly);
diff --git a/lib/widgets/edit_metadata_sheet.dart b/lib/widgets/edit_metadata_sheet.dart
index 9662fa54..d2b45f8b 100644
--- a/lib/widgets/edit_metadata_sheet.dart
+++ b/lib/widgets/edit_metadata_sheet.dart
@@ -527,7 +527,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))
: const Icon(Icons.transform_rounded, size: 18),
label: Text(_encoding
- ? (_taskProgress != null ? 'Encoding ${_taskProgress!.toStringAsFixed(0)}%' : 'Encoding...')
+ ? (_taskProgress != null ? l.encodeProgress(_taskProgress!.toStringAsFixed(0)) : l.encodeProgressIndeterminate)
: l.startM4bEncode),
style: FilledButton.styleFrom(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
@@ -547,8 +547,8 @@ class _MetadataEditViewState extends State<MetadataEditView>
const SizedBox(height: 6),
Text(
_taskProgress != null
- ? '${_taskProgress!.toStringAsFixed(0)}% - keeps running if you leave this page'
- : 'Starting...',
+ ? l.taskProgressKeepsRunning(_taskProgress!.toStringAsFixed(0))
+ : l.taskStarting,
style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant),
),
],
@@ -562,7 +562,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
controller: _embedScroll,
padding: EdgeInsets.fromLTRB(20, 20, 20, 24 + MediaQuery.of(context).viewPadding.bottom),
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
- Text('Embed metadata into audio files including cover image and chapters.',
+ Text(l.embedIntro,
style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant, height: 1.35)),
const SizedBox(height: 16),
InkWell(
@@ -573,14 +573,14 @@ class _MetadataEditViewState extends State<MetadataEditView>
value: _shouldBackup,
onChanged: _embedding ? null : (v) => setState(() => _shouldBackup = v ?? true),
),
- Expanded(child: Text('Back up audio files first', style: tt.bodyMedium)),
+ Expanded(child: Text(l.embedBackupOption, style: tt.bodyMedium)),
]),
),
const SizedBox(height: 16),
- _encodeNote('Metadata will be embedded in the audio tracks inside your audiobook folder.', cs, tt),
- if (_shouldBackup) _embedBackupNote(cs, tt),
- if (multiFile) _encodeNote('Chapters are not embedded in multi-track audiobooks.', cs, tt),
- _encodeNote('Once the task is started you can navigate away from this page.', cs, tt),
+ _encodeNote(l.embedNoteInFolder, cs, tt),
+ if (_shouldBackup) _embedBackupNote(cs, tt, l),
+ if (multiFile) _encodeNote(l.embedNoteMultiTrack, cs, tt),
+ _encodeNote(l.embedNoteNavigateAway, cs, tt),
const SizedBox(height: 12),
SizedBox(
width: double.infinity,
@@ -591,8 +591,8 @@ class _MetadataEditViewState extends State<MetadataEditView>
? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))
: const Icon(Icons.save_rounded, size: 18),
label: Text(_embedding
- ? (_taskProgress != null ? 'Embedding ${_taskProgress!.toStringAsFixed(0)}%' : 'Embedding...')
- : 'Start Metadata Embed'),
+ ? (_taskProgress != null ? l.embedProgress(_taskProgress!.toStringAsFixed(0)) : l.embedProgressIndeterminate)
+ : l.embedStartButton),
style: FilledButton.styleFrom(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
),
@@ -611,8 +611,8 @@ class _MetadataEditViewState extends State<MetadataEditView>
const SizedBox(height: 6),
Text(
_taskProgress != null
- ? '${_taskProgress!.toStringAsFixed(0)}% - keeps running if you leave this page'
- : 'Starting...',
+ ? l.taskProgressKeepsRunning(_taskProgress!.toStringAsFixed(0))
+ : l.taskStarting,
style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant),
),
],
@@ -620,7 +620,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
);
}
- Widget _embedBackupNote(ColorScheme cs, TextTheme tt) {
+ Widget _embedBackupNote(ColorScheme cs, TextTheme tt, AppLocalizations l) {
return Padding(
padding: const EdgeInsets.only(bottom: 10),
child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
@@ -633,12 +633,12 @@ class _MetadataEditViewState extends State<MetadataEditView>
child: Text.rich(TextSpan(
style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, height: 1.35),
children: [
- const TextSpan(text: 'A backup of your original audio files will be stored on the server in '),
+ TextSpan(text: l.embedBackupNoteIntro),
TextSpan(
- text: '/metadata/cache/items/${widget.itemId}/',
+ text: l.embedBackupNotePath(widget.itemId),
style: TextStyle(fontFamily: 'monospace', color: cs.onSurface),
),
- const TextSpan(text: '. Make sure to periodically purge the items cache.'),
+ TextSpan(text: l.embedBackupNoteOutro),
],
)),
),
@@ -748,18 +748,18 @@ class _MetadataEditViewState extends State<MetadataEditView>
}
Future<void> _startEmbed() async {
+ final l = AppLocalizations.of(context)!;
final count = widget.audioFiles.length;
final confirmed = await showDialog<bool>(
context: context,
builder: (dctx) => AlertDialog(
- title: const Text('Embed metadata'),
+ title: Text(l.embedDialogTitle),
content: Text(
- 'Embed metadata into $count audio file${count == 1 ? '' : 's'}? '
- 'Your audio files will be rewritten${_shouldBackup ? ' (originals backed up first)' : ''}.',
+ l.embedConfirmMessage(count, _shouldBackup ? l.embedConfirmBackupClause : ''),
),
actions: [
- TextButton(onPressed: () => Navigator.pop(dctx, false), child: const Text('Cancel')),
- FilledButton(onPressed: () => Navigator.pop(dctx, true), child: const Text('Embed')),
+ TextButton(onPressed: () => Navigator.pop(dctx, false), child: Text(l.cancel)),
+ FilledButton(onPressed: () => Navigator.pop(dctx, true), child: Text(l.embedConfirmAction)),
],
),
);
@@ -777,10 +777,10 @@ class _MetadataEditViewState extends State<MetadataEditView>
_runningAction = null;
_taskProgress = null;
});
- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('Could not start embed')));
+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(l.embedCouldNotStart)));
return;
}
- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('Embed started')));
+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(l.embedStarted)));
}
void _onTaskStarted(Map<String, dynamic> data) {
@@ -815,12 +815,13 @@ class _MetadataEditViewState extends State<MetadataEditView>
_taskProgress = null;
});
if (wasRunning == null) return;
+ final l = AppLocalizations.of(context)!;
final failed = data['error'] != null || data['isFailed'] == true;
if (!failed) context.read<LibraryProvider>().refresh();
final embed = action == 'embed-metadata';
final msg = failed
- ? (embed ? 'Embed failed' : 'Encode failed')
- : (embed ? 'Embed complete' : 'Encode complete');
+ ? (embed ? l.embedFailed : l.encodeFailedTask)
+ : (embed ? l.embedComplete : l.encodeComplete);
ScaffoldMessenger.of(context)
..clearSnackBars()
..showSnackBar(SnackBar(content: Text(msg)));
@@ -828,13 +829,13 @@ class _MetadataEditViewState extends State<MetadataEditView>
// ─── Build ──────────────────────────────────────────────────
- String _tabLabel(_ETab t) => switch (t) {
- _ETab.details => 'Details',
- _ETab.cover => 'Cover',
- _ETab.chapters => 'Chapters',
- _ETab.match => 'Match',
- _ETab.encode => 'Encode',
- _ETab.embed => 'Embed',
+ String _tabLabel(_ETab t, AppLocalizations l) => switch (t) {
+ _ETab.details => l.editTabDetails,
+ _ETab.cover => l.editTabCover,
+ _ETab.chapters => l.chapters,
+ _ETab.match => l.editTabMatch,
+ _ETab.encode => l.encodeTab,
+ _ETab.embed => l.editTabEmbed,
};
Widget _tabBody(_ETab t, ColorScheme cs, TextTheme tt, AppLocalizations l) => switch (t) {
@@ -860,7 +861,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
labelColor: cs.primary,
unselectedLabelColor: cs.onSurfaceVariant,
indicatorColor: cs.primary,
- tabs: [for (final t in _tabs) Tab(text: _tabLabel(t))],
+ tabs: [for (final t in _tabs) Tab(text: _tabLabel(t, l))],
),
Expanded(
child: TabBarView(
@@ -1236,15 +1237,15 @@ class _MetadataEditViewState extends State<MetadataEditView>
]),
),
const SizedBox(height: 24),
- Text('Search for a cover', style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),
+ Text(l.coverSearchTitle, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),
const SizedBox(height: 4),
- Text('Refine the title/author to clean up results - this does not change the book.',
+ Text(l.coverSearchRefineHint,
style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
const SizedBox(height: 8),
TextField(
controller: _coverSearchTitleCtrl,
decoration: InputDecoration(
- labelText: 'Title',
+ labelText: l.title,
isDense: true,
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
contentPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
@@ -1256,7 +1257,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
TextField(
controller: _coverSearchAuthorCtrl,
decoration: InputDecoration(
- labelText: 'Author',
+ labelText: l.author,
isDense: true,
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
contentPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
@@ -1286,7 +1287,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
icon: _coverSearching
? const SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2))
: const Icon(Icons.search_rounded, size: 18),
- label: const Text('Search'),
+ label: Text(l.search),
),
]),
if (_coverResults.isNotEmpty) ...[
@@ -1341,12 +1342,13 @@ class _MetadataEditViewState extends State<MetadataEditView>
static const _allCoverProviders = ['google', 'fantlab', 'audible', 'openlibrary', 'itunes', 'audiobookcovers'];
Future<void> _searchCovers() async {
+ final l = AppLocalizations.of(context)!;
final api = context.read<AuthProvider>().apiService;
final title = _coverSearchTitleCtrl.text.trim();
if (api == null || title.isEmpty) {
ScaffoldMessenger.of(context)
..clearSnackBars()
- ..showSnackBar(const SnackBar(content: Text('Enter a title first')));
+ ..showSnackBar(SnackBar(content: Text(l.coverEnterTitleFirst)));
return;
}
final author = _coverSearchAuthorCtrl.text.trim();
@@ -1374,11 +1376,12 @@ class _MetadataEditViewState extends State<MetadataEditView>
if (_coverResults.isEmpty) {
ScaffoldMessenger.of(context)
..clearSnackBars()
- ..showSnackBar(const SnackBar(content: Text('No covers found')));
+ ..showSnackBar(SnackBar(content: Text(l.coverNoneFound)));
}
}
Future<void> _applyCoverUrl(String url) async {
+ final l = AppLocalizations.of(context)!;
final api = context.read<AuthProvider>().apiService;
if (api == null) return;
setState(() => _saving = true);
@@ -1391,7 +1394,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
});
ScaffoldMessenger.of(context)
..clearSnackBars()
- ..showSnackBar(SnackBar(content: Text(ok ? 'Cover updated' : 'Could not update cover')));
+ ..showSnackBar(SnackBar(content: Text(ok ? l.coverUpdated : l.coverCouldNotUpdate)));
}
/// Show a cover result full-size with its resolution and an explicit Apply.
@@ -1416,6 +1419,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
} catch (_) {}
if (!mounted) return;
+ final l = AppLocalizations.of(context)!;
final apply = await showDialog<bool>(
context: context,
builder: (dctx) {
@@ -1442,17 +1446,17 @@ class _MetadataEditViewState extends State<MetadataEditView>
),
const SizedBox(height: 10),
Text(
- size != null ? '${size.width.toInt()} x ${size.height.toInt()}' : 'Unknown resolution',
+ size != null ? '${size.width.toInt()} x ${size.height.toInt()}' : l.coverUnknownResolution,
style: TextStyle(color: cs.onSurfaceVariant, fontSize: 13, fontWeight: FontWeight.w600),
),
const SizedBox(height: 12),
Row(children: [
- TextButton(onPressed: () => Navigator.pop(dctx, false), child: const Text('Cancel')),
+ TextButton(onPressed: () => Navigator.pop(dctx, false), child: Text(l.cancel)),
const Spacer(),
FilledButton.icon(
onPressed: () => Navigator.pop(dctx, true),
icon: const Icon(Icons.check_rounded, size: 18),
- label: const Text('Apply cover'),
+ label: Text(l.coverApply),
),
]),
]),