Skip to content

Commit eb2fee0

Browse files
suxiaolinguokan-shang
suxiaolin
authored andcommitted
Chinese translation part one
first translation for `zh_CN` fix quote typo finish locale/zh_CN/LC_MESSAGES/Creational/README.po translate to `zh_CN` finish locale/zh_CN/LC_MESSAGES/Creational/Singleton/README.po translate to `zh_CN` finish /Volumes/Macintosh locale/zh_CN/LC_MESSAGES/Creational/StaticFactory/README.po translate to `zh_CN` replace chinses quote to english quote fix format and typo issues, remove need not transition lines. optimized wording, retranslation the MIT LICENSE fix double single quote issue
1 parent 957e649 commit eb2fee0

File tree

4 files changed

+42
-23
lines changed

4 files changed

+42
-23
lines changed

locale/zh_CN/LC_MESSAGES/Creational/README.po

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgstr ""
1313

1414
#: ../../Creational/README.rst:2
1515
msgid "Creational"
16-
msgstr ""
16+
msgstr "创建型设计模式"
1717

1818
#: ../../Creational/README.rst:4
1919
msgid ""
@@ -23,3 +23,7 @@ msgid ""
2323
" design problems or added complexity to the design. Creational design "
2424
"patterns solve this problem by somehow controlling this object creation."
2525
msgstr ""
26+
"在软件工程中,创建型设计模式承担着对象创建的职责,尝试创建"
27+
"适合程序上下文的对象,对象创建设计模式的产生是由于软件工程"
28+
"设计的问题,具体说是向设计中增加复杂度,创建型设计模式解决"
29+
"了程序设计中对象创建的问题。"

locale/zh_CN/LC_MESSAGES/Creational/Singleton/README.po

+12-11
Original file line numberDiff line numberDiff line change
@@ -13,62 +13,63 @@ msgstr ""
1313

1414
#: ../../Creational/Singleton/README.rst:2
1515
msgid "`Singleton`__"
16-
msgstr ""
16+
msgstr "`单例模式`__"
1717

1818
#: ../../Creational/Singleton/README.rst:4
1919
msgid ""
2020
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
2121
"MAINTAINABILITY USE DEPENDENCY INJECTION!**"
22-
msgstr ""
22+
msgstr "**单例模式已经被考虑列入到反模式中!请使用依赖注入获得更好的代码可测试性和可控性!**"
2323

2424
#: ../../Creational/Singleton/README.rst:8
2525
msgid "Purpose"
26-
msgstr ""
26+
msgstr "目标"
2727

2828
#: ../../Creational/Singleton/README.rst:10
2929
msgid ""
3030
"To have only one instance of this object in the application that will handle"
3131
" all calls."
32-
msgstr ""
32+
msgstr "使应用中只存在一个对象的实例,并且使这个单实例负责所有对该对象的调用。"
3333

3434
#: ../../Creational/Singleton/README.rst:14
3535
msgid "Examples"
36-
msgstr ""
36+
msgstr "例子"
3737

3838
#: ../../Creational/Singleton/README.rst:16
3939
msgid "DB Connector"
40-
msgstr ""
40+
msgstr "数据库连接器"
4141

4242
#: ../../Creational/Singleton/README.rst:17
4343
msgid ""
4444
"Logger (may also be a Multiton if there are many log files for several "
4545
"purposes)"
46-
msgstr ""
46+
msgstr "日志记录器 (可能有多个实例,比如有多个日志文件因为不同的目的记录不同到的日志)"
4747

4848
#: ../../Creational/Singleton/README.rst:19
4949
msgid ""
5050
"Lock file for the application (there is only one in the filesystem ...)"
5151
msgstr ""
52+
"应用锁文件 (理论上整个应用只有一个锁文件 ...)"
5253

5354
#: ../../Creational/Singleton/README.rst:23
5455
msgid "UML Diagram"
55-
msgstr ""
56+
msgstr "UML 图"
5657

5758
#: ../../Creational/Singleton/README.rst:30
5859
msgid "Code"
59-
msgstr ""
60+
msgstr "代码"
6061

6162
#: ../../Creational/Singleton/README.rst:32
6263
msgid "You can also find these code on `GitHub`_"
63-
msgstr ""
64+
msgstr "你可以在 `GitHub`_ 上找到这些代码"
6465

6566
#: ../../Creational/Singleton/README.rst:34
6667
msgid "Singleton.php"
6768
msgstr ""
6869

6970
#: ../../Creational/Singleton/README.rst:41
7071
msgid "Test"
71-
msgstr ""
72+
msgstr "测试"
7273

7374
#: ../../Creational/Singleton/README.rst:43
7475
msgid "Tests/SingletonTest.php"

locale/zh_CN/LC_MESSAGES/Creational/StaticFactory/README.po

+11-7
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ msgstr ""
1313

1414
#: ../../Creational/StaticFactory/README.rst:2
1515
msgid "Static Factory"
16-
msgstr ""
16+
msgstr "静态工厂"
1717

1818
#: ../../Creational/StaticFactory/README.rst:5
1919
msgid "Purpose"
20-
msgstr ""
20+
msgstr "目的"
2121

