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