12005
|
1 |
/*
|
|
2 |
* reserved comment block
|
|
3 |
* DO NOT REMOVE OR ALTER!
|
|
4 |
*/
|
|
5 |
/*
|
|
6 |
* Copyright 1999-2004 The Apache Software Foundation.
|
|
7 |
*
|
|
8 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9 |
* you may not use this file except in compliance with the License.
|
|
10 |
* You may obtain a copy of the License at
|
|
11 |
*
|
|
12 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13 |
*
|
|
14 |
* Unless required by applicable law or agreed to in writing, software
|
|
15 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17 |
* See the License for the specific language governing permissions and
|
|
18 |
* limitations under the License.
|
|
19 |
*/
|
|
20 |
|
|
21 |
/*
|
|
22 |
* $Id: XMLErrorResources_pt_BR.java 3023 2011-03-01 00:53:34Z joehw $
|
|
23 |
*/
|
|
24 |
package com.sun.org.apache.xml.internal.res;
|
|
25 |
|
|
26 |
|
|
27 |
import java.util.ListResourceBundle;
|
|
28 |
import java.util.Locale;
|
|
29 |
import java.util.MissingResourceException;
|
|
30 |
import java.util.ResourceBundle;
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Set up error messages.
|
|
34 |
* We build a two dimensional array of message keys and
|
|
35 |
* message strings. In order to add a new message here,
|
|
36 |
* you need to first add a String constant. And you need
|
|
37 |
* to enter key, value pair as part of the contents
|
|
38 |
* array. You also need to update MAX_CODE for error strings
|
|
39 |
* and MAX_WARNING for warnings ( Needed for only information
|
|
40 |
* purpose )
|
|
41 |
*/
|
|
42 |
public class XMLErrorResources_pt_BR extends ListResourceBundle
|
|
43 |
{
|
|
44 |
|
|
45 |
/*
|
|
46 |
* This file contains error and warning messages related to Xalan Error
|
|
47 |
* Handling.
|
|
48 |
*
|
|
49 |
* General notes to translators:
|
|
50 |
*
|
|
51 |
* 1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
|
|
52 |
* components.
|
|
53 |
* XSLT is an acronym for "XML Stylesheet Language: Transformations".
|
|
54 |
* XSLTC is an acronym for XSLT Compiler.
|
|
55 |
*
|
|
56 |
* 2) A stylesheet is a description of how to transform an input XML document
|
|
57 |
* into a resultant XML document (or HTML document or text). The
|
|
58 |
* stylesheet itself is described in the form of an XML document.
|
|
59 |
*
|
|
60 |
* 3) A template is a component of a stylesheet that is used to match a
|
|
61 |
* particular portion of an input document and specifies the form of the
|
|
62 |
* corresponding portion of the output document.
|
|
63 |
*
|
|
64 |
* 4) An element is a mark-up tag in an XML document; an attribute is a
|
|
65 |
* modifier on the tag. For example, in <elem attr='val' attr2='val2'>
|
|
66 |
* "elem" is an element name, "attr" and "attr2" are attribute names with
|
|
67 |
* the values "val" and "val2", respectively.
|
|
68 |
*
|
|
69 |
* 5) A namespace declaration is a special attribute that is used to associate
|
|
70 |
* a prefix with a URI (the namespace). The meanings of element names and
|
|
71 |
* attribute names that use that prefix are defined with respect to that
|
|
72 |
* namespace.
|
|
73 |
*
|
|
74 |
* 6) "Translet" is an invented term that describes the class file that
|
|
75 |
* results from compiling an XML stylesheet into a Java class.
|
|
76 |
*
|
|
77 |
* 7) XPath is a specification that describes a notation for identifying
|
|
78 |
* nodes in a tree-structured representation of an XML document. An
|
|
79 |
* instance of that notation is referred to as an XPath expression.
|
|
80 |
*
|
|
81 |
*/
|
|
82 |
|
|
83 |
/** Maximum error messages, this is needed to keep track of the number of messages. */
|
|
84 |
public static final int MAX_CODE = 61;
|
|
85 |
|
|
86 |
/** Maximum warnings, this is needed to keep track of the number of warnings. */
|
|
87 |
public static final int MAX_WARNING = 0;
|
|
88 |
|
|
89 |
/** Maximum misc strings. */
|
|
90 |
public static final int MAX_OTHERS = 4;
|
|
91 |
|
|
92 |
/** Maximum total warnings and error messages. */
|
|
93 |
public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
|
|
94 |
|
|
95 |
|
|
96 |
/*
|
|
97 |
* Message keys
|
|
98 |
*/
|
|
99 |
public static final String ER_FUNCTION_NOT_SUPPORTED = "ER_FUNCTION_NOT_SUPPORTED";
|
|
100 |
public static final String ER_CANNOT_OVERWRITE_CAUSE = "ER_CANNOT_OVERWRITE_CAUSE";
|
|
101 |
public static final String ER_NO_DEFAULT_IMPL = "ER_NO_DEFAULT_IMPL";
|
|
102 |
public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = "ER_CHUNKEDINTARRAY_NOT_SUPPORTED";
|
|
103 |
public static final String ER_OFFSET_BIGGER_THAN_SLOT = "ER_OFFSET_BIGGER_THAN_SLOT";
|
|
104 |
public static final String ER_COROUTINE_NOT_AVAIL = "ER_COROUTINE_NOT_AVAIL";
|
|
105 |
public static final String ER_COROUTINE_CO_EXIT = "ER_COROUTINE_CO_EXIT";
|
|
106 |
public static final String ER_COJOINROUTINESET_FAILED = "ER_COJOINROUTINESET_FAILED";
|
|
107 |
public static final String ER_COROUTINE_PARAM = "ER_COROUTINE_PARAM";
|
|
108 |
public static final String ER_PARSER_DOTERMINATE_ANSWERS = "ER_PARSER_DOTERMINATE_ANSWERS";
|
|
109 |
public static final String ER_NO_PARSE_CALL_WHILE_PARSING = "ER_NO_PARSE_CALL_WHILE_PARSING";
|
|
110 |
public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = "ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED";
|
|
111 |
public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = "ER_ITERATOR_AXIS_NOT_IMPLEMENTED";
|
|
112 |
public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = "ER_ITERATOR_CLONE_NOT_SUPPORTED";
|
|
113 |
public static final String ER_UNKNOWN_AXIS_TYPE = "ER_UNKNOWN_AXIS_TYPE";
|
|
114 |
public static final String ER_AXIS_NOT_SUPPORTED = "ER_AXIS_NOT_SUPPORTED";
|
|
115 |
public static final String ER_NO_DTMIDS_AVAIL = "ER_NO_DTMIDS_AVAIL";
|
|
116 |
public static final String ER_NOT_SUPPORTED = "ER_NOT_SUPPORTED";
|
|
117 |
public static final String ER_NODE_NON_NULL = "ER_NODE_NON_NULL";
|
|
118 |
public static final String ER_COULD_NOT_RESOLVE_NODE = "ER_COULD_NOT_RESOLVE_NODE";
|
|
119 |
public static final String ER_STARTPARSE_WHILE_PARSING = "ER_STARTPARSE_WHILE_PARSING";
|
|
120 |
public static final String ER_STARTPARSE_NEEDS_SAXPARSER = "ER_STARTPARSE_NEEDS_SAXPARSER";
|
|
121 |
public static final String ER_COULD_NOT_INIT_PARSER = "ER_COULD_NOT_INIT_PARSER";
|
|
122 |
public static final String ER_EXCEPTION_CREATING_POOL = "ER_EXCEPTION_CREATING_POOL";
|
|
123 |
public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = "ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE";
|
|
124 |
public static final String ER_SCHEME_REQUIRED = "ER_SCHEME_REQUIRED";
|
|
125 |
public static final String ER_NO_SCHEME_IN_URI = "ER_NO_SCHEME_IN_URI";
|
|
126 |
public static final String ER_NO_SCHEME_INURI = "ER_NO_SCHEME_INURI";
|
|
127 |
public static final String ER_PATH_INVALID_CHAR = "ER_PATH_INVALID_CHAR";
|
|
128 |
public static final String ER_SCHEME_FROM_NULL_STRING = "ER_SCHEME_FROM_NULL_STRING";
|
|
129 |
public static final String ER_SCHEME_NOT_CONFORMANT = "ER_SCHEME_NOT_CONFORMANT";
|
|
130 |
public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = "ER_HOST_ADDRESS_NOT_WELLFORMED";
|
|
131 |
public static final String ER_PORT_WHEN_HOST_NULL = "ER_PORT_WHEN_HOST_NULL";
|
|
132 |
public static final String ER_INVALID_PORT = "ER_INVALID_PORT";
|
|
133 |
public static final String ER_FRAG_FOR_GENERIC_URI ="ER_FRAG_FOR_GENERIC_URI";
|
|
134 |
public static final String ER_FRAG_WHEN_PATH_NULL = "ER_FRAG_WHEN_PATH_NULL";
|
|
135 |
public static final String ER_FRAG_INVALID_CHAR = "ER_FRAG_INVALID_CHAR";
|
|
136 |
public static final String ER_PARSER_IN_USE = "ER_PARSER_IN_USE";
|
|
137 |
public static final String ER_CANNOT_CHANGE_WHILE_PARSING = "ER_CANNOT_CHANGE_WHILE_PARSING";
|
|
138 |
public static final String ER_SELF_CAUSATION_NOT_PERMITTED = "ER_SELF_CAUSATION_NOT_PERMITTED";
|
|
139 |
public static final String ER_NO_USERINFO_IF_NO_HOST = "ER_NO_USERINFO_IF_NO_HOST";
|
|
140 |
public static final String ER_NO_PORT_IF_NO_HOST = "ER_NO_PORT_IF_NO_HOST";
|
|
141 |
public static final String ER_NO_QUERY_STRING_IN_PATH = "ER_NO_QUERY_STRING_IN_PATH";
|
|
142 |
public static final String ER_NO_FRAGMENT_STRING_IN_PATH = "ER_NO_FRAGMENT_STRING_IN_PATH";
|
|
143 |
public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = "ER_CANNOT_INIT_URI_EMPTY_PARMS";
|
|
144 |
public static final String ER_METHOD_NOT_SUPPORTED ="ER_METHOD_NOT_SUPPORTED";
|
|
145 |
public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = "ER_INCRSAXSRCFILTER_NOT_RESTARTABLE";
|
|
146 |
public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = "ER_XMLRDR_NOT_BEFORE_STARTPARSE";
|
|
147 |
public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = "ER_AXIS_TRAVERSER_NOT_SUPPORTED";
|
|
148 |
public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = "ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER";
|
|
149 |
public static final String ER_SYSTEMID_UNKNOWN = "ER_SYSTEMID_UNKNOWN";
|
|
150 |
public static final String ER_LOCATION_UNKNOWN = "ER_LOCATION_UNKNOWN";
|
|
151 |
public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
|
|
152 |
public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = "ER_CREATEDOCUMENT_NOT_SUPPORTED";
|
|
153 |
public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = "ER_CHILD_HAS_NO_OWNER_DOCUMENT";
|
|
154 |
public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = "ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT";
|
|
155 |
public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = "ER_CANT_OUTPUT_TEXT_BEFORE_DOC";
|
|
156 |
public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = "ER_CANT_HAVE_MORE_THAN_ONE_ROOT";
|
|
157 |
public static final String ER_ARG_LOCALNAME_NULL = "ER_ARG_LOCALNAME_NULL";
|
|
158 |
public static final String ER_ARG_LOCALNAME_INVALID = "ER_ARG_LOCALNAME_INVALID";
|
|
159 |
public static final String ER_ARG_PREFIX_INVALID = "ER_ARG_PREFIX_INVALID";
|
|
160 |
public static final String ER_NAME_CANT_START_WITH_COLON = "ER_NAME_CANT_START_WITH_COLON";
|
|
161 |
|
|
162 |
// Message keys used by the serializer
|
|
163 |
public static final String ER_RESOURCE_COULD_NOT_FIND = "ER_RESOURCE_COULD_NOT_FIND";
|
|
164 |
public static final String ER_RESOURCE_COULD_NOT_LOAD = "ER_RESOURCE_COULD_NOT_LOAD";
|
|
165 |
public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = "ER_BUFFER_SIZE_LESSTHAN_ZERO";
|
|
166 |
public static final String ER_INVALID_UTF16_SURROGATE = "ER_INVALID_UTF16_SURROGATE";
|
|
167 |
public static final String ER_OIERROR = "ER_OIERROR";
|
|
168 |
public static final String ER_NAMESPACE_PREFIX = "ER_NAMESPACE_PREFIX";
|
|
169 |
public static final String ER_STRAY_ATTRIBUTE = "ER_STRAY_ATTIRBUTE";
|
|
170 |
public static final String ER_STRAY_NAMESPACE = "ER_STRAY_NAMESPACE";
|
|
171 |
public static final String ER_COULD_NOT_LOAD_RESOURCE = "ER_COULD_NOT_LOAD_RESOURCE";
|
|
172 |
public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = "ER_COULD_NOT_LOAD_METHOD_PROPERTY";
|
|
173 |
public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = "ER_SERIALIZER_NOT_CONTENTHANDLER";
|
|
174 |
public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = "ER_ILLEGAL_ATTRIBUTE_POSITION";
|
|
175 |
public static final String ER_ILLEGAL_CHARACTER = "ER_ILLEGAL_CHARACTER";
|
|
176 |
|
|
177 |
/*
|
|
178 |
* Now fill in the message text.
|
|
179 |
* Then fill in the message text for that message code in the
|
|
180 |
* array. Use the new error code as the index into the array.
|
|
181 |
*/
|
|
182 |
|
|
183 |
// Error messages...
|
|
184 |
|
|
185 |
/** The lookup table for error messages. */
|
|
186 |
public static final Object[][] contents = {
|
|
187 |
|
|
188 |
/** Error message ID that has a null message, but takes in a single object. */
|
|
189 |
{"ER0000" , "{0}" },
|
|
190 |
|
|
191 |
{ ER_FUNCTION_NOT_SUPPORTED,
|
|
192 |
"Fun\u00E7\u00E3o n\u00E3o suportada!"},
|
|
193 |
|
|
194 |
{ ER_CANNOT_OVERWRITE_CAUSE,
|
|
195 |
"N\u00E3o \u00E9 poss\u00EDvel substituir a causa"},
|
|
196 |
|
|
197 |
{ ER_NO_DEFAULT_IMPL,
|
|
198 |
"Nenhuma implementa\u00E7\u00E3o default encontrada "},
|
|
199 |
|
|
200 |
{ ER_CHUNKEDINTARRAY_NOT_SUPPORTED,
|
|
201 |
"ChunkedIntArray({0}) n\u00E3o suportado atualmente"},
|
|
202 |
|
|
203 |
{ ER_OFFSET_BIGGER_THAN_SLOT,
|
|
204 |
"Deslocamento maior que o slot"},
|
|
205 |
|
|
206 |
{ ER_COROUTINE_NOT_AVAIL,
|
|
207 |
"Co-rotina n\u00E3o dispon\u00EDvel, id={0}"},
|
|
208 |
|
|
209 |
{ ER_COROUTINE_CO_EXIT,
|
|
210 |
"CoroutineManager recebeu a solicita\u00E7\u00E3o co_exit()"},
|
|
211 |
|
|
212 |
{ ER_COJOINROUTINESET_FAILED,
|
|
213 |
"Falha em co_joinCoroutineSet()"},
|
|
214 |
|
|
215 |
{ ER_COROUTINE_PARAM,
|
|
216 |
"Erro no par\u00E2metro da co-rotina ({0})"},
|
|
217 |
|
|
218 |
{ ER_PARSER_DOTERMINATE_ANSWERS,
|
|
219 |
"\nINESPERADO: Parser doTerminate responde {0}"},
|
|
220 |
|
|
221 |
{ ER_NO_PARSE_CALL_WHILE_PARSING,
|
|
222 |
"o parse n\u00E3o pode ser chamado durante o parse"},
|
|
223 |
|
|
224 |
{ ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
|
|
225 |
"Erro: iterador digitado para o eixo {0} n\u00E3o implementado"},
|
|
226 |
|
|
227 |
{ ER_ITERATOR_AXIS_NOT_IMPLEMENTED,
|
|
228 |
"Erro: iterador para o eixo {0} n\u00E3o implementado "},
|
|
229 |
|
|
230 |
{ ER_ITERATOR_CLONE_NOT_SUPPORTED,
|
|
231 |
"clonagem do iterador n\u00E3o suportada"},
|
|
232 |
|
|
233 |
{ ER_UNKNOWN_AXIS_TYPE,
|
|
234 |
"Tipo transversal de eixo desconhecido: {0}"},
|
|
235 |
|
|
236 |
{ ER_AXIS_NOT_SUPPORTED,
|
|
237 |
"Transversor de eixo n\u00E3o suportado: {0}"},
|
|
238 |
|
|
239 |
{ ER_NO_DTMIDS_AVAIL,
|
|
240 |
"N\u00E3o h\u00E1 mais IDs de DTM dispon\u00EDveis"},
|
|
241 |
|
|
242 |
{ ER_NOT_SUPPORTED,
|
|
243 |
"N\u00E3o suportado: {0}"},
|
|
244 |
|
|
245 |
{ ER_NODE_NON_NULL,
|
|
246 |
"O n\u00F3 deve ser n\u00E3o-nulo para getDTMHandleFromNode"},
|
|
247 |
|
|
248 |
{ ER_COULD_NOT_RESOLVE_NODE,
|
|
249 |
"N\u00E3o foi poss\u00EDvel resolver o n\u00F3 para um handle"},
|
|
250 |
|
|
251 |
{ ER_STARTPARSE_WHILE_PARSING,
|
|
252 |
"startParse n\u00E3o pode ser chamado durante o parse"},
|
|
253 |
|
|
254 |
{ ER_STARTPARSE_NEEDS_SAXPARSER,
|
|
255 |
"startParse requer um SAXParser n\u00E3o nulo"},
|
|
256 |
|
|
257 |
{ ER_COULD_NOT_INIT_PARSER,
|
|
258 |
"n\u00E3o foi poss\u00EDvel inicializar o parser com"},
|
|
259 |
|
|
260 |
{ ER_EXCEPTION_CREATING_POOL,
|
|
261 |
"exce\u00E7\u00E3o ao criar a nova inst\u00E2ncia do pool"},
|
|
262 |
|
|
263 |
{ ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
|
|
264 |
"O caminho cont\u00E9m uma sequ\u00EAncia inv\u00E1lida de caracteres de escape"},
|
|
265 |
|
|
266 |
{ ER_SCHEME_REQUIRED,
|
|
267 |
"\u00C9 necess\u00E1rio um esquema!"},
|
|
268 |
|
|
269 |
{ ER_NO_SCHEME_IN_URI,
|
|
270 |
"Nenhum esquema encontrado no URI: {0}"},
|
|
271 |
|
|
272 |
{ ER_NO_SCHEME_INURI,
|
|
273 |
"Nenhum esquema encontrado no URI"},
|
|
274 |
|
|
275 |
{ ER_PATH_INVALID_CHAR,
|
|
276 |
"O caminho cont\u00E9m um caractere inv\u00E1lido: {0}"},
|
|
277 |
|
|
278 |
{ ER_SCHEME_FROM_NULL_STRING,
|
|
279 |
"N\u00E3o \u00E9 poss\u00EDvel definir o esquema de uma string nula"},
|
|
280 |
|
|
281 |
{ ER_SCHEME_NOT_CONFORMANT,
|
|
282 |
"O esquema n\u00E3o \u00E9 compat\u00EDvel."},
|
|
283 |
|
|
284 |
{ ER_HOST_ADDRESS_NOT_WELLFORMED,
|
|
285 |
"O host n\u00E3o \u00E9 um endere\u00E7o correto"},
|
|
286 |
|
|
287 |
{ ER_PORT_WHEN_HOST_NULL,
|
|
288 |
"A porta n\u00E3o pode ser definida quando o host \u00E9 nulo"},
|
|
289 |
|
|
290 |
{ ER_INVALID_PORT,
|
|
291 |
"N\u00FAmero de porta inv\u00E1lido"},
|
|
292 |
|
|
293 |
{ ER_FRAG_FOR_GENERIC_URI,
|
|
294 |
"O fragmento s\u00F3 pode ser definido para um URI gen\u00E9rico"},
|
|
295 |
|
|
296 |
{ ER_FRAG_WHEN_PATH_NULL,
|
|
297 |
"O fragmento n\u00E3o pode ser definido quando o caminho \u00E9 nulo"},
|
|
298 |
|
|
299 |
{ ER_FRAG_INVALID_CHAR,
|
|
300 |
"O fragmento cont\u00E9m um caractere inv\u00E1lido"},
|
|
301 |
|
|
302 |
{ ER_PARSER_IN_USE,
|
|
303 |
"O parser j\u00E1 est\u00E1 sendo usado"},
|
|
304 |
|
|
305 |
{ ER_CANNOT_CHANGE_WHILE_PARSING,
|
|
306 |
"N\u00E3o \u00E9 poss\u00EDvel alterar {0} {1} durante o parse"},
|
|
307 |
|
|
308 |
{ ER_SELF_CAUSATION_NOT_PERMITTED,
|
|
309 |
"Autoaverigua\u00E7\u00E3o n\u00E3o permitida"},
|
|
310 |
|
|
311 |
{ ER_NO_USERINFO_IF_NO_HOST,
|
|
312 |
"As informa\u00E7\u00F5es do usu\u00E1rio n\u00E3o podem ser especificadas se o host n\u00E3o tiver sido especificado"},
|
|
313 |
|
|
314 |
{ ER_NO_PORT_IF_NO_HOST,
|
|
315 |
"A porta n\u00E3o pode ser especificada se o host n\u00E3o tiver sido especificado"},
|
|
316 |
|
|
317 |
{ ER_NO_QUERY_STRING_IN_PATH,
|
|
318 |
"A string de consulta n\u00E3o pode ser especificada no caminho nem na string de consulta"},
|
|
319 |
|
|
320 |
{ ER_NO_FRAGMENT_STRING_IN_PATH,
|
|
321 |
"O fragmento n\u00E3o pode ser especificado no caminho nem no fragmento"},
|
|
322 |
|
|
323 |
{ ER_CANNOT_INIT_URI_EMPTY_PARMS,
|
|
324 |
"N\u00E3o \u00E9 poss\u00EDvel inicializar o URI com par\u00E2metros vazios"},
|
|
325 |
|
|
326 |
{ ER_METHOD_NOT_SUPPORTED,
|
|
327 |
"M\u00E9todo ainda n\u00E3o suportado "},
|
|
328 |
|
|
329 |
{ ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,
|
|
330 |
"IncrementalSAXSource_Filter atualmente n\u00E3o reinicializ\u00E1vel"},
|
|
331 |
|
|
332 |
{ ER_XMLRDR_NOT_BEFORE_STARTPARSE,
|
|
333 |
"XMLReader n\u00E3o anterior \u00E0 solicita\u00E7\u00E3o de startParse"},
|
|
334 |
|
|
335 |
{ ER_AXIS_TRAVERSER_NOT_SUPPORTED,
|
|
336 |
"Transversor de eixo n\u00E3o suportado: {0}"},
|
|
337 |
|
|
338 |
{ ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,
|
|
339 |
"ListingErrorHandler criado com PrintWriter nulo!"},
|
|
340 |
|
|
341 |
{ ER_SYSTEMID_UNKNOWN,
|
|
342 |
"SystemId Desconhecido"},
|
|
343 |
|
|
344 |
{ ER_LOCATION_UNKNOWN,
|
|
345 |
"Localiza\u00E7\u00E3o de erro desconhecida"},
|
|
346 |
|
|
347 |
{ ER_PREFIX_MUST_RESOLVE,
|
|
348 |
"O prefixo deve ser resolvido para um namespace: {0}"},
|
|
349 |
|
|
350 |
{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
|
|
351 |
"createDocument() n\u00E3o suportado no XPathContext!"},
|
|
352 |
|
|
353 |
{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
|
|
354 |
"O filho do atributo n\u00E3o tem um documento do propriet\u00E1rio!"},
|
|
355 |
|
|
356 |
{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
|
|
357 |
"O filho do atributo n\u00E3o tem um elemento do documento do propriet\u00E1rio!"},
|
|
358 |
|
|
359 |
{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
|
|
360 |
"Advert\u00EAncia: n\u00E3o pode haver texto antes do elemento do documento! Ignorando..."},
|
|
361 |
|
|
362 |
{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
|
|
363 |
"N\u00E3o pode ter mais de uma raiz em um DOM!"},
|
|
364 |
|
|
365 |
{ ER_ARG_LOCALNAME_NULL,
|
|
366 |
"O argumento 'localName' \u00E9 nulo"},
|
|
367 |
|
|
368 |
// Note to translators: A QNAME has the syntactic form [NCName:]NCName
|
|
369 |
// The localname is the portion after the optional colon; the message indicates
|
|
370 |
// that there is a problem with that part of the QNAME.
|
|
371 |
{ ER_ARG_LOCALNAME_INVALID,
|
|
372 |
"Localname em QNAME deve ser um NCName v\u00E1lido"},
|
|
373 |
|
|
374 |
// Note to translators: A QNAME has the syntactic form [NCName:]NCName
|
|
375 |
// The prefix is the portion before the optional colon; the message indicates
|
|
376 |
// that there is a problem with that part of the QNAME.
|
|
377 |
{ ER_ARG_PREFIX_INVALID,
|
|
378 |
"O prefixo em QNAME deve ser um NCName v\u00E1lido"},
|
|
379 |
|
|
380 |
{ ER_NAME_CANT_START_WITH_COLON,
|
|
381 |
"O nome n\u00E3o pode come\u00E7ar com dois pontos"},
|
|
382 |
|
|
383 |
{ "BAD_CODE", "O par\u00E2metro para createMessage estava fora dos limites"},
|
|
384 |
{ "FORMAT_FAILED", "Exce\u00E7\u00E3o gerada durante a chamada messageFormat"},
|
|
385 |
{ "line", "N\u00B0 da Linha"},
|
|
386 |
{ "column","N\u00B0 da Coluna"},
|
|
387 |
|
|
388 |
{ER_SERIALIZER_NOT_CONTENTHANDLER,
|
|
389 |
"A classe ''{0}'' do serializador n\u00E3o implementa org.xml.sax.ContentHandler."},
|
|
390 |
|
|
391 |
{ER_RESOURCE_COULD_NOT_FIND,
|
|
392 |
"N\u00E3o foi poss\u00EDvel encontrar o recurso [ {0} ].\n {1}" },
|
|
393 |
|
|
394 |
{ER_RESOURCE_COULD_NOT_LOAD,
|
|
395 |
"O recurso [ {0} ] n\u00E3o foi carregado: {1} \n {2} \t {3}" },
|
|
396 |
|
|
397 |
{ER_BUFFER_SIZE_LESSTHAN_ZERO,
|
|
398 |
"Tamanho do buffer <=0" },
|
|
399 |
|
|
400 |
{ER_INVALID_UTF16_SURROGATE,
|
|
401 |
"Foi detectado um substituto de UTF-16 inv\u00E1lido: {0} ?" },
|
|
402 |
|
|
403 |
{ER_OIERROR,
|
|
404 |
"Erro de E/S" },
|
|
405 |
|
|
406 |
{ER_ILLEGAL_ATTRIBUTE_POSITION,
|
|
407 |
"N\u00E3o \u00E9 poss\u00EDvel adicionar o atributo {0} depois dos n\u00F3s filhos ou antes que um elemento seja produzido. O atributo ser\u00E1 ignorado."},
|
|
408 |
|
|
409 |
/*
|
|
410 |
* Note to translators: The stylesheet contained a reference to a
|
|
411 |
* namespace prefix that was undefined. The value of the substitution
|
|
412 |
* text is the name of the prefix.
|
|
413 |
*/
|
|
414 |
{ER_NAMESPACE_PREFIX,
|
|
415 |
"O namespace do prefixo ''{0}'' n\u00E3o foi declarado." },
|
|
416 |
/*
|
|
417 |
* Note to translators: This message is reported if the stylesheet
|
|
418 |
* being processed attempted to construct an XML document with an
|
|
419 |
* attribute in a place other than on an element. The substitution text
|
|
420 |
* specifies the name of the attribute.
|
|
421 |
*/
|
|
422 |
{ER_STRAY_ATTRIBUTE,
|
|
423 |
"Atributo ''{0}'' fora do elemento." },
|
|
424 |
|
|
425 |
/*
|
|
426 |
* Note to translators: As with the preceding message, a namespace
|
|
427 |
* declaration has the form of an attribute and is only permitted to
|
|
428 |
* appear on an element. The substitution text {0} is the namespace
|
|
429 |
* prefix and {1} is the URI that was being used in the erroneous
|
|
430 |
* namespace declaration.
|
|
431 |
*/
|
|
432 |
{ER_STRAY_NAMESPACE,
|
|
433 |
"Declara\u00E7\u00E3o de namespace ''{0}''=''{1}'' fora do elemento." },
|
|
434 |
|
|
435 |
{ER_COULD_NOT_LOAD_RESOURCE,
|
|
436 |
"N\u00E3o foi poss\u00EDvel carregar ''{0}'' (verificar CLASSPATH); usando agora apenas os defaults"},
|
|
437 |
|
|
438 |
{ ER_ILLEGAL_CHARACTER,
|
|
439 |
"Tentativa de exibir um caractere de valor integral {0} que n\u00E3o est\u00E1 representado na codifica\u00E7\u00E3o de sa\u00EDda especificada de {1}."},
|
|
440 |
|
|
441 |
{ER_COULD_NOT_LOAD_METHOD_PROPERTY,
|
|
442 |
"N\u00E3o foi poss\u00EDvel carregar o arquivo de propriedade ''{0}'' para o m\u00E9todo de sa\u00EDda ''{1}'' (verificar CLASSPATH)" }
|
|
443 |
|
|
444 |
|
|
445 |
};
|
|
446 |
private static final Object[][] msgCopy = new Object[contents.length][2];
|
|
447 |
// return a copy of contents; in theory we want a deep clone
|
|
448 |
// of contents, but since it only contains (immutable) Strings,
|
|
449 |
// this shallow copy is sufficient
|
|
450 |
static {
|
|
451 |
for (int i = 0; i < contents.length; i++) {
|
|
452 |
msgCopy[i][0] = contents[i][0];
|
|
453 |
msgCopy[i][1] = contents[i][1];
|
|
454 |
}
|
|
455 |
}
|
|
456 |
/**
|
|
457 |
* Get the association list.
|
|
458 |
*
|
|
459 |
* @return The association list.
|
|
460 |
*/
|
|
461 |
|
|
462 |
protected Object[][] getContents() {
|
|
463 |
return msgCopy;
|
|
464 |
}
|
|
465 |
|
|
466 |
/**
|
|
467 |
* Return a named ResourceBundle for a particular locale. This method mimics the behavior
|
|
468 |
* of ResourceBundle.getBundle().
|
|
469 |
*
|
|
470 |
* @param className the name of the class that implements the resource bundle.
|
|
471 |
* @return the ResourceBundle
|
|
472 |
* @throws MissingResourceException
|
|
473 |
*/
|
|
474 |
public static final XMLErrorResources loadResourceBundle(String className)
|
|
475 |
throws MissingResourceException
|
|
476 |
{
|
|
477 |
|
|
478 |
Locale locale = Locale.getDefault();
|
|
479 |
String suffix = getResourceSuffix(locale);
|
|
480 |
|
|
481 |
try
|
|
482 |
{
|
|
483 |
|
|
484 |
// first try with the given locale
|
|
485 |
return (XMLErrorResources) ResourceBundle.getBundle(className
|
|
486 |
+ suffix, locale);
|
|
487 |
}
|
|
488 |
catch (MissingResourceException e)
|
|
489 |
{
|
|
490 |
try // try to fall back to en_US if we can't load
|
|
491 |
{
|
|
492 |
|
|
493 |
// Since we can't find the localized property file,
|
|
494 |
// fall back to en_US.
|
|
495 |
return (XMLErrorResources) ResourceBundle.getBundle(className,
|
|
496 |
new Locale("en", "US"));
|
|
497 |
}
|
|
498 |
catch (MissingResourceException e2)
|
|
499 |
{
|
|
500 |
|
|
501 |
// Now we are really in trouble.
|
|
502 |
// very bad, definitely very bad...not going to get very far
|
|
503 |
throw new MissingResourceException(
|
|
504 |
"Could not load any resource bundles.", className, "");
|
|
505 |
}
|
|
506 |
}
|
|
507 |
}
|
|
508 |
|
|
509 |
/**
|
|
510 |
* Return the resource file suffic for the indicated locale
|
|
511 |
* For most locales, this will be based the language code. However
|
|
512 |
* for Chinese, we do distinguish between Taiwan and PRC
|
|
513 |
*
|
|
514 |
* @param locale the locale
|
|
515 |
* @return an String suffix which canbe appended to a resource name
|
|
516 |
*/
|
|
517 |
private static final String getResourceSuffix(Locale locale)
|
|
518 |
{
|
|
519 |
|
|
520 |
String suffix = "_" + locale.getLanguage();
|
|
521 |
String country = locale.getCountry();
|
|
522 |
|
|
523 |
if (country.equals("TW"))
|
|
524 |
suffix += "_" + country;
|
|
525 |
|
|
526 |
return suffix;
|
|
527 |
}
|
|
528 |
|
|
529 |
}
|