1/*
2 * reserved comment block
3 * DO NOT REMOVE OR ALTER!
4 */
5/*
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the  "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 *     http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22package com.sun.org.apache.xml.internal.serializer.utils;
23
24import java.util.ListResourceBundle;
25import java.util.Locale;
26import java.util.MissingResourceException;
27import java.util.ResourceBundle;
28
29/**
30 * An instance of this class is a ListResourceBundle that
31 * has the required getContents() method that returns
32 * an array of message-key/message associations.
33 * <p>
34 * The message keys are defined in {@link MsgKey}. The
35 * messages that those keys map to are defined here.
36 * <p>
37 * The messages in the English version are intended to be
38 * translated.
39 *
40 * This class is not a public API, it is only public because it is
41 * used in com.sun.org.apache.xml.internal.serializer.
42 *
43 * @xsl.usage internal
44 */
45public class SerializerMessages_zh_CN extends ListResourceBundle {
46
47    /*
48     * This file contains error and warning messages related to
49     * Serializer Error Handling.
50     *
51     *  General notes to translators:
52
53     *  1) A stylesheet is a description of how to transform an input XML document
54     *     into a resultant XML document (or HTML document or text).  The
55     *     stylesheet itself is described in the form of an XML document.
56
57     *
58     *  2) An element is a mark-up tag in an XML document; an attribute is a
59     *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>
60     *     "elem" is an element name, "attr" and "attr2" are attribute names with
61     *     the values "val" and "val2", respectively.
62     *
63     *  3) A namespace declaration is a special attribute that is used to associate
64     *     a prefix with a URI (the namespace).  The meanings of element names and
65     *     attribute names that use that prefix are defined with respect to that
66     *     namespace.
67     *
68     *
69     */
70
71    /** The lookup table for error messages.   */
72    public Object[][] getContents() {
73        Object[][] contents = new Object[][] {
74            {   MsgKey.BAD_MSGKEY,
75                "\u6D88\u606F\u5173\u952E\u5B57 ''{0}'' \u4E0D\u5728\u6D88\u606F\u7C7B ''{1}'' \u4E2D" },
76
77            {   MsgKey.BAD_MSGFORMAT,
78                "\u6D88\u606F\u7C7B ''{1}'' \u4E2D\u6D88\u606F ''{0}'' \u7684\u683C\u5F0F\u5316\u5931\u8D25\u3002" },
79
80            {   MsgKey.ER_SERIALIZER_NOT_CONTENTHANDLER,
81                "\u4E32\u884C\u5668\u7C7B ''{0}'' \u4E0D\u5B9E\u73B0 org.xml.sax.ContentHandler\u3002" },
82
83            {   MsgKey.ER_RESOURCE_COULD_NOT_FIND,
84                    "\u627E\u4E0D\u5230\u8D44\u6E90 [ {0} ]\u3002\n {1}" },
85
86            {   MsgKey.ER_RESOURCE_COULD_NOT_LOAD,
87                    "\u8D44\u6E90 [ {0} ] \u65E0\u6CD5\u52A0\u8F7D: {1} \n {2} \t {3}" },
88
89            {   MsgKey.ER_BUFFER_SIZE_LESSTHAN_ZERO,
90                    "\u7F13\u51B2\u533A\u5927\u5C0F <=0" },
91
92            {   MsgKey.ER_INVALID_UTF16_SURROGATE,
93                    "\u68C0\u6D4B\u5230\u65E0\u6548\u7684 UTF-16 \u4EE3\u7406: {0}?" },
94
95            {   MsgKey.ER_OIERROR,
96                "IO \u9519\u8BEF" },
97
98            {   MsgKey.ER_ILLEGAL_ATTRIBUTE_POSITION,
99                "\u5728\u751F\u6210\u5B50\u8282\u70B9\u4E4B\u540E\u6216\u5728\u751F\u6210\u5143\u7D20\u4E4B\u524D\u65E0\u6CD5\u6DFB\u52A0\u5C5E\u6027 {0}\u3002\u5C06\u5FFD\u7565\u5C5E\u6027\u3002" },
100
101            /*
102             * Note to translators:  The stylesheet contained a reference to a
103             * namespace prefix that was undefined.  The value of the substitution
104             * text is the name of the prefix.
105             */
106            {   MsgKey.ER_NAMESPACE_PREFIX,
107                "\u6CA1\u6709\u8BF4\u660E\u540D\u79F0\u7A7A\u95F4\u524D\u7F00 ''{0}''\u3002" },
108
109            /*
110             * Note to translators:  This message is reported if the stylesheet
111             * being processed attempted to construct an XML document with an
112             * attribute in a place other than on an element.  The substitution text
113             * specifies the name of the attribute.
114             */
115            {   MsgKey.ER_STRAY_ATTRIBUTE,
116                "\u5C5E\u6027 ''{0}'' \u5728\u5143\u7D20\u5916\u90E8\u3002" },
117
118            /*
119             * Note to translators:  As with the preceding message, a namespace
120             * declaration has the form of an attribute and is only permitted to
121             * appear on an element.  The substitution text {0} is the namespace
122             * prefix and {1} is the URI that was being used in the erroneous
123             * namespace declaration.
124             */
125            {   MsgKey.ER_STRAY_NAMESPACE,
126                "\u540D\u79F0\u7A7A\u95F4\u58F0\u660E ''{0}''=''{1}'' \u5728\u5143\u7D20\u5916\u90E8\u3002" },
127
128            {   MsgKey.ER_COULD_NOT_LOAD_RESOURCE,
129                "\u65E0\u6CD5\u52A0\u8F7D ''{0}'' (\u68C0\u67E5 CLASSPATH), \u73B0\u5728\u53EA\u4F7F\u7528\u9ED8\u8BA4\u503C" },
130
131            {   MsgKey.ER_ILLEGAL_CHARACTER,
132                "\u5C1D\u8BD5\u8F93\u51FA\u672A\u4EE5{1}\u7684\u6307\u5B9A\u8F93\u51FA\u7F16\u7801\u8868\u793A\u7684\u6574\u6570\u503C {0} \u7684\u5B57\u7B26\u3002" },
133
134            {   MsgKey.ER_COULD_NOT_LOAD_METHOD_PROPERTY,
135                "\u65E0\u6CD5\u4E3A\u8F93\u51FA\u65B9\u6CD5 ''{1}'' \u52A0\u8F7D\u5C5E\u6027\u6587\u4EF6 ''{0}'' (\u68C0\u67E5 CLASSPATH)" },
136
137            {   MsgKey.ER_INVALID_PORT,
138                "\u65E0\u6548\u7684\u7AEF\u53E3\u53F7" },
139
140            {   MsgKey.ER_PORT_WHEN_HOST_NULL,
141                "\u4E3B\u673A\u4E3A\u7A7A\u65F6, \u65E0\u6CD5\u8BBE\u7F6E\u7AEF\u53E3" },
142
143            {   MsgKey.ER_HOST_ADDRESS_NOT_WELLFORMED,
144                "\u4E3B\u673A\u4E0D\u662F\u683C\u5F0F\u826F\u597D\u7684\u5730\u5740" },
145
146            {   MsgKey.ER_SCHEME_NOT_CONFORMANT,
147                "\u65B9\u6848\u4E0D\u4E00\u81F4\u3002" },
148
149            {   MsgKey.ER_SCHEME_FROM_NULL_STRING,
150                "\u65E0\u6CD5\u4ECE\u7A7A\u5B57\u7B26\u4E32\u8BBE\u7F6E\u65B9\u6848" },
151
152            {   MsgKey.ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
153                "\u8DEF\u5F84\u5305\u542B\u65E0\u6548\u7684\u8F6C\u4E49\u5E8F\u5217" },
154
155            {   MsgKey.ER_PATH_INVALID_CHAR,
156                "\u8DEF\u5F84\u5305\u542B\u65E0\u6548\u7684\u5B57\u7B26: {0}" },
157
158            {   MsgKey.ER_FRAG_INVALID_CHAR,
159                "\u7247\u6BB5\u5305\u542B\u65E0\u6548\u7684\u5B57\u7B26" },
160
161            {   MsgKey.ER_FRAG_WHEN_PATH_NULL,
162                "\u8DEF\u5F84\u4E3A\u7A7A\u65F6, \u65E0\u6CD5\u8BBE\u7F6E\u7247\u6BB5" },
163
164            {   MsgKey.ER_FRAG_FOR_GENERIC_URI,
165                "\u53EA\u80FD\u4E3A\u4E00\u822C URI \u8BBE\u7F6E\u7247\u6BB5" },
166
167            {   MsgKey.ER_NO_SCHEME_IN_URI,
168                "\u5728 URI \u4E2D\u627E\u4E0D\u5230\u65B9\u6848" },
169
170            {   MsgKey.ER_CANNOT_INIT_URI_EMPTY_PARMS,
171                "\u65E0\u6CD5\u4EE5\u7A7A\u53C2\u6570\u521D\u59CB\u5316 URI" },
172
173            {   MsgKey.ER_NO_FRAGMENT_STRING_IN_PATH,
174                "\u8DEF\u5F84\u548C\u7247\u6BB5\u4E2D\u90FD\u65E0\u6CD5\u6307\u5B9A\u7247\u6BB5" },
175
176            {   MsgKey.ER_NO_QUERY_STRING_IN_PATH,
177                "\u8DEF\u5F84\u548C\u67E5\u8BE2\u5B57\u7B26\u4E32\u4E2D\u4E0D\u80FD\u6307\u5B9A\u67E5\u8BE2\u5B57\u7B26\u4E32" },
178
179            {   MsgKey.ER_NO_PORT_IF_NO_HOST,
180                "\u5982\u679C\u6CA1\u6709\u6307\u5B9A\u4E3B\u673A, \u5219\u4E0D\u53EF\u4EE5\u6307\u5B9A\u7AEF\u53E3" },
181
182            {   MsgKey.ER_NO_USERINFO_IF_NO_HOST,
183                "\u5982\u679C\u6CA1\u6709\u6307\u5B9A\u4E3B\u673A, \u5219\u4E0D\u53EF\u4EE5\u6307\u5B9A Userinfo" },
184
185            {   MsgKey.ER_XML_VERSION_NOT_SUPPORTED,
186                "\u8B66\u544A: \u8F93\u51FA\u6587\u6863\u7684\u7248\u672C\u5E94\u4E3A ''{0}''\u3002\u4E0D\u652F\u6301\u6B64\u7248\u672C\u7684 XML\u3002\u8F93\u51FA\u6587\u6863\u7684\u7248\u672C\u5C06\u4E3A ''1.0''\u3002" },
187
188            {   MsgKey.ER_SCHEME_REQUIRED,
189                "\u65B9\u6848\u662F\u5FC5\u9700\u7684!" },
190
191            /*
192             * Note to translators:  The words 'Properties' and
193             * 'SerializerFactory' in this message are Java class names
194             * and should not be translated.
195             */
196            {   MsgKey.ER_FACTORY_PROPERTY_MISSING,
197                "\u4F20\u9012\u5230 SerializerFactory \u7684 Properties \u5BF9\u8C61\u6CA1\u6709 ''{0}'' \u5C5E\u6027\u3002" },
198
199            {   MsgKey.ER_ENCODING_NOT_SUPPORTED,
200                "\u8B66\u544A: Java \u8FD0\u884C\u65F6\u4E0D\u652F\u6301\u7F16\u7801 ''{0}''\u3002" },
201
202             {MsgKey.ER_FEATURE_NOT_FOUND,
203             "\u672A\u8BC6\u522B\u53C2\u6570 ''{0}''\u3002"},
204
205             {MsgKey.ER_FEATURE_NOT_SUPPORTED,
206             "\u5DF2\u8BC6\u522B\u53C2\u6570 ''{0}'', \u4F46\u65E0\u6CD5\u8BBE\u7F6E\u8BF7\u6C42\u7684\u503C\u3002"},
207
208             {MsgKey.ER_STRING_TOO_LONG,
209             "\u751F\u6210\u7684\u5B57\u7B26\u4E32\u592A\u957F, \u4E0D\u9002\u5408 DOMString: ''{0}''\u3002"},
210
211             {MsgKey.ER_TYPE_MISMATCH_ERR,
212             "\u6B64\u53C2\u6570\u540D\u79F0\u7684\u503C\u7C7B\u578B\u4E0E\u9884\u671F\u7684\u503C\u7C7B\u578B\u4E0D\u517C\u5BB9\u3002"},
213
214             {MsgKey.ER_NO_OUTPUT_SPECIFIED,
215             "\u8981\u5C06\u6570\u636E\u5199\u5165\u7684\u8F93\u51FA\u76EE\u6807\u4E3A\u7A7A\u503C\u3002"},
216
217             {MsgKey.ER_UNSUPPORTED_ENCODING,
218             "\u9047\u5230\u4E0D\u652F\u6301\u7684\u7F16\u7801\u3002"},
219
220             {MsgKey.ER_UNABLE_TO_SERIALIZE_NODE,
221             "\u65E0\u6CD5\u5E8F\u5217\u5316\u8282\u70B9\u3002"},
222
223             {MsgKey.ER_CDATA_SECTIONS_SPLIT,
224             "CDATA \u8282\u5305\u542B\u4E00\u4E2A\u6216\u591A\u4E2A\u7EC8\u6B62\u6807\u8BB0 ']]>'\u3002"},
225
226             {MsgKey.ER_WARNING_WF_NOT_CHECKED,
227                 "\u65E0\u6CD5\u521B\u5EFA\u683C\u5F0F\u5408\u89C4\u6027\u68C0\u67E5\u5668\u7684\u5B9E\u4F8B\u3002\u683C\u5F0F\u5408\u89C4\u6027\u53C2\u6570\u5DF2\u8BBE\u7F6E\u4E3A\u201C\u771F\u201D, \u4F46\u65E0\u6CD5\u6267\u884C\u683C\u5F0F\u5408\u89C4\u6027\u68C0\u67E5\u3002"
228             },
229
230             {MsgKey.ER_WF_INVALID_CHARACTER,
231                 "\u8282\u70B9 ''{0}'' \u5305\u542B\u65E0\u6548\u7684 XML \u5B57\u7B26\u3002"
232             },
233
234             { MsgKey.ER_WF_INVALID_CHARACTER_IN_COMMENT,
235                 "\u5728\u6CE8\u91CA\u4E2D\u627E\u5230\u65E0\u6548\u7684 XML \u5B57\u7B26 (Unicode: 0x{0})\u3002"
236             },
237
238             { MsgKey.ER_WF_INVALID_CHARACTER_IN_PI,
239                 "\u5728\u5904\u7406\u6307\u4EE4\u6570\u636E\u4E2D\u627E\u5230\u65E0\u6548\u7684 XML \u5B57\u7B26 (Unicode: 0x{0})\u3002"
240             },
241
242             { MsgKey.ER_WF_INVALID_CHARACTER_IN_CDATA,
243                 "\u5728 CDATA \u8282\u7684\u5185\u5BB9\u4E2D\u627E\u5230\u65E0\u6548\u7684 XML \u5B57\u7B26 (Unicode: 0x{0})\u3002"
244             },
245
246             { MsgKey.ER_WF_INVALID_CHARACTER_IN_TEXT,
247                 "\u5728\u8282\u70B9\u7684\u5B57\u7B26\u6570\u636E\u5185\u5BB9\u4E2D\u627E\u5230\u65E0\u6548\u7684 XML \u5B57\u7B26 (Unicode: 0x{0})\u3002"
248             },
249
250             { MsgKey.ER_WF_INVALID_CHARACTER_IN_NODE_NAME,
251                 "\u5728\u540D\u4E3A ''{1}'' \u7684{0}\u8282\u70B9\u4E2D\u627E\u5230\u65E0\u6548\u7684 XML \u5B57\u7B26\u3002"
252             },
253
254             { MsgKey.ER_WF_DASH_IN_COMMENT,
255                 "\u6CE8\u91CA\u4E2D\u4E0D\u5141\u8BB8\u51FA\u73B0\u5B57\u7B26\u4E32 \"--\"\u3002"
256             },
257
258             {MsgKey.ER_WF_LT_IN_ATTVAL,
259                 "\u4E0E\u5143\u7D20\u7C7B\u578B \"{0}\" \u76F8\u5173\u8054\u7684 \"{1}\" \u5C5E\u6027\u503C\u4E0D\u80FD\u5305\u542B ''<'' \u5B57\u7B26\u3002"
260             },
261
262             {MsgKey.ER_WF_REF_TO_UNPARSED_ENT,
263                 "\u4E0D\u5141\u8BB8\u4F7F\u7528\u672A\u89E3\u6790\u7684\u5B9E\u4F53\u5F15\u7528 \"&{0};\"\u3002"
264             },
265
266             {MsgKey.ER_WF_REF_TO_EXTERNAL_ENT,
267                 "\u5C5E\u6027\u503C\u4E2D\u4E0D\u5141\u8BB8\u91C7\u7528\u5916\u90E8\u5B9E\u4F53\u5F15\u7528 \"&{0};\"\u3002"
268             },
269
270             {MsgKey.ER_NS_PREFIX_CANNOT_BE_BOUND,
271                 "\u524D\u7F00 \"{0}\" \u65E0\u6CD5\u7ED1\u5B9A\u5230\u540D\u79F0\u7A7A\u95F4 \"{1}\"\u3002"
272             },
273
274             {MsgKey.ER_NULL_LOCAL_ELEMENT_NAME,
275                 "\u5143\u7D20 \"{0}\" \u7684\u672C\u5730\u540D\u79F0\u4E3A\u7A7A\u503C\u3002"
276             },
277
278             {MsgKey.ER_NULL_LOCAL_ATTR_NAME,
279                 "\u5C5E\u6027 \"{0}\" \u7684\u672C\u5730\u540D\u79F0\u4E3A\u7A7A\u503C\u3002"
280             },
281
282             { MsgKey.ER_ELEM_UNBOUND_PREFIX_IN_ENTREF,
283                 "\u5B9E\u4F53\u8282\u70B9 \"{0}\" \u7684\u66FF\u6362\u6587\u672C\u5305\u542B\u5E26\u6709\u672A\u7ED1\u5B9A\u524D\u7F00 \"{2}\" \u7684\u5143\u7D20\u8282\u70B9 \"{1}\"\u3002"
284             },
285
286             { MsgKey.ER_ATTR_UNBOUND_PREFIX_IN_ENTREF,
287                 "\u5B9E\u4F53\u8282\u70B9 \"{0}\" \u7684\u66FF\u6362\u6587\u672C\u5305\u542B\u5E26\u6709\u672A\u7ED1\u5B9A\u524D\u7F00 \"{2}\" \u7684\u5C5E\u6027\u8282\u70B9 \"{1}\"\u3002"
288             },
289
290             { MsgKey.ER_WRITING_INTERNAL_SUBSET,
291                 "\u5199\u5165\u5185\u90E8\u5B50\u96C6\u65F6\u51FA\u73B0\u9519\u8BEF\u3002"
292             },
293
294        };
295
296        return contents;
297    }
298}
299