@@ -4,7 +4,7 @@ msgstr ""
4
4
"Project-Id-Version : mongodb-manual 3.0\n "
5
5
"Report-Msgid-Bugs-To : \n "
6
6
"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 "
8
8
"MIME-Version : 1.0\n "
9
9
"Content-Type : text/plain; charset=UTF-8\n "
10
10
"Content-Transfer-Encoding : 8bit\n "
@@ -127,7 +127,7 @@ msgid ""
127
127
msgstr ""
128
128
"如下的示例向 ``users`` 集合插入了一个新的文档.新的文档有三个字段 ``name``,"
129
129
"``age``,和 ``status``.由于该文档未指定 ``_id`` 字段,MongoDB 向该新文档添加了值"
130
- "为 :ref:`objectid` 的 ``_id`` 字段."
130
+ "为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:`write-op-insert-behavior`. "
131
131
132
132
#: ../source/tutorial/insert-documents.txt:79
133
133
#: ../source/tutorial/insert-documents.txt:125
@@ -156,6 +156,8 @@ msgid ""
156
156
":method:`db.collection.insertMany()` inserts *multiple* :ref:`documents <bson-"
157
157
"document-format>` into a collection."
158
158
msgstr ""
159
+ ":method:`db.collection.insertMany()` 向集合插入 *多个* :ref:`documents <bson-"
160
+ "document-format>`."
159
161
160
162
#: ../source/tutorial/insert-documents.txt:109
161
163
msgid ""
@@ -165,17 +167,22 @@ msgid ""
165
167
"field with an ObjectId value to each document. See :ref:`write-op-insert-"
166
168
"behavior`."
167
169
msgstr ""
170
+ "如下的示例向 ``users`` 集合插入了三个新的文档.每个文档有三个字段 ``name``,"
171
+ "``age``,和 ``status``.由于这些文档未指定 ``_id`` 字段,MongoDB 向每个新文档添加"
172
+ "了值为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:`write-op-insert-behavior`."
168
173
169
174
#: ../source/tutorial/insert-documents.txt:138
170
175
msgid ""
171
176
"To verify the inserted document, :ref:`query the collection <read-operations-"
172
177
"query-document>` by specifying a query filter on the ``_id`` field:"
173
178
msgstr ""
179
+ "为了验证插入了文档,通过指定 ``_id`` 字段上的查询过滤条件 :ref:`query the "
180
+ "collection <document-query-filter>`:"
174
181
175
182
#: ../source/tutorial/insert-documents.txt:156
176
183
msgid ""
177
184
"For more information and examples, see :method:`db.collection.insertMany()`."
178
- msgstr ""
185
+ msgstr "更多信息和示例,请参见 :method:`db.collection.insertMany()`. "
179
186
180
187
#: ../source/tutorial/insert-documents.txt:162
181
188
msgid "``db.collection.insert()``"
@@ -188,6 +195,8 @@ msgid ""
188
195
"the method; to insert multiple documents, pass an array of documents to the "
189
196
"method."
190
197
msgstr ""
198
+ ":method:`db.collection.insert()` 向集合插入一个或多个文档.要想插入一个文档,传递"
199
+ "一个文档给该方法;要想插入多个文档,传递文档数组给该方法."
191
200
192
201
#: ../source/tutorial/insert-documents.txt:169
193
202
msgid ""
@@ -196,20 +205,27 @@ msgid ""
196
205
"document does not specify an ``_id`` field, MongoDB adds the ``_id`` field "
197
206
"with an ObjectId value to the document. See :ref:`write-op-insert-behavior`."
198
207
msgstr ""
208
+ "如下的示例向 ``users`` 集合插入了一个新的文档.新的文档有三个字段 ``name``,"
209
+ "``age``,和 ``status``.由于该文档未指定 ``_id`` 字段,MongoDB 向该文档添加了值"
210
+ "为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:`write-op-insert-behavior`."
199
211
200
212
#: ../source/tutorial/insert-documents.txt:185
201
213
msgid ""
202
214
"The operation returns a :method:`WriteResult` object with the status of the "
203
215
"operation. A successful insert of the document returns the following :method:"
204
216
"`WriteResult` object:"
205
217
msgstr ""
218
+ "该操作返回了含有操作状态的 :method:`WriteResult` 对象.插入文档成功返回如下 :"
219
+ "method:`WriteResult` 对象:"
206
220
207
221
#: ../source/tutorial/insert-documents.txt:193
208
222
msgid ""
209
223
"The :data:`~WriteResult.nInserted` field specifies the number of documents "
210
224
"inserted. If the operation encounters an error, the :method:`WriteResult` "
211
225
"object will contain the error information."
212
226
msgstr ""
227
+ ":data:`~WriteResult.nInserted` 字段指明了插入文档的总数.如果该操作遇到了错误, :"
228
+ "method:`WriteResult` 对象将包含该错误信息."
213
229
214
230
#: ../source/tutorial/insert-documents.txt:197
215
231
msgid ""
@@ -218,59 +234,67 @@ msgid ""
218
234
"the ``_id`` field with an ObjectId value to each document. See :ref:`write-op-"
219
235
"insert-behavior`."
220
236
msgstr ""
237
+ "如下的示例向 ``users`` 集合插入了多个文档.由于这些文档未指定 ``_id`` 字段,"
238
+ "MongoDB 向每个新文档添加了值为 :ref:`objectid` 的 ``_id`` 字段.参见 :ref:"
239
+ "`write-op-insert-behavior`."
221
240
222
241
#: ../source/tutorial/insert-documents.txt:212
223
242
msgid ""
224
243
"The method returns a :method:`BulkWriteResult` object with the status of the "
225
244
"operation. A successful insert of the documents returns the following :method:"
226
245
"`BulkWriteResult` object:"
227
246
msgstr ""
247
+ "该方法返回了包含操作状态的 :method:`BulkWriteResult` 对象.成功插入文档返回如"
248
+ "下 :method:`BulkWriteResult` 对象:"
228
249
229
250
#: ../source/tutorial/insert-documents.txt:229
230
251
msgid "For more information and examples, see :method:`db.collection.insert()`."
231
- msgstr ""
252
+ msgstr "更多信息和示例,请参见 :method:`db.collection.insert()`. "
232
253
233
254
#: ../source/tutorial/insert-documents.txt:232
234
255
msgid "Additional Methods"
235
256
msgstr "其他方法"
236
257
237
258
#: ../source/tutorial/insert-documents.txt:234
238
259
msgid "The following methods can also add new documents to a collection:"
239
- msgstr ""
260
+ msgstr "以下方法也可以向集合中添加新文档: "
240
261
241
262
#: ../source/tutorial/insert-documents.txt:236
242
263
msgid ""
243
264
":method:`db.collection.update()` when used with the ``upsert: true`` option."
244
- msgstr ""
265
+ msgstr "和``upsert: true`` 选项一起使用的 :method:`db.collection.update()`. "
245
266
246
267
#: ../source/tutorial/insert-documents.txt:239
247
268
msgid ""
248
269
":method:`db.collection.updateOne()` when used with the ``upsert: true`` option."
249
- msgstr ""
270
+ msgstr "和``upsert: true`` 选项一起使用的 :method:`db.collection.updateOne()`. "
250
271
251
272
#: ../source/tutorial/insert-documents.txt:242
252
273
msgid ""
253
274
":method:`db.collection.updateMany()` when used with the ``upsert: true`` "
254
275
"option."
255
- msgstr ""
276
+ msgstr "和``upsert: true`` 选项一起使用的 :method:`db.collection.updateMany()` . "
256
277
257
278
#: ../source/tutorial/insert-documents.txt:245
258
279
msgid ""
259
280
":method:`db.collection.findAndModify()` when used with the ``upsert: true`` "
260
281
"option."
261
282
msgstr ""
283
+ "和``upsert: true`` 选项一起使用的 :method:`db.collection.findAndModify()` ."
262
284
263
285
#: ../source/tutorial/insert-documents.txt:248
264
286
msgid ""
265
287
":method:`db.collection.findOneAndUpdate()` when used with the ``upsert: true`` "
266
288
"option."
267
289
msgstr ""
290
+ "和``upsert: true`` 选项一起使用的 :method:`db.collection.findOneAndUpdate()` ."
268
291
269
292
#: ../source/tutorial/insert-documents.txt:251
270
293
msgid ""
271
294
":method:`db.collection.findOneAndReplace()` when used with the ``upsert: "
272
295
"true`` option."
273
296
msgstr ""
297
+ "和``upsert: true`` 选项一起使用的 :method:`db.collection.findOneAndReplace()`."
274
298
275
299
#: ../source/tutorial/insert-documents.txt:254
276
300
msgid ":method:`db.collection.save()`."
@@ -284,7 +308,7 @@ msgstr ":method:`db.collection.bulkWrite()`."
284
308
msgid ""
285
309
"See the individual reference pages for the methods for more information and "
286
310
"examples."
287
- msgstr ""
311
+ msgstr "更多信息和示例参见这些方法各自的参考页面. "
288
312
289
313
#: ../source/tutorial/insert-documents.txt:262
290
314
msgid "Write Acknowledgement"
0 commit comments