🔧💄 Update the i18n config files.
This commit is contained in:
parent
835e98d85d
commit
6b589a8206
62
i18n/en.yaml
62
i18n/en.yaml
@ -18,15 +18,11 @@ CateTitle:
|
|||||||
AllSome:
|
AllSome:
|
||||||
other: "All {{ .Some }}"
|
other: "All {{ .Some }}"
|
||||||
|
|
||||||
MSearchLabel:
|
|
||||||
other: Search
|
|
||||||
|
|
||||||
SymbolColon:
|
Symbol:
|
||||||
other: ":"
|
colon: ":"
|
||||||
SymbolComma:
|
comma: ","
|
||||||
other: ","
|
period: "."
|
||||||
SymbolPeriod:
|
|
||||||
other: "."
|
|
||||||
|
|
||||||
Sidebar:
|
Sidebar:
|
||||||
label:
|
label:
|
||||||
@ -35,34 +31,15 @@ Sidebar:
|
|||||||
tags: Tags
|
tags: Tags
|
||||||
rss: RSS
|
rss: RSS
|
||||||
ccommons: "Creative Commons"
|
ccommons: "Creative Commons"
|
||||||
navToggle: "Toggle Navigation Bar"
|
|
||||||
toc: TOC
|
toc: TOC
|
||||||
overview: Overview
|
overview: Overview
|
||||||
|
navToggle: "Toggle Navigation Bar"
|
||||||
|
search: Search
|
||||||
|
|
||||||
SbPostsLable:
|
Terms:
|
||||||
other: ""
|
archives: "{{ .Count }} posts in total"
|
||||||
SbCatesTitle:
|
categories: "{{ .Count }} categories in total"
|
||||||
other: ""
|
tags: "{{ .Count }} tags in total"
|
||||||
SbTagsTitle:
|
|
||||||
other: ""
|
|
||||||
TableOfContents:
|
|
||||||
other: "TOC"
|
|
||||||
SiteOverview:
|
|
||||||
other: "Overview"
|
|
||||||
RSSLable:
|
|
||||||
other: "RSS Subscribe"
|
|
||||||
CCLinkTitle:
|
|
||||||
other: "Creative Commons"
|
|
||||||
|
|
||||||
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"
|
|
||||||
|
|
||||||
PostArchive:
|
PostArchive:
|
||||||
cheers:
|
cheers:
|
||||||
@ -116,8 +93,8 @@ PostCopyRight:
|
|||||||
PostFollowMe:
|
PostFollowMe:
|
||||||
other: Welcome to my other publishing channels
|
other: Welcome to my other publishing channels
|
||||||
|
|
||||||
PostCommentTitle:
|
PostComments:
|
||||||
other: Comments
|
title: Comments
|
||||||
|
|
||||||
SiteInfoItems:
|
SiteInfoItems:
|
||||||
title: "Web Status"
|
title: "Web Status"
|
||||||
@ -132,17 +109,14 @@ SiteInfoItems:
|
|||||||
totalViews: "Total Views"
|
totalViews: "Total Views"
|
||||||
lastUpdate: "Last Update:"
|
lastUpdate: "Last Update:"
|
||||||
|
|
||||||
FooterPowerby:
|
Footer:
|
||||||
other: "Power by %s"
|
powerby: "Power by %s"
|
||||||
|
|
||||||
SearchPh:
|
Search:
|
||||||
other: Searching...
|
placeholder: Searching...
|
||||||
SearchEmpty:
|
empty: "We didn't find any results for the search: ${query}"
|
||||||
other: "We didn't find any results for the search: ${query}"
|
|
||||||
SearchHits:
|
|
||||||
hits: "${hits} results found"
|
hits: "${hits} results found"
|
||||||
SearchHitsTime:
|
time: "${hits} results found in ${time} ms"
|
||||||
other: "${hits} results found in ${time} ms"
|
|
||||||
|
|
||||||
DateSuffix:
|
DateSuffix:
|
||||||
years: " Year "
|
years: " Year "
|
||||||
|
@ -19,18 +19,10 @@ CateTitle:
|
|||||||
AllSome:
|
AllSome:
|
||||||
other: "所有 {{ .Some }}"
|
other: "所有 {{ .Some }}"
|
||||||
|
|
||||||
NavToggleLabel:
|
Symbol:
|
||||||
other: 切换导航栏
|
colon: ":"
|
||||||
|
comma: ","
|
||||||
MSearchLabel:
|
period: "。"
|
||||||
other: 搜索
|
|
||||||
|
|
||||||
SymbolColon:
|
|
||||||
other: ":"
|
|
||||||
SymbolComma:
|
|
||||||
other: ","
|
|
||||||
SymbolPeriod:
|
|
||||||
other: "。"
|
|
||||||
|
|
||||||
Sidebar:
|
Sidebar:
|
||||||
label:
|
label:
|
||||||
@ -44,15 +36,10 @@ Sidebar:
|
|||||||
navToggle: 切换导航栏
|
navToggle: 切换导航栏
|
||||||
search: 搜索
|
search: 搜索
|
||||||
|
|
||||||
TagsCounterTitle:
|
Terms:
|
||||||
zero: 暂无标签
|
archives: "目前共计 <strong>{{ .Count }}</strong> 篇日志"
|
||||||
other: "目前共计 <strong>{{ .Count }}</strong> 个标签"
|
categories: "目前共计 <strong>{{ .Count }}</strong> 个分类"
|
||||||
CatesCounterTitle:
|
tags: "目前共计 <strong>{{ .Count }}</strong> 个标签"
|
||||||
zero: 暂无分类
|
|
||||||
other: "目前共计 <strong>{{ .Count }}</strong> 个分类"
|
|
||||||
ArchiveCounterTitle:
|
|
||||||
zero: 暂无日志
|
|
||||||
other: "目前共计 <strong>{{ .Count }}</strong> 篇日志"
|
|
||||||
|
|
||||||
PostArchive:
|
PostArchive:
|
||||||
cheers:
|
cheers:
|
||||||
@ -106,8 +93,8 @@ PostCopyRight:
|
|||||||
PostFollowMe:
|
PostFollowMe:
|
||||||
other: 欢迎关注我的其它发布渠道
|
other: 欢迎关注我的其它发布渠道
|
||||||
|
|
||||||
PostCommentTitle:
|
PostComments:
|
||||||
other: 评论交流
|
title: 评论交流
|
||||||
|
|
||||||
SiteInfoItems:
|
SiteInfoItems:
|
||||||
title: "网站资讯"
|
title: "网站资讯"
|
||||||
@ -122,17 +109,14 @@ SiteInfoItems:
|
|||||||
totalViews: "总访问量:"
|
totalViews: "总访问量:"
|
||||||
lastUpdate: "最后更新于:"
|
lastUpdate: "最后更新于:"
|
||||||
|
|
||||||
FooterPowerby:
|
Footer:
|
||||||
other: 由 %s 强力驱动
|
powerby: 由 %s 强力驱动
|
||||||
|
|
||||||
SearchPh:
|
Search:
|
||||||
other: 搜索...
|
placeholder: 搜索...
|
||||||
SearchEmpty:
|
empty: "没有找到任何搜索结果:${query}"
|
||||||
other: "没有找到任何搜索结果:${query}"
|
|
||||||
SearchHits:
|
|
||||||
hits: "找到 ${hits} 个搜索结果"
|
hits: "找到 ${hits} 个搜索结果"
|
||||||
SearchHitsTime:
|
time: "找到 ${hits} 个搜索结果(用时 ${time} 毫秒)"
|
||||||
other: "找到 ${hits} 个搜索结果(用时 ${time} 毫秒)"
|
|
||||||
|
|
||||||
DateSuffix:
|
DateSuffix:
|
||||||
years: " 年 "
|
years: " 年 "
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
{{ $tags := .Site.Taxonomies.tags }}
|
{{ $tags := .Site.Taxonomies.tags }}
|
||||||
<div class="tag-cloud">
|
<div class="tag-cloud">
|
||||||
<div class="tag-cloud-title">
|
<div class="tag-cloud-title">
|
||||||
{{ T "TagsCounterTitle" (.Scratch.Get "tagsCount") | safeHTML }}
|
{{ T "Terms.tags" (.Scratch.Get "tagsCount") | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
<div class="tag-cloud-tags">
|
<div class="tag-cloud-tags">
|
||||||
{{ $randNums := (seq 10) }}
|
{{ $randNums := (seq 10) }}
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="collection-header">
|
<span class="collection-header">
|
||||||
{{ T (printf "PostArchive.cheers.%s" $cheers) }}
|
{{ T (printf "PostArchive.cheers.%s" $cheers) }}
|
||||||
{{ T "SymbolComma" }}
|
{{ T "Symbol.comma" }}
|
||||||
{{ T "ArchiveCounterTitle" $posts | safeHTML }}
|
{{ T "Terms.archives" $posts | safeHTML }}
|
||||||
{{ T "SymbolComma" }}
|
{{ T "Symbol.comma" }}
|
||||||
{{ T "PostArchive.keepOn" }}
|
{{ T "PostArchive.keepOn" }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<div class="search-input-container">
|
<div class="search-input-container">
|
||||||
<input autocomplete="off" autocapitalize="off" maxlength="80"
|
<input autocomplete="off" autocapitalize="off" maxlength="80"
|
||||||
placeholder="{{ T "SearchPh" }}" spellcheck="false"
|
placeholder="{{ T "Search.placeholder" }}" spellcheck="false"
|
||||||
type="search" class="search-input">
|
type="search" class="search-input">
|
||||||
</div>
|
</div>
|
||||||
<span class="popup-btn-close" role="button">
|
<span class="popup-btn-close" role="button">
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<div class="comment-head">
|
<div class="comment-head">
|
||||||
<div class="comment-headline">
|
<div class="comment-headline">
|
||||||
<i class="fas fa-comments fa-fw"></i>
|
<i class="fas fa-comments fa-fw"></i>
|
||||||
<span>{{ T "PostCommentTitle" }}</span>
|
<span>{{ T "PostComments.title" }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ if $tc }}
|
{{ if $tc }}
|
||||||
{{ $sn = (sort .nav "weight") }}
|
{{ $sn = (sort .nav "weight") }}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
{{ if $ft.powered }}
|
{{ if $ft.powered }}
|
||||||
<div class="powered-by">
|
<div class="powered-by">
|
||||||
{{ $pb := printf "<a href='https://gohugo.io' title='%s' target='_blank'>Hugo</a> & <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 }}
|
{{ $pb := printf "<a href='https://gohugo.io' title='%s' target='_blank'>Hugo</a> & <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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $ft.beian }}
|
{{ with $ft.beian }}
|
||||||
|
@ -37,10 +37,10 @@
|
|||||||
"lazyload" .Site.Params.lazyload
|
"lazyload" .Site.Params.lazyload
|
||||||
"motion" .Site.Params.motion
|
"motion" .Site.Params.motion
|
||||||
"i18n" (dict
|
"i18n" (dict
|
||||||
"placeholder" (T "SearchPh")
|
"placeholder" (T "Search.placeholder")
|
||||||
"empty" (T "SearchEmpty")
|
"empty" (T "Search.empty")
|
||||||
"hits_time" (T "SearchHitsTime")
|
"hits_time" (T "Search.time")
|
||||||
"hits" (T "SearchHits")
|
"hits" (T "Search.hits")
|
||||||
"ds_years" (T "DateSuffix.years")
|
"ds_years" (T "DateSuffix.years")
|
||||||
"ds_days" (T "DateSuffix.days")
|
"ds_days" (T "DateSuffix.days")
|
||||||
"ds_hours" (T "DateSuffix.hours")
|
"ds_hours" (T "DateSuffix.hours")
|
||||||
|
@ -3,29 +3,29 @@
|
|||||||
<img src="/imgs/cc/cc.svg" width="75" height="75" align="right" alt="{{ T "Sidebar.label.ccommons" }}"/>
|
<img src="/imgs/cc/cc.svg" width="75" height="75" align="right" alt="{{ T "Sidebar.label.ccommons" }}"/>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="post-copyright-title">
|
<li class="post-copyright-title">
|
||||||
<strong>{{ print (T "PostCopyRight.title") (T "SymbolColon") }}</strong>
|
<strong>{{ print (T "PostCopyRight.title") (T "Symbol.colon") }}</strong>
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
</li>
|
</li>
|
||||||
<li class="post-copyright-author">
|
<li class="post-copyright-author">
|
||||||
{{ if isset .Params "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 }}
|
{{ .Params.Author }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<strong>{{ print (T "PostCopyRight.author") (T "SymbolColon") }} </strong>
|
<strong>{{ print (T "PostCopyRight.author") (T "Symbol.colon") }} </strong>
|
||||||
{{ .Site.Params.author }}
|
{{ .Site.Params.author }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
<li class="post-copyright-link">
|
<li class="post-copyright-link">
|
||||||
{{ if isset .Params "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>
|
<a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.Link }}</a>
|
||||||
{{ else }}
|
{{ 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>
|
<a id="post-cr-link" href="{{ .Permalink | absLangURL }}" title="{{ .Title }}">{{ .Permalink | absLangURL }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
<li class="post-copyright-license">
|
<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 }}
|
{{ $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 }}
|
{{ $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 }}
|
{{ printf (T "PostCopyRight.license.content") $ccLink | safeHTML }}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<i class="far fa-folder-open"></i>
|
<i class="far fa-folder-open"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text" title="{{ T "PostMeta.category" }}">
|
<span class="post-meta-item-text" title="{{ T "PostMeta.category" }}">
|
||||||
{{ print (T "PostMeta.category") (T "SymbolColon") }}
|
{{ print (T "PostMeta.category") (T "Symbol.colon") }}
|
||||||
</span>
|
</span>
|
||||||
{{ range (first 1 .) }}
|
{{ range (first 1 .) }}
|
||||||
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
|
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<i class="far fa-comments"></i>
|
<i class="far fa-comments"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text" title="{{ T "PostMeta.comments" }}">
|
<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>
|
||||||
<span {{ with .Site.Params.waline.comment }}class="waline-comment-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
<span {{ with .Site.Params.waline.comment }}class="waline-comment-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
||||||
<i class="fa fa-sync fa-spin"></i>
|
<i class="fa fa-sync fa-spin"></i>
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
<i class="far fa-calendar"></i>
|
<i class="far fa-calendar"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text" title="{{ T "PostMeta.publish.date" }}">
|
<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>
|
</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 }}
|
{{ .Date.Format .Site.Params.dateFormat }}
|
||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-clock"></i>
|
<i class="far fa-clock"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">{{ print (T "PostMeta.reading.title") (T "SymbolColon") }}≈</span>
|
<span class="post-meta-item-text">{{ print (T "PostMeta.reading.title") (T "Symbol.colon") }}≈</span>
|
||||||
<span>{{ T "PostMeta.reading.time" . }}</span>
|
<span>{{ T "PostMeta.reading.time" . }}</span>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
<i class="far fa-calendar-check"></i>
|
<i class="far fa-calendar-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text" title="{{ T "PostMeta.lastmod.date" }}">
|
<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>
|
</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>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
@ -10,7 +10,7 @@
|
|||||||
<i class="far fa-eye"></i>
|
<i class="far fa-eye"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">
|
<span class="post-meta-item-text">
|
||||||
{{ print (T "PostMeta.views") (T "SymbolColon") }}
|
{{ print (T "PostMeta.views") (T "Symbol.colon") }}
|
||||||
</span>
|
</span>
|
||||||
<span {{ with $pageViewId }}id="{{ . }}"{{end}} {{ with .Site.Params.waline.pageView }}class="waline-pageview-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
<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>
|
<i class="fa fa-sync fa-spin"></i>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-file-word"></i>
|
<i class="far fa-file-word"></i>
|
||||||
</span>
|
</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>{{ T "PostMeta.words.count" . }}</span>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user