Skip to content

Commit a14f787

Browse files
committed
docs: add Chinese translation of Strategy Pattern
1 parent d7422d0 commit a14f787

File tree

1 file changed

+17
-13
lines changed
  • locale/zh_CN/LC_MESSAGES/Behavioral/Strategy

1 file changed

+17
-13
lines changed

locale/zh_CN/LC_MESSAGES/Behavioral/Strategy/README.po

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,68 +5,72 @@ msgstr ""
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
77
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8+
"Last-Translator: David Wan <autoloadone@gmail.com>\n"
99
"Language-Team: LANGUAGE <LL@li.org>\n"
1010
"MIME-Version: 1.0\n"
1111
"Content-Type: text/plain; charset=UTF-8\n"
1212
"Content-Transfer-Encoding: 8bit\n"
1313

1414
#: ../../Behavioral/Strategy/README.rst:2
1515
msgid "`Strategy`__"
16-
msgstr ""
16+
msgstr "`策略模式`__"
1717

1818
#: ../../Behavioral/Strategy/README.rst:5
1919
msgid "Terminology:"
20-
msgstr ""
20+
msgstr "术语"
2121

2222
#: ../../Behavioral/Strategy/README.rst:7
2323
msgid "Context"
24-
msgstr ""
24+
msgstr "上下文"
2525

2626
#: ../../Behavioral/Strategy/README.rst:8
2727
msgid "Strategy"
28-
msgstr ""
28+
msgstr "策略"
2929

3030
#: ../../Behavioral/Strategy/README.rst:9
3131
msgid "Concrete Strategy"
32-
msgstr ""
32+
msgstr "具体的策略"
3333

3434
#: ../../Behavioral/Strategy/README.rst:12
3535
msgid "Purpose"
36-
msgstr ""
36+
msgstr "目的"
3737

3838
#: ../../Behavioral/Strategy/README.rst:14
3939
msgid ""
4040
"To separate strategies and to enable fast switching between them. Also this "
4141
"pattern is a good alternative to inheritance (instead of having an abstract "
4242
"class that is extended)."
4343
msgstr ""
44+
"分开策略,并使它们之间能够快速切换。"
45+
"此外,这种模式也是继承的一种很好的替代方法(而不是扩展抽象类)"
46+
4447

4548
#: ../../Behavioral/Strategy/README.rst:19
4649
msgid "Examples"
47-
msgstr ""
50+
msgstr "例子"
4851

4952
#: ../../Behavioral/Strategy/README.rst:21
5053
msgid "sorting a list of objects, one strategy by date, the other by id"
51-
msgstr ""
54+
msgstr "对对象列表进行排序,一种策略是根据日期,另一种策略是根据id"
5255

5356
#: ../../Behavioral/Strategy/README.rst:22
5457
msgid ""
5558
"simplify unit testing: e.g. switching between file and in-memory storage"
5659
msgstr ""
60+
"简化单元测试:例如在文件和内存存储之间切换"
5761

5862
#: ../../Behavioral/Strategy/README.rst:26
5963
msgid "UML Diagram"
60-
msgstr ""
64+
msgstr "UML 图"
6165

6266
#: ../../Behavioral/Strategy/README.rst:33
6367
msgid "Code"
64-
msgstr ""
68+
msgstr "代码"
6569

6670
#: ../../Behavioral/Strategy/README.rst:35
6771
msgid "You can also find this code on `GitHub`_"
68-
msgstr ""
72+
msgstr "在 `GitHub`_ 上查看代码"
6973

7074
#: ../../Behavioral/Strategy/README.rst:62
7175
msgid "Test"
72-
msgstr ""
76+
msgstr "测试"

0 commit comments

Comments
 (0)