Skip to content

Commit e3b5a4e

Browse files
committed
docs: add Chinese translation of Iterator Pattern
1 parent 1dd8d57 commit e3b5a4e

File tree

1 file changed

+13
-10
lines changed
  • locale/zh_CN/LC_MESSAGES/Behavioral/Iterator

1 file changed

+13
-10
lines changed

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,57 +5,60 @@ 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/Iterator/README.rst:2
1515
msgid "`Iterator`__"
16-
msgstr ""
16+
msgstr "迭代器模式"
1717

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

2222
#: ../../Behavioral/Iterator/README.rst:7
2323
msgid "To make an object iterable and to make it appear like a collection of objects."
24-
msgstr ""
24+
msgstr "使一个对象可迭代,并使它看起来像对象集合。"
2525

2626
#: ../../Behavioral/Iterator/README.rst:11
27-
msgid "Examples"
27+
msgid "例子"
2828
msgstr ""
2929

3030
#: ../../Behavioral/Iterator/README.rst:13
3131
msgid ""
3232
"to process a file line by line by just running over all lines (which have an"
3333
" object representation) for a file (which of course is an object, too)"
3434
msgstr ""
35+
"通过遍历文件的所有行(对象表现形式的)来逐行处理文件(也是对象)"
3536

3637
#: ../../Behavioral/Iterator/README.rst:18
3738
msgid "Note"
38-
msgstr ""
39+
msgstr "注意"
3940

4041
#: ../../Behavioral/Iterator/README.rst:20
4142
msgid ""
4243
"Standard PHP Library (SPL) defines an interface Iterator which is best "
4344
"suited for this! Often you would want to implement the Countable interface "
4445
"too, to allow ``count($object)`` on your iterable object"
4546
msgstr ""
47+
"标准PHP库(SPL)定义了一个最适合这种模式的接口迭代器! "
48+
"通常也要实现Countable接口,允许在iterable对象上使用count($object)"
4649

4750
#: ../../Behavioral/Iterator/README.rst:25
4851
msgid "UML Diagram"
49-
msgstr ""
52+
msgstr "UML 图"
5053

5154
#: ../../Behavioral/Iterator/README.rst:32
5255
msgid "Code"
53-
msgstr ""
56+
msgstr "代码"
5457

5558
#: ../../Behavioral/Iterator/README.rst:34
5659
msgid "You can also find this code on `GitHub`_"
57-
msgstr ""
60+
msgstr "在 `GitHub`_ 上查看代码"
5861

5962
#: ../../Behavioral/Iterator/README.rst:61
6063
msgid "Test"
61-
msgstr ""
64+
msgstr "测试"

0 commit comments

Comments
 (0)