From 56e15009c71fb5289749fb60c3f45f0b8e9f5d58 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 14 Dec 2025 20:14:05 +0000 Subject: [PATCH] controlpanel: use english for untranslated strings --- README.md | 2 +- copyparty/web/splash.js | 4 ++++ copyparty/web/tl/nor.js | 2 ++ scripts/tl.js | 2 ++ scripts/tl.py | 2 ++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 55606e03..8b9dee9e 100644 --- a/README.md +++ b/README.md @@ -455,7 +455,7 @@ upgrade notes * per-volume configuration; many (not all) global-options can be set as volflags, and most (not all) volflags can be set as global-options; [complete list of volflags](https://copyparty.eu/cli/#flags-help-page) * what is a volume? - * a mapping from a URL (`/music/`) to a folder on your server's local filesystem (`/home/ed/Music` or `C:\Users\ed\Music`) which can then be accessed through copyparty, depending on the permissions and options you set on it -- see [accounts and volumes](#accounts-and-volumes) + * a mapping from a URL (`/music/`) to a folder on your server's local filesystem (`C:\Users\ed\Music`) which can then be accessed through copyparty, depending on the permissions and options you set on it -- see [accounts and volumes](#accounts-and-volumes) * can I change the 🌲 spinning pine-tree loading animation? * [yeah...](https://github.com/9001/copyparty/tree/hovudstraum/docs/rice#boring-loader-spinner) :-( diff --git a/copyparty/web/splash.js b/copyparty/web/splash.js index 09d4694a..5b3543ae 100644 --- a/copyparty/web/splash.js +++ b/copyparty/web/splash.js @@ -17,6 +17,10 @@ if (window.langmod) langmod(); var d = (Ls[lang] || Ls.eng).splash; +if (Ls.eng && d !== Ls.eng.splash) + for (var k in Ls.eng.splash) + if (d[k] === undefined) + d[k] = Ls.eng.splash[k]; d.wb = d.w; diff --git a/copyparty/web/tl/nor.js b/copyparty/web/tl/nor.js index dddd1dae..e7639dc2 100644 --- a/copyparty/web/tl/nor.js +++ b/copyparty/web/tl/nor.js @@ -675,6 +675,8 @@ Ls.nor = { "ta1": "du må skrive et nytt passord først", "ta2": "gjenta for å bekrefte nytt passord:", "ta3": "fant en skrivefeil; vennligst prøv igjen", + "nop": "FEIL: Passord kan ikke være blankt", + "nou": "FEIL: Både brukernavn og passord må angis", "aa1": "innkommende:", "ab1": "skru av no304", "ac1": "skru på no304", diff --git a/scripts/tl.js b/scripts/tl.js index a8c8ea74..28146c09 100644 --- a/scripts/tl.js +++ b/scripts/tl.js @@ -702,6 +702,8 @@ Ls.hmn = { "ta1": "fill in your new password first", "ta2": "repeat to confirm new password:", "ta3": "found a typo; please try again", + "nop": "ERROR: Password cannot be blank", + "nou": "ERROR: Username and/or password cannot be blank", "aa1": "incoming files:", "ab1": "disable no304", "ac1": "enable no304", diff --git a/scripts/tl.py b/scripts/tl.py index ca890d12..52c1c54f 100755 --- a/scripts/tl.py +++ b/scripts/tl.py @@ -105,6 +105,8 @@ Ls.{lang3} = {{ "ta1": "fill in your new password first", "ta2": "repeat to confirm new password:", "ta3": "found a typo; please try again", + "nop": "ERROR: Password cannot be blank", + "nou": "ERROR: Username and/or password cannot be blank", "aa1": "incoming files:", "ab1": "disable no304", "ac1": "enable no304",