@@ -4,7 +4,7 @@ msgstr ""
44"Project-Id-Version : mongodb-manual 3.0\n "
55"Report-Msgid-Bugs-To : \n "
66"POT-Creation-Date : 2015-08-20 19:13-0400\n "
7- "PO-Revision-Date : 2016-08-08 18:53 +0800\n "
7+ "PO-Revision-Date : 2016-08-09 12:31 +0800\n "
88"MIME-Version : 1.0\n "
99"Content-Type : text/plain; charset=UTF-8\n "
1010"Content-Transfer-Encoding : 8bit\n "
@@ -127,7 +127,7 @@ msgid ""
127127msgstr ""
128128"如下的示例向 ``users`` 集合插入了一个新的文档.新的文档有三个字段 ``name``,"
129129"``age``,和 ``status``.由于该文档未指定 ``_id`` 字段,MongoDB 向该新文档添加了值"
130- "为 :ref:`objectid` 的 ``_id`` 字段."
130+ "为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:`write-op-insert-behavior`. "
131131
132132#: ../source/tutorial/insert-documents.txt:79
133133#: ../source/tutorial/insert-documents.txt:125
@@ -156,6 +156,8 @@ msgid ""
156156":method:`db.collection.insertMany()` inserts *multiple* :ref:`documents <bson-"
157157"document-format>` into a collection."
158158msgstr ""
159+ ":method:`db.collection.insertMany()` 向集合插入 *多个* :ref:`documents <bson-"
160+ "document-format>`."
159161
160162#: ../source/tutorial/insert-documents.txt:109
161163msgid ""
@@ -165,17 +167,22 @@ msgid ""
165167"field with an ObjectId value to each document. See :ref:`write-op-insert-"
166168"behavior`."
167169msgstr ""
170+ "如下的示例向 ``users`` 集合插入了三个新的文档.每个文档有三个字段 ``name``,"
171+ "``age``,和 ``status``.由于这些文档未指定 ``_id`` 字段,MongoDB 向每个新文档添加"
172+ "了值为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:`write-op-insert-behavior`."
168173
169174#: ../source/tutorial/insert-documents.txt:138
170175msgid ""
171176"To verify the inserted document, :ref:`query the collection <read-operations-"
172177"query-document>` by specifying a query filter on the ``_id`` field:"
173178msgstr ""
179+ "为了验证插入了文档,通过指定 ``_id`` 字段上的查询过滤条件 :ref:`query the "
180+ "collection <document-query-filter>`:"
174181
175182#: ../source/tutorial/insert-documents.txt:156
176183msgid ""
177184"For more information and examples, see :method:`db.collection.insertMany()`."
178- msgstr ""
185+ msgstr "更多信息和示例,请参见 :method:`db.collection.insertMany()`. "
179186
180187#: ../source/tutorial/insert-documents.txt:162
181188msgid "``db.collection.insert()``"
@@ -188,6 +195,8 @@ msgid ""
188195"the method; to insert multiple documents, pass an array of documents to the "
189196"method."
190197msgstr ""
198+ ":method:`db.collection.insert()` 向集合插入一个或多个文档.要想插入一个文档,传递"
199+ "一个文档给该方法;要想插入多个文档,传递文档数组给该方法."
191200
192201#: ../source/tutorial/insert-documents.txt:169
193202msgid ""
@@ -196,20 +205,27 @@ msgid ""
196205"document does not specify an ``_id`` field, MongoDB adds the ``_id`` field "
197206"with an ObjectId value to the document. See :ref:`write-op-insert-behavior`."
198207msgstr ""
208+ "如下的示例向 ``users`` 集合插入了一个新的文档.新的文档有三个字段 ``name``,"
209+ "``age``,和 ``status``.由于该文档未指定 ``_id`` 字段,MongoDB 向该文档添加了值"
210+ "为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:`write-op-insert-behavior`."
199211
200212#: ../source/tutorial/insert-documents.txt:185
201213msgid ""
202214"The operation returns a :method:`WriteResult` object with the status of the "
203215"operation. A successful insert of the document returns the following :method:"
204216"`WriteResult` object:"
205217msgstr ""
218+ "该操作返回了含有操作状态的 :method:`WriteResult` 对象.插入文档成功返回如下 :"
219+ "method:`WriteResult` 对象:"
206220
207221#: ../source/tutorial/insert-documents.txt:193
208222msgid ""
209223"The :data:`~WriteResult.nInserted` field specifies the number of documents "
210224"inserted. If the operation encounters an error, the :method:`WriteResult` "
211225"object will contain the error information."
212226msgstr ""
227+ ":data:`~WriteResult.nInserted` 字段指明了插入文档的总数.如果该操作遇到了错误, :"
228+ "method:`WriteResult` 对象将包含该错误信息."
213229
214230#: ../source/tutorial/insert-documents.txt:197
215231msgid ""
@@ -218,59 +234,67 @@ msgid ""
218234"the ``_id`` field with an ObjectId value to each document. See :ref:`write-op-"
219235"insert-behavior`."
220236msgstr ""
237+ "如下的示例向 ``users`` 集合插入了多个文档.由于这些文档未指定 ``_id`` 字段,"
238+ "MongoDB 向每个新文档添加了值为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:"
239+ "`write-op-insert-behavior`."
221240
222241#: ../source/tutorial/insert-documents.txt:212
223242msgid ""
224243"The method returns a :method:`BulkWriteResult` object with the status of the "
225244"operation. A successful insert of the documents returns the following :method:"
226245"`BulkWriteResult` object:"
227246msgstr ""
247+ "该方法返回了包含操作状态的 :method:`BulkWriteResult` 对象.成功插入文档返回如"
248+ "下 :method:`BulkWriteResult` 对象:"
228249
229250#: ../source/tutorial/insert-documents.txt:229
230251msgid "For more information and examples, see :method:`db.collection.insert()`."
231- msgstr ""
252+ msgstr "更多信息和示例,请参见 :method:`db.collection.insert()`. "
232253
233254#: ../source/tutorial/insert-documents.txt:232
234255msgid "Additional Methods"
235256msgstr "其他方法"
236257
237258#: ../source/tutorial/insert-documents.txt:234
238259msgid "The following methods can also add new documents to a collection:"
239- msgstr ""
260+ msgstr "以下方法也可以向集合中添加新文档: "
240261
241262#: ../source/tutorial/insert-documents.txt:236
242263msgid ""
243264":method:`db.collection.update()` when used with the ``upsert: true`` option."
244- msgstr ""
265+ msgstr "和``upsert: true`` 选项一起使用的 :method:`db.collection.update()`. "
245266
246267#: ../source/tutorial/insert-documents.txt:239
247268msgid ""
248269":method:`db.collection.updateOne()` when used with the ``upsert: true`` option."
249- msgstr ""
270+ msgstr "和``upsert: true`` 选项一起使用的 :method:`db.collection.updateOne()`. "
250271
251272#: ../source/tutorial/insert-documents.txt:242
252273msgid ""
253274":method:`db.collection.updateMany()` when used with the ``upsert: true`` "
254275"option."
255- msgstr ""
276+ msgstr "和``upsert: true`` 选项一起使用的 :method:`db.collection.updateMany()` . "
256277
257278#: ../source/tutorial/insert-documents.txt:245
258279msgid ""
259280":method:`db.collection.findAndModify()` when used with the ``upsert: true`` "
260281"option."
261282msgstr ""
283+ "和``upsert: true`` 选项一起使用的 :method:`db.collection.findAndModify()` ."
262284
263285#: ../source/tutorial/insert-documents.txt:248
264286msgid ""
265287":method:`db.collection.findOneAndUpdate()` when used with the ``upsert: true`` "
266288"option."
267289msgstr ""
290+ "和``upsert: true`` 选项一起使用的 :method:`db.collection.findOneAndUpdate()` ."
268291
269292#: ../source/tutorial/insert-documents.txt:251
270293msgid ""
271294":method:`db.collection.findOneAndReplace()` when used with the ``upsert: "
272295"true`` option."
273296msgstr ""
297+ "和``upsert: true`` 选项一起使用的 :method:`db.collection.findOneAndReplace()`."
274298
275299#: ../source/tutorial/insert-documents.txt:254
276300msgid ":method:`db.collection.save()`."
@@ -284,7 +308,7 @@ msgstr ":method:`db.collection.bulkWrite()`."
284308msgid ""
285309"See the individual reference pages for the methods for more information and "
286310"examples."
287- msgstr ""
311+ msgstr "更多信息和示例参见这些方法各自的参考页面. "
288312
289313#: ../source/tutorial/insert-documents.txt:262
290314msgid "Write Acknowledgement"
0 commit comments