🔧💄 Update the i18n config files.

This commit is contained in:
凡梦星尘 2023-01-02 20:08:48 +08:00
parent 835e98d85d
commit 6b589a8206
16 changed files with 60 additions and 102 deletions

View File

@ -18,15 +18,11 @@ CateTitle:
AllSome:
other: "All {{ .Some }}"
MSearchLabel:
other: Search
SymbolColon:
other: ":"
SymbolComma:
other: ","
SymbolPeriod:
other: "."
Symbol:
colon: ":"
comma: ","
period: "."
Sidebar:
label:
@ -35,34 +31,15 @@ Sidebar:
tags: Tags
rss: RSS
ccommons: "Creative Commons"
navToggle: "Toggle Navigation Bar"
toc: TOC
overview: Overview
SbPostsLable:
other: ""
SbCatesTitle:
other: ""
SbTagsTitle:
other: ""
TableOfContents:
other: "TOC"
SiteOverview:
other: "Overview"
RSSLable:
other: "RSS Subscribe"
CCLinkTitle:
other: "Creative Commons"
navToggle: "Toggle Navigation Bar"
search: Search
TagsCounterTitle:
zero: No tags
other: "{{ .Count }} tags in total"
CatesCounterTitle:
zero: No categories
other: "{{ .Count }} categories in total"
ArchiveCounterTitle:
zero: No posts.
other: "{{ .Count }} posts in total"
Terms:
archives: "{{ .Count }} posts in total"
categories: "{{ .Count }} categories in total"
tags: "{{ .Count }} tags in total"
PostArchive:
cheers:
@ -116,8 +93,8 @@ PostCopyRight:
PostFollowMe:
other: Welcome to my other publishing channels
PostCommentTitle:
other: Comments
PostComments:
title: Comments
SiteInfoItems:
title: "Web Status"
@ -132,17 +109,14 @@ SiteInfoItems:
totalViews: "Total Views"
lastUpdate: "Last Update:"
FooterPowerby:
other: "Power by %s"
Footer:
powerby: "Power by %s"
SearchPh:
other: Searching...
SearchEmpty:
other: "We didn't find any results for the search: ${query}"
SearchHits:
Search:
placeholder: Searching...
empty: "We didn't find any results for the search: ${query}"
hits: "${hits} results found"
SearchHitsTime:
other: "${hits} results found in ${time} ms"
time: "${hits} results found in ${time} ms"
DateSuffix:
years: " Year "

View File

@ -19,18 +19,10 @@ CateTitle:
AllSome:
other: "所有 {{ .Some }}"
NavToggleLabel:
other: 切换导航栏
MSearchLabel:
other: 搜索
SymbolColon:
other: ""
SymbolComma:
other: ""
SymbolPeriod:
other: "。"
Symbol:
colon: ""
comma: ""
period: "。"
Sidebar:
label:
@ -44,15 +36,10 @@ Sidebar:
navToggle: 切换导航栏
search: 搜索
TagsCounterTitle:
zero: 暂无标签
other: "目前共计 <strong>{{ .Count }}</strong> 个标签"
CatesCounterTitle:
zero: 暂无分类
other: "目前共计 <strong>{{ .Count }}</strong> 个分类"
ArchiveCounterTitle:
zero: 暂无日志
other: "目前共计 <strong>{{ .Count }}</strong> 篇日志"
Terms:
archives: "目前共计 <strong>{{ .Count }}</strong> 篇日志"
categories: "目前共计 <strong>{{ .Count }}</strong> 个分类"
tags: "目前共计 <strong>{{ .Count }}</strong> 个标签"
PostArchive:
cheers:
@ -106,8 +93,8 @@ PostCopyRight:
PostFollowMe:
other: 欢迎关注我的其它发布渠道
PostCommentTitle:
other: 评论交流
PostComments:
title: 评论交流
SiteInfoItems:
title: "网站资讯"
@ -122,17 +109,14 @@ SiteInfoItems:
totalViews: "总访问量:"
lastUpdate: "最后更新于:"
FooterPowerby:
other: 由 %s 强力驱动
Footer:
powerby: 由 %s 强力驱动
SearchPh:
other: 搜索...
SearchEmpty:
other: "没有找到任何搜索结果:${query}"
SearchHits:
Search:
placeholder: 搜索...
empty: "没有找到任何搜索结果:${query}"
hits: "找到 ${hits} 个搜索结果"
SearchHitsTime:
other: "找到 ${hits} 个搜索结果(用时 ${time} 毫秒)"
time: "找到 ${hits} 个搜索结果(用时 ${time} 毫秒)"
DateSuffix:
years: " 年 "

