001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the "License"); 007 * you may not use this file except in compliance with the License. 008 * You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 /* 019 * $Id: XMLErrorResources_sv.java 468653 2006-10-28 07:07:05Z minchau $ 020 */ 021 package org.apache.xml.res; 022 023 024 /** 025 * Set up error messages. 026 * We build a two dimensional array of message keys and 027 * message strings. In order to add a new message here, 028 * you need to first add a String constant. And you need 029 * to enter key, value pair as part of the contents 030 * array. You also need to update MAX_CODE for error strings 031 * and MAX_WARNING for warnings ( Needed for only information 032 * purpose ) 033 */ 034 public class XMLErrorResources_sv extends XMLErrorResources 035 { 036 037 /** Maximum error messages, this is needed to keep track of the number of messages. */ 038 public static final int MAX_CODE = 61; 039 040 /** Maximum warnings, this is needed to keep track of the number of warnings. */ 041 public static final int MAX_WARNING = 0; 042 043 /** Maximum misc strings. */ 044 public static final int MAX_OTHERS = 4; 045 046 /** Maximum total warnings and error messages. */ 047 public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1; 048 049 050 // Error messages... 051 052 /** 053 * Get the lookup table for error messages 054 * 055 * @return The association list. 056 */ 057 public Object[][] getContents() 058 { 059 return new Object[][] { 060 061 /** Error message ID that has a null message, but takes in a single object. */ 062 {"ER0000" , "{0}" }, 063 064 /** ER_FUNCTION_NOT_SUPPORTED */ 065 //public static final int ER_FUNCTION_NOT_SUPPORTED = 80; 066 067 068 { 069 ER_FUNCTION_NOT_SUPPORTED, "Funktion inte underst\u00f6dd:"}, 070 071 072 /** Can't overwrite cause */ 073 //public static final int ER_CANNOT_OVERWRITE_CAUSE = 115; 074 075 076 { 077 ER_CANNOT_OVERWRITE_CAUSE, 078 "Kan inte skriva \u00f6ver orsak"}, 079 080 081 /** No default implementation found */ 082 //public static final int ER_NO_DEFAULT_IMPL = 156; 083 084 085 { 086 ER_NO_DEFAULT_IMPL, 087 "Standardimplementering saknas i:"}, 088 089 090 /** ChunkedIntArray({0}) not currently supported */ 091 //public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157; 092 093 094 { 095 ER_CHUNKEDINTARRAY_NOT_SUPPORTED, 096 "ChunkedIntArray({0}) underst\u00f6ds f\u00f6r n\u00e4rvarande inte"}, 097 098 099 /** Offset bigger than slot */ 100 //public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158; 101 102 103 { 104 ER_OFFSET_BIGGER_THAN_SLOT, 105 "Offset st\u00f6rre \u00e4n fack"}, 106 107 108 /** Coroutine not available, id= */ 109 //public static final int ER_COROUTINE_NOT_AVAIL = 159; 110 111 112 { 113 ER_COROUTINE_NOT_AVAIL, 114 "Sidorutin inte tillg\u00e4nglig, id={0}"}, 115 116 117 /** CoroutineManager recieved co_exit() request */ 118 //public static final int ER_COROUTINE_CO_EXIT = 160; 119 120 121 { 122 ER_COROUTINE_CO_EXIT, 123 "CoroutineManager mottog co_exit()-f\u00f6rfr\u00e5gan"}, 124 125 126 /** co_joinCoroutineSet() failed */ 127 //public static final int ER_COJOINROUTINESET_FAILED = 161; 128 129 130 { 131 ER_COJOINROUTINESET_FAILED, 132 "co_joinCoroutineSet() misslyckades"}, 133 134 135 /** Coroutine parameter error () */ 136 //public static final int ER_COROUTINE_PARAM = 162; 137 138 139 { 140 ER_COROUTINE_PARAM, 141 "Sidorutin fick parameterfel ({0})"}, 142 143 144 /** UNEXPECTED: Parser doTerminate answers */ 145 //public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163; 146 147 148 { 149 ER_PARSER_DOTERMINATE_ANSWERS, 150 "\nOV\u00c4NTAT: Parser doTerminate-svar {0}"}, 151 152 153 /** parse may not be called while parsing */ 154 //public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164; 155 156 157 { 158 ER_NO_PARSE_CALL_WHILE_PARSING, 159 "parse f\u00e5r inte anropas medan tolkning sker"}, 160 161 162 /** Error: typed iterator for axis {0} not implemented */ 163 //public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165; 164 165 166 { 167 ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED, 168 "Fel: typad upprepare f\u00f6r axel {0} inte implementerad"}, 169 170 171 /** Error: iterator for axis {0} not implemented */ 172 //public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166; 173 174 175 { 176 ER_ITERATOR_AXIS_NOT_IMPLEMENTED, 177 "Fel: upprepare f\u00f6r axel {0} inte implementerad"}, 178 179 180 /** Iterator clone not supported */ 181 //public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167; 182 183 184 { 185 ER_ITERATOR_CLONE_NOT_SUPPORTED, 186 "Uppreparklon underst\u00f6ds inte"}, 187 188 189 /** Unknown axis traversal type */ 190 //public static final int ER_UNKNOWN_AXIS_TYPE = 168; 191 192 193 { 194 ER_UNKNOWN_AXIS_TYPE, 195 "Ok\u00e4nd axeltraverstyp: {0}"}, 196 197 198 /** Axis traverser not supported */ 199 //public static final int ER_AXIS_NOT_SUPPORTED = 169; 200 201 202 { 203 ER_AXIS_NOT_SUPPORTED, 204 "Axeltravers underst\u00f6ds inte: {0}"}, 205 206 207 /** No more DTM IDs are available */ 208 //public static final int ER_NO_DTMIDS_AVAIL = 170; 209 210 211 { 212 ER_NO_DTMIDS_AVAIL, 213 "Inga fler DTM-IDs \u00e4r tillg\u00e4ngliga"}, 214 215 216 /** Not supported */ 217 //public static final int ER_NOT_SUPPORTED = 171; 218 219 220 { 221 ER_NOT_SUPPORTED, 222 "Underst\u00f6ds inte: {0}"}, 223 224 225 /** node must be non-null for getDTMHandleFromNode */ 226 //public static final int ER_NODE_NON_NULL = 172; 227 228 229 { 230 ER_NODE_NON_NULL, 231 "Nod m\u00e5ste vara icke-null f\u00f6r getDTMHandleFromNode"}, 232 233 234 /** Could not resolve the node to a handle */ 235 //public static final int ER_COULD_NOT_RESOLVE_NODE = 173; 236 237 238 { 239 ER_COULD_NOT_RESOLVE_NODE, 240 "Kunde inte l\u00f6sa nod till ett handtag"}, 241 242 243 /** startParse may not be called while parsing */ 244 //public static final int ER_STARTPARSE_WHILE_PARSING = 174; 245 246 247 { 248 ER_STARTPARSE_WHILE_PARSING, 249 "startParse f\u00e5r inte anropas medan tolkning sker"}, 250 251 252 /** startParse needs a non-null SAXParser */ 253 //public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175; 254 255 256 { 257 ER_STARTPARSE_NEEDS_SAXPARSER, 258 "startParse beh\u00f6ver en SAXParser som \u00e4r icke-null"}, 259 260 261 /** could not initialize parser with */ 262 //public static final int ER_COULD_NOT_INIT_PARSER = 176; 263 264 265 { 266 ER_COULD_NOT_INIT_PARSER, 267 "kunde inte initialisera tolk med"}, 268 269 270 /** exception creating new instance for pool */ 271 //public static final int ER_EXCEPTION_CREATING_POOL = 178; 272 273 274 { 275 ER_EXCEPTION_CREATING_POOL, 276 "undantag skapar ny instans f\u00f6r pool"}, 277 278 279 /** Path contains invalid escape sequence */ 280 //public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179; 281 282 283 { 284 ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE, 285 "V\u00e4g inneh\u00e5ller ogiltig flyktsekvens"}, 286 287 288 /** Scheme is required! */ 289 //public static final int ER_SCHEME_REQUIRED = 180; 290 291 292 { 293 ER_SCHEME_REQUIRED, 294 "Schema kr\u00e4vs!"}, 295 296 297 /** No scheme found in URI */ 298 //public static final int ER_NO_SCHEME_IN_URI = 181; 299 300 301 { 302 ER_NO_SCHEME_IN_URI, 303 "Schema saknas i URI: {0}"}, 304 305 306 /** No scheme found in URI */ 307 //public static final int ER_NO_SCHEME_INURI = 182; 308 309 310 { 311 ER_NO_SCHEME_INURI, 312 "Schema saknas i URI"}, 313 314 315 /** Path contains invalid character: */ 316 //public static final int ER_PATH_INVALID_CHAR = 183; 317 318 319 { 320 ER_PATH_INVALID_CHAR, 321 "V\u00e4g inneh\u00e5ller ogiltigt tecken: {0}"}, 322 323 324 /** Cannot set scheme from null string */ 325 //public static final int ER_SCHEME_FROM_NULL_STRING = 184; 326 327 328 { 329 ER_SCHEME_FROM_NULL_STRING, 330 "Kan inte s\u00e4tta schema fr\u00e5n null-str\u00e4ng"}, 331 332 333 /** The scheme is not conformant. */ 334 //public static final int ER_SCHEME_NOT_CONFORMANT = 185; 335 336 337 { 338 ER_SCHEME_NOT_CONFORMANT, 339 "Schemat \u00e4r inte likformigt."}, 340 341 342 /** Host is not a well formed address */ 343 //public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186; 344 345 346 { 347 ER_HOST_ADDRESS_NOT_WELLFORMED, 348 "V\u00e4rd \u00e4r inte en v\u00e4lformulerad adress"}, 349 350 351 /** Port cannot be set when host is null */ 352 //public static final int ER_PORT_WHEN_HOST_NULL = 187; 353 354 355 { 356 ER_PORT_WHEN_HOST_NULL, 357 "Port kan inte s\u00e4ttas n\u00e4r v\u00e4rd \u00e4r null"}, 358 359 360 /** Invalid port number */ 361 //public static final int ER_INVALID_PORT = 188; 362 363 364 { 365 ER_INVALID_PORT, 366 "Ogiltigt portnummer"}, 367 368 369 /** Fragment can only be set for a generic URI */ 370 //public static final int ER_FRAG_FOR_GENERIC_URI = 189; 371 372 373 { 374 ER_FRAG_FOR_GENERIC_URI, 375 "Fragment kan bara s\u00e4ttas f\u00f6r en allm\u00e4n URI"}, 376 377 378 /** Fragment cannot be set when path is null */ 379 //public static final int ER_FRAG_WHEN_PATH_NULL = 190; 380 381 382 { 383 ER_FRAG_WHEN_PATH_NULL, 384 "Fragment kan inte s\u00e4ttas n\u00e4r v\u00e4g \u00e4r null"}, 385 386 387 /** Fragment contains invalid character */ 388 //public static final int ER_FRAG_INVALID_CHAR = 191; 389 390 391 { 392 ER_FRAG_INVALID_CHAR, 393 "Fragment inneh\u00e5ller ogiltigt tecken"}, 394 395 396 397 398 /** Parser is already in use */ 399 //public static final int ER_PARSER_IN_USE = 192; 400 401 402 { 403 ER_PARSER_IN_USE, 404 "Tolk anv\u00e4nds redan"}, 405 406 407 /** Parser is already in use */ 408 //public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193; 409 410 411 { 412 ER_CANNOT_CHANGE_WHILE_PARSING, 413 "Kan inte \u00e4ndra {0} {1} medan tolkning sker"}, 414 415 416 /** Self-causation not permitted */ 417 //public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194; 418 419 420 { 421 ER_SELF_CAUSATION_NOT_PERMITTED, 422 "Sj\u00e4lvorsakande inte till\u00e5ten"}, 423 424 425 /** Userinfo may not be specified if host is not specified */ 426 //public static final int ER_NO_USERINFO_IF_NO_HOST = 198; 427 428 429 { 430 ER_NO_USERINFO_IF_NO_HOST, 431 "Userinfo f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"}, 432 433 434 /** Port may not be specified if host is not specified */ 435 //public static final int ER_NO_PORT_IF_NO_HOST = 199; 436 437 438 { 439 ER_NO_PORT_IF_NO_HOST, 440 "Port f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"}, 441 442 443 /** Query string cannot be specified in path and query string */ 444 //public static final int ER_NO_QUERY_STRING_IN_PATH = 200; 445 446 447 { 448 ER_NO_QUERY_STRING_IN_PATH, 449 "F\u00f6rfr\u00e5gan-str\u00e4ng kan inte anges i v\u00e4g och f\u00f6rfr\u00e5gan-str\u00e4ng"}, 450 451 452 /** Fragment cannot be specified in both the path and fragment */ 453 //public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201; 454 455 456 { 457 ER_NO_FRAGMENT_STRING_IN_PATH, 458 "Fragment kan inte anges i b\u00e5de v\u00e4gen och fragmentet"}, 459 460 461 /** Cannot initialize URI with empty parameters */ 462 //public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202; 463 464 465 { 466 ER_CANNOT_INIT_URI_EMPTY_PARMS, 467 "Kan inte initialisera URI med tomma parametrar"}, 468 469 470 /** Method not yet supported */ 471 //public static final int ER_METHOD_NOT_SUPPORTED = 210; 472 473 474 { 475 ER_METHOD_NOT_SUPPORTED, 476 "Metod \u00e4nnu inte underst\u00f6dd "}, 477 478 479 /** IncrementalSAXSource_Filter not currently restartable */ 480 //public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214; 481 482 483 { 484 ER_INCRSAXSRCFILTER_NOT_RESTARTABLE, 485 "IncrementalSAXSource_Filter kan f\u00f6r n\u00e4rvarande inte startas om"}, 486 487 488 /** IncrementalSAXSource_Filter not currently restartable */ 489 //public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215; 490 491 492 { 493 ER_XMLRDR_NOT_BEFORE_STARTPARSE, 494 "XMLReader inte innan startParse-beg\u00e4ran"}, 495 496 497 // Axis traverser not supported: {0} 498 //public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235; 499 500 { 501 ER_AXIS_TRAVERSER_NOT_SUPPORTED, 502 "Det g\u00e5r inte att v\u00e4nda axeln: {0}"}, 503 504 505 // ListingErrorHandler created with null PrintWriter! 506 //public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 236; 507 508 { 509 ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER, 510 "ListingErrorHandler skapad med null PrintWriter!"}, 511 512 513 //public static final int ER_SYSTEMID_UNKNOWN = 240; 514 515 { 516 ER_SYSTEMID_UNKNOWN, 517 "SystemId ok\u00e4nt"}, 518 519 520 // Location of error unknown 521 //public static final int ER_LOCATION_UNKNOWN = 241; 522 523 { 524 ER_LOCATION_UNKNOWN, 525 "Platsen f\u00f6r felet \u00e4r ok\u00e4nd"}, 526 527 528 /** Field ER_PREFIX_MUST_RESOLVE */ 529 //public static final int ER_PREFIX_MUST_RESOLVE = 52; 530 531 532 { 533 ER_PREFIX_MUST_RESOLVE, 534 "Prefix must resolve to a namespace: {0}"}, 535 536 537 /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */ 538 //public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54; 539 540 541 { 542 ER_CREATEDOCUMENT_NOT_SUPPORTED, 543 "createDocument() underst\u00f6ds inte av XPathContext!"}, 544 545 546 /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */ 547 //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55; 548 549 550 { 551 ER_CHILD_HAS_NO_OWNER_DOCUMENT, 552 "Attributbarn saknar \u00e4gardokument!"}, 553 554 555 /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */ 556 //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56; 557 558 559 { 560 ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT, 561 "Attributbarn saknar \u00e4gardokumentelement!"}, 562 563 564 /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */ 565 //public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63; 566 567 568 { 569 ER_CANT_OUTPUT_TEXT_BEFORE_DOC, 570 "Varning: kan inte skriva ut text innan dokumentelement! Ignorerar..."}, 571 572 573 /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */ 574 //public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64; 575 576 577 { 578 ER_CANT_HAVE_MORE_THAN_ONE_ROOT, 579 "Kan inte ha mer \u00e4n en rot p\u00e5 en DOM!"}, 580 581 582 /** Argument 'localName' is null */ 583 //public static final int ER_ARG_LOCALNAME_NULL = 70; 584 585 586 { 587 ER_ARG_LOCALNAME_NULL, 588 "Argument 'localName' \u00e4r null"}, 589 590 591 // Note to translators: A QNAME has the syntactic form [NCName:]NCName 592 // The localname is the portion after the optional colon; the message indicates 593 // that there is a problem with that part of the QNAME. 594 595 /** localname in QNAME should be a valid NCName */ 596 //public static final int ER_ARG_LOCALNAME_INVALID = 101; 597 598 599 { 600 ER_ARG_LOCALNAME_INVALID, 601 "Localname i QNAME b\u00f6r vara ett giltigt NCName"}, 602 603 604 // Note to translators: A QNAME has the syntactic form [NCName:]NCName 605 // The prefix is the portion before the optional colon; the message indicates 606 // that there is a problem with that part of the QNAME. 607 608 /** prefix in QNAME should be a valid NCName */ 609 //public static final int ER_ARG_PREFIX_INVALID = 102; 610 611 612 { 613 ER_ARG_PREFIX_INVALID, 614 "Prefixet i QNAME b\u00f6r vara ett giltigt NCName"}, 615 616 { "BAD_CODE", 617 "Parameter till createMessage ligger utanf\u00f6r till\u00e5tet intervall"}, 618 { "FORMAT_FAILED", 619 "Undantag utl\u00f6st vid messageFormat-anrop"}, 620 { "line", "Rad #"}, 621 { "column", "Kolumn #"} 622 623 }; 624 } 625 626 }