Skip to content

Commit 790bd4a

Browse files
committed
translated "Query for Null or Missing Fields"(issue#1208)
1 parent b02a3de commit 790bd4a

File tree

1 file changed

+32
-16
lines changed

1 file changed

+32
-16
lines changed

locale/zh/LC_MESSAGES/tutorial/query-for-null-fields.po

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,100 +4,116 @@ msgstr ""
44
"Project-Id-Version: mongodb-manual 3.2\n"
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2016-05-31 19:15-0400\n"
7-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9-
"Language-Team: LANGUAGE <[email protected]>\n"
7+
"PO-Revision-Date: 2016-07-29 15:15+0800\n"
108
"MIME-Version: 1.0\n"
119
"Content-Type: text/plain; charset=UTF-8\n"
1210
"Content-Transfer-Encoding: 8bit\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: zh_CN\n"
14+
"X-Generator: Poedit 1.8.8\n"
1315

1416
#: ../source/tutorial/query-for-null-fields.txt:5
1517
msgid "Query for Null or Missing Fields"
16-
msgstr ""
18+
msgstr "查询值为Null或不存在的字段"
1719

1820
#: ../source/tutorial/query-for-null-fields.txt:0
1921
msgid "On this page"
20-
msgstr ""
22+
msgstr "本页内容"
2123

2224
#: ../source/tutorial/query-for-null-fields.txt:15
2325
msgid ""
2426
"Different query operators in MongoDB treat ``null`` values differently."
25-
msgstr ""
27+
msgstr "MongoDB中不同的运算符对待 ``null`` 值不一样. "
2628

2729
#: ../source/tutorial/query-for-null-fields.txt:17
2830
msgid ""
2931
"The examples on this page use the :method:`db.collection.find()` method in "
3032
"the :program:`mongo` shell. To populate the ``users`` collection referenced "
3133
"in the examples, run the following in :program:`mongo` shell:"
3234
msgstr ""
35+
"本页中的示例使用 :program:`mongo` shell的 :method:`db.collection.find()` 方"
36+
"法.在:program:`mongo` shell中运行如下命令以向示例中涉及到的 ``users`` 集合填"
37+
"入数据:"
3338

3439
#: ../source/tutorial/query-for-null-fields.txt:33
3540
msgid "Equality Filter"
36-
msgstr ""
41+
msgstr "相等过滤器"
3742

3843
#: ../source/tutorial/query-for-null-fields.txt:35
3944
msgid ""
4045
"The ``{ name : null }`` query matches documents that either contain the "
41-
"``name`` field whose value is ``null`` *or* that do not contain the ``name``"
42-
" field."
46+
"``name`` field whose value is ``null`` *or* that do not contain the "
47+
"``name`` field."
4348
msgstr ""
49+
" ``{ name : null }`` 查询匹配哪些包含值是 ``null``的 ``name`` 字段 *或者* 没"
50+
"有包含 ``name`` 字段的文档."
4451

4552
#: ../source/tutorial/query-for-null-fields.txt:39
4653
msgid "Given the following query:"
47-
msgstr ""
54+
msgstr "给出如下查询:"
4855

4956
#: ../source/tutorial/query-for-null-fields.txt:45
5057
msgid "The query returns both documents:"
51-
msgstr ""
58+
msgstr "该查询返回这两个文档:"
5259

5360
#: ../source/tutorial/query-for-null-fields.txt:52
5461
msgid ""
5562
"If the query uses an index that is :ref:`sparse <index-type-sparse>`, "
5663
"however, then the query will only match ``null`` values, not missing fields."
5764
msgstr ""
65+
"如果该查询使用了 :ref:`sparse <index-type-sparse>` 索引,不管怎样,那么该查询"
66+
"将仅仅匹配 ``null`` 值,而不匹配不存在的字段."
5867

5968
#: ../source/tutorial/query-for-null-fields.txt:56
6069
msgid ""
6170
"If using the sparse index results in an incomplete result, MongoDB will not "
6271
"use the index unless a :method:`~cursor.hint()` explicitly specifies the "
6372
"index. See :ref:`index-type-sparse` for more information."
6473
msgstr ""
74+
"如果使用稀疏索引会导致一个不完整的结果,那么,除非 :method:`~cursor.hint()` 显"
75+
"示地指定了该索引,否则MongoDB将不会使用这个索引.更多信息请参见 :ref:`index-"
76+
"type-sparse`."
6577

6678
#: ../source/tutorial/query-for-null-fields.txt:62
6779
msgid "Type Check"
68-
msgstr ""
80+
msgstr "类型筛查"
6981

7082
#: ../source/tutorial/query-for-null-fields.txt:64
7183
msgid ""
7284
"The ``{ name : { $type: 10 } }`` query matches documents that contains the "
7385
"``name`` field whose value is ``null`` *only*; i.e. the value of the "
7486
"``item`` field is of BSON Type ``Null`` (i.e. ``10``) :"
7587
msgstr ""
88+
"``{ name : { $type: 10 } }`` 查询 *仅仅* 匹配那些包含值是 ``null`` 的 "
89+
"``name`` 字段的文档,亦即 ``条目`` 字段的值是BSON类型中的 ``Null`` (即 "
90+
"``10`` ):"
7691

7792
#: ../source/tutorial/query-for-null-fields.txt:73
7893
msgid ""
7994
"The query returns only the document where the ``item`` field has a ``null`` "
8095
"value:"
81-
msgstr ""
96+
msgstr "该查询只返回文 ``条目`` 字段是 ``null`` 值的文档:"
8297

8398
#: ../source/tutorial/query-for-null-fields.txt:81
8499
msgid "Existence Check"
85-
msgstr ""
100+
msgstr "存在性筛查"
86101

87102
#: ../source/tutorial/query-for-null-fields.txt:83
88103
msgid ""
89104
"The ``{ name : { $exists: false } }`` query matches documents that do not "
90105
"contain the ``item`` field:"
91106
msgstr ""
107+
" ``{ name : { $exists: false } }`` 查询匹配不包含 ``条目`` 字段的文档:"
92108

93109
#: ../source/tutorial/query-for-null-fields.txt:90
94110
msgid ""
95111
"The query returns only the document that does *not* contain the ``item`` "
96112
"field:"
97-
msgstr ""
113+
msgstr "该查询只返回那些 *没有* 包含 ``条目`` 字段的文档:"
98114

99115
#: ../source/tutorial/query-for-null-fields.txt:97
100116
msgid ""
101117
"The reference documentation for the :query:`$type` and :query:`$exists` "
102118
"operators."
103-
msgstr ""
119+
msgstr " :query:`$type` 和 :query:`$exists` 操作符参考文档."

0 commit comments

Comments
 (0)