Translate user-facing docs and node help to English

README, NODES.md, install scripts, palette help text, and example flows — node .js logic unchanged.
This commit is contained in:
root
2026-08-22 17:36:38 +02:00
parent 4fb614be87
commit 126865cf13
19 changed files with 406 additions and 566 deletions
+32 -33
View File
@@ -1,82 +1,81 @@
# nextcloud-collabora-nodered
Collabora/Nextcloud Office-noder för **befintlig** `nextcloud-node-red` på port **1880**.
Collabora / Nextcloud Office nodes for your **existing** `nextcloud-node-red` on port **1880**.
Skapar **ingen** ny Node-RED-container.
Does **not** create a new Node-RED container.
## Standard: integrate (inte sidecar)
## Default: integrate (not sidecar)
**INSTALL_MODE=integrate** (default) patchar och bygger om befintlig `nextcloud-node-red` på **:1880**.
Ingen ny container, ingen port 1881. Sidecar kräver uttryckligen `INSTALL_MODE=sidecar`.
**INSTALL_MODE=integrate** (default) patches and rebuilds the existing `nextcloud-node-red` on **:1880**.
No extra container, no port 1881. Sidecar only if you explicitly set `INSTALL_MODE=sidecar`.
## Installation (cloud / valfri VM)
## Quick install
```bash
curl -fsSL https://kode.hannesahlin.se/n3wk/nextcloud-collabora-nodered/raw/branch/main/bootstrap-install.sh | sudo -u ncadmin bash
```
Det skriptet:
1. Klonar detta repo till `/home/ncadmin/nextcloud-collabora-nodered`
2. Kopierar noder till `/home/ncadmin/nextcloud-node-red/nodes/nextcloud-collabora/`
3. Patchar `Dockerfile` + `entrypoint.sh` i nextcloud-node-red
4. Bygger om **samma** `nextcloud-node-red`-image och startar om containern
5. Ansluter `nextcloud-node-red` till Docker `bridge` så CODE (`172.17.0.2:9980`) nås
That script:
1. Clones this repo
2. Copies nodes into your `nextcloud-node-red` tree
3. Patches `Dockerfile` + `entrypoint.sh`
4. Rebuilds the **same** image and restarts the container
5. Connects Node-RED to Docker `bridge` so CODE is reachable
## Uppdatera noder
## Update nodes
```bash
cd /home/ncadmin/nextcloud-collabora-nodered
cd /path/to/nextcloud-collabora-nodered
git pull
./install.sh
```
## Manuell integration
## Manual integration
```bash
cd /home/ncadmin/nextcloud-collabora-nodered
NODERED_DIR=/home/ncadmin/nextcloud-node-red ./scripts/integrate-into-nodered.sh
NODERED_DIR=/path/to/nextcloud-node-red ./scripts/integrate-into-nodered.sh
```
## Sidecar :1881 (ej rekommenderat)
## Sidecar :1881 (not recommended)
Endast om du uttryckligen vill separat instans:
Only if you explicitly want a separate instance:
```bash
INSTALL_MODE=sidecar docker compose --profile sidecar up -d --build
```
## Noder
## Nodes
Palett: **nextcloud collabora** — sex noder i samma lila, alla kopplade till **nc-collab-config** (kugghjul, inte flödesnod).
Palette: **nextcloud collabora** — six nodes in the same purple, all wired to **nc-collab-config** (gear icon, not a flow node).
`nc-collab-config` · `collabora-bridge` · `nc-office` · `collabora-convert` · `collabora-extract` · `collabora-transform` · `collabora-wopi`
Full förklaring och exempel: **[docs/NODES.md](docs/NODES.md)** · importera **[flows/example-flows.json](flows/example-flows.json)**
Full guide and examples: **[docs/NODES.md](docs/NODES.md)** · import **[flows/example-flows.json](flows/example-flows.json)**
## Installera på valfri Nextcloud-VM
## Install on any Nextcloud VM
Kopiera `.env.example` → `.env` och sätt minst `NEXTCLOUD_URL`. Resten detekteras:
Copy `.env.example` → `.env` and set at least `NEXTCLOUD_URL`. The rest is auto-detected:
| Variabel | Default / auto |
| Variable | Default / auto |
|----------|----------------|
| `NODERED_DIR` | compose-label eller `/home/ncadmin/nextcloud-node-red` |
| `NODERED_DIR` | compose label or common paths |
| `CODE_CONTAINER` | `code` |
| `COLLABORA_IP` | bridge-IP via `docker inspect` |
| `COLLABORA_IP` | bridge IP via `docker inspect` |
| `NODERED_CONTAINER` | `nextcloud-node-red` |
| `NODERED_PORT` | `1880` |
```bash
cd /home/ncadmin/nextcloud-collabora-nodered
cp .env.example .env # justera NEXTCLOUD_URL per VM
cp .env.example .env # set NEXTCLOUD_URL for your VM
git pull
./install.sh # root/sudo för docker compose
./install.sh # needs root/sudo for docker compose
```
## Repo
https://kode.hannesahlin.se/n3wk/nextcloud-collabora-nodered
## Dokumentation
## Documentation
- [docs/AGENT-MANUAL.md](docs/AGENT-MANUAL.md)
- [docs/INFRASTRUCTURE.md](docs/INFRASTRUCTURE.md)
- [docs/NODES.md](docs/NODES.md) — node reference and examples
- [docs/AGENT-MANUAL.md](docs/AGENT-MANUAL.md) — flow-building guide for agents
- [docs/INFRASTRUCTURE.md](docs/INFRASTRUCTURE.md) — server layout