From 0d1bfdc02be01bb06e5c9649f176179af5e595dc Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 30 Mar 2022 17:53:14 +0530 Subject: [PATCH] easier configuration of translated instance descriptions on the home page --- customize.dist/pages.js | 2 ++ customize.dist/pages/index.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 5c2d33249..1249b1995 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -132,6 +132,8 @@ define([ customURLs[k] = value[l] || value['default']; } }); + var value = AppConfig.hostDescription; + Pages.hostDescription = (value && (value[l] || value.default)) || Msg.home_host; }()); // used for the about menu diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js index 816dbd49b..32337d9a0 100644 --- a/customize.dist/pages/index.js +++ b/customize.dist/pages/index.js @@ -122,7 +122,7 @@ define([ h('div.row.cp-page-section', h('div.col-sm-12', [ h('h2', Msg.home_host_title), - h('p'), Msg.home_host + h('p', Pages.hostDescription), ]) ), h('div.row.cp-page-section', [