Przeglądaj źródła

Translate chinese (#210)

Signed-off-by: Emruz Hossain <emruz@appscode.com>
BoT 4 lat temu
rodzic
commit
211db5b2c2

+ 1 - 0
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).
 

+ 1 - 1
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

+ 89 - 0
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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.

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 3 - 3
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 = "课外活动"