Mark user interface strings

For now exclude command help, as cobra itself is not localizable yet.
This commit is contained in:
Philipp Wolfer 2023-12-09 16:43:14 +01:00
parent 511b71b909
commit d6ca8d33f7
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
27 changed files with 1005 additions and 95 deletions

View file

@ -1,6 +1,82 @@
{
"language": "de",
"messages": [
{
"id": "Authenticate a service",
"message": "Authenticate a service",
"translation": "An einem Service anmelden"
},
{
"id": "For backends requiring authentication this command can be used to authenticate.\n\nAuthentication is always done per configured service. That means you can have\nmultiple services using the same backend but different authentication.",
"message": "For backends requiring authentication this command can be used to authenticate.\n\nAuthentication is always done per configured service. That means you can have\nmultiple services using the same backend but different authentication.",
"translation": ""
},
{
"id": "failed loading service configuration",
"message": "failed loading service configuration",
"translation": ""
},
{
"id": "Visit the URL for authorization: {Url}",
"message": "Visit the URL for authorization: {Url}",
"translation": "",
"placeholders": [
{
"id": "Url",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "authUrl.Url"
}
]
},
{
"id": "Error: OAuth state mismatch",
"message": "Error: OAuth state mismatch",
"translation": ""
},
{
"id": "Access token received, you can use {Name} now.",
"message": "Access token received, you can use {Name} now.",
"translation": "",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "serviceConfig.Name"
}
]
},
{
"id": "service configuration (required)",
"message": "service configuration (required)",
"translation": "Servicekonfiguration (notwendig)"
},
{
"id": "exporting",
"message": "exporting",
"translation": "exportiere",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "importing",
"message": "importing",
"translation": "importiere",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "done",
"message": "done",
"translation": "fertig",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Transferring {Entity} from {SourceName} to {TargetName}...",
"message": "Transferring {Entity} from {SourceName} to {TargetName}...",
@ -159,27 +235,6 @@
"expr": "result.LastTimestamp.Unix()"
}
]
},
{
"id": "exporting",
"message": "exporting",
"translatorComment": "Copied from source.",
"fuzzy": true,
"translation": "exportiere"
},
{
"id": "importing",
"message": "importing",
"translatorComment": "Copied from source.",
"fuzzy": true,
"translation": "importiere"
},
{
"id": "done",
"message": "done",
"translatorComment": "Copied from source.",
"fuzzy": true,
"translation": "fertig"
}
]
}

View file

