Skip to content

Commit e326bf7

Browse files
committed
docs: improve Chinese translation of FactoryMethod
1 parent adfb13a commit e326bf7

File tree

1 file changed

+9
-7
lines changed
  • locale/zh_CN/LC_MESSAGES/Creational/FactoryMethod

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ msgstr ""
44
"Project-Id-Version: DesignPatternsPHP 1.0\n"
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
7-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9-
"Language-Team: LANGUAGE <LL@li.org>\n"
7+
"PO-Revision-Date: 2022-01-05 20:02+0800\n"
8+
"Last-Translator: Aspirant Zhang <admin@aspirantzhang.com>\n"
109
"MIME-Version: 1.0\n"
1110
"Content-Type: text/plain; charset=UTF-8\n"
1211
"Content-Transfer-Encoding: 8bit\n"
12+
"Language: zh_CN\n"
1313

1414
#: ../../Creational/FactoryMethod/README.rst:2
1515
msgid "`Factory Method`__"
@@ -24,26 +24,28 @@ msgid ""
2424
"The good point over the SimpleFactory is you can subclass it to implement different ways to create "
2525
"objects."
2626
msgstr ""
27-
"比简单工厂模式好的一点是工厂方法可以通过继承实现不同的创建对象的逻辑。"
27+
"相比 简单工厂模式(SimpleFactory)而言,工厂方法模式(Factory Method)可以通过延伸出子类,实现用不同的方法创建对象。"
2828

2929
#: ../../Creational/FactoryMethod/README.rst:10
3030
msgid "For simple cases, this abstract class could be just an interface."
3131
msgstr ""
32-
"举个简单的例子,这些抽象类都仅仅是一个接口"
32+
"对于比较简单的情况,这个抽象类可能只是一个接口。"
3333

3434
#: ../../Creational/FactoryMethod/README.rst:12
3535
msgid ""
3636
"This pattern is a \"real\" Design Pattern because it achieves the "
3737
"Dependency Inversion principle a.k.a the \"D\" in SOLID principles."
3838
msgstr ""
39-
"这个模式是一个 \"真正\" 的设计模式,因为它遵循了依赖反转原则(Dependency Inversion Principle) 众所周知这个 \"D\" 代表了真正的面向对象程序设计。"
39+
"这是一个 \"真正\" 的设计模式,因为它遵循了\"依赖反转原则(Dependency Inversion Principle)\" 。"
40+
"也就是 SOLID 原则中的\"D\"。"
4041

4142
#: ../../Creational/FactoryMethod/README.rst:15
4243
msgid ""
4344
"It means the FactoryMethod class depends on abstractions, not concrete "
4445
"classes. This is the real trick compared to SimpleFactory or StaticFactory."
4546
msgstr ""
46-
"它意味着工厂方法类依赖于类的抽象,而不是具体将被创建的类,这是工厂方法模式与简单工厂模式和静态工厂模式最重要的区别"
47+
"这意味着工厂方法实现的类依赖于类的抽象,而不是具体的类。"
48+
"这也是 工厂方法模式 与 简单工厂模式 和 静态工厂模式 之间最重要的区别。"
4749

4850
#: ../../Creational/FactoryMethod/README.rst:20
4951
msgid "UML Diagram"

0 commit comments

Comments
 (0)