From 134902d1272576c79e5e38550eb1469a012e8d43 Mon Sep 17 00:00:00 2001 From: chishin Date: Sun, 29 Oct 2023 10:43:57 +0800 Subject: [PATCH 1/2] Add a default-site-description string --- frontend/js/i18n/messages.json | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/js/i18n/messages.json b/frontend/js/i18n/messages.json index d77351d6..44b638a3 100644 --- a/frontend/js/i18n/messages.json +++ b/frontend/js/i18n/messages.json @@ -285,6 +285,7 @@ "settings": { "title": "Settings", "default-site": "Default Site", + "default-site-description": "What to show when Nginx is hit with an unknown Host", "default-site-congratulations": "Congratulations Page", "default-site-404": "404 Page", "default-site-444": "No Response (444)", From 940d06cac90de7f39e0a1cafce4bba4ecbaafa08 Mon Sep 17 00:00:00 2001 From: chishin Date: Sun, 29 Oct 2023 10:50:45 +0800 Subject: [PATCH 2/2] Replace the 'default-site' variable 'description' with the 'i18n' configuration --- frontend/js/app/settings/default-site/main.ejs | 2 +- frontend/js/app/settings/list/item.ejs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/js/app/settings/default-site/main.ejs b/frontend/js/app/settings/default-site/main.ejs index f1c4ccf6..d74ac0bd 100644 --- a/frontend/js/app/settings/default-site/main.ejs +++ b/frontend/js/app/settings/default-site/main.ejs @@ -8,7 +8,7 @@
-
<%- description %>
+
<%- i18n('settings', 'default-site-description') %>