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"
}
]
}
]
}