mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 13:07:27 +02:00
docs: add Translation to Chinese
This commit is contained in:
@@ -13,11 +13,11 @@ msgstr ""
|
|||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:2
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:2
|
||||||
msgid "`Chain Of Responsibilities`__"
|
msgid "`Chain Of Responsibilities`__"
|
||||||
msgstr ""
|
msgstr "`责任链模式`__"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:5
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:5
|
||||||
msgid "Purpose:"
|
msgid "Purpose"
|
||||||
msgstr ""
|
msgstr "目的"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:7
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:7
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -25,39 +25,45 @@ msgid ""
|
|||||||
"object cannot handle a call, it delegates the call to the next in the chain "
|
"object cannot handle a call, it delegates the call to the next in the chain "
|
||||||
"and so forth."
|
"and so forth."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"创建一个按顺序处理调用的对象链。"
|
||||||
|
"如果一个对象不能处理调用,"
|
||||||
|
"它将把调用委托给链中的下一个对象,以此类推。"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:12
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:12
|
||||||
msgid "Examples:"
|
msgid "Examples"
|
||||||
msgstr ""
|
msgstr "例子"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:14
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:14
|
||||||
msgid ""
|
msgid ""
|
||||||
"logging framework, where each chain element decides autonomously what to do "
|
"logging framework, where each chain element decides autonomously what to do "
|
||||||
"with a log message"
|
"with a log message"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"日志框架,其中每个链元素自主决定如何处理日志信息"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:16
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:16
|
||||||
msgid "a Spam filter"
|
msgid "a Spam filter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"垃圾邮件过滤器"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:17
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:17
|
||||||
msgid ""
|
msgid ""
|
||||||
"Caching: first object is an instance of e.g. a Memcached Interface, if that "
|
"Caching: first object is an instance of e.g. a Memcached Interface, if that "
|
||||||
"\"misses\" it delegates the call to the database interface"
|
"\"misses\" it delegates the call to the database interface"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"缓存:第一个对象是一个例如Memcached的接口,如果“没有命中”它则委托调用数据库的接口"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:25
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:25
|
||||||
msgid "UML Diagram"
|
msgid "UML Diagram"
|
||||||
msgstr ""
|
msgstr "UML 图"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:32
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:32
|
||||||
msgid "Code"
|
msgid "Code"
|
||||||
msgstr ""
|
msgstr "代码"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:34
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:34
|
||||||
msgid "You can also find this code on `GitHub`_"
|
msgid "You can also find this code on `GitHub`_"
|
||||||
msgstr ""
|
msgstr "在 `GitHub`_ 上查看代码"
|
||||||
|
|
||||||
#: ../../Behavioral/ChainOfResponsibilities/README.rst:61
|
#: ../../Behavioral/ChainOfResponsibilities/README.rst:61
|
||||||
msgid "Test"
|
msgid "Test"
|
||||||
msgstr ""
|
msgstr "测试"
|
||||||
|
@@ -22,5 +22,5 @@ msgid ""
|
|||||||
"patterns. By doing so, these patterns increase flexibility in carrying out "
|
"patterns. By doing so, these patterns increase flexibility in carrying out "
|
||||||
"this communication."
|
"this communication."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"在软件工程中,行为设计模式是识别对象之间的通用通信模式并实现这些模式的设计模式。"
|
"在软件工程中,行为设计模式是识别对象之间常见的通信模式并实现这些模式的设计模式。"
|
||||||
"通过这样做,这些模式增加了执行这种通信的灵活性。"
|
"通过这样做,这些模式增加了执行这种通信的灵活性。"
|
||||||
|
Reference in New Issue
Block a user