View File

@ -36,7 +36,7 @@
{{ $tags := .Site.Taxonomies.tags }}
<div class="tag-cloud">
<div class="tag-cloud-title">
{{ T "TagsCounterTitle" (.Scratch.Get "tagsCount") | safeHTML }}
{{ T "Terms.tags" (.Scratch.Get "tagsCount") | safeHTML }}
</div>
<div class="tag-cloud-tags">
{{ $randNums := (seq 10) }}

View File

@ -21,9 +21,9 @@
{{ end }}
<span class="collection-header">
{{ T (printf "PostArchive.cheers.%s" $cheers) }}
{{ T "SymbolComma" }}
{{ T "ArchiveCounterTitle" $posts | safeHTML }}
{{ T "SymbolComma" }}
{{ T "Symbol.comma" }}
{{ T "Terms.archives" $posts | safeHTML }}
{{ T "Symbol.comma" }}
{{ T "PostArchive.keepOn" }}
</span>
</div>

View File

@ -4,7 +4,7 @@
</span>
<div class="search-input-container">
<input autocomplete="off" autocapitalize="off" maxlength="80"
placeholder="{{ T "SearchPh" }}" spellcheck="false"
placeholder="{{ T "Search.placeholder" }}" spellcheck="false"
type="search" class="search-input">
</div>
<span class="popup-btn-close" role="button">

View File

@ -9,7 +9,7 @@
<div class="comment-head">
<div class="comment-headline">
<i class="fas fa-comments fa-fw"></i>
<span>{{ T "PostCommentTitle" }}</span>
<span>{{ T "PostComments.title" }}</span>
</div>
{{ if $tc }}
{{ $sn = (sort .nav "weight") }}

View File

@ -27,7 +27,7 @@
{{ if $ft.powered }}
<div class="powered-by">
{{ $pb := printf "<a href='https://gohugo.io' title='%s' target='_blank'>Hugo</a> &amp; <a href='https://github.com/hugo-next/hugo-theme-next' title='%s' target='_blank'>Hugo NexT.%s</a>" hugo.Version .Site.Data.config.version .Site.Params.scheme }}
{{ printf (T "FooterPowerby") $pb | safeHTML }}
{{ printf (T "Footer.powerby") $pb | safeHTML }}
</div>
{{ end }}
{{ with $ft.beian }}

View File

@ -37,10 +37,10 @@
"lazyload" .Site.Params.lazyload
"motion" .Site.Params.motion
"i18n" (dict
"placeholder" (T "SearchPh")
"empty" (T "SearchEmpty")
"hits_time" (T "SearchHitsTime")
"hits" (T "SearchHits")
"placeholder" (T "Search.placeholder")
"empty" (T "Search.empty")
"hits_time" (T "Search.time")
"hits" (T "Search.hits")
"ds_years" (T "DateSuffix.years")
"ds_days" (T "DateSuffix.days")
"ds_hours" (T "DateSuffix.hours")

View File

@ -3,29 +3,29 @@
<img src="/imgs/cc/cc.svg" width="75" height="75" align="right" alt="{{ T "Sidebar.label.ccommons" }}"/>
<ul>
<li class="post-copyright-title">
<strong>{{ print (T "PostCopyRight.title") (T "SymbolColon") }}</strong>
<strong>{{ print (T "PostCopyRight.title") (T "Symbol.colon") }}</strong>
{{ .Title }}
</li>
<li class="post-copyright-author">
{{ if isset .Params "author" }}
<strong>{{ print (T "PostCopyRight.origin.author") (T "SymbolColon") }} </strong>
<strong>{{ print (T "PostCopyRight.origin.author") (T "Symbol.colon") }} </strong>
{{ .Params.Author }}
{{ else }}
<strong>{{ print (T "PostCopyRight.author") (T "SymbolColon") }} </strong>
<strong>{{ print (T "PostCopyRight.author") (T "Symbol.colon") }} </strong>
{{ .Site.Params.author }}
{{ end }}
</li>
<li class="post-copyright-link">
{{ if isset .Params "link" }}
<strong>{{ print (T "PostCopyRight.origin.link") (T "SymbolColon") }} </strong>
<strong>{{ print (T "PostCopyRight.origin.link") (T "Symbol.colon") }} </strong>
<a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.Link }}</a>
{{ else }}
<strong>{{ print (T "PostCopyRight.link") (T "SymbolColon") }}</strong>
<strong>{{ print (T "PostCopyRight.link") (T "Symbol.colon") }}</strong>
<a id="post-cr-link" href="{{ .Permalink | absLangURL }}" title="{{ .Title }}">{{ .Permalink | absLangURL }}</a>
{{ end }}
</li>
<li class="post-copyright-license">
<strong>{{ print (T "PostCopyRight.license.title") (T "SymbolColon") }} </strong>
<strong>{{ print (T "PostCopyRight.license.title") (T "Symbol.colon") }} </strong>
{{ $ccText := .Site.Params.creativeCommons.license | upper }}
{{ $ccLink := printf "<a target='_blank' href='https://creativecommons.org/licenses/by-nc-sa/4.0/deed.%s'>%s</a>" (substr .Site.LanguageCode 0 2) $ccText }}
{{ printf (T "PostCopyRight.license.content") $ccLink | safeHTML }}

