fix(i18n): WireGuard QR/.conf Buttons + Backend 'Upgrade gestartet' → Englisch
- Servers.tsx: 'QR' und '.conf' Button-Labels in t() überführt (wg.peer.qr/conf) - system.go: hardkodierter deutscher API-Response-String 'Upgrade gestartet' → 'upgrade started' (API-Responses sollen immer Englisch sein) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,7 @@ import (
|
|||||||
usersvc "git.netcell-it.de/projekte/edgeguard-native/internal/services/users"
|
usersvc "git.netcell-it.de/projekte/edgeguard-native/internal/services/users"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version = "1.1.86"
|
var version = "1.1.87"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
addr := os.Getenv("EDGEGUARD_API_ADDR")
|
addr := os.Getenv("EDGEGUARD_API_ADDR")
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"git.netcell-it.de/projekte/edgeguard-native/internal/services/setup"
|
"git.netcell-it.de/projekte/edgeguard-native/internal/services/setup"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version = "1.1.86"
|
var version = "1.1.87"
|
||||||
|
|
||||||
const usage = `edgeguard-ctl — EdgeGuard CLI
|
const usage = `edgeguard-ctl — EdgeGuard CLI
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import (
|
|||||||
"git.netcell-it.de/projekte/edgeguard-native/internal/services/tlscerts"
|
"git.netcell-it.de/projekte/edgeguard-native/internal/services/tlscerts"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version = "1.1.86"
|
var version = "1.1.87"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// renewTickInterval — how often we re-evaluate expiring certs.
|
// renewTickInterval — how often we re-evaluate expiring certs.
|
||||||
|
|||||||
@@ -834,7 +834,7 @@ rm -f /var/lib/edgeguard/upgrade.sh
|
|||||||
c.JSON(http.StatusAccepted, response.Envelope{
|
c.JSON(http.StatusAccepted, response.Envelope{
|
||||||
Data: gin.H{"status": "upgrading", "unit": unitName},
|
Data: gin.H{"status": "upgrading", "unit": unitName},
|
||||||
Error: nil,
|
Error: nil,
|
||||||
Message: "Upgrade gestartet",
|
Message: "upgrade started",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -692,6 +692,8 @@
|
|||||||
"pskOn": "PSK generieren",
|
"pskOn": "PSK generieren",
|
||||||
"pskOff": "kein PSK",
|
"pskOff": "kein PSK",
|
||||||
"downloadConf": "wg-quick.conf herunterladen",
|
"downloadConf": "wg-quick.conf herunterladen",
|
||||||
|
"qr": "QR",
|
||||||
|
"conf": ".conf",
|
||||||
"qrTitle": "WireGuard-QR",
|
"qrTitle": "WireGuard-QR",
|
||||||
"qrHint": "Mit der WireGuard-App (iOS/Android) scannen: \"Tunnel hinzufügen\" → \"QR-Code scannen\". Endpoint im Download-Conf bitte vor Verwendung anpassen.",
|
"qrHint": "Mit der WireGuard-App (iOS/Android) scannen: \"Tunnel hinzufügen\" → \"QR-Code scannen\". Endpoint im Download-Conf bitte vor Verwendung anpassen.",
|
||||||
"online": "Online",
|
"online": "Online",
|
||||||
|
|||||||
@@ -692,6 +692,8 @@
|
|||||||
"pskOn": "Generate PSK",
|
"pskOn": "Generate PSK",
|
||||||
"pskOff": "no PSK",
|
"pskOff": "no PSK",
|
||||||
"downloadConf": "Download wg-quick.conf",
|
"downloadConf": "Download wg-quick.conf",
|
||||||
|
"qr": "QR",
|
||||||
|
"conf": ".conf",
|
||||||
"qrTitle": "WireGuard QR",
|
"qrTitle": "WireGuard QR",
|
||||||
"qrHint": "Scan with the WireGuard app (iOS/Android): \"Add tunnel\" → \"Scan QR code\". Replace the Endpoint placeholder in the downloaded conf before use.",
|
"qrHint": "Scan with the WireGuard app (iOS/Android): \"Add tunnel\" → \"Scan QR code\". Replace the Endpoint placeholder in the downloaded conf before use.",
|
||||||
"online": "Online",
|
"online": "Online",
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ function PeerDrawer({ iface, onClose }: PeerDrawerProps) {
|
|||||||
<Space size={4}>
|
<Space size={4}>
|
||||||
{row.has_private_key && (
|
{row.has_private_key && (
|
||||||
<>
|
<>
|
||||||
<Button size="small" type="text" icon={<QrcodeOutlined />} onClick={() => setQrPeer(row)}>QR</Button>
|
<Button size="small" type="text" icon={<QrcodeOutlined />} onClick={() => setQrPeer(row)}>{t('wg.peer.qr')}</Button>
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -451,7 +451,7 @@ function PeerDrawer({ iface, onClose }: PeerDrawerProps) {
|
|||||||
href={`/api/v1/wireguard/peers/${row.id}/config`}
|
href={`/api/v1/wireguard/peers/${row.id}/config`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title={t('wg.peer.downloadConf')}
|
title={t('wg.peer.downloadConf')}
|
||||||
>.conf</Button>
|
>{t('wg.peer.conf')}</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<ActionButtons
|
<ActionButtons
|
||||||
|
|||||||
Reference in New Issue
Block a user