2222
#: ../../Creational/StaticFactory/README.rst:7
2323
msgid ""
@@ -27,28 +27,32 @@ msgid ""
2727
"method to create all types of objects it can create. It is usually named "
2828
"``factory`` or ``build``."
2929
msgstr ""
30+
"和抽象工厂类似,静态工厂模式用来创建一系列互相关联或依赖的对象,和抽象工厂模式不同的是静态工厂"
31+
"模式只用一个静态方法就解决了所有类型的对象创建,通常被命名为``工厂`` 或者 ``构建器``"
3032

3133
#: ../../Creational/StaticFactory/README.rst:14
3234
msgid "Examples"
33-
msgstr ""
35+
msgstr "例子"
3436

3537
#: ../../Creational/StaticFactory/README.rst:16
3638
msgid ""
3739
"Zend Framework: ``Zend_Cache_Backend`` or ``_Frontend`` use a factory method"
3840
" create cache backends or frontends"
3941
msgstr ""
42+
"Zend Framework 框架中的: ``Zend_Cache_Backend`` 和 ``_Frontend`` 使用了静态工厂设计模式"
43+
" 创建后端缓存或者前端缓存对象"
4044

4145
#: ../../Creational/StaticFactory/README.rst:20
4246
msgid "UML Diagram"
43-
msgstr ""
47+
msgstr "UML 图"
4448

4549
#: ../../Creational/StaticFactory/README.rst:27
4650
msgid "Code"
47-
msgstr ""
51+
msgstr "代码"
4852

4953
#: ../../Creational/StaticFactory/README.rst:29
5054
msgid "You can also find these code on `GitHub`_"
51-
msgstr ""
55+
msgstr "你可以在 `GitHub`_ 上找到这些代码"
5256

5357
#: ../../Creational/StaticFactory/README.rst:31
5458
msgid "StaticFactory.php"
@@ -68,7 +72,7 @@ msgstr ""
6872

6973
#: ../../Creational/StaticFactory/README.rst:56
7074
msgid "Test"
71-
msgstr ""
75+
msgstr "测试"
7276

7377
#: ../../Creational/StaticFactory/README.rst:58
7478
msgid "Tests/StaticFactoryTest.php"

locale/zh_CN/LC_MESSAGES/README.po

+14-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ msgstr ""
3232
msgid ""
3333
"I think the problem with patterns is that often people do know them but "
3434
"don't know when to apply which."
35-
msgstr "翻译。。。"
35+
msgstr “”
36+
"我认为人们对于设计模式抱有的问题在于大家都了解它们却不知道该如何在实际中使用它们。"
3637

3738
#: ../../README.rst:20
3839
msgid "Patterns"
@@ -57,19 +58,21 @@ msgid ""
5758
"send a pull request with your changes! To establish a consistent code "
5859
"quality, please check your code using `PHP CodeSniffer`_ against `PSR2 "
5960
"standard`_ using ``./vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor .``."
60-
msgstr "翻译。。。"
61+
msgstr ""
62+
"欢迎你fork代码修改和提pr,为了保证代码的质量,"
63+
"请使用 `PHP CodeSniffer`_ 检查你的代码是否遵守 `PSR2 编码规范`_,使用 ``./vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor .``. 命令检查。"
6164

6265
#: ../../README.rst:44
6366
msgid "License"
6467
msgstr "协议"
6568

6669
#: ../../README.rst:46
6770
msgid "(The MIT License)"
68-
msgstr ""
71+
msgstr "MIT 授权协议"
6972

7073
#: ../../README.rst:48
7174
msgid "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_"
72-
msgstr ""
75+
msgstr "Copyright (c) 2014 `Dominik Liebler`_ 和 `贡献者`_"
7376

7477
#: ../../README.rst:50
7578
msgid ""
@@ -80,12 +83,16 @@ msgid ""
8083
"sell copies of the Software, and to permit persons to whom the Software is "
8184
"furnished to do so, subject to the following conditions:"
8285
msgstr ""
86+
"在此授权给任何遵守本软件授权协议的人免费使用的权利,可以"
87+
"不受限制的的使用,包括不受限制的使用,复制,修改,合并,重新发布,分发,改变授权许可,甚至售卖本软件的拷贝,"
88+
"同时也允许买这个软件的个人也具备上述权利,大意如下:"
8389

8490
#: ../../README.rst:58
8591
msgid ""
8692
"The above copyright notice and this permission notice shall be included in "
8793
"all copies or substantial portions of the Software."
8894
msgstr ""
95+
"上面的权利和授权注意事项应该被包括在本软件的所有的派生分支/版本中"
8996

9097
#: ../../README.rst:61
9198
msgid ""
@@ -97,3 +104,6 @@ msgid ""
97104
"FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS "
98105
"IN THE SOFTWARE."
99106
msgstr ""
107+
"该软件是'按原样'提供的,没有任何形式的明示或暗示,包括但不限于为特定目的和不侵权的适销性和适用性的保证担保。"
108+
"在任何情况下,作者或版权持有人,都无权要求任何索赔,或有关损害赔偿的其他责任。"
109+
"无论在本软件的使用上或其他买卖交易中,是否涉及合同,侵权或其他行为。"

0 commit comments

Comments
 (0)