feat: Added simplified Chinese translations (#257)
This commit is contained in:
parent
ce5df837f5
commit
c1b0eafce6
65
i18n/zh-cn.toml
Normal file
65
i18n/zh-cn.toml
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
[404_message]
|
||||||
|
other = "喔哦...... 你是不是迷路了呀..... (⌯' '⌯ ) 这个页面并不存在(也许它还未被发布)。"
|
||||||
|
|
||||||
|
[404_back]
|
||||||
|
other = "↳ 回到主页"
|
||||||
|
|
||||||
|
[all_posts]
|
||||||
|
other = "所有 {{.Title}}"
|
||||||
|
|
||||||
|
[last_updated]
|
||||||
|
other = "最后更新于"
|
||||||
|
|
||||||
|
[notes_count]
|
||||||
|
other = "带有此标签的笔记"
|
||||||
|
|
||||||
|
[first_10]
|
||||||
|
other = "正在展示前10个结果"
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
other = "标签"
|
||||||
|
|
||||||
|
[backlinks]
|
||||||
|
other = "反向链接"
|
||||||
|
|
||||||
|
[no_backlinks]
|
||||||
|
other = "没有找到反向链接"
|
||||||
|
|
||||||
|
[home]
|
||||||
|
other = "主页"
|
||||||
|
|
||||||
|
[light_mode]
|
||||||
|
other = "明亮模式"
|
||||||
|
|
||||||
|
[dark_mode]
|
||||||
|
other = "黑暗模式"
|
||||||
|
|
||||||
|
[edit_source]
|
||||||
|
other = "编辑源码"
|
||||||
|
|
||||||
|
[interactive_graph]
|
||||||
|
other = "互动图"
|
||||||
|
|
||||||
|
[search]
|
||||||
|
other = "搜索"
|
||||||
|
|
||||||
|
[search_icon]
|
||||||
|
other = "搜索图标"
|
||||||
|
|
||||||
|
[icon_search]
|
||||||
|
other = "打开搜索图标"
|
||||||
|
|
||||||
|
[recent_notes]
|
||||||
|
other = "近期笔记"
|
||||||
|
|
||||||
|
[first_3_notes]
|
||||||
|
other = "前3个 {{ .notes }}"
|
||||||
|
|
||||||
|
[search_for_something]
|
||||||
|
other = "进行搜索......"
|
||||||
|
|
||||||
|
[toc]
|
||||||
|
other = "目录"
|
||||||
|
|
||||||
|
[copyright]
|
||||||
|
other = "由 {{ .name }} 用 <a href=\"https://github.com/jackyzha0/quartz\">Quartz</a> 创造, © {{ .year }}"
|
@ -42,7 +42,24 @@
|
|||||||
<!-- remove subfolder from title -->
|
<!-- remove subfolder from title -->
|
||||||
{{$display := index (last 1 (split $display "/")) 0}}
|
{{$display := index (last 1 (split $display "/")) 0}}
|
||||||
|
|
||||||
{{$curpage := $page.GetPage $title}}
|
<!-- attempt to get title -->
|
||||||
|
{{$searchtitle := $title }}
|
||||||
|
{{$curpage := $page.GetPage $searchtitle }}
|
||||||
|
<!-- attempt to search md file instead -->
|
||||||
|
{{ if (eq $curpage.String "nopPage") }}
|
||||||
|
{{$searchtitle = (add $title ".md") }}
|
||||||
|
{{$curpage = $page.GetPage $searchtitle }}
|
||||||
|
{{ end }}
|
||||||
|
<!-- attempt to reverse typographer behaviour -->
|
||||||
|
{{ if (eq $curpage.String "nopPage") }}
|
||||||
|
{{$searchtitle = (replace $searchtitle "&" "&") }}
|
||||||
|
{{$searchtitle = (replace $searchtitle """ "\"") }}
|
||||||
|
{{$searchtitle = (replace $searchtitle "”" "\"") }}
|
||||||
|
{{$searchtitle = (replace $searchtitle "“" "\"") }}
|
||||||
|
{{$searchtitle = (replace $searchtitle "’" "'") }}
|
||||||
|
{{$searchtitle = (replace $searchtitle "‘" "'") }}
|
||||||
|
{{$curpage = $page.GetPage $searchtitle }}
|
||||||
|
{{ end }}
|
||||||
{{$relpath := relURL $path}}
|
{{$relpath := relURL $path}}
|
||||||
|
|
||||||
<!-- If path to Hugo page -->
|
<!-- If path to Hugo page -->
|
||||||
|
Loading…
Reference in New Issue
Block a user