From 211db5b2c21574cf13151e375b74f58c171905a4 Mon Sep 17 00:00:00 2001 From: BoT Date: Tue, 5 Jan 2021 13:34:09 +0800 Subject: [PATCH] Translate chinese (#210) Signed-off-by: Emruz Hossain --- README.md | 1 + .../data/cn/sections/achievements.yaml | 2 +- exampleSite/data/cn/sections/education.yaml | 89 +++++++++++++++++++ exampleSite/data/cn/sections/projects.yaml | 2 +- .../data/cn/sections/recent-posts.yaml | 2 +- exampleSite/data/cn/site.yaml | 2 +- .../data/en/sections/achievements.yaml | 2 +- exampleSite/data/en/sections/projects.yaml | 2 +- .../data/en/sections/recent-posts.yaml | 2 +- i18n/cn.toml | 6 +- 10 files changed, 100 insertions(+), 10 deletions(-) create mode 100644 exampleSite/data/cn/sections/education.yaml diff --git a/README.md b/README.md index a222c63a5..3df443741 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ For more details about the features please visit [here](https://toha-guides.netl - Indonesian - Deutsch - Spanish +- 简体中文 To know more about how to translate your site, please visit [here](https://toha-guides.netlify.app/posts/translation/). Follow, the data and post format from this [example site](https://hugo-toha.github.io). diff --git a/exampleSite/data/cn/sections/achievements.yaml b/exampleSite/data/cn/sections/achievements.yaml index 206bb1d26..4a5fb8cba 100644 --- a/exampleSite/data/cn/sections/achievements.yaml +++ b/exampleSite/data/cn/sections/achievements.yaml @@ -3,7 +3,7 @@ section: name: 成就 id: achievements enable: true - weight: 6 + weight: 7 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true diff --git a/exampleSite/data/cn/sections/education.yaml b/exampleSite/data/cn/sections/education.yaml new file mode 100644 index 000000000..941985e10 --- /dev/null +++ b/exampleSite/data/cn/sections/education.yaml @@ -0,0 +1,89 @@ +# section information +section: + name: 学历 + id: education + template: sections/education.html # Use "sections/education-alt.html for alternate template. + enable: true + weight: 4 + showOnNavbar: true + # Can optionally hide the title in sections + # hideTitle: true + +degrees: +- name: Ph.D in Quantum Cryptography + icon: fa-microscope + timeframe: 2016-2020 + institution: + name: ABC University of Technology + url: "#" + grade: #(optional) + scale: CGPA + achieved: 3.6 + outOf: 4 + publications: #(optional) + - title: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + url: "#" + - title: Fusce eu augue ut odio porttitor pulvinar. + url: "#" + - title: Nullam vitae orci tincidunt purus viverra pulvinar. + url: "#" +- name: B.Sc. in Computer Science & Engineering + icon: fa-graduation-cap + timeframe: 2012-2016 + institution: + name: University of XYZ + url: "#" + grade: #(optional) + scale: CGPA + achieved: 3.5 + outOf: 4 + takenCourses: #(optional) + # if true, the courses will be rendered as a table otherwise it will render as a list and the grades will be hidden. + showGrades: true + courses: + - name: Data Structures and Algorithm + achieved: 3.75 + outOf: 4 + - name: Network Security + achieved: 3.80 + outOf: 4 + - name: Operating System + achieved: 3.5 + outOf: 4 + - name: Artificial Intelligent + achieved: 3.75 + outOf: 4 + publications: #(optional) + - title: Lorem ipsum dolor sit amet, consectetur adipiscing elit. + url: "#" + - title: Fusce eu augue ut odio porttitor pulvinar. + url: "#" + extracurricularActivities: #(optional) + - In vitae facilisis est, eget porta sem. + - Vestibulum consectetur lorem justo, at laoreet lorem feugiat et. + - Duis sed massa feugiat, ornare justo et, aliquam est. + - Pellentesque ut fringilla magna. +- name: Higher Secondary School Certificate + icon: fa-university + timeframe: 2010-2012 + institution: + name: MST College of Science + url: "#" + grade: #(optional) + scale: GPA + achieved: 5 + outOf: 5 + extracurricularActivities: #(optional) + - In vitae facilisis est, eget porta sem. + - Vestibulum consectetur lorem justo, at laoreet lorem feugiat et. + - Duis sed massa feugiat, ornare justo et, aliquam est. + - Pellentesque ut fringilla magna. +- name: Secondary School Certificate + icon: fa-school + timeframe: 2005-2010 + institution: + name: JK School of Science + grade: #(optional) + scale: GPA + achieved: 4.5 + outOf: 5 diff --git a/exampleSite/data/cn/sections/projects.yaml b/exampleSite/data/cn/sections/projects.yaml index 36bf5bd37..9ecab09d4 100644 --- a/exampleSite/data/cn/sections/projects.yaml +++ b/exampleSite/data/cn/sections/projects.yaml @@ -3,7 +3,7 @@ section: name: 项目 id: projects enable: true - weight: 4 + weight:5 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true diff --git a/exampleSite/data/cn/sections/recent-posts.yaml b/exampleSite/data/cn/sections/recent-posts.yaml index 1bdb8a5d2..8298cbbe7 100644 --- a/exampleSite/data/cn/sections/recent-posts.yaml +++ b/exampleSite/data/cn/sections/recent-posts.yaml @@ -3,7 +3,7 @@ section: name: 最近文章 id: recent-posts enable: true - weight: 5 + weight: 6 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true diff --git a/exampleSite/data/cn/site.yaml b/exampleSite/data/cn/site.yaml index bd8412fb7..8dcdf525b 100644 --- a/exampleSite/data/cn/site.yaml +++ b/exampleSite/data/cn/site.yaml @@ -1,5 +1,5 @@ # Copyright Notice -copyright: © 2008 - 2020 Copyright. +copyright: © 2008 - 2021 Copyright. # Meta description for your site. This will help the search engines to find your site. description: Portfolio and personal blog of John Doe. diff --git a/exampleSite/data/en/sections/achievements.yaml b/exampleSite/data/en/sections/achievements.yaml index d50dea49b..959a52f04 100644 --- a/exampleSite/data/en/sections/achievements.yaml +++ b/exampleSite/data/en/sections/achievements.yaml @@ -3,7 +3,7 @@ section: name: Achievements id: achievements enable: true - weight: 6 + weight: 7 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true diff --git a/exampleSite/data/en/sections/projects.yaml b/exampleSite/data/en/sections/projects.yaml index 83af64b2c..544efd847 100644 --- a/exampleSite/data/en/sections/projects.yaml +++ b/exampleSite/data/en/sections/projects.yaml @@ -3,7 +3,7 @@ section: name: Projects id: projects enable: true - weight: 4 + weight: 5 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true diff --git a/exampleSite/data/en/sections/recent-posts.yaml b/exampleSite/data/en/sections/recent-posts.yaml index 520f3ffdd..fef0533f5 100644 --- a/exampleSite/data/en/sections/recent-posts.yaml +++ b/exampleSite/data/en/sections/recent-posts.yaml @@ -3,7 +3,7 @@ section: name: Recent Posts id: recent-posts enable: true - weight: 5 + weight: 6 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true diff --git a/i18n/cn.toml b/i18n/cn.toml index 00c01e07a..59f133e5a 100644 --- a/i18n/cn.toml +++ b/i18n/cn.toml @@ -51,7 +51,7 @@ other = "下一篇" other = "改善此页面" [out_of] -other = "之" +other = "/" [publications] other = "刊物" @@ -63,10 +63,10 @@ other = "选修课程" other = "课程名" [total_credit] -other = "总信用" +other = "满分" [obtained_credit] -other = "获得信贷" +other = "获得分数" [extracurricular_activities] other = "课外活动"