@ -1,6 +1,295 @@
{
"language": "de",
"messages": [
{
"id": "export: {ExportCapabilities__}",
"message": "export: {ExportCapabilities__}",
"translation": "",
"placeholders": [
{
"id": "ExportCapabilities__",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "strings.Join(info.ExportCapabilities, \", \")"
}
]
},
{
"id": "import: {ImportCapabilities__}",
"message": "import: {ImportCapabilities__}",
"translation": "",
"placeholders": [
{
"id": "ImportCapabilities__",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "strings.Join(info.ImportCapabilities, \", \")"
}
]
},
{
"id": "Failed reading config: {Err}",
"message": "Failed reading config: {Err}",
"translation": "",
"placeholders": [
{
"id": "Err",
"string": "%[1]v",
"type": "error",
"underlyingType": "interface{Error() string}",
"argNum": 1,
"expr": "err"
}
]
},
{
"id": "Service name",
"message": "Service name",
"translation": ""
},
{
"id": "a service with this name already exists",
"message": "a service with this name already exists",
"translation": ""
},
{
"id": "Saved service {Name} using backend {Backend}",
"message": "Saved service {Name} using backend {Backend}",
"translation": "",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "service.Name"
},
{
"id": "Backend",
"string": "%[2]v",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "service.Backend"
}
]
},
{
"id": "failed loading service configuration",
"message": "failed loading service configuration",
"translation": ""
},
{
"id": "Visit the URL for authorization: {Url}",
"message": "Visit the URL for authorization: {Url}",
"translation": "",
"placeholders": [
{
"id": "Url",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "authUrl.Url"
}
]
},
{
"id": "Error: OAuth state mismatch",
"message": "Error: OAuth state mismatch",
"translation": ""
},
{
"id": "Access token received, you can use {Name} now.",
"message": "Access token received, you can use {Name} now.",
"translation": "",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "serviceConfig.Name"
}
]
},
{
"id": "Delete the service configuration \"{Service}\"?",
"message": "Delete the service configuration \"{Service}\"?",
"translation": "",
"placeholders": [
{
"id": "Service",
"string": "%[1]v",
"type": "go.uploadedlobster.com/scotty/internal/config.ServiceConfig",
"underlyingType": "struct{Name string; Backend string; ConfigValues map[string]any}",
"argNum": 1,
"expr": "service"
}
]
},
{
"id": "Aborted",
"message": "Aborted",
"translation": ""
},
{
"id": "Service \"{Name}\" deleted",
"message": "Service \"{Name}\" deleted",
"translation": "",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "service.Name"
}
]
},
{
"id": "Updated service {Name} using backend {Backend}",
"message": "Updated service {Name} using backend {Backend}",
"translation": "",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "service.Name"
},
{
"id": "Backend",
"string": "%[2]v",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "service.Backend"
}
]
},
{
"id": "backend: {Backend}",
"message": "backend: {Backend}",
"translation": "",
"placeholders": [
{
"id": "Backend",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "s.Backend"
}
]
},
{
"id": "Token received, you can close this window now.",
"message": "Token received, you can close this window now.",
"translation": ""
},
{
"id": "backend {Backend} does not implement {InterfaceName}",
"message": "backend {Backend} does not implement {InterfaceName}",
"translation": "",
"placeholders": [
{
"id": "Backend",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "config.Backend"
},
{
"id": "InterfaceName",
"string": "%[2]s",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "interfaceName"
}
]
},
{
"id": "unknown backend \"{BackendName}\"",
"message": "unknown backend \"{BackendName}\"",
"translation": "",
"placeholders": [
{
"id": "BackendName",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "backendName"
}
]
},
{
"id": "Client ID",
"message": "Client ID",
"translation": ""
},
{
"id": "Client secret",
"message": "Client secret",
"translation": ""
},
{
"id": "Server URL",
"message": "Server URL",
"translation": ""
},
{
"id": "User name",
"message": "User name",
"translation": ""
},
{
"id": "Access token",
"message": "Access token",
"translation": ""
},
{
"id": "File path",
"message": "File path",
"translation": ""
},
{
"id": "Playlist title",
"message": "Playlist title",
"translation": ""
},
{
"id": "Unique playlist identifier",
"message": "Unique playlist identifier",
"translation": ""
},
{
"id": "Disable auto correction of submitted listens",
"message": "Disable auto correction of submitted listens",
"translation": ""
},
{
"id": "Include skipped listens",
"message": "Include skipped listens",
"translation": ""
},
{
"id": "Append to file",
"message": "Append to file",
"translation": ""
},
{
"id": "exporting",
"message": "exporting",
@ -22,6 +311,31 @@
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Yes",
"message": "Yes",
"translation": ""
},
{
"id": "No",
"message": "No",
"translation": ""
},
{
"id": "no existing service configurations",
"message": "no existing service configurations",
"translation": ""
},
{
"id": "Service",
"message": "Service",
"translation": ""
},
{
"id": "Backend",
"message": "Backend",
"translation": ""
},
{
"id": "Transferring {Entity} from {SourceName} to {TargetName}...",
"message": "Transferring {Entity} from {SourceName} to {TargetName}...",
@ -180,6 +494,31 @@
"expr": "result.LastTimestamp.Unix()"
}
]
},
{
"id": "no configuration file defined, cannot write config",
"message": "no configuration file defined, cannot write config",
"translation": ""
},
{
"id": "key must only consist of A-Za-z0-9_-",
"message": "key must only consist of A-Za-z0-9_-",
"translation": ""
},
{
"id": "no service configuration \"{Name}\"",
"message": "no service configuration \"{Name}\"",
"translation": "",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "name"
}
]
}
]
}

View file

