From dc82511d58349b1033c9f7634573c58e7defc027 Mon Sep 17 00:00:00 2001 From: autoload Date: Sun, 31 Oct 2021 10:33:20 -0700 Subject: [PATCH 1/2] docs: add Translation to Chinese --- locale/zh_CN/LC_MESSAGES/Behavioral/README.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/locale/zh_CN/LC_MESSAGES/Behavioral/README.po b/locale/zh_CN/LC_MESSAGES/Behavioral/README.po index 93ebd7c..dd81900 100644 --- a/locale/zh_CN/LC_MESSAGES/Behavioral/README.po +++ b/locale/zh_CN/LC_MESSAGES/Behavioral/README.po @@ -13,7 +13,7 @@ msgstr "" #: ../../Behavioral/README.rst:2 msgid "`Behavioral`__" -msgstr "" +msgstr "`行为型设计模式`__" #: ../../Behavioral/README.rst:4 msgid "" @@ -22,3 +22,5 @@ msgid "" "patterns. By doing so, these patterns increase flexibility in carrying out " "this communication." msgstr "" +"在软件工程中,行为设计模式是识别对象之间的通用通信模式并实现这些模式的设计模式。" +"通过这样做,这些模式增加了执行这种通信的灵活性。" From c9555390cef1e92aa84dc1e3fa9801db047cf752 Mon Sep 17 00:00:00 2001 From: autoload Date: Sun, 31 Oct 2021 12:00:12 -0700 Subject: [PATCH 2/2] docs: add Translation to Chinese --- .../ChainOfResponsibilities/README.po | 24 ++++++++++++------- locale/zh_CN/LC_MESSAGES/Behavioral/README.po | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/locale/zh_CN/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po b/locale/zh_CN/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po index 5c11cce..9b3329b 100644 --- a/locale/zh_CN/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po +++ b/locale/zh_CN/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po @@ -13,11 +13,11 @@ msgstr "" #: ../../Behavioral/ChainOfResponsibilities/README.rst:2 msgid "`Chain Of Responsibilities`__" -msgstr "" +msgstr "`责任链模式`__" #: ../../Behavioral/ChainOfResponsibilities/README.rst:5 -msgid "Purpose:" -msgstr "" +msgid "Purpose" +msgstr "目的" #: ../../Behavioral/ChainOfResponsibilities/README.rst:7 msgid "" @@ -25,39 +25,45 @@ msgid "" "object cannot handle a call, it delegates the call to the next in the chain " "and so forth." msgstr "" +"创建一个按顺序处理调用的对象链。" +"如果一个对象不能处理调用," +"它将把调用委托给链中的下一个对象,以此类推。" #: ../../Behavioral/ChainOfResponsibilities/README.rst:12 -msgid "Examples:" -msgstr "" +msgid "Examples" +msgstr "例子" #: ../../Behavioral/ChainOfResponsibilities/README.rst:14 msgid "" "logging framework, where each chain element decides autonomously what to do " "with a log message" msgstr "" +"日志框架,其中每个链元素自主决定如何处理日志信息" #: ../../Behavioral/ChainOfResponsibilities/README.rst:16 msgid "a Spam filter" msgstr "" +"垃圾邮件过滤器" #: ../../Behavioral/ChainOfResponsibilities/README.rst:17 msgid "" "Caching: first object is an instance of e.g. a Memcached Interface, if that " "\"misses\" it delegates the call to the database interface" msgstr "" +"缓存:第一个对象是一个例如Memcached的接口,如果“没有命中”它则委托调用数据库的接口" #: ../../Behavioral/ChainOfResponsibilities/README.rst:25 msgid "UML Diagram" -msgstr "" +msgstr "UML 图" #: ../../Behavioral/ChainOfResponsibilities/README.rst:32 msgid "Code" -msgstr "" +msgstr "代码" #: ../../Behavioral/ChainOfResponsibilities/README.rst:34 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "在 `GitHub`_ 上查看代码" #: ../../Behavioral/ChainOfResponsibilities/README.rst:61 msgid "Test" -msgstr "" +msgstr "测试" diff --git a/locale/zh_CN/LC_MESSAGES/Behavioral/README.po b/locale/zh_CN/LC_MESSAGES/Behavioral/README.po index dd81900..54041d9 100644 --- a/locale/zh_CN/LC_MESSAGES/Behavioral/README.po +++ b/locale/zh_CN/LC_MESSAGES/Behavioral/README.po @@ -22,5 +22,5 @@ msgid "" "patterns. By doing so, these patterns increase flexibility in carrying out " "this communication." msgstr "" -"在软件工程中,行为设计模式是识别对象之间的通用通信模式并实现这些模式的设计模式。" +"在软件工程中,行为设计模式是识别对象之间常见的通信模式并实现这些模式的设计模式。" "通过这样做,这些模式增加了执行这种通信的灵活性。"