Translate the whole site to English: English routes with 301 redirects from the Dutch paths, English UI, docs, seeds and captions, one-time live content migration
This commit is contained in:
@@ -15,7 +15,7 @@ VERBS = ("start", "stop", "run", "clear")
|
||||
def _service(name):
|
||||
service = manager.get(name)
|
||||
if service is None:
|
||||
not_found("Onbekende service")
|
||||
not_found("Unknown service")
|
||||
return service
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ async def services_command(request: Request, name: str):
|
||||
service = _service(name)
|
||||
verb = (await _payload(request)).get("verb", "")
|
||||
if verb not in VERBS:
|
||||
raise HTTPException(400, "Onbekend commando")
|
||||
raise HTTPException(400, "Unknown command")
|
||||
if verb in ("start", "stop"):
|
||||
manager.set_enabled(service.name, verb == "start")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user