Skip to content

Commit c014e34

Browse files
authored
update chinese translations (#14)
1 parent 85df6a5 commit c014e34

File tree

2 files changed

+21
-35
lines changed

2 files changed

+21
-35
lines changed

docs/.vuepress/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ module.exports = config({
4949
locales: {
5050
"/zh/": {
5151
nav: [
52-
{ text: "Patterns", link: "/zh/patterns/", icon: "home" },
53-
{ text: "Principles", link: "/zh/principles/", icon: "home" },
54-
{ text: "Snippets", link: "/zh/snippets/", icon: "home" },
52+
{ text: "设计模式", link: "/zh/patterns/", icon: "home" },
53+
{ text: "编程原则", link: "/zh/principles/", icon: "home" },
54+
{ text: "代码片段", link: "/zh/snippets/", icon: "home" },
5555
],
5656
},
5757
},

docs/zh/readme.md

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,40 @@ home: true
44
icon: home
55
title: Java Design Patterns
66
heroImage: /logo.svg
7-
heroText: Software design patterns, principles, and snippets
8-
tagline: The best designers will use many design patterns that dovetail and intertwine to produce a greater whole --Erich Gamma
7+
heroText: 软件设计模式,编程原则还有代码片段
8+
tagline: 最好的设计师会使用许多相互吻合和交织的设计模式,以产生更大的整体 --Erich Gamma
99
heroFullScreen: true
1010
action:
11-
- text: Study the design patterns 💡
11+
- text: 学习设计模式 💡
1212
link: /patterns/
1313
type: primary
1414
features:
15-
- title: Design Patterns
16-
details: Study the world's largest collection of software design patterns implemented in Java.
15+
- title: 设计模式
16+
details: 学习世界上最大的用 Java 实现的软件设计模式集合。
1717
link: /patterns/
18-
- title: Software Design Principles
19-
details: Software design has certain universal laws and principles to guide the implementors.
18+
- title: 软件设计原则
19+
details: 软件设计有一定的普遍规律和原则来指导实施者。
2020
link: /principles/
21-
- title: Code Snippets
22-
details: 30 Seconds of Java is a collection of reusable, tested, copy-pasteable Java 11 compatible code snippets that you can understand in 30 seconds or less.
21+
- title: 代码片段
22+
details: 30秒钟Java是一组可重用、经过测试、可复制粘贴的 Java 11 兼容代码片段,您可以在 30 秒或更短的时间内理解这些代码片段。
2323
link: /snippets/
2424
footer: MIT licensed
2525
---
2626

27-
# Introduction
27+
# 介绍
2828

29-
Design patterns are the best formalized practices a programmer can use to
30-
solve common problems when designing an application or system.
29+
设计模式是程序员在设计应用程序或系统时可以用来解决常见问题的最佳形式化实践。
30+
设计模式可以通过提供经过测试的、经过验证的开发范例来加速开发过程。
31+
重用设计模式有助于防止导致重大问题的细微问题,并且还提高了熟悉这些模式的编码人员和架构师的代码可读性。
3132

32-
Design patterns can speed up the development process by providing tested, proven
33-
development paradigms.
33+
# 开始
3434

35-
Reusing design patterns help prevent subtle issues that cause major
36-
problems, and it also improves code readability for coders and architects who
37-
are familiar with the patterns.
35+
该站点展示了基于 Java 的设计模式、原则和代码片段。 这些解决方案由来自开源社区的经验丰富的程序员和架构师开发。 这些模式可以通过它们的高级描述或通过查看它们的源代码来浏览。 源代码示例有很好的注释,可以被认为是关于如何实现特定模式的编程教程。 我们使用最流行的久经考验的开源 Java 技术。
36+
希望您发现本网站上提供的面向对象的解决方案对您的体系结构很有用,并且在学习它们时和我们开发它们时一样有趣。
3837

39-
# Getting started
38+
# 如何贡献
4039

41-
This site showcases Java-based design patterns, principles, and code snippets. The
42-
solutions have been developed by experienced programmers and architects from the
43-
open source community. The patterns can be browsed by their high level descriptions
44-
or by looking at their source code. The source code examples are well commented and
45-
can be thought as programming tutorials on how to implement a specific pattern. We
46-
use the most popular battle-proven open source Java technologies.
47-
48-
Hopefully you find the object oriented solutions presented on this site useful
49-
in your architectures and have as much fun learning them as we had developing them.
50-
51-
# How to contribute
52-
53-
The website is the result of the work of the open source community. To contribute
54-
to the content, please follow the Github repository links below.
40+
该网站是开源社区工作的结果。 要对内容做出贡献,请按照下面的 Github 仓库链接进行操作。
5541

5642
- [Website](https://github.com/iluwatar/java-design-patterns-vuepress-web)
5743
- [Design Patterns](https://github.com/iluwatar/java-design-patterns)

0 commit comments

Comments
 (0)