1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*
  17. * $Id: XMLErrorResources_sv.java,v 1.3 2004/02/17 04:14:26 minchau Exp $
  18. */
  19. package com.sun.org.apache.xml.internal.res;
  20. /**
  21. * Set up error messages.
  22. * We build a two dimensional array of message keys and
  23. * message strings. In order to add a new message here,
  24. * you need to first add a String constant. And you need
  25. * to enter key, value pair as part of the contents
  26. * array. You also need to update MAX_CODE for error strings
  27. * and MAX_WARNING for warnings ( Needed for only information
  28. * purpose )
  29. */
  30. public class XMLErrorResources_sv extends XMLErrorResources
  31. {
  32. /** Maximum error messages, this is needed to keep track of the number of messages. */
  33. public static final int MAX_CODE = 61;
  34. /** Maximum warnings, this is needed to keep track of the number of warnings. */
  35. public static final int MAX_WARNING = 0;
  36. /** Maximum misc strings. */
  37. public static final int MAX_OTHERS = 4;
  38. /** Maximum total warnings and error messages. */
  39. public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
  40. // Error messages...
  41. /** The lookup table for error messages. */
  42. public static final Object[][] contents = {
  43. /** Error message ID that has a null message, but takes in a single object. */
  44. {"ER0000" , "{0}" },
  45. /** ER_FUNCTION_NOT_SUPPORTED */
  46. //public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
  47. {
  48. ER_FUNCTION_NOT_SUPPORTED, "Funktion inte underst\u00f6dd:"},
  49. /** Can't overwrite cause */
  50. //public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
  51. {
  52. ER_CANNOT_OVERWRITE_CAUSE,
  53. "Kan inte skriva \u00f6ver orsak"},
  54. /** No default implementation found */
  55. //public static final int ER_NO_DEFAULT_IMPL = 156;
  56. {
  57. ER_NO_DEFAULT_IMPL,
  58. "Standardimplementering saknas i:"},
  59. /** ChunkedIntArray({0}) not currently supported */
  60. //public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
  61. {
  62. ER_CHUNKEDINTARRAY_NOT_SUPPORTED,
  63. "ChunkedIntArray({0}) underst\u00f6ds f\u00f6r n\u00e4rvarande inte"},
  64. /** Offset bigger than slot */
  65. //public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
  66. {
  67. ER_OFFSET_BIGGER_THAN_SLOT,
  68. "Offset st\u00f6rre \u00e4n fack"},
  69. /** Coroutine not available, id= */
  70. //public static final int ER_COROUTINE_NOT_AVAIL = 159;
  71. {
  72. ER_COROUTINE_NOT_AVAIL,
  73. "Sidorutin inte tillg\u00e4nglig, id={0}"},
  74. /** CoroutineManager recieved co_exit() request */
  75. //public static final int ER_COROUTINE_CO_EXIT = 160;
  76. {
  77. ER_COROUTINE_CO_EXIT,
  78. "CoroutineManager mottog co_exit()-f\u00f6rfr\u00e5gan"},
  79. /** co_joinCoroutineSet() failed */
  80. //public static final int ER_COJOINROUTINESET_FAILED = 161;
  81. {
  82. ER_COJOINROUTINESET_FAILED,
  83. "co_joinCoroutineSet() misslyckades"},
  84. /** Coroutine parameter error () */
  85. //public static final int ER_COROUTINE_PARAM = 162;
  86. {
  87. ER_COROUTINE_PARAM,
  88. "Sidorutin fick parameterfel ({0})"},
  89. /** UNEXPECTED: Parser doTerminate answers */
  90. //public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
  91. {
  92. ER_PARSER_DOTERMINATE_ANSWERS,
  93. "\nOV\u00c4NTAT: Parser doTerminate-svar {0}"},
  94. /** parse may not be called while parsing */
  95. //public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
  96. {
  97. ER_NO_PARSE_CALL_WHILE_PARSING,
  98. "parse f\u00e5r inte anropas medan tolkning sker"},
  99. /** Error: typed iterator for axis {0} not implemented */
  100. //public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165;
  101. {
  102. ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
  103. "Fel: typad upprepare f\u00f6r axel {0} inte implementerad"},
  104. /** Error: iterator for axis {0} not implemented */
  105. //public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166;
  106. {
  107. ER_ITERATOR_AXIS_NOT_IMPLEMENTED,
  108. "Fel: upprepare f\u00f6r axel {0} inte implementerad"},
  109. /** Iterator clone not supported */
  110. //public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
  111. {
  112. ER_ITERATOR_CLONE_NOT_SUPPORTED,
  113. "Uppreparklon underst\u00f6ds inte"},
  114. /** Unknown axis traversal type */
  115. //public static final int ER_UNKNOWN_AXIS_TYPE = 168;
  116. {
  117. ER_UNKNOWN_AXIS_TYPE,
  118. "Ok\u00e4nd axeltraverstyp: {0}"},
  119. /** Axis traverser not supported */
  120. //public static final int ER_AXIS_NOT_SUPPORTED = 169;
  121. {
  122. ER_AXIS_NOT_SUPPORTED,
  123. "Axeltravers underst\u00f6ds inte: {0}"},
  124. /** No more DTM IDs are available */
  125. //public static final int ER_NO_DTMIDS_AVAIL = 170;
  126. {
  127. ER_NO_DTMIDS_AVAIL,
  128. "Inga fler DTM-IDs \u00e4r tillg\u00e4ngliga"},
  129. /** Not supported */
  130. //public static final int ER_NOT_SUPPORTED = 171;
  131. {
  132. ER_NOT_SUPPORTED,
  133. "Underst\u00f6ds inte: {0}"},
  134. /** node must be non-null for getDTMHandleFromNode */
  135. //public static final int ER_NODE_NON_NULL = 172;
  136. {
  137. ER_NODE_NON_NULL,
  138. "Nod m\u00e5ste vara icke-null f\u00f6r getDTMHandleFromNode"},
  139. /** Could not resolve the node to a handle */
  140. //public static final int ER_COULD_NOT_RESOLVE_NODE = 173;
  141. {
  142. ER_COULD_NOT_RESOLVE_NODE,
  143. "Kunde inte l\u00f6sa nod till ett handtag"},
  144. /** startParse may not be called while parsing */
  145. //public static final int ER_STARTPARSE_WHILE_PARSING = 174;
  146. {
  147. ER_STARTPARSE_WHILE_PARSING,
  148. "startParse f\u00e5r inte anropas medan tolkning sker"},
  149. /** startParse needs a non-null SAXParser */
  150. //public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
  151. {
  152. ER_STARTPARSE_NEEDS_SAXPARSER,
  153. "startParse beh\u00f6ver en SAXParser som \u00e4r icke-null"},
  154. /** could not initialize parser with */
  155. //public static final int ER_COULD_NOT_INIT_PARSER = 176;
  156. {
  157. ER_COULD_NOT_INIT_PARSER,
  158. "kunde inte initialisera tolk med"},
  159. /** exception creating new instance for pool */
  160. //public static final int ER_EXCEPTION_CREATING_POOL = 178;
  161. {
  162. ER_EXCEPTION_CREATING_POOL,
  163. "undantag skapar ny instans f\u00f6r pool"},
  164. /** Path contains invalid escape sequence */
  165. //public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
  166. {
  167. ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
  168. "V\u00e4g inneh\u00e5ller ogiltig flyktsekvens"},
  169. /** Scheme is required! */
  170. //public static final int ER_SCHEME_REQUIRED = 180;
  171. {
  172. ER_SCHEME_REQUIRED,
  173. "Schema kr\u00e4vs!"},
  174. /** No scheme found in URI */
  175. //public static final int ER_NO_SCHEME_IN_URI = 181;
  176. {
  177. ER_NO_SCHEME_IN_URI,
  178. "Schema saknas i URI: {0}"},
  179. /** No scheme found in URI */
  180. //public static final int ER_NO_SCHEME_INURI = 182;
  181. {
  182. ER_NO_SCHEME_INURI,
  183. "Schema saknas i URI"},
  184. /** Path contains invalid character: */
  185. //public static final int ER_PATH_INVALID_CHAR = 183;
  186. {
  187. ER_PATH_INVALID_CHAR,
  188. "V\u00e4g inneh\u00e5ller ogiltigt tecken: {0}"},
  189. /** Cannot set scheme from null string */
  190. //public static final int ER_SCHEME_FROM_NULL_STRING = 184;
  191. {
  192. ER_SCHEME_FROM_NULL_STRING,
  193. "Kan inte s\u00e4tta schema fr\u00e5n null-str\u00e4ng"},
  194. /** The scheme is not conformant. */
  195. //public static final int ER_SCHEME_NOT_CONFORMANT = 185;
  196. {
  197. ER_SCHEME_NOT_CONFORMANT,
  198. "Schemat \u00e4r inte likformigt."},
  199. /** Host is not a well formed address */
  200. //public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
  201. {
  202. ER_HOST_ADDRESS_NOT_WELLFORMED,
  203. "V\u00e4rd \u00e4r inte en v\u00e4lformulerad adress"},
  204. /** Port cannot be set when host is null */
  205. //public static final int ER_PORT_WHEN_HOST_NULL = 187;
  206. {
  207. ER_PORT_WHEN_HOST_NULL,
  208. "Port kan inte s\u00e4ttas n\u00e4r v\u00e4rd \u00e4r null"},
  209. /** Invalid port number */
  210. //public static final int ER_INVALID_PORT = 188;
  211. {
  212. ER_INVALID_PORT,
  213. "Ogiltigt portnummer"},
  214. /** Fragment can only be set for a generic URI */
  215. //public static final int ER_FRAG_FOR_GENERIC_URI = 189;
  216. {
  217. ER_FRAG_FOR_GENERIC_URI,
  218. "Fragment kan bara s\u00e4ttas f\u00f6r en allm\u00e4n URI"},
  219. /** Fragment cannot be set when path is null */
  220. //public static final int ER_FRAG_WHEN_PATH_NULL = 190;
  221. {
  222. ER_FRAG_WHEN_PATH_NULL,
  223. "Fragment kan inte s\u00e4ttas n\u00e4r v\u00e4g \u00e4r null"},
  224. /** Fragment contains invalid character */
  225. //public static final int ER_FRAG_INVALID_CHAR = 191;
  226. {
  227. ER_FRAG_INVALID_CHAR,
  228. "Fragment inneh\u00e5ller ogiltigt tecken"},
  229. /** Parser is already in use */
  230. //public static final int ER_PARSER_IN_USE = 192;
  231. {
  232. ER_PARSER_IN_USE,
  233. "Tolk anv\u00e4nds redan"},
  234. /** Parser is already in use */
  235. //public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
  236. {
  237. ER_CANNOT_CHANGE_WHILE_PARSING,
  238. "Kan inte \u00e4ndra {0} {1} medan tolkning sker"},
  239. /** Self-causation not permitted */
  240. //public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
  241. {
  242. ER_SELF_CAUSATION_NOT_PERMITTED,
  243. "Sj\u00e4lvorsakande inte till\u00e5ten"},
  244. /** Userinfo may not be specified if host is not specified */
  245. //public static final int ER_NO_USERINFO_IF_NO_HOST = 198;
  246. {
  247. ER_NO_USERINFO_IF_NO_HOST,
  248. "Userinfo f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"},
  249. /** Port may not be specified if host is not specified */
  250. //public static final int ER_NO_PORT_IF_NO_HOST = 199;
  251. {
  252. ER_NO_PORT_IF_NO_HOST,
  253. "Port f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"},
  254. /** Query string cannot be specified in path and query string */
  255. //public static final int ER_NO_QUERY_STRING_IN_PATH = 200;
  256. {
  257. ER_NO_QUERY_STRING_IN_PATH,
  258. "F\u00f6rfr\u00e5gan-str\u00e4ng kan inte anges i v\u00e4g och f\u00f6rfr\u00e5gan-str\u00e4ng"},
  259. /** Fragment cannot be specified in both the path and fragment */
  260. //public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201;
  261. {
  262. ER_NO_FRAGMENT_STRING_IN_PATH,
  263. "Fragment kan inte anges i b\u00e5de v\u00e4gen och fragmentet"},
  264. /** Cannot initialize URI with empty parameters */
  265. //public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202;
  266. {
  267. ER_CANNOT_INIT_URI_EMPTY_PARMS,
  268. "Kan inte initialisera URI med tomma parametrar"},
  269. /** Method not yet supported */
  270. //public static final int ER_METHOD_NOT_SUPPORTED = 210;
  271. {
  272. ER_METHOD_NOT_SUPPORTED,
  273. "Metod \u00e4nnu inte underst\u00f6dd "},
  274. /** IncrementalSAXSource_Filter not currently restartable */
  275. //public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
  276. {
  277. ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,
  278. "IncrementalSAXSource_Filter kan f\u00f6r n\u00e4rvarande inte startas om"},
  279. /** IncrementalSAXSource_Filter not currently restartable */
  280. //public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
  281. {
  282. ER_XMLRDR_NOT_BEFORE_STARTPARSE,
  283. "XMLReader inte innan startParse-beg\u00e4ran"},
  284. // Axis traverser not supported: {0}
  285. //public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
  286. {
  287. ER_AXIS_TRAVERSER_NOT_SUPPORTED,
  288. "Det g\u00e5r inte att v\u00e4nda axeln: {0}"},
  289. // ListingErrorHandler created with null PrintWriter!
  290. //public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 236;
  291. {
  292. ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,
  293. "ListingErrorHandler skapad med null PrintWriter!"},
  294. //public static final int ER_SYSTEMID_UNKNOWN = 240;
  295. {
  296. ER_SYSTEMID_UNKNOWN,
  297. "SystemId ok\u00e4nt"},
  298. // Location of error unknown
  299. //public static final int ER_LOCATION_UNKNOWN = 241;
  300. {
  301. ER_LOCATION_UNKNOWN,
  302. "Platsen f\u00f6r felet \u00e4r ok\u00e4nd"},
  303. /** Field ER_PREFIX_MUST_RESOLVE */
  304. //public static final int ER_PREFIX_MUST_RESOLVE = 52;
  305. {
  306. ER_PREFIX_MUST_RESOLVE,
  307. "Prefix must resolve to a namespace: {0}"},
  308. /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
  309. //public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
  310. {
  311. ER_CREATEDOCUMENT_NOT_SUPPORTED,
  312. "createDocument() underst\u00f6ds inte av XPathContext!"},
  313. /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
  314. //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
  315. {
  316. ER_CHILD_HAS_NO_OWNER_DOCUMENT,
  317. "Attributbarn saknar \u00e4gardokument!"},
  318. /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
  319. //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
  320. {
  321. ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
  322. "Attributbarn saknar \u00e4gardokumentelement!"},
  323. /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
  324. //public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
  325. {
  326. ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
  327. "Varning: kan inte skriva ut text innan dokumentelement! Ignorerar..."},
  328. /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
  329. //public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
  330. {
  331. ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
  332. "Kan inte ha mer \u00e4n en rot p\u00e5 en DOM!"},
  333. /** Argument 'localName' is null */
  334. //public static final int ER_ARG_LOCALNAME_NULL = 70;
  335. {
  336. ER_ARG_LOCALNAME_NULL,
  337. "Argument 'localName' \u00e4r null"},
  338. // Note to translators: A QNAME has the syntactic form [NCName:]NCName
  339. // The localname is the portion after the optional colon; the message indicates
  340. // that there is a problem with that part of the QNAME.
  341. /** localname in QNAME should be a valid NCName */
  342. //public static final int ER_ARG_LOCALNAME_INVALID = 101;
  343. {
  344. ER_ARG_LOCALNAME_INVALID,
  345. "Localname i QNAME b\u00f6r vara ett giltigt NCName"},
  346. // Note to translators: A QNAME has the syntactic form [NCName:]NCName
  347. // The prefix is the portion before the optional colon; the message indicates
  348. // that there is a problem with that part of the QNAME.
  349. /** prefix in QNAME should be a valid NCName */
  350. //public static final int ER_ARG_PREFIX_INVALID = 102;
  351. {
  352. ER_ARG_PREFIX_INVALID,
  353. "Prefixet i QNAME b\u00f6r vara ett giltigt NCName"},
  354. { "BAD_CODE",
  355. "Parameter till createMessage ligger utanf\u00f6r till\u00e5tet intervall"},
  356. { "FORMAT_FAILED",
  357. "Undantag utl\u00f6st vid messageFormat-anrop"},
  358. { "line", "Rad #"},
  359. { "column", "Kolumn #"}
  360. };
  361. /**
  362. * Get the association list.
  363. *
  364. * @return The association list.
  365. */
  366. public Object[][] getContents()
  367. {
  368. return contents;
  369. }
  370. }