From c665c55252caee8678967a774be19a4b8ecb9cf5 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Mon, 7 Sep 2026 15:12:10 +0800 Subject: [PATCH] feat(i18n): English UI copy for EN demo pages Co-authored-by: Cursor --- public/themes/website/1/en/demo/about.html | 24 +++--- public/themes/website/1/en/demo/announce.html | 14 ++-- public/themes/website/1/en/demo/category.html | 12 +-- public/themes/website/1/en/demo/contact.html | 98 +++++++++++----------- public/themes/website/1/en/demo/download.html | 16 ++-- public/themes/website/1/en/demo/faq.html | 12 +-- public/themes/website/1/en/demo/investment.html | 40 ++++----- public/themes/website/1/en/demo/news-detail.html | 18 ++-- public/themes/website/1/en/demo/news.html | 20 ++--- public/themes/website/1/en/demo/product.html | 68 +++++++-------- public/themes/website/1/en/demo/search.html | 34 ++++---- public/themes/website/1/en/demo/single_index.html | 28 +++---- public/themes/website/1/en/demo/single_search.html | 44 +++++----- public/themes/website/1/en/demo/solution.html | 14 ++-- public/themes/website/1/en/demo/solution2.html | 26 +++--- public/themes/website/1/en/demo/video.html | 16 ++-- 16 files changed, 242 insertions(+), 242 deletions(-) diff --git a/public/themes/website/1/en/demo/about.html b/public/themes/website/1/en/demo/about.html index bd35205..48a3882 100644 --- a/public/themes/website/1/en/demo/about.html +++ b/public/themes/website/1/en/demo/about.html @@ -1,5 +1,5 @@ - + @@ -100,13 +100,13 @@

{$vo.title}

- - -
- 探索更多 + Explore more
{php}$member_idx++;{/php} {/hcTaglib:content} - diff --git a/public/themes/website/1/en/demo/announce.html b/public/themes/website/1/en/demo/announce.html index 7a35ca3..e0ac04c 100644 --- a/public/themes/website/1/en/demo/announce.html +++ b/public/themes/website/1/en/demo/announce.html @@ -1,5 +1,5 @@ - + @@ -66,13 +66,13 @@
@@ -91,7 +91,7 @@

{$vo.title}

- 探索更多 + Explore more @@ -103,7 +103,7 @@ {php} $list_empty = isHcListEmpty($hc_content ?? null); if ($list_empty) { - $empty_text = '暂无相关公告'; + $empty_text = 'No matching notices'; } {/php} {if $list_empty} diff --git a/public/themes/website/1/en/demo/category.html b/public/themes/website/1/en/demo/category.html index 54ee902..7ee25c4 100644 --- a/public/themes/website/1/en/demo/category.html +++ b/public/themes/website/1/en/demo/category.html @@ -1,5 +1,5 @@ - + {php} // var_dump($current_cate); $current_cate_id = $current_cate['id'] ?? ''; @@ -65,8 +65,8 @@ $current_cate_id = $current_cate['id'] ?? '';
-
diff --git a/public/themes/website/1/en/demo/contact.html b/public/themes/website/1/en/demo/contact.html index b954326..fe11dad 100644 --- a/public/themes/website/1/en/demo/contact.html +++ b/public/themes/website/1/en/demo/contact.html @@ -1,5 +1,5 @@ - + @@ -61,105 +61,105 @@
- 客服热线 + Hotline
{hcTaglib:setting name="company_phone" type="1" /}

{$current_cate.description}

-
+

- 填写以下信息我们 - 第一时间回复 + Fill in the information below + and we will reply promptly