View File

@ -5,7 +5,7 @@
<i class="far fa-folder-open"></i>
</span>
<span class="post-meta-item-text" title="{{ T "PostMeta.category" }}">
{{ print (T "PostMeta.category") (T "SymbolColon") }}
{{ print (T "PostMeta.category") (T "Symbol.colon") }}
</span>
{{ range (first 1 .) }}
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">

View File

@ -3,7 +3,7 @@
<i class="far fa-comments"></i>
</span>
<span class="post-meta-item-text" title="{{ T "PostMeta.comments" }}">
{{ print (T "PostMeta.comments") (T "SymbolColon") }}
{{ print (T "PostMeta.comments") (T "Symbol.colon") }}
</span>
<span {{ with .Site.Params.waline.comment }}class="waline-comment-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
<i class="fa fa-sync fa-spin"></i>

View File

@ -6,9 +6,9 @@
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text" title="{{ T "PostMeta.publish.date" }}">
{{ print (T "PostMeta.publish.date") (T "SymbolColon") }}
{{ print (T "PostMeta.publish.date") (T "Symbol.colon") }}
</span>
<time title="{{ print (T "PostMeta.publish.time") (T "SymbolColon") }}{{ .Date }}" itemprop="dateCreated datePublished" datetime="{{ .Date }}">
<time title="{{ print (T "PostMeta.publish.time") (T "Symbol.colon") }}{{ .Date }}" itemprop="dateCreated datePublished" datetime="{{ .Date }}">
{{ .Date.Format .Site.Params.dateFormat }}
</time>
</span>

View File

@ -3,7 +3,7 @@
<span class="post-meta-item-icon">
<i class="far fa-clock"></i>
</span>
<span class="post-meta-item-text">{{ print (T "PostMeta.reading.title") (T "SymbolColon") }}&asymp;</span>
<span class="post-meta-item-text">{{ print (T "PostMeta.reading.title") (T "Symbol.colon") }}&asymp;</span>
<span>{{ T "PostMeta.reading.time" . }}</span>
</span>
{{ end }}

View File

@ -6,9 +6,9 @@
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text" title="{{ T "PostMeta.lastmod.date" }}">
{{ print (T "PostMeta.lastmod.date") (T "SymbolColon") }}
{{ print (T "PostMeta.lastmod.date") (T "Symbol.colon") }}
</span>
<time title="{{ print (T "PostMeta.lastmod.time") (T "SymbolColon") }}{{ $modTime }}" itemprop="dateModified" datetime="{{ $modTime }}">{{ .Lastmod.Format .Site.Params.dateFormat }}</time>
<time title="{{ print (T "PostMeta.lastmod.time") (T "Symbol.colon") }}{{ $modTime }}" itemprop="dateModified" datetime="{{ $modTime }}">{{ .Lastmod.Format .Site.Params.dateFormat }}</time>
</span>
{{ end }}
{{ end }}

View File

@ -10,7 +10,7 @@
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">
{{ print (T "PostMeta.views") (T "SymbolColon") }}
{{ print (T "PostMeta.views") (T "Symbol.colon") }}
</span>
<span {{ with $pageViewId }}id="{{ . }}"{{end}} {{ with .Site.Params.waline.pageView }}class="waline-pageview-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
<i class="fa fa-sync fa-spin"></i>

View File

@ -3,7 +3,7 @@
<span class="post-meta-item-icon">
<i class="far fa-file-word"></i>
</span>
<span class="post-meta-item-text">{{ print (T "PostMeta.words.title") (T "SymbolColon") }}</span>
<span class="post-meta-item-text">{{ print (T "PostMeta.words.title") (T "Symbol.colon") }}</span>
<span>{{ T "PostMeta.words.count" . }}</span>
</span>
{{ end }}