From a5442b477e3669ca8c3dda7808d8c308d08368e9 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Tue, 29 Apr 2025 16:06:13 +0200 Subject: [PATCH] Sync translations with new strings --- internal/cli/transfer.go | 2 +- internal/translations/catalog.go | 36 ++++++------- .../locales/de/messages.gotext.json | 54 +++++++++---------- .../translations/locales/de/out.gotext.json | 8 +-- .../locales/en/messages.gotext.json | 50 ++++++++--------- .../translations/locales/en/out.gotext.json | 6 +-- 6 files changed, 78 insertions(+), 78 deletions(-) diff --git a/internal/cli/transfer.go b/internal/cli/transfer.go index 427af06..ade7ece 100644 --- a/internal/cli/transfer.go +++ b/internal/cli/transfer.go @@ -88,7 +88,7 @@ func (c *TransferCmd[E, I, R]) resolveBackends(source string, target string) err } func (c *TransferCmd[E, I, R]) Transfer(exp backends.ExportProcessor[R], imp backends.ImportProcessor[R]) error { - fmt.Println(i18n.Tr("Transferring %s from %s to %s...", c.entity, c.sourceName, c.targetName)) + fmt.Println(i18n.Tr("Transferring %s from %s to %s…", c.entity, c.sourceName, c.targetName)) // Authenticate backends, if needed config := viper.GetViper() diff --git a/internal/translations/catalog.go b/internal/translations/catalog.go index c4a7937..374179f 100644 --- a/internal/translations/catalog.go +++ b/internal/translations/catalog.go @@ -76,7 +76,7 @@ var messageKeyToIndex = map[string]int{ "Specify a time zone for the listen timestamps": 52, "The backend %v requires authentication. Authenticate now?": 6, "Token received, you can close this window now.": 12, - "Transferring %s from %s to %s...": 40, + "Transferring %s from %s to %s…": 40, "Unique playlist identifier": 23, "Updated service %v using backend %v\n": 10, "User name": 18, @@ -123,7 +123,7 @@ const deData string = "" + // Size: 1596 bytes "\x02Abgebrochen\x04\x00\x01\x0a\x1e\x02Service „%[1]v“ gelöscht\x04\x00" + "\x01\x0a1\x02Service %[1]v mit dem Backend %[2]v aktualisiert\x04\x01" + "\x09\x00\x0f\x02Backend: %[1]v\x02Token erhalten, das Fenster kann jetzt" + - " geschlossen werden.\x02das backend %[1]s implementiert %[2]s nicht\x02u" + + " geschlossen werden.\x02das Backend %[1]s implementiert %[2]s nicht\x02u" + "nbekanntes Backend „%[1]s“\x02Client-ID\x02Client-Secret\x02Server-URL" + "\x02Benutzername\x02Zugriffstoken\x02Dateipfad\x02An Datei anhängen\x02T" + "itel der Playlist\x02Eindeutige Playlist-ID\x02Beim Import auf Listen-Du" + @@ -134,13 +134,13 @@ const deData string = "" + // Size: 1596 bytes "\x00\x01\x0a;\x02Zugriffstoken erhalten, %[1]v kann jetzt verwendet werd" + "en.\x02exportiere\x02importiere\x02fertig\x02Ja\x02Nein\x02keine bestehe" + "nden Servicekonfigurationen\x02Service\x02Backend\x02Übertrage %[1]s von" + - " %[2]s nach %[3]s...\x02Ab Zeitstempel: %[1]v (%[2]v)\x02Import fehlgesc" + - "hlagen, letzter Zeitstempel war %[1]v (%[2]s)\x02%[1]v von %[2]v %[3]s i" + - "n %[4]v importiert.\x02Importlog:\x02%[1]v: %[2]v\x02ungültiger Zeitstem" + - "pel „%[1]v“\x02Letzter Zeitstempel: %[1]v (%[2]v)\x02keine Konfiguration" + - "sdatei definiert, Konfiguration kann nicht geschrieben werden\x02Schlüss" + - "el darf nur die Zeichen A-Za-z0-9_- beinhalten\x02keine Servicekonfigura" + - "tion „%[1]v“" + " %[2]s nach %[3]s…\x02Ab Zeitstempel: %[1]v (%[2]v)\x02Import fehlgeschl" + + "agen, letzter Zeitstempel war %[1]v (%[2]s)\x02%[1]v von %[2]v %[3]s in " + + "%[4]v importiert.\x02Importlog:\x02%[1]v: %[2]v\x02ungültiger Zeitstempe" + + "l „%[1]v“\x02Letzter Zeitstempel: %[1]v (%[2]v)\x02keine Konfigurationsd" + + "atei definiert, Konfiguration kann nicht geschrieben werden\x02Schlüssel" + + " darf nur die Zeichen A-Za-z0-9_- beinhalten\x02keine Servicekonfigurati" + + "on „%[1]v“" var enIndex = []uint32{ // 55 elements // Entry 0 - 1F @@ -179,13 +179,13 @@ const enData string = "" + // Size: 1507 bytes "\x02Error: OAuth state mismatch\x04\x00\x01\x0a.\x02Access token receive" + "d, you can use %[1]v now.\x02exporting\x02importing\x02done\x02Yes\x02No" + "\x02no existing service configurations\x02Service\x02Backend\x02Transfer" + - "ring %[1]s from %[2]s to %[3]s...\x02From timestamp: %[1]v (%[2]v)\x02Im" + - "port failed, last reported timestamp was %[1]v (%[2]s)\x02Imported %[1]v" + - " of %[2]v %[3]s into %[4]v.\x02Import log:\x02%[1]v: %[2]v\x02invalid ti" + - "mestamp string \x22%[1]v\x22\x02Latest timestamp: %[1]v (%[2]v)\x02no co" + - "nfiguration file defined, cannot write config\x02key must only consist o" + - "f A-Za-z0-9_-\x02no service configuration \x22%[1]v\x22\x02Ignored dupli" + - "cate listen %[1]v: \x22%[2]v\x22 by %[3]v (%[4]v)\x02Specify a time zone" + - " for the listen timestamps\x02Visit the URL for authorization: %[1]v" + "ring %[1]s from %[2]s to %[3]s…\x02From timestamp: %[1]v (%[2]v)\x02Impo" + + "rt failed, last reported timestamp was %[1]v (%[2]s)\x02Imported %[1]v o" + + "f %[2]v %[3]s into %[4]v.\x02Import log:\x02%[1]v: %[2]v\x02invalid time" + + "stamp string \x22%[1]v\x22\x02Latest timestamp: %[1]v (%[2]v)\x02no conf" + + "iguration file defined, cannot write config\x02key must only consist of " + + "A-Za-z0-9_-\x02no service configuration \x22%[1]v\x22\x02Ignored duplica" + + "te listen %[1]v: \x22%[2]v\x22 by %[3]v (%[4]v)\x02Specify a time zone f" + + "or the listen timestamps\x02Visit the URL for authorization: %[1]v" - // Total table size 3591 bytes (3KiB); checksum: 6C862242 + // Total table size 3591 bytes (3KiB); checksum: 2A4B9572 diff --git a/internal/translations/locales/de/messages.gotext.json b/internal/translations/locales/de/messages.gotext.json index 19a7a25..dfa808b 100644 --- a/internal/translations/locales/de/messages.gotext.json +++ b/internal/translations/locales/de/messages.gotext.json @@ -261,9 +261,9 @@ "translation": "Beim Import auf Listen-Duplikate prüfen (langsamer)" }, { - "id": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMbid})", - "message": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMbid})", - "translation": "Listen-Duplikat ignoriert {ListenedAt}: „{TrackName}“ von {ArtistName} ({RecordingMbid})", + "id": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMBID})", + "message": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMBID})", + "translation": "", "placeholders": [ { "id": "ListenedAt", @@ -290,12 +290,12 @@ "expr": "l.ArtistName()" }, { - "id": "RecordingMbid", + "id": "RecordingMBID", "string": "%[4]v", - "type": "go.uploadedlobster.com/scotty/internal/models.MBID", + "type": "go.uploadedlobster.com/mbtypes.MBID", "underlyingType": "string", "argNum": 4, - "expr": "l.RecordingMbid" + "expr": "l.RecordingMBID" } ] }, @@ -305,9 +305,14 @@ "translation": "Autokorrektur für übermittelte Titel deaktivieren" }, { - "id": "Include skipped listens", - "message": "Include skipped listens", - "translation": "Übersprungene Titel einbeziehen" + "id": "Ignore skipped listens", + "message": "Ignore skipped listens", + "translation": "Übersprungene Listens ignorieren" + }, + { + "id": "Specify a time zone for the listen timestamps", + "message": "Specify a time zone for the listen timestamps", + "translation": "" }, { "id": "Directory path", @@ -319,28 +324,23 @@ "message": "Ignore listens in incognito mode", "translation": "Listens im Inkognito-Modus ignorieren" }, - { - "id": "Ignore skipped listens", - "message": "Ignore skipped listens", - "translation": "Übersprungene Listens ignorieren" - }, { "id": "Minimum playback duration for skipped tracks (seconds)", "message": "Minimum playback duration for skipped tracks (seconds)", "translation": "Minimale Wiedergabedauer für übersprungene Titel (Sekunden)" }, { - "id": "Visit the URL for authorization: {Url}", - "message": "Visit the URL for authorization: {Url}", - "translation": "URL für Autorisierung öffnen: {Url}", + "id": "Visit the URL for authorization: {URL}", + "message": "Visit the URL for authorization: {URL}", + "translation": "", "placeholders": [ { - "id": "Url", + "id": "URL", "string": "%[1]v", "type": "string", "underlyingType": "string", "argNum": 1, - "expr": "authUrl.Url" + "expr": "authURL.URL" } ] }, @@ -367,23 +367,23 @@ { "id": "exporting", "message": "exporting", + "translation": "exportiere", "translatorComment": "Copied from source.", - "fuzzy": true, - "translation": "exportiere" + "fuzzy": true }, { "id": "importing", "message": "importing", + "translation": "importiere", "translatorComment": "Copied from source.", - "fuzzy": true, - "translation": "importiere" + "fuzzy": true }, { "id": "done", "message": "done", + "translation": "fertig", "translatorComment": "Copied from source.", - "fuzzy": true, - "translation": "fertig" + "fuzzy": true }, { "id": "Yes", @@ -411,8 +411,8 @@ "translation": "Backend" }, { - "id": "Transferring {Entity} from {SourceName} to {TargetName}...", - "message": "Transferring {Entity} from {SourceName} to {TargetName}...", + "id": "Transferring {Entity} from {SourceName} to {TargetName}…", + "message": "Transferring {Entity} from {SourceName} to {TargetName}…", "translation": "Übertrage {Entity} von {SourceName} nach {TargetName}…", "placeholders": [ { diff --git a/internal/translations/locales/de/out.gotext.json b/internal/translations/locales/de/out.gotext.json index 65abfdd..7a13af8 100644 --- a/internal/translations/locales/de/out.gotext.json +++ b/internal/translations/locales/de/out.gotext.json @@ -175,7 +175,7 @@ { "id": "backend {Backend} does not implement {InterfaceName}", "message": "backend {Backend} does not implement {InterfaceName}", - "translation": "das backend {Backend} implementiert {InterfaceName} nicht", + "translation": "das Backend {Backend} implementiert {InterfaceName} nicht", "placeholders": [ { "id": "Backend", @@ -411,9 +411,9 @@ "translation": "Backend" }, { - "id": "Transferring {Entity} from {SourceName} to {TargetName}...", - "message": "Transferring {Entity} from {SourceName} to {TargetName}...", - "translation": "Übertrage {Entity} von {SourceName} nach {TargetName}...", + "id": "Transferring {Entity} from {SourceName} to {TargetName}…", + "message": "Transferring {Entity} from {SourceName} to {TargetName}…", + "translation": "Übertrage {Entity} von {SourceName} nach {TargetName}…", "placeholders": [ { "id": "Entity", diff --git a/internal/translations/locales/en/messages.gotext.json b/internal/translations/locales/en/messages.gotext.json index 7687276..ed62636 100644 --- a/internal/translations/locales/en/messages.gotext.json +++ b/internal/translations/locales/en/messages.gotext.json @@ -311,9 +311,9 @@ "fuzzy": true }, { - "id": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMbid})", - "message": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMbid})", - "translation": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMbid})", + "id": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMBID})", + "message": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMBID})", + "translation": "Ignored duplicate listen {ListenedAt}: \"{TrackName}\" by {ArtistName} ({RecordingMBID})", "translatorComment": "Copied from source.", "placeholders": [ { @@ -341,12 +341,12 @@ "expr": "l.ArtistName()" }, { - "id": "RecordingMbid", + "id": "RecordingMBID", "string": "%[4]v", - "type": "go.uploadedlobster.com/scotty/internal/models.MBID", + "type": "go.uploadedlobster.com/mbtypes.MBID", "underlyingType": "string", "argNum": 4, - "expr": "l.RecordingMbid" + "expr": "l.RecordingMBID" } ], "fuzzy": true @@ -359,9 +359,16 @@ "fuzzy": true }, { - "id": "Include skipped listens", - "message": "Include skipped listens", - "translation": "Include skipped listens", + "id": "Ignore skipped listens", + "message": "Ignore skipped listens", + "translation": "Ignore skipped listens", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Specify a time zone for the listen timestamps", + "message": "Specify a time zone for the listen timestamps", + "translation": "Specify a time zone for the listen timestamps", "translatorComment": "Copied from source.", "fuzzy": true }, @@ -379,13 +386,6 @@ "translatorComment": "Copied from source.", "fuzzy": true }, - { - "id": "Ignore skipped listens", - "message": "Ignore skipped listens", - "translation": "Ignore skipped listens", - "translatorComment": "Copied from source.", - "fuzzy": true - }, { "id": "Minimum playback duration for skipped tracks (seconds)", "message": "Minimum playback duration for skipped tracks (seconds)", @@ -394,18 +394,18 @@ "fuzzy": true }, { - "id": "Visit the URL for authorization: {Url}", - "message": "Visit the URL for authorization: {Url}", - "translation": "Visit the URL for authorization: {Url}", + "id": "Visit the URL for authorization: {URL}", + "message": "Visit the URL for authorization: {URL}", + "translation": "Visit the URL for authorization: {URL}", "translatorComment": "Copied from source.", "placeholders": [ { - "id": "Url", + "id": "URL", "string": "%[1]v", "type": "string", "underlyingType": "string", "argNum": 1, - "expr": "authUrl.Url" + "expr": "authURL.URL" } ], "fuzzy": true @@ -491,9 +491,9 @@ "fuzzy": true }, { - "id": "Transferring {Entity} from {SourceName} to {TargetName}...", - "message": "Transferring {Entity} from {SourceName} to {TargetName}...", - "translation": "Transferring {Entity} from {SourceName} to {TargetName}...", + "id": "Transferring {Entity} from {SourceName} to {TargetName}…", + "message": "Transferring {Entity} from {SourceName} to {TargetName}…", + "translation": "Transferring {Entity} from {SourceName} to {TargetName}…", "translatorComment": "Copied from source.", "placeholders": [ { @@ -714,4 +714,4 @@ "fuzzy": true } ] -} \ No newline at end of file +} diff --git a/internal/translations/locales/en/out.gotext.json b/internal/translations/locales/en/out.gotext.json index de7d4d9..eecf359 100644 --- a/internal/translations/locales/en/out.gotext.json +++ b/internal/translations/locales/en/out.gotext.json @@ -491,9 +491,9 @@ "fuzzy": true }, { - "id": "Transferring {Entity} from {SourceName} to {TargetName}...", - "message": "Transferring {Entity} from {SourceName} to {TargetName}...", - "translation": "Transferring {Entity} from {SourceName} to {TargetName}...", + "id": "Transferring {Entity} from {SourceName} to {TargetName}…", + "message": "Transferring {Entity} from {SourceName} to {TargetName}…", + "translation": "Transferring {Entity} from {SourceName} to {TargetName}…", "translatorComment": "Copied from source.", "placeholders": [ {