diff --git a/locale/zh/LC_MESSAGES/core/gridfs.po b/locale/zh/LC_MESSAGES/core/gridfs.po index 0b71615fb65..9b739e859cd 100644 --- a/locale/zh/LC_MESSAGES/core/gridfs.po +++ b/locale/zh/LC_MESSAGES/core/gridfs.po @@ -4,13 +4,14 @@ msgstr "" "Project-Id-Version: mongodb-manual 3.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-12-08 12:02-0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2020-03-10 20:12+0800\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.3.4\n" +"Last-Translator: \n" +"Language-Team: \n" +"X-Generator: Poedit 2.2.3\n" # 22c91df9909e4567b36cdc539387442e # 7f411f106dc340ee961634f3e73dcfd2 @@ -31,456 +32,331 @@ msgstr "" # 36ff2f13eaea4bbaad0bbf7a09e0f133 #: ../source/core/gridfs.txt:15 -msgid "" -":term:`GridFS` is a specification for storing and retrieving files that " -"exceed the :term:`BSON`\\-document :ref:`size limit ` of 16 MB." -msgstr "" +msgid ":term:`GridFS` is a specification for storing and retrieving files that exceed the :term:`BSON`\\-document :ref:`size limit ` of 16 MB." +msgstr "GridFS是存储和检查文件超过BSON-document大小16M限制的文件的说明." # ece78847658a49cbbbaa7e798f4f9adb #: ../source/core/gridfs.txt:19 -msgid "" -"Instead of storing a file in a single document, GridFS divides the file " -"into parts, or chunks [#chunk-disambiguation]_, and stores each chunk as " -"a separate document. By default, GridFS uses a chunk size of 255 kB; that" -" is, GridFS divides a file into chunks of 255 kB with the exception of " -"the last chunk. The last chunk is only as large as necessary. Similarly, " -"files that are no larger than the chunk size only have a final chunk, " -"using only as much space as needed plus some additional metadata." -msgstr "" +msgid "Instead of storing a file in a single document, GridFS divides the file into parts, or chunks [#chunk-disambiguation]_, and stores each chunk as a separate document. By default, GridFS uses a chunk size of 255 kB; that is, GridFS divides a file into chunks of 255 kB with the exception of the last chunk. The last chunk is only as large as necessary. Similarly, files that are no larger than the chunk size only have a final chunk, using only as much space as needed plus some additional metadata." +msgstr "代替存储单个document的文件,GridFS把文件分成parts,chunks,每一个document分成一个chunk。GridFS默认使用chunk大小255K,除了最后一个chunk,其它都分成255K.最后一个chunk是必要的大小.类似地,不大于块大小的文件只有最后一块,只使用所需的空间和一些额外的元数据." # 534df153d9044f19b8e3ad3dd582a4e1 #: ../source/core/gridfs.txt:28 -msgid "" -"GridFS uses two collections to store files. One collection stores the " -"file chunks, and the other stores file metadata. The section :ref" -":`gridfs-collections` describes each collection in detail." -msgstr "" +msgid "GridFS uses two collections to store files. One collection stores the file chunks, and the other stores file metadata. The section :ref:`gridfs-collections` describes each collection in detail." +msgstr "GridFS使用两个collection存储文件,一个collection存储文件chunk,另一个存储metadata." # 16edb6732fcd45ffa4630864640630b2 #: ../source/core/gridfs.txt:32 -msgid "" -"When you query GridFS for a file, the driver will reassemble the chunks " -"as needed. You can perform range queries on files stored through GridFS. " -"You can also access information from arbitrary sections of files, such as" -" to \"skip\" to the middle of a video or audio file." -msgstr "" +msgid "When you query GridFS for a file, the driver will reassemble the chunks as needed. You can perform range queries on files stored through GridFS. You can also access information from arbitrary sections of files, such as to \"skip\" to the middle of a video or audio file." +msgstr "当你查询文件的GridFS,驱动将根据需要重组chunks.你可以执行GridFS的范围查询.你也可以查询文件的任意部分,比如”skip”到视频或音频的中间." # f813f9a6e0dc4208a95e997dfcfdcbf3 #: ../source/core/gridfs.txt:37 -msgid "" -"GridFS is useful not only for storing files that exceed 16 MB but also " -"for storing any files for which you want access without having to load " -"the entire file into memory. See also :ref:`faq-developers-when-to-use-" -"gridfs`." -msgstr "" +msgid "GridFS is useful not only for storing files that exceed 16 MB but also for storing any files for which you want access without having to load the entire file into memory. See also :ref:`faq-developers-when-to-use-gridfs`." +msgstr "GridFS不仅用于存储超过16M的文件,也可以存储不想全部加载文件到内存的文件.See also :ref:`faq-developers-when-to-use-gridfs`." # be8398598258432c83ec7e8aa1e18056 # 782aa42082f7465ebc92eabafc5347b7 #: ../source/core/gridfs.txt:42 ../source/core/gridfs.txt:205 msgid "The default chunk size changed from 256 kB to 255 kB." -msgstr "" +msgstr "默认chunk大小由256KB变为255KB." # f44e1d0f05d24c9685f2a9bf4d900ca5 #: ../source/core/gridfs.txt:48 msgid "When to Use GridFS" -msgstr "" +msgstr "何是采用GridFS" # 37c4bd22eb7541799c556ae934ccd399 #: ../source/core/gridfs.txt:50 msgid "In MongoDB, use :term:`GridFS` for storing files larger than 16 MB." -msgstr "" +msgstr "MongoDB使用\"GridFS\"存储超过16M的文件." # d0dbce92840b429a96a1580892f80905 #: ../source/core/gridfs.txt:52 -msgid "" -"In some situations, storing large files may be more efficient in a " -"MongoDB database than on a system-level filesystem." -msgstr "" +msgid "In some situations, storing large files may be more efficient in a MongoDB database than on a system-level filesystem." +msgstr "一些情况下,MongoDB存储大文件比system-level文件系统更有效." # 1d3f66b9449e41499e08ace9e17ab843 #: ../source/core/gridfs.txt:55 -msgid "" -"If your filesystem limits the number of files in a directory, you can use" -" GridFS to store as many files as needed." -msgstr "" +msgid "If your filesystem limits the number of files in a directory, you can use GridFS to store as many files as needed." +msgstr "如果您的文件系统限制了目录中文件的数量,您可以使用GridFS存储尽可能多的文件." # ac2361370aa240b597a9180ac6c60a25 #: ../source/core/gridfs.txt:58 -msgid "" -"When you want to access information from portions of large files without " -"having to load whole files into memory, you can use GridFS to recall " -"sections of files without reading the entire file into memory." -msgstr "" +msgid "When you want to access information from portions of large files without having to load whole files into memory, you can use GridFS to recall sections of files without reading the entire file into memory." +msgstr "当您想要从大文件的一部分访问信息而不需要将整个文件加载到内存中时,您可以使用GridFS来回忆文件的部分,而无需将整个文件读入内存." # 75a8232b3ad7470c8a787052b2ccb6a9 #: ../source/core/gridfs.txt:63 -msgid "" -"When you want to keep your files and metadata automatically synced and " -"deployed across a number of systems and facilities, you can use GridFS. " -"When using :ref:`geographically distributed replica sets `, MongoDB can distribute files and their " -"metadata automatically to a number of :program:`mongod` instances and " -"facilities." -msgstr "" +msgid "When you want to keep your files and metadata automatically synced and deployed across a number of systems and facilities, you can use GridFS. When using :ref:`geographically distributed replica sets `, MongoDB can distribute files and their metadata automatically to a number of :program:`mongod` instances and facilities." +msgstr "当您想要将文件和元数据自动同步并部署到多个系统和设施中时,您可以使用GridFS.在使用地理分布的副本集时,MongoDB可以将文件及其元数据自动分发给许多mongod." # 4dd499d6f03149a0bb5f35dcf4bfab94 #: ../source/core/gridfs.txt:70 -msgid "" -"Do not use GridFS if you need to update the content of the entire file " -"atomically. As an alternative you can store multiple versions of each " -"file and specify the current version of the file in the metadata. You can" -" update the metadata field that indicates \"latest\" status in an atomic " -"update after uploading the new version of the file, and later remove " -"previous versions if needed." -msgstr "" +msgid "Do not use GridFS if you need to update the content of the entire file atomically. As an alternative you can store multiple versions of each file and specify the current version of the file in the metadata. You can update the metadata field that indicates \"latest\" status in an atomic update after uploading the new version of the file, and later remove previous versions if needed." +msgstr "如果想自动更新整个文件,不要使用GridFS.作为替代,你可以为每个版本存储多个版本,然后在元数据指定当前文件的版本.在上传了文件新版本后,你可以更新标识为”lastest”状态的元数据自动更新,然后根据需要删除以前的版本." # 18f4d8e682114d3da5498239203df0b1 #: ../source/core/gridfs.txt:77 -msgid "" -"Furthermore, if your files are all smaller the 16 MB :limit:`BSON " -"Document Size` limit, consider storing the file manually within a single " -"document instead of using GridFS. You may use the BinData data type to " -"store the binary data. See your :doc:`drivers ` " -"documentation for details on using BinData." -msgstr "" +msgid "Furthermore, if your files are all smaller the 16 MB :limit:`BSON Document Size` limit, consider storing the file manually within a single document instead of using GridFS. You may use the BinData data type to store the binary data. See your :doc:`drivers ` documentation for details on using BinData." +msgstr "如果您的文件都小于16 MB的BSON文档大小限制,可以考虑将每个文件存储在单个文档中,而不是使用GridFS.您可以使用BinData数据类型来储存二进制数据." # 6d77ea77a1044a2cad14d6fa1058b7e5 #: ../source/core/gridfs.txt:87 msgid "Use GridFS" -msgstr "" +msgstr "Use GridFS" # 0f36916bc3784c52a6e2a2c566e16fc7 #: ../source/core/gridfs.txt:89 -msgid "" -"To store and retrieve files using :term:`GridFS`, use either of the " -"following:" -msgstr "" +msgid "To store and retrieve files using :term:`GridFS`, use either of the following:" +msgstr "存储和检索文件采用“GridFS”两种方式:" # 57ff4c94b8304c05af2156183117aea4 #: ../source/core/gridfs.txt:92 -msgid "" -"A MongoDB driver. See the :doc:`drivers` " -"documentation for information on using GridFS with your driver." -msgstr "" +msgid "A MongoDB driver. See the :doc:`drivers` documentation for information on using GridFS with your driver." +msgstr "MongoDB驱动。See the :doc:`drivers` documentation for information on using GridFS with your driver." # f259ad8584c74648ab22ae6c02d8d50d #: ../source/core/gridfs.txt:95 -msgid "" -"The :program:`mongofiles` command-line tool. See the " -":program:`mongofiles` reference for documentation." -msgstr "" +msgid "The :program:`mongofiles` command-line tool. See the :program:`mongofiles` reference for documentation." +msgstr "`mongofiles`命令行工具.See the :program:`mongofiles` reference for documentation." # af8c99574511472f93526fbb5ce536ad #: ../source/core/gridfs.txt:101 msgid "GridFS Collections" -msgstr "" +msgstr "GridFS Collections" # b2647fd3b5654513a3b9bbdad2146cc6 #: ../source/core/gridfs.txt:103 msgid ":term:`GridFS` stores files in two collections:" -msgstr "" +msgstr "`GridFS` 存储文件采用两种collections:" # 69c314edb8ac4f988d0d2eff87b2621e #: ../source/core/gridfs.txt:105 -msgid "" -"``chunks`` stores the binary chunks. For details, see :ref:`gridfs-" -"chunks-collection`." -msgstr "" +msgid "``chunks`` stores the binary chunks. For details, see :ref:`gridfs-chunks-collection`." +msgstr "``chunks``二进制.详细参见ref:`gridfs-chunks-collection`." # f2aebfe517be42cf9f842e3cf6ad01b9 #: ../source/core/gridfs.txt:108 -msgid "" -"``files`` stores the file's metadata. For details, see :ref:`gridfs-" -"files-collection`." -msgstr "" +msgid "``files`` stores the file's metadata. For details, see :ref:`gridfs-files-collection`." +msgstr "``files``存储成文件元数据.详细参见ref:`gridfs-files-collection`." # 47a6977a184743a6b5faa3a3a50c1412 #: ../source/core/gridfs.txt:111 -msgid "" -"GridFS places the collections in a common bucket by prefixing each with " -"the bucket name. By default, GridFS uses two collections with a bucket " -"named ``fs``:" -msgstr "" +msgid "GridFS places the collections in a common bucket by prefixing each with the bucket name. By default, GridFS uses two collections with a bucket named ``fs``:" +msgstr "在默认情况下,GridFS使用两个集合,都由fs命名:" # 7865969054a64b93a9580bbb0089d5fd #: ../source/core/gridfs.txt:115 msgid "``fs.files``" -msgstr "" +msgstr "``fs.files``" # d0d871b4093940618f6fb77f27840b00 #: ../source/core/gridfs.txt:116 msgid "``fs.chunks``" -msgstr "" +msgstr "``fs.chunks``" # b896f7a4b9ba40fdbeb003eeaaff2e73 #: ../source/core/gridfs.txt:118 -msgid "" -"You can choose a different bucket name, as well as create multiple " -"buckets in a single database. The full collection name, which includes " -"the bucket name, is subject to the :limit:`namespace length limit " -"`." -msgstr "" +msgid "You can choose a different bucket name, as well as create multiple buckets in a single database. The full collection name, which includes the bucket name, is subject to the :limit:`namespace length limit `." +msgstr "你可以选择不同的bucket名称,一个数据库可创建多个bucket.完整的collection名称不仅包括bucket名称,还包括namespace的长度限制." # 0f0ecbf7763f40b9b34a74d2db71dfe0 #: ../source/core/gridfs.txt:127 msgid "The ``chunks`` Collection" -msgstr "" +msgstr "The ``chunks`` Collection" # fa1dd2db34c543829918aa39e496974a #: ../source/core/gridfs.txt:129 -msgid "" -"Each document in the ``chunks`` [#chunk-disambiguation]_ collection " -"represents a distinct chunk of a file as represented in :term:`GridFS`. " -"Documents in this collection have the following form:" -msgstr "" +msgid "Each document in the ``chunks`` [#chunk-disambiguation]_ collection represents a distinct chunk of a file as represented in :term:`GridFS`. Documents in this collection have the following form:" +msgstr " 每个document代表不同的集合部分:" # 5f245ac5e2284bd49eddad96a8f63362 #: ../source/core/gridfs.txt:142 msgid "A document from the ``chunks`` collection contains the following fields:" -msgstr "" +msgstr "“chunks” collection的文档 包含以下字段:" # 2525a0cf529a4210a837fae2bfe46e82 #: ../source/core/gridfs.txt:146 msgid "The unique :term:`ObjectId` of the chunk." -msgstr "" +msgstr "chunk的唯一id." # 455bc824843944509ba57815bf95176c #: ../source/core/gridfs.txt:150 -msgid "" -"The ``_id`` of the \"parent\" document, as specified in the ``files`` " -"collection." -msgstr "" +msgid "The ``_id`` of the \"parent\" document, as specified in the ``files`` collection." +msgstr "父文档的' ' _id ' ',在' ' files ' '集合中指定." # 7070ed4e6ce4419b81afbd0f5070122d #: ../source/core/gridfs.txt:155 -msgid "" -"The sequence number of the chunk. GridFS numbers all chunks, starting " -"with 0." -msgstr "" +msgid "The sequence number of the chunk. GridFS numbers all chunks, starting with 0." +msgstr "chunk的序列号.GridFS为所有块编号.从0开始." # 758d8a3ce96243fab5c795b279cce7d5 #: ../source/core/gridfs.txt:160 msgid "The chunk's payload as a :term:`BSON` ``Binary`` type." -msgstr "" +msgstr "chunk的负载是BSON二进制类型." # 1966811cc35e448b8803d76b145cee1b #: ../source/core/gridfs.txt:166 msgid "The ``files`` Collection" -msgstr "" +msgstr "The ``files`` Collection" # 80d56c327d854b96958ed9907f6a752f #: ../source/core/gridfs.txt:168 -msgid "" -"Each document in the ``files`` collection represents a file in " -":term:`GridFS`. Consider a document in the ``files`` collection, which " -"has the following form:" -msgstr "" +msgid "Each document in the ``files`` collection represents a file in :term:`GridFS`. Consider a document in the ``files`` collection, which has the following form:" +msgstr "' ' files ' 'document 中的每个文档表示:term: ' GridFS '中的一个文件。考虑' ' files ' 'document 中的一个文档,其格式如下:" # e8908fe242384dd480f4a7a68334d7d1 #: ../source/core/gridfs.txt:186 -msgid "" -"Documents in the ``files`` collection contain some or all of the " -"following fields:" -msgstr "" +msgid "Documents in the ``files`` collection contain some or all of the following fields:" +msgstr "``files`` collection 在document 中包括以下部分或全部:" # 20d5b93ed2dd429c86cfd8309e291db3 #: ../source/core/gridfs.txt:191 -msgid "" -"The unique identifier for this document. The ``_id`` is of the data type " -"you chose for the original document. The default type for MongoDB " -"documents is :term:`BSON` :term:`ObjectId`." -msgstr "" +msgid "The unique identifier for this document. The ``_id`` is of the data type you chose for the original document. The default type for MongoDB documents is :term:`BSON` :term:`ObjectId`." +msgstr "此document的唯一标识符.' ' _id ' '是您为原始document选择的数据类型。MongoDB文档的默认类型是:term: ' BSON ':term: ' ObjectId '." # c7aa7a231e4f46a98f3f90ad42eb8131 #: ../source/core/gridfs.txt:197 msgid "The size of the document in bytes." -msgstr "" +msgstr "document的字节大小." # df7528efd2fc40069f0b2e38a69ccf59 #: ../source/core/gridfs.txt:201 -msgid "" -"The size of each chunk in **bytes**. GridFS divides the document into " -"chunks of size ``chunkSize``, except for the last, which is only as large" -" as needed. The default size is 255 kilobytes (kB)." -msgstr "" +msgid "The size of each chunk in **bytes**. GridFS divides the document into chunks of size ``chunkSize``, except for the last, which is only as large as needed. The default size is 255 kilobytes (kB)." +msgstr "每个chunk 的大小(以**字节**表示).GridFS将document分成大小为“chunkSize”的块,除了最后一个块,最后一个chunk 的大小取决于需要.默认大小是255 kB." # bbd8755009ad44d6a7f100229a12107c #: ../source/core/gridfs.txt:210 -msgid "" -"The date the document was first stored by GridFS. This value has the " -"``Date`` type." -msgstr "" +msgid "The date the document was first stored by GridFS. This value has the ``Date`` type." +msgstr "document 日期最初由GridFS存储的.该值的类型为' ' Date ' '." # 899ba8d8df4a425787d12186f29be898 #: ../source/core/gridfs.txt:215 -msgid "" -"An MD5 hash of the complete file returned by the :doc:`filemd5 " -"` command. This value has the ``String`` " -"type." -msgstr "" +msgid "An MD5 hash of the complete file returned by the :doc:`filemd5 ` command. This value has the ``String`` type." +msgstr "由:doc: ' filemd5 '命令返回的完整文件的MD5散列。这个值的类型是' ' String ' '." # b2a9edc8d0f14219b68bd32c3582644f #: ../source/core/gridfs.txt:221 msgid "Optional. A human-readable name for the GridFS file." -msgstr "" +msgstr "可选的.GridFS文件的可读名称." # 92736a30aef84cf0932e755827c3d726 #: ../source/core/gridfs.txt:225 msgid "Optional. A valid MIME type for the GridFS file." -msgstr "" +msgstr "可选的.GridFS文件的有效MIME类型." # fecdeef7ba8e4231bda9015a708cf905 #: ../source/core/gridfs.txt:229 msgid "Optional. An array of alias strings." -msgstr "" +msgstr "可选的.别名字符串数组." # 56157807dede4559bb4c3882e3e8e5ae #: ../source/core/gridfs.txt:233 msgid "Optional. Any additional information you want to store." -msgstr "" +msgstr "可选的.您想要存储的任何其他信息." # fd29840302da46cfa08b392a255b053b #: ../source/core/gridfs.txt:235 msgid "Applications may create additional arbitrary fields." -msgstr "" +msgstr "应用程序可以创建额外的任意字段." # 588f83957e2c427e94964e5d60fa7087 #: ../source/core/gridfs.txt:241 msgid "GridFS Indexes" -msgstr "" +msgstr "GridFS Indexes" # 417c66eae6234473af58a638b3a6868e #: ../source/core/gridfs.txt:243 -msgid "" -"GridFS uses indexes on each of the ``chunks`` and ``files`` collections " -"for efficiency. :doc:`Drivers ` that conform to " -"the `GridFS specification`_ automatically create these indexes for " -"convenience. You can also create any additional indexes as desired to " -"suit your application's needs." -msgstr "" +msgid "GridFS uses indexes on each of the ``chunks`` and ``files`` collections for efficiency. :doc:`Drivers ` that conform to the `GridFS specification`_ automatically create these indexes for convenience. You can also create any additional indexes as desired to suit your application's needs." +msgstr "为了提高效率,GridFS对每个“chunk”和“file”集合使用索引.:doc: ' Drivers '符合' GridFS规范' _自动创建这些索引方便。您还可以根据需要创建任何附加索引,以满足应用程序的需要." # c1d839b3027740e9bb5624920a06887b #: ../source/core/gridfs.txt:252 msgid "The ``chunks`` Index" -msgstr "" +msgstr "The ``chunks`` Index索引" # 3a5da03f315c4f949fb84ade0aa2735a #: ../source/core/gridfs.txt:254 -msgid "" -":term:`GridFS` uses a :term:`unique `, :term:`compound " -"` index on the ``chunks`` collection using the " -"``files_id`` and ``n`` fields. This allows for efficient retrieval of " -"chunks, as demonstrated in the following example:" -msgstr "" +msgid ":term:`GridFS` uses a :term:`unique `, :term:`compound ` index on the ``chunks`` collection using the ``files_id`` and ``n`` fields. This allows for efficient retrieval of chunks, as demonstrated in the following example:" +msgstr "`GridFS` 使用' files_id ' '和' n ' '字段对' ' chunks ' 'collection进行索引。这使得chunk 的有效检索成为可能,如下面的例子所示:" # 57b37f3c28b34371aacccb43d169d8ed # 9719dfc549b74c5699eb99e89d6ccea2 #: ../source/core/gridfs.txt:263 ../source/core/gridfs.txt:288 -msgid "" -":doc:`Drivers ` that conform to the `GridFS " -"specification`_ will automatically ensure that this index exists before " -"read and write operations. See the relevant driver documentation for the " -"specific behavior of your GridFS application." -msgstr "" +msgid ":doc:`Drivers ` that conform to the `GridFS specification`_ will automatically ensure that this index exists before read and write operations. See the relevant driver documentation for the specific behavior of your GridFS application." +msgstr "Drivers '符合' GridFS specification ' 将自动确保该索引在读写操作之前存在.有关GridFS应用程序的特定行为,请参阅相关的驱动程序文档." # 68bb92d767274bd1b2797528546e19f4 # dca0172de06d41a883a3efd95ddfe99a #: ../source/core/gridfs.txt:268 ../source/core/gridfs.txt:293 -msgid "" -"If this index does not exist, you can issue the following operation to " -"create it using the :program:`mongo` shell:" -msgstr "" +msgid "If this index does not exist, you can issue the following operation to create it using the :program:`mongo` shell:" +msgstr "如果索引不存在,可以使用mongo shell的以下操作来创建它:" # 8e62e9b31b1c4b40bbb7319dbf369d76 #: ../source/core/gridfs.txt:278 msgid "The ``files`` Index" -msgstr "" +msgstr "The ``files`` Index" # 7e491958ae564c6a9b8d36c161362fe2 #: ../source/core/gridfs.txt:280 -msgid "" -":term:`GridFS` uses an :term:`index` on the ``files`` collection using " -"the ``filename`` and ``uploadDate`` fields. This index allows for " -"efficient retrieval of files, as shown in this example:" -msgstr "" +msgid ":term:`GridFS` uses an :term:`index` on the ``files`` collection using the ``filename`` and ``uploadDate`` fields. This index allows for efficient retrieval of files, as shown in this example:" +msgstr "GridFS使用filename和uploadDate字段对 ``files`` collection使用索引。这个索引允许有效地检索文件,如下例所示:" # 50b846c0d8a94ef1a9982c0e546bdea7 #: ../source/core/gridfs.txt:300 -msgid "" -"The use of the term *chunks* in the context of GridFS is not related to " -"the use of the term *chunks* in the context of sharding." -msgstr "" +msgid "The use of the term *chunks* in the context of GridFS is not related to the use of the term *chunks* in the context of sharding." +msgstr "如果该索引不存在,您可以使用mongo shell执行以下操作来创建它:" # 76e87a54a23e4fa9951bf4d8c59c2431 #: ../source/core/gridfs.txt:307 msgid "Sharding GridFS" -msgstr "" +msgstr "Sharding GridFS" # 9d336dfbf3cd4bf4a4215c98b6e45111 #: ../source/core/gridfs.txt:309 -msgid "" -"There are two collections to consider with :term:`gridfs` - ``files`` and" -" ``chunks``." -msgstr "" +msgid "There are two collections to consider with :term:`gridfs` - ``files`` and ``chunks``." +msgstr "对gridfs,有两个collections需要考虑—\"files\"和\"chunk\"." # 4366598780a64e739d6a56e2d0a74a5f #: ../source/core/gridfs.txt:312 -msgid "" -"If you need to shard a GridFS data store, use the ``chunks`` collection " -"setting ``{ files_id : 1, n : 1 }`` or ``{ files_id : 1 }`` as the shard " -"key index." -msgstr "" +msgid "If you need to shard a GridFS data store, use the ``chunks`` collection setting ``{ files_id : 1, n : 1 }`` or ``{ files_id : 1 }`` as the shard key index." +msgstr "如果需要分割GridFS数据存储,请使用chunk collection设置``{ files_id : 1, n : 1 }`` 或``{ files_id : 1 }`作为共享key 索引." # 9dd88e38b53a49b1a3837d30fe5e81c7 #: ../source/core/gridfs.txt:316 -msgid "" -"``files_id`` is an :term:`objectid` and changes :ref:`monotonically" -"`." -msgstr "" +#, fuzzy +msgid "``files_id`` is an :term:`objectid` and changes :ref:`monotonically`." +msgstr "files_id是一个objectid,并且能够自动变化." # 99c836a5bd5947b9b41bd895ec2e26eb #: ../source/core/gridfs.txt:319 -msgid "" -"You cannot use :doc:`/core/hashed-sharding` when sharding the ``chunks`` " -"collection." -msgstr "" +msgid "You cannot use :doc:`/core/hashed-sharding` when sharding the ``chunks`` collection." +msgstr "当分片chunk时你可以使用Hashed Sharding." # 0e004d6c9700411199d478af8b8986b0 #: ../source/core/gridfs.txt:322 -msgid "" -"The ``files`` collection is small and only contains metadata. None of the" -" required keys for GridFS lend themselves to an even distribution in a " -"sharded environment. If you *must* shard the ``files`` collection, use " -"the ``_id`` field, possibly in combination with an application field." -msgstr "" +msgid "The ``files`` collection is small and only contains metadata. None of the required keys for GridFS lend themselves to an even distribution in a sharded environment. If you *must* shard the ``files`` collection, use the ``_id`` field, possibly in combination with an application field." +msgstr "`files`` collection很小,只包含元数据.在切分环境中,GridFS所需的key都不能用于均匀分布。如果必须对 ``files`` collection进行切分,可以使用_id字段,也可以与应用程序字段结合使用." # 67bc3cb853cf4411a0236cc126ecaa35 #: ../source/core/gridfs.txt:327 -msgid "" -"Leaving ``files`` unsharded allows all the file metadata documents to " -"live on the :term:`primary shard`." -msgstr "" +msgid "Leaving ``files`` unsharded allows all the file metadata documents to live on the :term:`primary shard`." +msgstr "不分片``files``允许所有文件元数据文档都位于`primary shard`上." # ff68a72baf144fc6bc8d89f2a429849c #: ../source/includes/extracts/additional-resources-gridfs.rst:4 msgid "Additional Resources" -msgstr "" +msgstr "附加资源" # 0e33c79796fd47c897c0520b66b7ea00 #: ../source/includes/extracts/additional-resources-gridfs.rst:6 -msgid "" -"`Building MongoDB Applications with Binary Files Using GridFS: Part 1 " -"`_" +msgid "`Building MongoDB Applications with Binary Files Using GridFS: Part 1 `_" msgstr "" # 5046271035df4d24bc39281c3a2a0517 #: ../source/includes/extracts/additional-resources-gridfs.rst:7 -msgid "" -"`Building MongoDB Applications with Binary Files Using GridFS: Part 2 " -"`_" +msgid "`Building MongoDB Applications with Binary Files Using GridFS: Part 2 `_" msgstr "" # 0a39e964807a4f2e8b0998302bb75dba @@ -500,6 +376,7 @@ msgstr "" # c2a60111587842719fe2cba22820df5e #: ../source/core/gridfs.txt:237 +#, fuzzy msgid "index; indexes" msgstr "" @@ -517,4 +394,3 @@ msgstr "" #~ msgid "index" #~ msgstr "" -