msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Json Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-06 19:17+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese (Simplified Han script) <https://"
"insights.cppalliance.org/weblate/projects/boost-json-documentation-zh_Hans/"
"doc-pages-dom-init-lists-adoc/zh_Hans/>\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 2026.5\n"

#: :11
#, safe-html, strict-same
msgid ""
"= Initializer Lists Initializer lists can be used to construct or assign a "
"<<ref_value>>:"
msgstr "= 初始化列表 初始化列表可用于构造或赋值一个&lt;<ref_value>&gt;：</ref_value>"

#: :19
#, safe-html, strict-same
msgid "Simple initializer lists produce an <<ref_array>>:"
msgstr "简单的初始化列表会生成一个 &lt;<ref_array>&gt;：</ref_array>"

#: :26
#, safe-html, strict-same
msgid ""
"Initializer lists can be nested. Here we construct an array as an element of "
"an array:"
msgstr "初始化列表可以嵌套。以下示例中，我们构造了一个以数组作为元素的数组："

#: :34
#, safe-html, strict-same
msgid ""
"When a two element initializer list is nested within an enclosing "
"initializer list, it is unclear whether it represents an <<ref_array>> or an "
"<<ref_object>>:"
msgstr ""
"当一个包含两个元素的初始化列表嵌套在外部初始化列表中时，尚不明确它表示的是一"
"个 &lt;<ref_array>&gt; 还是一个 &lt;<ref_object>&gt;：</ref_object></"
"ref_array>"

#: :43
#, safe-html, strict-same
msgid ""
"In such cases, if every element consists of a string followed by a single "
"value, then the enclosing initializer list is interpreted as an "
"<<ref_object>>. Otherwise, it is interpreted as an <<ref_array>>."
msgstr ""
"在这种情况下，如果每个元素均由一个字符串后跟一个值组成，则外层的初始化列表会"
"被解释为一个 &lt;<ref_object>&gt;；否则，它会被解释为一个 &lt;<ref_array>"
"&gt;。</ref_array></ref_object>"

#: :52
#, safe-html, strict-same
msgid "To resolve the ambiguity manually, use an explicit constructor:"
msgstr "要手动消除歧义，请使用显式构造函数："

#: :59
#, safe-html, strict-same
msgid ""
"Initializer lists can be used to unambiguously construct or assign an "
"<<ref_object>> or <<ref_array>>:"
msgstr ""
"初始化列表可用于明确地构造或赋值一个&lt;<ref_object>&gt; 或 &lt;<ref_array>"
"&gt;：</ref_array></ref_object>"

#: :67
#, safe-html, strict-same
msgid ""
"Similarly, an initializer list for an <<ref_object>> is always interpreted "
"as an <<ref_object>>. In such cases, the initializer list must be a list of "
"key-value pairs. For example, the following code will not compile because "
"`1` is not convertible to a string:"
msgstr ""
"同样，用于 &lt;<ref_object>&gt; 的初始化列表始终会被解释为 &lt;<ref_object>"
"&gt;。此时，初始化列表必须由键值对组成。例如，以下代码无法编译，因为` `1 无法"
"转换为字符串：</ref_object></ref_object>"

#: :77
#, safe-html, strict-same
msgid ""
"The requirement for an initializer list to be interpreted as an "
"<<ref_object>> or <<ref_array>> when initializing such an entity only "
"applies to the outermost initializer list; subsequent nested elements will "
"follow the usual ambiguity resolution rules."
msgstr ""
"当初始化一个 &lt;<ref_object>&gt; 或 &lt;<ref_array>&gt; 时，要求初始化列表被"
"解释为对应类型的规则仅适用于最外层的初始化列表；后续嵌套的元素将遵循常规的歧"
"义解析规则。</ref_array></ref_object>"

#: :87
#, safe-html, strict-same
msgid "Elements that are rvalues will be moved upon initialization:"
msgstr "在初始化时，右值元素将被移动。"

#: :100
#, safe-html, strict-same
msgid ""
"In all cases, the <<ref_storage_ptr>> owned by an <<ref_object>>, "
"<<ref_array>>, or <<ref_value>> constructed from an initializer list will be "
"propagated to each element, recursively."
msgstr ""
"在所有情况下，通过初始化列表构造的 &lt;<ref_object>&gt;、&lt;<ref_array>&gt; "
"或 &lt;<ref_value>&gt; 所拥有的 &lt;<ref_storage_ptr>&gt; 都会递归地传播到每"
"个元素。</ref_storage_ptr></ref_value></ref_array></ref_object>"
