mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-03 21:47:25 +02:00
docs: add Chinese translation of Strategy Pattern
This commit is contained in:
@@ -5,7 +5,7 @@ msgstr ""
|
|||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
|
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: David Wan <autoloadone@gmail.com>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@@ -13,27 +13,27 @@ msgstr ""
|
|||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:2
|
#: ../../Behavioral/Strategy/README.rst:2
|
||||||
msgid "`Strategy`__"
|
msgid "`Strategy`__"
|
||||||
msgstr ""
|
msgstr "`策略模式`__"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:5
|
#: ../../Behavioral/Strategy/README.rst:5
|
||||||
msgid "Terminology:"
|
msgid "Terminology:"
|
||||||
msgstr ""
|
msgstr "术语"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:7
|
#: ../../Behavioral/Strategy/README.rst:7
|
||||||
msgid "Context"
|
msgid "Context"
|
||||||
msgstr ""
|
msgstr "上下文"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:8
|
#: ../../Behavioral/Strategy/README.rst:8
|
||||||
msgid "Strategy"
|
msgid "Strategy"
|
||||||
msgstr ""
|
msgstr "策略"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:9
|
#: ../../Behavioral/Strategy/README.rst:9
|
||||||
msgid "Concrete Strategy"
|
msgid "Concrete Strategy"
|
||||||
msgstr ""
|
msgstr "具体的策略"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:12
|
#: ../../Behavioral/Strategy/README.rst:12
|
||||||
msgid "Purpose"
|
msgid "Purpose"
|
||||||
msgstr ""
|
msgstr "目的"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:14
|
#: ../../Behavioral/Strategy/README.rst:14
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -41,32 +41,36 @@ msgid ""
|
|||||||
"pattern is a good alternative to inheritance (instead of having an abstract "
|
"pattern is a good alternative to inheritance (instead of having an abstract "
|
||||||
"class that is extended)."
|
"class that is extended)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"分开策略,并使它们之间能够快速切换。"
|
||||||
|
"此外,这种模式也是继承的一种很好的替代方法(而不是扩展抽象类)"
|
||||||
|
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:19
|
#: ../../Behavioral/Strategy/README.rst:19
|
||||||
msgid "Examples"
|
msgid "Examples"
|
||||||
msgstr ""
|
msgstr "例子"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:21
|
#: ../../Behavioral/Strategy/README.rst:21
|
||||||
msgid "sorting a list of objects, one strategy by date, the other by id"
|
msgid "sorting a list of objects, one strategy by date, the other by id"
|
||||||
msgstr ""
|
msgstr "对对象列表进行排序,一种策略是根据日期,另一种策略是根据id"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:22
|
#: ../../Behavioral/Strategy/README.rst:22
|
||||||
msgid ""
|
msgid ""
|
||||||
"simplify unit testing: e.g. switching between file and in-memory storage"
|
"simplify unit testing: e.g. switching between file and in-memory storage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"简化单元测试:例如在文件和内存存储之间切换"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:26
|
#: ../../Behavioral/Strategy/README.rst:26
|
||||||
msgid "UML Diagram"
|
msgid "UML Diagram"
|
||||||
msgstr ""
|
msgstr "UML 图"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:33
|
#: ../../Behavioral/Strategy/README.rst:33
|
||||||
msgid "Code"
|
msgid "Code"
|
||||||
msgstr ""
|
msgstr "代码"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:35
|
#: ../../Behavioral/Strategy/README.rst:35
|
||||||
msgid "You can also find this code on `GitHub`_"
|
msgid "You can also find this code on `GitHub`_"
|
||||||
msgstr ""
|
msgstr "在 `GitHub`_ 上查看代码"
|
||||||
|
|
||||||
#: ../../Behavioral/Strategy/README.rst:62
|
#: ../../Behavioral/Strategy/README.rst:62
|
||||||
msgid "Test"
|
msgid "Test"
|
||||||
msgstr ""
|
msgstr "测试"
|
||||||
|
Reference in New Issue
Block a user