Skip to content

Commit

Permalink
Translate chinese (hugo-toha#210)
Browse files Browse the repository at this point in the history
Signed-off-by: Emruz Hossain <[email protected]>
  • Loading branch information
Chow-Ray committed Jan 5, 2021
1 parent 20d9f3a commit 211db5b
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/data/cn/sections/achievements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
89 changes: 89 additions & 0 deletions exampleSite/data/cn/sections/education.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion exampleSite/data/cn/sections/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/data/cn/sections/recent-posts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/data/cn/site.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/data/en/sections/achievements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/data/en/sections/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/data/en/sections/recent-posts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions i18n/cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ other = "下一篇"
other = "改善此页面"

[out_of]
other = ""
other = "/"

[publications]
other = "刊物"
Expand All @@ -63,10 +63,10 @@ other = "选修课程"
other = "课程名"

[total_credit]
other = "总信用"
other = "满分"

[obtained_credit]
other = "获得信贷"
other = "获得分数"

[extracurricular_activities]
other = "课外活动"
Expand Down

0 comments on commit 211db5b

Please sign in to comment.