mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-16 10:09:28 +02:00
listenbrainz: localize duplicate listen message
This commit is contained in:
parent
fa316b3025
commit
01380bd730
2 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ func (b *ListenBrainzApiBackend) ImportListens(export models.ListensResult, impo
|
||||||
return importResult, err
|
return importResult, err
|
||||||
} else if isDupe {
|
} else if isDupe {
|
||||||
count -= 1
|
count -= 1
|
||||||
msg := fmt.Sprintf("Ignored duplicate listen %v: \"%v\" by %v (%v)",
|
msg := i18n.Tr("Ignored duplicate listen %v: \"%v\" by %v (%v)",
|
||||||
l.ListenedAt, l.TrackName, l.ArtistName(), l.RecordingMbid)
|
l.ListenedAt, l.TrackName, l.ArtistName(), l.RecordingMbid)
|
||||||
importResult.ImportErrors = append(importResult.ImportErrors, msg)
|
importResult.ImportErrors = append(importResult.ImportErrors, msg)
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -147,7 +147,7 @@ func (c *TransferCmd[E, I, R]) Transfer(exp backends.ExportProcessor[R], imp bac
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println(i18n.Tr("During the import the following errors occurred:"))
|
fmt.Println(i18n.Tr("During the import the following errors occurred:"))
|
||||||
for _, err := range result.ImportErrors {
|
for _, err := range result.ImportErrors {
|
||||||
fmt.Println(i18n.Tr("Error: %v\n", err))
|
fmt.Println(i18n.Tr("Error: %v", err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue