Browse Source

feat(i18n): English copy for EN demo header/footer/mask/empty

Co-authored-by: Cursor <cursoragent@cursor.com>
master
peijunlei 2 weeks ago
parent
commit
ee1e4d5497
  1. 2
      public/themes/website/1/en/demo/components/empty.html
  2. 28
      public/themes/website/1/en/demo/components/footer.html
  3. 42
      public/themes/website/1/en/demo/components/header.html
  4. 12
      public/themes/website/1/en/demo/components/mask.html

2
public/themes/website/1/en/demo/components/empty.html

@ -1,6 +1,6 @@
{php}
if (!isset($empty_text) || $empty_text === '') {
$empty_text = '暂无相关内容';
$empty_text = 'No related content';
}
{/php}
<div class="s-empty" role="status">

28
public/themes/website/1/en/demo/components/footer.html

@ -3,28 +3,28 @@
<div class="site-footer__inner">
<div class="site-footer__main">
<div class="site-footer__brand">
<div class="site-footer__logo" aria-label="睿能科技">
<img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="RAYNEN 睿能科技" width="252" height="26" />
<div class="site-footer__logo" aria-label="RAYNEN Technology">
<img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="RAYNEN Technology" width="252" height="26" />
</div>
<p class="site-footer__stock">股票代码: 603933</p>
<p class="site-footer__quote" aria-label="股票行情" data-stock-quote data-stock-code="603933">
<p class="site-footer__stock">Stock code: 603933</p>
<p class="site-footer__quote" aria-label="Stock quote" data-stock-quote data-stock-code="603933">
<span class="site-footer__quote-price" data-stock="price" style="{$priceColor}">{$stockInfo.price}</span>
<span class="site-footer__quote-unit" data-stock="unit" style="{$priceColor}"></span>
<span class="site-footer__quote-unit" data-stock="unit" style="{$priceColor}">Yuan</span>
<span class="site-footer__quote-change" data-stock="change" style="{$priceColor}">{$stockInfo.change}&nbsp;&nbsp;{$stockInfo.changePercent}</span>
</p>
<p class="site-footer__follow">关注我们:</p>
<p class="site-footer__follow">Follow us:</p>
<div class="site-footer__qrs">
<div class="site-footer__qr">
<img src="{hcTaglib:setting name='wechat_code' type='2' /}" alt="官方微信" />
<span>官方微信</span>
<img src="{hcTaglib:setting name='wechat_code' type='2' /}" alt="Official WeChat" />
<span>Official WeChat</span>
</div>
<div class="site-footer__qr">
<img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="官方视频号" />
<span>官方视频号</span>
<img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="Official Channels" />
<span>Official Channels</span>
</div>
</div>
</div>
<nav class="site-footer__cols" aria-label="底部导航">
<nav class="site-footer__cols" aria-label="Footer navigation">
{hcTaglib:nav cid="48" max-level="2" item="vo" name="hc_nav" sort="sort asc"}
{php}
$ft_is_product = ((int)($vo['category_id'] ?? 0) === 333);
@ -49,11 +49,11 @@
</nav>
</div>
<div class="site-footer__bottom">
<p class="site-footer__copyright">Copyright 2026 {hcTaglib:setting name="company_name" type="1" /} 版权所有 | {hcTaglib:setting name="icp" type="2" /} | <img
<p class="site-footer__copyright">Copyright 2026 {hcTaglib:setting name="company_name" type="1" /} All rights reserved | {hcTaglib:setting name="icp" type="2" /} | <img
class="site-footer__gongan" src="/themes/dist_static/static/images/gongan-DdFBmJbc.png" alt="" /> {hcTaglib:setting name="gwa" type="2" /}</p>
<div class="site-footer__legal">
<a href="/sitemap.html">网站地图</a>
<a href="/privacy.html">隐私声明</a>
<a href="/sitemap.html">Sitemap</a>
<a href="/privacy.html">Privacy Policy</a>
</div>
</div>
</div>

42
public/themes/website/1/en/demo/components/header.html

@ -38,8 +38,8 @@
</span>
<span>{hcTaglib:setting name="company_phone" type="1" /}</span>
</a>
<div class="site-header__socials" aria-label="社交账号">
<span class="site-header__social site-header__social--wechat" tabindex="0" aria-label="微信" role="button">
<div class="site-header__socials" aria-label="Social accounts">
<span class="site-header__social site-header__social--wechat" tabindex="0" aria-label="WeChat" role="button">
<span class="site-header__icon" aria-hidden="true">
<svg
viewBox="0 0 16 16"
@ -59,7 +59,7 @@
</svg>
</span>
<span class="site-header__wechat-pop" role="tooltip">
<img src="{hcTaglib:setting name='wechat_code' type='2' /}" alt="官方微信" width="120" height="120" />
<img src="{hcTaglib:setting name='wechat_code' type='2' /}" alt="Official WeChat" width="120" height="120" />
</span>
</span>
{php}
@ -68,7 +68,7 @@
$sina_url = $content_arr['1'] ?? '';
$zhihu_url = $content_arr['2'] ?? '';
{/php}
<a class="site-header__social" href="{$douyin_url}" aria-label="抖音" target="_blank">
<a class="site-header__social" href="{$douyin_url}" aria-label="Douyin" target="_blank">
<span class="site-header__icon" aria-hidden="true">
<svg
viewBox="0 0 16 16"
@ -88,7 +88,7 @@
</svg>
</span>
</a>
<a class="site-header__social" href="{$sina_url}" aria-label="微博" target="_blank">
<a class="site-header__social" href="{$sina_url}" aria-label="Weibo" target="_blank">
<span class="site-header__icon" aria-hidden="true">
<svg
viewBox="0 0 16 16"
@ -108,7 +108,7 @@
</svg>
</span>
</a>
<a class="site-header__social" href="{$zhihu_url}" aria-label="知乎" target="_blank">
<a class="site-header__social" href="{$zhihu_url}" aria-label="Zhihu" target="_blank">
<span class="site-header__icon" aria-hidden="true">
<svg
viewBox="0 0 16 16"
@ -137,7 +137,7 @@
<button
type="button"
class="site-header__lang"
aria-label="切换语言"
aria-label="Switch language"
data-lang-default="{$hc_default_lang}"
data-lang-current="{$hc_lang}"
>
@ -165,23 +165,23 @@
</button>
</div>
<div class="site-header__main">
<a href="/" class="header-logo" aria-label="睿能科技">
<a href="/" class="header-logo" aria-label="RAYNEN Technology">
<img
class="header-logo__img--default"
src="{hcTaglib:setting name='logo' type='2' /}"
alt="RAYNEN 睿能科技"
alt="RAYNEN Technology"
width="252"
height="26"
/>
<img
class="header-logo__img--dark"
src="{hcTaglib:setting name='dark_logo' type='2' /}"
alt="RAYNEN 睿能科技"
alt="RAYNEN Technology"
width="252"
height="26"
/>
</a>
<nav class="site-header__nav" aria-label="主导航">
<nav class="site-header__nav" aria-label="Main navigation">
<ul>
{hcTaglib:nav cid="47" max-level="2" item="vo" name="hc_header_nav" sort="sort asc"}
{php}
@ -237,7 +237,7 @@
<div class="nav-mega product" id="nav-mega-product">
<div class="nav-mega__inner">
<div class="nav-mega__dropdown-content product">
<aside class="nav-mega__cats" aria-label="产品分类">
<aside class="nav-mega__cats" aria-label="Product categories">
{hcTaglib:subcategory pid="333" item="vo" sort=""}
<button type="button" class="nav-mega__cat {if $key==1}is-active{/if}" data-mega-cat="product_{$key}">
@ -329,7 +329,7 @@
<div class="nav-mega__subgroup">
<div class="nav-mega__subgroup-head">
<button type="button" class="nav-mega__subgroup-title">{$vo33.title}</button>
<button type="button" class="nav-mega__subgroup-toggle" aria-expanded="false" aria-label="展开/收起">
<button type="button" class="nav-mega__subgroup-toggle" aria-expanded="false" aria-label="Expand/collapse">
<svg viewBox="-1 -1 8.59082 13.0605" xmlns="http://www.w3.org/2000/svg" fill="none">
<path d="M0 4.12464e-05L5 5.00004L10 0" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" transform="matrix(0,-1,1,0,0.530273,10.5303)" />
</svg>
@ -395,7 +395,7 @@
</svg>
</span>
</div>
<p class="nav-mega__promo-desc">了解睿能最新展会信息</p>
<p class="nav-mega__promo-desc">Learn about RAYNEN’s latest events</p>
</a>
</div>
</div>
@ -413,7 +413,7 @@
aria-expanded="false"
aria-controls="nav-mega-solution"
>
解决方案
Solutions
<span class="site-header__chevron" aria-hidden="true">
<svg
viewBox="0 0 11.2734 6.90918"
@ -509,10 +509,10 @@
class="site-header__search-input"
type="search"
name="q"
placeholder="搜索关键词"
placeholder="Search keywords"
autocomplete="off"
/>
<button class="site-header__search-btn" type="submit" aria-label="搜索">
<button class="site-header__search-btn" type="submit" aria-label="Search">
<img
src="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='24.000000'%20height='24.000000'%20fill='none'%3e%3crect%20id='搜索'%20width='24.000000'%20height='24.000000'%20x='0.000000'%20y='0.000000'%20fill='rgb(255,255,255)'%20fill-opacity='0'%20/%3e%3cpath%20id='矢量%203'%20d='M15.8481%2017.1208C14.4808%2018.2114%2012.7482%2018.8633%2010.8633%2018.8633C6.44506%2018.8633%202.86328%2015.2816%202.86328%2010.8633C2.86328%206.445%206.44506%202.86328%2010.8633%202.86328C15.2815%202.86328%2018.8633%206.445%2018.8633%2010.8633C18.8633%2012.7482%2018.2114%2014.4808%2017.1208%2015.8481L21.136%2019.8633L19.8633%2021.136L15.8481%2017.1208ZM17.0632%2010.8633C17.0632%207.43908%2014.2874%204.66326%2010.8633%204.66326C7.4392%204.66326%204.66332%207.43908%204.66332%2010.8633C4.66332%2014.2875%207.4392%2017.0633%2010.8633%2017.0633C14.2874%2017.0633%2017.0632%2014.2875%2017.0632%2010.8633Z'%20fill='rgb(0,0,0)'%20fill-rule='evenodd'%20/%3e%3c/svg%3e"
alt=""
@ -521,10 +521,10 @@
/>
</button>
</form>
<a class="s-btn s-btn--primary site-header__cta" href="/contact.html">联系我们</a>
<a class="s-btn s-btn--primary site-header__cta" href="/contact.html">Contact us</a>
</div>
<div class="site-header__extras">
<button class="site-header__extra-btn lang" type="button" aria-label="切换语言">
<button class="site-header__extra-btn lang" type="button" aria-label="Switch language">
<svg
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
@ -548,7 +548,7 @@
/>
</svg>
</button>
<a href="/search.html" class="site-header__extra-btn search" aria-label="搜索">
<a href="/search.html" class="site-header__extra-btn search" aria-label="Search">
<svg
viewBox="0 0 32.9434 32"
xmlns="http://www.w3.org/2000/svg"
@ -571,7 +571,7 @@
type="button"
aria-expanded="false"
aria-controls="mask"
aria-label="打开导航菜单"
aria-label="Open menu"
>
<svg class="nav-toggle-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/1999/svg" aria-hidden="true">
<rect

12
public/themes/website/1/en/demo/components/mask.html

@ -1,10 +1,10 @@
<div class="mask" id="mask">
<header class="mask-header">
<a href="/" class="mask-header__logo" aria-label="睿能科技">
<img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="RAYNEN 睿能科技" width="252" height="26" />
<a href="/" class="mask-header__logo" aria-label="RAYNEN Technology">
<img src="{hcTaglib:setting name='dark_logo' type='2' /}" alt="RAYNEN Technology" width="252" height="26" />
</a>
<div class="mask-header__actions">
<button class="mask-header__icon-btn lang" type="button" aria-label="切换语言">
<button class="mask-header__icon-btn lang" type="button" aria-label="Switch language">
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.000000" height="32.000000" fill="none" customFrame="#000000">
<path
id="矢量 10"
@ -20,7 +20,7 @@
/>
</svg>
</button>
<a href="/search.html" class="mask-header__icon-btn search" aria-label="搜索">
<a href="/search.html" class="mask-header__icon-btn search" aria-label="Search">
<svg viewBox="0 0 32.9434 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32.943359" height="32.000000" fill="none" customFrame="#000000">
<path
id="矢量 3"
@ -30,7 +30,7 @@
/>
</svg>
</a>
<button class="mask-header__icon-btn mask-header__icon-btn--close close" type="button" aria-expanded="false" aria-controls="mask" aria-label="关闭导航菜单">
<button class="mask-header__icon-btn mask-header__icon-btn--close close" type="button" aria-expanded="false" aria-controls="mask" aria-label="Close menu">
<svg class="nav-toggle-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<rect class="nav-toggle-icon__bar nav-toggle-icon__bar--top" x="4" y="6" width="16" height="2" rx="1" />
<rect class="nav-toggle-icon__bar nav-toggle-icon__bar--mid" x="4" y="11" width="16" height="2" rx="1" />
@ -40,7 +40,7 @@
</div>
</header>
<div class="mask-content">
<nav class="mask-nav" aria-label="移动导航">
<nav class="mask-nav" aria-label="Mobile navigation">
<ul class="mask-nav__list">
{hcTaglib:nav cid="47" max-level="2" item="vo" name="hc_mask_nav" sort="sort asc"}
{php}

Loading…
Cancel
Save