From 05f0e8d172a1863c3913f5d0db4ed4f56af2fd43 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Sun, 4 May 2025 13:24:12 +0200 Subject: [PATCH] Change string for aborted progress bar --- internal/cli/progress.go | 2 +- internal/translations/catalog.go | 30 +++++++++---------- .../translations/locales/de/out.gotext.json | 4 +-- .../translations/locales/en/out.gotext.json | 6 ++-- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/internal/cli/progress.go b/internal/cli/progress.go index 6b60697..88339ef 100644 --- a/internal/cli/progress.go +++ b/internal/cli/progress.go @@ -61,7 +61,7 @@ func setupProgressBar(p *mpb.Progress, name string) *mpb.Bar { decor.OnComplete( decor.OnAbort( decor.EwmaETA(decor.ET_STYLE_GO, 0, decor.WC{C: decor.DSyncWidth}), - i18n.Tr("error"), + i18n.Tr("aborted"), ), i18n.Tr("done"), ), diff --git a/internal/translations/catalog.go b/internal/translations/catalog.go index fbe5eef..20f3f35 100644 --- a/internal/translations/catalog.go +++ b/internal/translations/catalog.go @@ -83,17 +83,17 @@ var messageKeyToIndex = map[string]int{ "Visit the URL for authorization: %v": 32, "Yes": 38, "a service with this name already exists": 4, - "backend %s does not implement %s": 13, - "done": 37, - "error": 54, - "exporting": 35, - "importing": 36, - "invalid timestamp string \"%v\"": 49, - "key must only consist of A-Za-z0-9_-": 52, - "no configuration file defined, cannot write config": 51, - "no existing service configurations": 40, - "no service configuration \"%v\"": 53, - "unknown backend \"%s\"": 14, + "aborted": 54, + "backend %s does not implement %s": 13, + "done": 37, + "exporting": 35, + "importing": 36, + "invalid timestamp string \"%v\"": 49, + "key must only consist of A-Za-z0-9_-": 52, + "no configuration file defined, cannot write config": 51, + "no existing service configurations": 40, + "no service configuration \"%v\"": 53, + "unknown backend \"%s\"": 14, } var deIndex = []uint32{ // 56 elements @@ -161,10 +161,10 @@ var enIndex = []uint32{ // 56 elements 0x00000432, 0x00000455, 0x0000045d, 0x00000465, 0x0000048f, 0x000004ad, 0x000004d7, 0x00000510, 0x0000051c, 0x00000529, 0x0000054a, 0x0000056a, - 0x0000059d, 0x000005c2, 0x000005e3, 0x000005e9, + 0x0000059d, 0x000005c2, 0x000005e3, 0x000005eb, } // Size: 248 bytes -const enData string = "" + // Size: 1513 bytes +const enData string = "" + // Size: 1515 bytes "\x04\x01\x09\x00\x0e\x02export: %[1]s\x04\x01\x09\x01\x0a\x0e\x02import:" + " %[1]s\x02Failed reading config: %[1]v\x02Service name\x02a service with" + " this name already exists\x02Saved service %[1]v using backend %[2]v\x02" + @@ -190,6 +190,6 @@ const enData string = "" + // Size: 1513 bytes "\x02invalid timestamp string \x22%[1]v\x22\x02Latest timestamp: %[1]v (%" + "[2]v)\x02no configuration file defined, cannot write config\x02key must " + "only consist of A-Za-z0-9_-\x02no service configuration \x22%[1]v\x22" + - "\x02error" + "\x02aborted" - // Total table size 3745 bytes (3KiB); checksum: 5C167C91 + // Total table size 3747 bytes (3KiB); checksum: 1EAA307C diff --git a/internal/translations/locales/de/out.gotext.json b/internal/translations/locales/de/out.gotext.json index 06f5f82..810655f 100644 --- a/internal/translations/locales/de/out.gotext.json +++ b/internal/translations/locales/de/out.gotext.json @@ -379,8 +379,8 @@ "fuzzy": true }, { - "id": "error", - "message": "error", + "id": "aborted", + "message": "aborted", "translation": "" }, { diff --git a/internal/translations/locales/en/out.gotext.json b/internal/translations/locales/en/out.gotext.json index 0ef12a7..6f6825f 100644 --- a/internal/translations/locales/en/out.gotext.json +++ b/internal/translations/locales/en/out.gotext.json @@ -449,9 +449,9 @@ "fuzzy": true }, { - "id": "error", - "message": "error", - "translation": "error", + "id": "aborted", + "message": "aborted", + "translation": "aborted", "translatorComment": "Copied from source.", "fuzzy": true },