@ -1,6 +1,353 @@
{
"language": "en",
"messages": [
{
"id": "export: {ExportCapabilities__}",
"message": "export: {ExportCapabilities__}",
"translation": "export: {ExportCapabilities__}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "ExportCapabilities__",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "strings.Join(info.ExportCapabilities, \", \")"
}
],
"fuzzy": true
},
{
"id": "import: {ImportCapabilities__}",
"message": "import: {ImportCapabilities__}",
"translation": "import: {ImportCapabilities__}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "ImportCapabilities__",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "strings.Join(info.ImportCapabilities, \", \")"
}
],
"fuzzy": true
},
{
"id": "Failed reading config: {Err}",
"message": "Failed reading config: {Err}",
"translation": "Failed reading config: {Err}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Err",
"string": "%[1]v",
"type": "error",
"underlyingType": "interface{Error() string}",
"argNum": 1,
"expr": "err"
}
],
"fuzzy": true
},
{
"id": "Service name",
"message": "Service name",
"translation": "Service name",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "a service with this name already exists",
"message": "a service with this name already exists",
"translation": "a service with this name already exists",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Saved service {Name} using backend {Backend}",
"message": "Saved service {Name} using backend {Backend}",
"translation": "Saved service {Name} using backend {Backend}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "service.Name"
},
{
"id": "Backend",
"string": "%[2]v",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "service.Backend"
}
],
"fuzzy": true
},
{
"id": "failed loading service configuration",
"message": "failed loading service configuration",
"translation": "failed loading service configuration",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"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",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "authUrl.Url"
}
],
"fuzzy": true
},
{
"id": "Error: OAuth state mismatch",
"message": "Error: OAuth state mismatch",
"translation": "Error: OAuth state mismatch",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Access token received, you can use {Name} now.",
"message": "Access token received, you can use {Name} now.",
"translation": "Access token received, you can use {Name} now.",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "serviceConfig.Name"
}
],
"fuzzy": true
},
{
"id": "Delete the service configuration \"{Service}\"?",
"message": "Delete the service configuration \"{Service}\"?",
"translation": "Delete the service configuration \"{Service}\"?",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Service",
"string": "%[1]v",
"type": "go.uploadedlobster.com/scotty/internal/config.ServiceConfig",
"underlyingType": "struct{Name string; Backend string; ConfigValues map[string]any}",
"argNum": 1,
"expr": "service"
}
],
"fuzzy": true
},
{
"id": "Aborted",
"message": "Aborted",
"translation": "Aborted",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Service \"{Name}\" deleted",
"message": "Service \"{Name}\" deleted",
"translation": "Service \"{Name}\" deleted",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "service.Name"
}
],
"fuzzy": true
},
{
"id": "Updated service {Name} using backend {Backend}",
"message": "Updated service {Name} using backend {Backend}",
"translation": "Updated service {Name} using backend {Backend}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "service.Name"
},
{
"id": "Backend",
"string": "%[2]v",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "service.Backend"
}
],
"fuzzy": true
},
{
"id": "backend: {Backend}",
"message": "backend: {Backend}",
"translation": "backend: {Backend}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Backend",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "s.Backend"
}
],
"fuzzy": true
},
{
"id": "Token received, you can close this window now.",
"message": "Token received, you can close this window now.",
"translation": "Token received, you can close this window now.",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "backend {Backend} does not implement {InterfaceName}",
"message": "backend {Backend} does not implement {InterfaceName}",
"translation": "backend {Backend} does not implement {InterfaceName}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Backend",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "config.Backend"
},
{
"id": "InterfaceName",
"string": "%[2]s",
"type": "string",
"underlyingType": "string",
"argNum": 2,
"expr": "interfaceName"
}
],
"fuzzy": true
},
{
"id": "unknown backend \"{BackendName}\"",
"message": "unknown backend \"{BackendName}\"",
"translation": "unknown backend \"{BackendName}\"",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "BackendName",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "backendName"
}
],
"fuzzy": true
},
{
"id": "Client ID",
"message": "Client ID",
"translation": "Client ID",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Client secret",
"message": "Client secret",
"translation": "Client secret",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Server URL",
"message": "Server URL",
"translation": "Server URL",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "User name",
"message": "User name",
"translation": "User name",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Access token",
"message": "Access token",
"translation": "Access token",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "File path",
"message": "File path",
"translation": "File path",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Playlist title",
"message": "Playlist title",
"translation": "Playlist title",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Unique playlist identifier",
"message": "Unique playlist identifier",
"translation": "Unique playlist identifier",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Disable auto correction of submitted listens",
"message": "Disable auto correction of submitted listens",
"translation": "Disable auto correction of submitted listens",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Include skipped listens",
"message": "Include skipped listens",
"translation": "Include skipped listens",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Append to file",
"message": "Append to file",
"translation": "Append to file",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "exporting",
"message": "exporting",
@ -22,6 +369,41 @@
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Yes",
"message": "Yes",
"translation": "Yes",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "No",
"message": "No",
"translation": "No",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "no existing service configurations",
"message": "no existing service configurations",
"translation": "no existing service configurations",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Service",
"message": "Service",
"translation": "Service",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Backend",
"message": "Backend",
"translation": "Backend",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Transferring {Entity} from {SourceName} to {TargetName}...",
"message": "Transferring {Entity} from {SourceName} to {TargetName}...",
@ -194,6 +576,37 @@
}
],
"fuzzy": true
},
{
"id": "no configuration file defined, cannot write config",
"message": "no configuration file defined, cannot write config",
"translation": "no configuration file defined, cannot write config",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "key must only consist of A-Za-z0-9_-",
"message": "key must only consist of A-Za-z0-9_-",
"translation": "key must only consist of A-Za-z0-9_-",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "no service configuration \"{Name}\"",
"message": "no service configuration \"{Name}\"",
"translation": "no service configuration \"{Name}\"",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Name",
"string": "%[1]v",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "name"
}
],
"fuzzy": true
}
]
}