Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: reanme css/html page title and fix some zh_cn translations

shuai17b88b6a4fa9
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index dd9a2d58..10134ffa 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1787,7 +1787,6 @@ ui:
seo: SEO
customize: Customize
themes: Themes
- css_html: CSS/HTML
login: Login
privileges: Privileges
plugins: Plugins
diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml
index 923f0520..f1a9f67b 100644
--- a/i18n/zh_CN.yaml
+++ b/i18n/zh_CN.yaml
@@ -1748,7 +1748,6 @@ ui:
seo: SEO
customize: 自定义
themes: 主题
- css_html: CSS/HTML
login: 登录
privileges: 特权
plugins: 插件
@@ -2112,16 +2111,13 @@ ui:
page_title: CSS 与 HTML
custom_css:
label: 自定义 CSS
- text: >
-
+ text: 这将作为 <link> 标签插入
head:
label: 头部
- text: >
-
+ text: 这将在 </head> 前插入
header:
label: 页眉
- text: >
-
+ text: 这将在 <body> 后插入
footer:
label: 页脚
text: 这将在 </body> 之前插入。
diff --git a/ui/src/pages/Admin/CssAndHtml/index.tsx b/ui/src/pages/Admin/CssAndHtml/index.tsx
index de376ad7..422659af 100644
--- a/ui/src/pages/Admin/CssAndHtml/index.tsx
+++ b/ui/src/pages/Admin/CssAndHtml/index.tsx
@@ -150,7 +150,7 @@ const Index: FC = () => {
return (
<>
- <h3 className="mb-4">{t('page_title')}</h3>
+ <h3 className="mb-4">{t('customize', { keyPrefix: 'nav_menus' })}</h3>
<SchemaForm
schema={schema}
formData={formData}