Skip to content

Commit ecd57ef

Browse files
committed
docs: add Chinese translation of Template Method Pattern
1 parent a14f787 commit ecd57ef

File tree

1 file changed

+16
-8
lines changed
  • locale/zh_CN/LC_MESSAGES/Behavioral/TemplateMethod

1 file changed

+16
-8
lines changed

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

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,63 +5,71 @@ 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/TemplateMethod/README.rst:2
1515
msgid "`Template Method`__"
16-
msgstr ""
16+
msgstr "`模板方法模式`__"
1717

1818
#: ../../Behavioral/TemplateMethod/README.rst:5
1919
msgid "Purpose"
20-
msgstr ""
20+
msgstr "目的"
2121

2222
#: ../../Behavioral/TemplateMethod/README.rst:7
2323
msgid "Template Method is a behavioral design pattern."
24-
msgstr ""
24+
msgstr "模板方法是一种行为设计模式。"
2525

2626
#: ../../Behavioral/TemplateMethod/README.rst:9
2727
msgid ""
2828
"Perhaps you have encountered it many times already. The idea is to let "
2929
"subclasses of this abstract template \"finish\" the behavior of an "
3030
"algorithm."
3131
msgstr ""
32+
"你可能已经遇到过很多次了。"
33+
"它的思想是让这个抽象模板的子类【完成】算法的行为策略。"
3234

3335
#: ../../Behavioral/TemplateMethod/README.rst:13
3436
msgid ""
3537
"A.k.a the \"Hollywood principle\": \"Don't call us, we call you.\" This "
3638
"class is not called by subclasses but the inverse. How? With abstraction of "
3739
"course."
3840
msgstr ""
41+
"也就是【好莱坞原则】:【别打给我们,我们打给你】。"
42+
"这个类不是由子类调用的,而是由相反的子类调用的。怎么样?当然是抽象的。"
3943

4044
#: ../../Behavioral/TemplateMethod/README.rst:17
4145
msgid ""
4246
"In other words, this is a skeleton of algorithm, well-suited for framework "
4347
"libraries. The user has just to implement one method and the superclass do "
4448
"the job."
4549
msgstr ""
50+
"换句话说,这是一个算法框架,非常适合框架库。"
51+
"用户只需要实现一个方法,超类就可以完成这项工作。"
4652

4753
#: ../../Behavioral/TemplateMethod/README.rst:21
4854
msgid ""
4955
"It is an easy way to decouple concrete classes and reduce copy-paste, that's"
5056
" why you'll find it everywhere."
5157
msgstr ""
58+
"它是解耦具体类和减少复制黏贴的一种简单方法,"
59+
"这就是为什么你会发现它无处不在。"
5260

5361
#: ../../Behavioral/TemplateMethod/README.rst:25
5462
msgid "UML Diagram"
55-
msgstr ""
63+
msgstr "UML 图"
5664

5765
#: ../../Behavioral/TemplateMethod/README.rst:32
5866
msgid "Code"
59-
msgstr ""
67+
msgstr "代码"
6068

6169
#: ../../Behavioral/TemplateMethod/README.rst:34
6270
msgid "You can also find this code on `GitHub`_"
63-
msgstr ""
71+
msgstr "在 `GitHub`_ 上查看代码"
6472

6573
#: ../../Behavioral/TemplateMethod/README.rst:55
6674
msgid "Test"
67-
msgstr ""
75+
msgstr "测试"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy