:wrench:💄 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

@@ -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 }}