| 1 | package i18n |
| 2 | |
| 3 | func init() { |
| 4 | addCatalog(en, apiEN) |
| 5 | addCatalog(nl, apiNL) |
| 6 | addCatalog(de, apiDE) |
| 7 | addCatalog(fr, apiFR) |
| 8 | } |
| 9 | |
| 10 | var apiEN = map[string]string{ |
| 11 | "err.tokenExpired": "token is expired", |
| 12 | "err.scopeName": "unknown token scope %s", |
| 13 | "err.commitEmpty": "commit has no file changes", |
| 14 | "err.apiAuth": "a personal access token is required", |
| 15 | "err.apiScope": "this token does not have the required scope", |
| 16 | "err.jobState": "the job is not in a state that allows this action", |
| 17 | "err.mrBlocked": "%s", |
| 18 | "info.api.title": "API", |
| 19 | "info.api.lead": "Everything the web interface can do is also available under /api/v1. The machine-readable description is the OpenAPI document.", |
| 20 | "info.api.auth": "Send the token as Authorization: Bearer, as the PRIVATE-TOKEN header, or as the password of HTTP basic authentication. Git over HTTP uses the same token. Scopes are api, read_api, read_repository, write_repository and runners (runner management only). api covers the whole API and git. A token can expire.", |
| 21 | "info.api.ssh": "An SSH key can call the same handlers: ssh git@host api METHOD /api/v1/... with a JSON body on stdin. The exit status is 0 when the HTTP status is below 400. The numeric status is written to stderr.", |
| 22 | "info.api.spec": "OpenAPI", |
| 23 | } |
| 24 | |
| 25 | var apiNL = map[string]string{ |
| 26 | "err.tokenExpired": "token is verlopen", |
| 27 | "err.scopeName": "onbekende tokenscope %s", |
| 28 | "err.commitEmpty": "commit heeft geen bestandswijzigingen", |
| 29 | "err.apiAuth": "een persoonlijk toegangstoken is verplicht", |
| 30 | "err.apiScope": "dit token heeft de vereiste scope niet", |
| 31 | "err.jobState": "de job staat niet in een toestand die deze actie toelaat", |
| 32 | "err.mrBlocked": "%s", |
| 33 | "info.api.title": "API", |
| 34 | "info.api.lead": "Alles wat de webinterface kan, kan ook via /api/v1. De machine-leesbare beschrijving is het OpenAPI-document.", |
| 35 | "info.api.auth": "Stuur het token als Authorization: Bearer, als PRIVATE-TOKEN-header, of als wachtwoord van HTTP basic. Git over HTTP gebruikt hetzelfde token. Scopes zijn api, read_api, read_repository, write_repository en runners (alleen runnerbeheer). api dekt de hele API en git. Een token kan verlopen.", |
| 36 | "info.api.ssh": "Een SSH-sleutel roept dezelfde handlers aan: ssh git@host api METHOD /api/v1/... met een JSON-body op stdin. De exitstatus is 0 als de HTTP-status onder 400 ligt. Het statusgetal gaat naar stderr.", |
| 37 | "info.api.spec": "OpenAPI", |
| 38 | } |
| 39 | |
| 40 | var apiDE = map[string]string{ |
| 41 | "err.tokenExpired": "Token ist abgelaufen", |
| 42 | "err.scopeName": "unbekannter Token-Scope %s", |
| 43 | "err.commitEmpty": "Commit hat keine Dateiänderungen", |
| 44 | "err.apiAuth": "ein persönliches Zugriffstoken ist erforderlich", |
| 45 | "err.apiScope": "dieses Token hat den nötigen Scope nicht", |
| 46 | "err.jobState": "der Job ist nicht in einem Zustand, der diese Aktion erlaubt", |
| 47 | "err.mrBlocked": "%s", |
| 48 | "info.api.title": "API", |
| 49 | "info.api.lead": "Alles, was die Weboberfläche kann, geht auch über /api/v1. Die maschinenlesbare Beschreibung ist das OpenAPI-Dokument.", |
| 50 | "info.api.auth": "Sende das Token als Authorization: Bearer, als PRIVATE-TOKEN-Header oder als Passwort von HTTP Basic. Git über HTTP nutzt dasselbe Token. Scopes sind api, read_api, read_repository, write_repository und runners (nur Runner-Verwaltung). api deckt die ganze API und Git ab. Ein Token kann ablaufen.", |
| 51 | "info.api.ssh": "Ein SSH-Schlüssel ruft dieselben Handler auf: ssh git@host api METHOD /api/v1/... mit einem JSON-Body auf stdin. Der Exit-Status ist 0, wenn der HTTP-Status unter 400 liegt. Die Statuszahl geht nach stderr.", |
| 52 | "info.api.spec": "OpenAPI", |
| 53 | } |
| 54 | |
| 55 | var apiFR = map[string]string{ |
| 56 | "err.tokenExpired": "le jeton a expiré", |
| 57 | "err.scopeName": "portée de jeton inconnue %s", |
| 58 | "err.commitEmpty": "le commit ne modifie aucun fichier", |
| 59 | "err.apiAuth": "un jeton d'accès personnel est obligatoire", |
| 60 | "err.apiScope": "ce jeton n'a pas la portée requise", |
| 61 | "err.jobState": "le job n'est pas dans un état qui permet cette action", |
| 62 | "err.mrBlocked": "%s", |
| 63 | "info.api.title": "API", |
| 64 | "info.api.lead": "Tout ce que l'interface web sait faire est aussi disponible sous /api/v1. La description lisible par une machine est le document OpenAPI.", |
| 65 | "info.api.auth": "Envoie le jeton dans Authorization: Bearer, dans l'en-tête PRIVATE-TOKEN, ou comme mot de passe de l'authentification HTTP basic. Git via HTTP utilise le même jeton. Les portées sont api, read_api, read_repository, write_repository et runners (gestion des runners uniquement). api couvre toute l'API et git. Un jeton peut expirer.", |
| 66 | "info.api.ssh": "Une clé SSH appelle les mêmes handlers : ssh git@host api METHOD /api/v1/... avec un corps JSON sur stdin. Le code de sortie est 0 si le statut HTTP est inférieur à 400. Le numéro de statut va sur stderr.", |
| 67 | "info.api.spec": "OpenAPI", |
| 68 | } |