- +
@@ -196,13 +196,13 @@ $(function () { var bizType = $form.find('[name="bizType"]').val(); var agree = $form.find('[name="agree"]').prop('checked'); - if (!name) { alert('请输入姓名'); return; } - if (!phone) { alert('请输入手机号'); return; } - if (!company) { alert('请输入公司名称'); return; } - if (!email) { alert('请输入邮箱'); return; } - if (!industry) { alert('请选择所属行业'); return; } - if (!bizType) { alert('请选择业务类型'); return; } - if (!agree) { alert('请阅读并同意《隐私条款》'); return; } + if (!name) { alert(t("contact.name_required")); return; } + if (!phone) { alert(t("contact.phone_required")); return; } + if (!company) { alert(t("contact.company_required")); return; } + if (!email) { alert(t("contact.email_required")); return; } + if (!industry) { alert('Please select an industry'); return; } + if (!bizType) { alert('Please select a business type'); return; } + if (!agree) { alert('Please read and agree to the Privacy Policy'); return; } // 收集表单数据(字段映射到数据库 hc_inquiry 表) var content = $form.find('[name="content"]').val().trim(); @@ -219,7 +219,7 @@ $(function () { // 禁用提交按钮,防止重复提交 submitting = true; - $submitBtn.prop('disabled', true).text('提交中...'); + $submitBtn.prop("disabled", true).text(t("contact.submitting")); // 发送请求 $.ajax({ @@ -230,17 +230,17 @@ $(function () { success: function (res) { if (res.code === 0 || res.code === 200) { $form[0].reset(); - showFormToast('提交成功,我们会尽快与您联系!'); + showFormToast(t("contact.success")); } else { - alert(res.msg || '提交失败,请稍后重试'); + alert(res.msg || t("contact.fail")); } }, error: function () { - alert('网络错误,请稍后重试'); + alert(t("contact.network_error")); }, complete: function () { submitting = false; - $submitBtn.prop('disabled', false).text('提交'); + $submitBtn.prop("disabled", false).text(t("contact.submit")); } }); diff --git a/public/themes/website/1/en/demo/download.html b/public/themes/website/1/en/demo/download.html index b8757bc..2094bea 100644 --- a/public/themes/website/1/en/demo/download.html +++ b/public/themes/website/1/en/demo/download.html @@ -1,5 +1,5 @@ - + {php}$download_keywords = input('keywords', '');{/php} @@ -64,7 +64,7 @@

{$current_cate.description}

-
+
{php} $download_cid = (string)input('cid', ''); if ($download_cid === '') { @@ -72,7 +72,7 @@ } $download_all_id = (string)($current_cate['id'] ?? ''); {/php} - + {volist name="sub_cates" id="vo"} {php} $count = getCategoryChildrenCount($vo['id']); @@ -99,21 +99,21 @@
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} {php}$dl_file = $vo['url'] ?? ($vo['thumbnail']['url'] ?? '');{/php} {/hcTaglib:contentPage} @@ -122,7 +122,7 @@ {php} $list_empty = isHcListEmpty($hc_content ?? null); if ($list_empty) { - $empty_text = '暂无相关资料'; + $empty_text = 'No matching resources'; } {/php} {if $list_empty} diff --git a/public/themes/website/1/en/demo/faq.html b/public/themes/website/1/en/demo/faq.html index 615b631..59c37c2 100644 --- a/public/themes/website/1/en/demo/faq.html +++ b/public/themes/website/1/en/demo/faq.html @@ -1,5 +1,5 @@ - + @@ -64,16 +64,16 @@
-
- +
+ {volist name="sub_cates" id="vo"} {/volist}
@@ -98,7 +98,7 @@ {php} $list_empty = isHcListEmpty($hc_content ?? null); if ($list_empty) { - $empty_text = '暂无相关问题'; + $empty_text = 'No matching FAQs'; } {/php} {if $list_empty} diff --git a/public/themes/website/1/en/demo/investment.html b/public/themes/website/1/en/demo/investment.html index 9b4d270..3037128 100644 --- a/public/themes/website/1/en/demo/investment.html +++ b/public/themes/website/1/en/demo/investment.html @@ -1,5 +1,5 @@ - + @@ -93,13 +93,13 @@

{$vo.title}

- -
- - - - + +
- 热门搜索: + Popular searches:
- - + +
- {if !empty($news[$key-1])} @@ -84,7 +84,7 @@

{$news[$key-1]['title']}

- 探索更多 + Explore more

{$sub_cates[1]['description'] ?? ''}

- - -
{/hcTaglib:allSubCategory}
-
@@ -939,7 +939,7 @@
{hcTaglib:category id="361" item="vo" field="*"} - 探索更多 + Explore more {/hcTaglib:category}
diff --git a/public/themes/website/1/en/demo/single_search.html b/public/themes/website/1/en/demo/single_search.html index aa9fa1a..78d5a9a 100644 --- a/public/themes/website/1/en/demo/single_search.html +++ b/public/themes/website/1/en/demo/single_search.html @@ -1,5 +1,5 @@ - + @@ -61,14 +61,14 @@
-

搜索

+

Search

- 热门搜索: + Popular searches:
{hcTaglib:category id="679" item="vo" field="id,title,description"} {php} @@ -101,26 +101,26 @@ $sr_tabs[$tabType] = '/search.html?' . http_build_query($query); } {/php} -
+ @@ -145,13 +145,13 @@ $sr_url = hcUrl('detail/index', ['id' => $vo['id'], 'cid' => $sr_cid]); $sr_file = $vo['url'] ?? ''; $sr_title = $vo['title'] ?? ''; - $sr_type_name = $vo['sr_tab_name'] ?? '内容'; + $sr_type_name = $vo['sr_tab_name'] ?? 'Content'; $sr_show_desc = ($sr_kind === 'news' || $sr_kind === 'content'); $sr_show_more = ($sr_kind === 'news' || $sr_kind === 'content'); {/php}
{if $sr_kind == 'video'} - {elseif $sr_kind == 'download' /} - + {elseif $sr_kind == 'announce' /} @@ -201,7 +201,7 @@ {if $sr_kind == 'video'} {$sr_title} {elseif $sr_kind == 'download' /} - {$sr_title} + {$sr_title} {elseif $sr_kind == 'announce' /} {$sr_title} {else /} @@ -219,26 +219,26 @@ {if $sr_kind == 'download'} - 立即下载 + Download {elseif $sr_kind == 'product' /} - 了解产品 + Learn more {elseif $sr_kind == 'announce' /} - 探索更多 + Explore more {elseif $sr_show_more /} - 探索更多 + Explore more @@ -252,7 +252,7 @@ {php} $list_empty = isHcListEmpty($list ?? null); if ($list_empty) { - $empty_text = '未找到相关结果,请尝试其他关键词'; + $empty_text = 'No matching results. Try another keyword'; } {/php} {if $list_empty} @@ -265,8 +265,8 @@