4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
Localisation.java
Go to the documentation of this file.
1 /*
2  * Project: Server for annotations sharing
3  * Author: Ing. Jaroslav Dytrych idytrych@fit.vutbr.cz
4  * File: Localisation.java
5  * Description: Class responsible for localised strings
6  */
7 
8 /**
9  * @file Localisation.java
10  *
11  * @brief Class responsible for localised strings
12  */
13 
14 package cz.vutbr.fit.knot.annotations.app;
15 
16 import java.util.ArrayList;
17 import java.util.Arrays;
18 import java.util.HashMap;
19 
20 /**
21  * Class responsible for localised strings
22  *
23  * @brief Class responsible for localised strings
24  * @author idytrych
25  */
26 public class Localisation {
27 
28  /** Number of language - english */
29  public static final int LANGUAGE_ENG = 0;
30  /* Number of language - czech */
31  public static final int LANGUAGE_CZE = 1;
32 
33  /** Language codes of supported languages according to ISO 639-2 */
34  public static final ArrayList<String> LANGUAGE_CODES = new ArrayList<String>(Arrays.asList(
35  "eng",
36  "cze"
37  ));
38 
39  /* Error numbers */
40  public static final int ERROR_0_PROTO_VERSION = 0;
41  public static final int ERROR_1_BAD_CREDENTIALS = 1;
42  public static final int ERROR_2_PERMISSION_DENIED = 2;
43  public static final int ERROR_3_READ_ONLY = 3;
44  public static final int ERROR_4_CHANGE_NOT_PERMITTED = 4;
45  public static final int ERROR_5_REMOVING_NOT_PERMITTED = 5;
46  public static final int ERROR_6_ATTRIBUTE_REQUIRED = 6;
47  public static final int ERROR_7_ATTRIBUTE_VALUE = 7;
48  public static final int ERROR_8_SUG_FRAGMENT = 8;
49  public static final int ERROR_9_SYNC_ERROR_DIFFERENT = 9;
50  public static final int ERROR_10_SYNC_ERROR_NOT_POSSIBLE = 10;
51  public static final int ERROR_11_SYNC_ERROR_NEED_RESYNC = 11;
52  public static final int ERROR_12_TYPE_EDIT = 12; // 1.x
53  public static final int ERROR_13_TYPE_DEL = 13; // 1.x
54  public static final int ERROR_14_TYPE_ADD_NOT_PERMITTED = 14;
55  public static final int ERROR_15_ATTRIBUTE_TYPE_UNAVAILABLE = 15;
56  public static final int ERROR_16_TYPE_MALFORMED = 16;
57  public static final int ERROR_17_TYPE_ATTRIBUTES_MALFORMED = 17;
58  public static final int ERROR_18_BAD_EDITED_TYPE = 18; // 1.x
59  public static final int ERROR_19_TYPE_UNKNOWN = 19;
60  public static final int ERROR_20_TYPE_NAME_MODIFY = 20;
61  public static final int ERROR_21_SETTINGS_MALFORMED = 20;
62  public static final int ERROR_22_MISSING_DOCUMENT_URI = 22;
63  public static final int ERROR_23_MISSING_DOCUMENT_CONTENT = 23;
64  public static final int ERROR_24_BAD_SOURCE_IN_ANNOT = 24; // 1.x
65  public static final int ERROR_25_BAD_FRAGMENT = 25;
66  public static final int ERROR_26_ATTRIBUTE_MALFORMED = 26;
67  public static final int ERROR_27_UNKNOWN_PERSON_ATTRIBUTE = 27; // 1.x
68  public static final int ERROR_28_BAD_CONFIRM = 28;
69  public static final int ERROR_29_CHANGED_ANNOT_NOT_FOUND = 29;
70  public static final int ERROR_30_REM_ANNOT_NOT_FOUND = 30;
71  public static final int ERROR_31_SESSION_EXPIRED = 31;
72  public static final int ERROR_32_BAD_REQUEST = 32;
73  public static final int ERROR_33_MODULE_ERROR = 33;
74  public static final int ERROR_34_RELOAD_ANNOT_NOT_FOUND = 34;
75  public static final int ERROR_35_BAD_XPATH = 35; // 1.x
76  public static final int ERROR_36_BAD_DOCUMENT = 36;
77  public static final int ERROR_37_BAD_OFFSET_OR_LENGTH = 37; // 1.x
78  public static final int ERROR_38_ANNOT_MALFORMED = 38;
79  public static final int ERROR_39_MODIFICATION_NOT_APPLICABLE = 39;
80  public static final int ERROR_40_BAD_SUGG_TYPE = 40;
81  public static final int ERROR_41_BAD_DATE_FORMAT_ANNOT = 41; // 1.x
82  public static final int ERROR_42_BAD_DATE_FORMAT_ATTR = 42; // 1.x
83  public static final int ERROR_43_NOT_SYNCHRONIZED = 43;
84  public static final int ERROR_44_ANNOT_AUTHOR = 44; // 1.x
85  public static final int ERROR_45_UNKNOWN_GROUP = 45;
86  public static final int ERROR_46_UNKNOWN_GROUP_TYPE = 46; // 1.x
87  public static final int ERROR_47_USED_TYPE_DEL = 47;
88  public static final int ERROR_48_PERSISTENCE_ERROR = 48;
89  public static final int ERROR_49_DUPLICIT_TYPE = 49;
90  public static final int ERROR_50_BAD_MODIFICATION = 50;
91  public static final int ERROR_51_TYPE_W_SUBTYPE_DEL = 51;
92  public static final int ERROR_52_AMBIGUOUS_FRAGMENT = 52;
93  public static final int ERROR_53_BAD_DOCUMENT_URI = 53;
94  public static final int ERROR_54_BAD_ANNOT_DESCRIPTION = 54; // 1.x
95  public static final int ERROR_55_TYPE_ANCESTORS_MALFORMED = 55;
96  public static final int ERROR_56_BAD_ANNOT_TYPE_URI = 56; // 1.x
97  public static final int ERROR_57_JOIN_ADMINISTRATORS = 57;
98  public static final int ERROR_58_LAST_ADMIN = 58;
99  public static final int ERROR_59_AUTO_UPDATE_FAILED = 59;
100  public static final int ERROR_60_SEC_NOT_AVAILABLE = 60;
101  public static final int ERROR_61_PERSISTER_ERROR_PART_NOT_SAVED = 61; // unused
102  public static final int ERROR_62_SYNC_ERROR_OTHER_DIFFERENT = 62;
103  public static final int ERROR_63_EMPTY_ENTITY_FILTER = 63;
104  public static final int ERROR_64_UNKNOWN_SUB_URI = 64;
105  public static final int ERROR_65_SUBSCRIPTION_MALFORMED = 65;
106  public static final int ERROR_66_UNKNOWN_SUBSCRIP_ID = 66; // unused
107  public static final int ERROR_67_UNKNOWN_SUBSCRIP = 67; // unused
108  public static final int ERROR_68_UNKNOWN_SUBSCRIP_POS_NEG_INFO = 68; // unused
109  public static final int ERROR_69_BAD_SUBSCRIP_ID = 69; // unused
110  public static final int ERROR_70_DUPLICIT_SUBSCRIP = 70; // unused
111  public static final int ERROR_71_MISSING_SOURCE_ELEMENTS = 71; // unused
112  public static final int ERROR_72_MISSING_ELEMENT = 72; // unused
113  public static final int ERROR_73_MISSING_DOCUMENT = 73; // unused
114  public static final int ERROR_74_MISSING_DOCUMENT_URI = 74; // unused
115  public static final int ERROR_75_CANNOT_DECODE = 75; // unused
116  public static final int ERROR_76_MISSING_ANNOT_URI = 76; // unused
117  public static final int ERROR_77_MISSING_ANNOT_TYPE_URI = 77; // unused
118  public static final int ERROR_78_XPOINTER_ISSUE = 78; // unused
119  public static final int ERROR_79_DATE_TIME_ISSUE = 79; // unused
120  public static final int ERROR_80_MISSING_AUTHOR_URI = 80; // unused
121  public static final int ERROR_81_EMPTY_COMPOSITE = 81;
122  public static final int ERROR_82_MISSING_CONTENT_URI = 82; // unused
123  public static final int ERROR_83_MISSING_ONTOLOGY_URI = 83; // unused
124  public static final int ERROR_84_UNKNOWN_USER = 84; // unused
125  public static final int ERROR_85_MISSING_TRIPLE_DATATYPE = 85; // unused
126  public static final int ERROR_86_BAD_ANNOT_URI = 86; // unused
127  public static final int ERROR_87_BAD_ANNOT_ID = 87; // unused
128  public static final int ERROR_88_BAD_URI_FROM_ONTOLOGY = 88; // unused
129  public static final int ERROR_89_UNKNOWN_FIRST_TRIPLE = 89; // unused
130  public static final int ERROR_90_BAD_ENTITY = 90; // unused
131  public static final int ERROR_91_BAD_NAME = 91; // unused
132  public static final int ERROR_92_DUPLICIT_ATTRIBUTE_OF_TYPE = 92;
133  public static final int ERROR_93_UNKNOWN_ATTR_TYPE = 93; // unused
134  public static final int ERROR_94_BAD_GROUP_ID = 94; // unused
135  public static final int ERROR_95_MISSING_CONFIDENCE = 95;
136  public static final int ERROR_96_BAD_MAX_ENTITIES = 96;
137  public static final int ERROR_97_NOT_IN_GROUP = 97;
138  public static final int ERROR_98_BAD_TRIPLE = 98; // unused
139  public static final int ERROR_99_UNSUPPORTED_OPERATION = 99;
140  public static final int ERROR_100_UNKNOWN_ERROR = 100;
141  public static final int ERROR_101_SUGGESTIONR_NOT_READY = 101;
142  public static final int ERROR_102_MISSING_MODIFIED_ATTR = 102; // unused
143  public static final int ERROR_103_MISSING_MODIFIED_SUG = 103;
144  public static final int ERROR_104_MISSING_SUGG_URI = 104; // unused
145  public static final int ERROR_105_MODIFICATION_SPECIFICATION = 105;
146  public static final int ERROR_106_DUPLICIT_SUBSCRIPTION = 106;
147  public static final int ERROR_107_BAD_AUTOCONFIRM = 107;
148 
149  /** Array with error messages */
150  public static final String[] ERR_STRINGS_EN = {
151  /* 0 */ "Unsupported protocol version.",
152  /* 1 */ "Bad login or password.",
153  /* 2 */ "Permission to selected annotation denied.",
154  /* 3 */ "Read only access - annotation not saved.",
155  /* 4 */ "Editation not permitted.",
156  /* 5 */ "Deleting not permitted.",
157  /* 6 */ "Missing mandatory attributes.",
158  /* 7 */ "Bad attribute value.",
159  /* 8 */ "Bad selection of fragment - suggestions is not possible.",
160  /* 9 */ "Synchronization failed - there is registered different content with this URI.",
161  /* 10 */ "Synchronization is not possible.",
162  /* 11 */ "Synchronization error.",
163  /* 12 */ "Editation of this annotation type is not permitted.",
164  /* 13 */ "Deleting of this annotation type is not permitted.",
165  /* 14 */ "Addition of annotation types is not permitted.",
166  /* 15 */ "Type of attribute not exists.",
167  /* 16 */ "Added annotation type is malformed.",
168  /* 17 */ "Added annotation type attributes are malformed - some attributes omitted.",
169  /* 18 */ "Edited annotation type is malformed - changes not saved.",
170  /* 19 */ "Type of annotation does not exists.",
171  /* 20 */ "Modification of annotation type name, ancestor or group is not possible.",
172  /* 21 */ "Error in settings - not saved.",
173  /* 22 */ "Synchronization message without resource address.",
174  /* 23 */ "Synchronization message without document content.",
175  /* 24 */ "Bad source in annotation.",
176  /* 25 */ "Bad annotated fragment. Fragment omitted.",
177  /* 26 */ "Bad attribute in annotation. Attribute omitted.",
178  /* 27 */ "Unknown person in attribute.",
179  /* 28 */ "Bad confirmation method or temporal annotation id.",
180  /* 29 */ "Edited annotation not found. Changes not saved.",
181  /* 30 */ "Removed annotation not found. Annotation not deleted.",
182  /* 31 */ "Session expired or bad session number.",
183  /* 32 */ "Bad request. Possible client error or incompatible protocol.",
184  /* 33 */ "Error in server module.",
185  /* 34 */ "Requested annotation not found.",
186  /* 35 */ "Bad XPath expression in annotated fragment. Fragment omitted.",
187  /* 36 */ "Error in annotated document.",
188  /* 37 */ "Bad fragment offset or length in annotated fragment. Fragment omitted.",
189  /* 38 */ "Errors in edited annotation. Changes not saved.",
190  /* 39 */ "Text modification is not applicable.",
191  /* 40 */ "Unknown annotation type - suggestions is not possible.",
192  /* 41 */ "Bad date format in annotation. Date have been set to actual date.",
193  /* 42 */ "Bad date format in attribute. Attribute omitted.",
194  /* 43 */ "Document not synchronized. Manipulation with annotations is not possible.",
195  /* 44 */ "Bad information about annotation author.",
196  /* 45 */ "Unknown user group.",
197  /* 46 */ "Unknown user group in annotation type. Group will be set another way.",
198  /* 47 */ "Deletion of used types is not allowed. You must delete annotations first.",
199  /* 48 */ "Server internal error caused that data has not been saved.",
200  /* 49 */ "Duplicit annotation type URI.",
201  /* 50 */ "Description of text modification is bad.",
202  /* 51 */ "Deletion of used types is not allowed. You must delete subtypes first.",
203  /* 52 */ "Ambiguous fragment (found in more than one place in document).",
204  /* 53 */ "Bad URI of annotated document.",
205  /* 54 */ "Bad description of annotation.",
206  /* 55 */ "Added annotation type ancestors are malformed - some ancestors omitted.",
207  /* 56 */ "Added annotation type URI is malformed or lack of information provided to it's creation.",
208  /* 57 */ "You can't join to group with administrators. Only administrator can do that.",
209  /* 58 */ "You can't leave group with administrators, because You are the last administrator.",
210  /* 59 */ "Some annotations should be updated, but this changes can't be saved.",
211  /* 60 */ "Unable to connect to the SEC server.",
212  /* 61 */ "Server internal error caused that some part of data has not been saved.",
213  /* 62 */ "Another client is holding a different version of this document.",
214  /* 63 */ "Bad filter in query for entities.",
215  /* 64 */ "Id of subscription was not found.",
216  /* 65 */ "Name of subscription was not found.",
217  /* 66 */ "Cannot find subscription's URI.",
218  /* 67 */ "Subscription was not found.",
219  /* 68 */ "Cannot find subscription's feedback info.",
220  /* 69 */ "Bad id of subscription.",
221  /* 70 */ "Subscription already exists.",
222  /* 71 */ "Subscription's source elements are missing.",
223  /* 72 */ "An issue has occurred while trying to find an element.",
224  /* 73 */ "Document was not found.",
225  /* 74 */ "Document uri was not found.",
226  /* 75 */ "An error has occurred while decoding.",
227  /* 76 */ "Missing annotation uri.",
228  /* 77 */ "Missing annotation type uri.",
229  /* 78 */ "Xpointer issue has occurred.",
230  /* 79 */ "An issue with date and time has occurred.",
231  /* 80 */ "Author uri is missing.",
232  /* 81 */ "Composite of fragments is empty.",
233  /* 82 */ "Content uri is missing.",
234  /* 83 */ "There is not any uri from ontology.",
235  /* 84 */ "Unknown user.",
236  /* 85 */ "Can't find datatype of triple.",
237  /* 86 */ "Bad annotation uri.",
238  /* 87 */ "Bad annotation id.",
239  /* 88 */ "Bad uri from ontology.",
240  /* 89 */ "First triple was not found.",
241  /* 90 */ "An issue has occurred in entity.",
242  /* 91 */ "An issue has occurred in name.",
243  /* 92 */ "Duplicit annotation's type attribute.",
244  /* 93 */ "Unknown type of attribute of type of annotation.",
245  /* 94 */ "Uri of group is bad.",
246  /* 95 */ "Missing confidence attribute.",
247  /* 96 */ "Bad format of maximum results of entities.",
248  /* 97 */ "User is not in any group - it is not possible to manipulate with annotation types, annotations etc.",
249  /* 98 */ "Error in trix triple.",
250  /* 99 */ "Unsupported operation." ,
251  /* 100 */ "",
252  /* 101 */ "Suggestions are not ready.",
253  /* 102 */ "Missing modified attribute.",
254  /* 103 */ "Missing annotation element with annotation.",
255  /* 104 */ "Missing uri of confirmed suggestion.",
256  /* 105 */ "Wrong specification of modification.",
257  /* 106 */ "Duplicit subscription was found.",
258  /* 107 */ "Bad confidence value for automatic confirmation of suggestions."
259  };
260  /** Error message for unknown error */
261  public static final String ERROR_100_UNKNOWN_STRING_EN = "Unknown error.";
262 
263  /** Array with czech error messages */
264  public static final String[] ERR_STRINGS_CS = {
265  /* 0 */ "Nepodporovaná verze protokolu.",
266  /* 1 */ "Chybné přihlašovací jméno nebo heslo.",
267  /* 2 */ "Nemáte oprávnění ke zvolené anotaci.",
268  /* 3 */ "Přístup pouze pro čtení - anotace nebyla uložena.",
269  /* 4 */ "Editace není povolena.",
270  /* 5 */ "Mazání není povolené.",
271  /* 6 */ "Chybí povinné atributy.",
272  /* 7 */ "Chybná hodnota atributu.",
273  /* 8 */ "Chybná volba fragmentu - nabízení není možné.",
274  /* 9 */ "Synchronizace selhala - pro danou URI je již uložen jiný obsah dokumentu.",
275  /* 10 */ "Synchronizace není možná.",
276  /* 11 */ "Chyba synchronizace.",
277  /* 12 */ "Editace tohoto typu anotace není povolená.",
278  /* 13 */ "Mazání tohoto typu anotace není povolené.",
279  /* 14 */ "Přidávání typů anotací není povolené.",
280  /* 15 */ "Typ atributu neexistuje.",
281  /* 16 */ "Přidaný typ anotace je chybný.",
282  /* 17 */ "Atributy přidaného typu anotace jsou chybné - některé atributy byly vynechány.",
283  /* 18 */ "Upravovaný typ anotace je chybný - změny nebyly uloženy.",
284  /* 19 */ "Typ anotace neexistuje.",
285  /* 20 */ "Změna názvu, předka či skupiny typu anotace není možná.",
286  /* 21 */ "Chyba v nastavení - nastavení nelze uložit.",
287  /* 22 */ "Synchronizační zpráva bez adresy zdrojového dokumentu.",
288  /* 23 */ "Synchronizační zpráva bez obsahu dokumentu.",
289  /* 24 */ "Chybný zdrojový dokument v anotaci.",
290  /* 25 */ "Chybný anotovaný fragment. Fragment byl zahozen.",
291  /* 26 */ "Chybný atribut v anotaci. Atribut byl zahozen.",
292  /* 27 */ "Neznámá osoba v atributu.",
293  /* 28 */ "Chybná metoda potvrzení nebo dočasný identifikátor nabídky.",
294  /* 29 */ "Editovaná anotace nebyla nalezena. Změny nelze uložit.",
295  /* 30 */ "Mazaná anotace nebyla nalezena. Anotaci nelze vymazat.",
296  /* 31 */ "Identifikátor sezení je neplatný - sezení pravděpodobně expirovalo.",
297  /* 32 */ "Chybný požadavek. Chyba klienta či nekompatibilní verze protokolu.",
298  /* 33 */ "Chyba v modulu serveru.",
299  /* 34 */ "Požadovaná anotace nebyla nalezena.",
300  /* 35 */ "Chybný XPath výraz ve fragmentu anotace. Fragment byl zahozen.",
301  /* 36 */ "Chyba v anotovaném dokumentu.",
302  /* 37 */ "Chybný offset nebo délka v anotovaném fragmentu. Fragment byl zahozen.",
303  /* 38 */ "Chyba v editované anotaci. Změny nelze uložit.",
304  /* 39 */ "Modifikaci textu nelze aplikovat.",
305  /* 40 */ "Neznámý typ anotace - nabízení není možné.",
306  /* 41 */ "Chybný formát data v anotaci. Datum bylo nastaveno na aktuální.",
307  /* 42 */ "Chybný formát data v atributu. Atribut byl zahozen.",
308  /* 43 */ "Dokument nebyl synchronizován. Manipulace s anotacemi není možná.",
309  /* 44 */ "Chybná informace o autorovi anotace.",
310  /* 45 */ "Neznámá skupina uživatelů.",
311  /* 46 */ "Neznámá skupina uživatelů v typu anotace. Skupina bude nastavena alternativním způsobem.",
312  /* 47 */ "Mazání využitých typů anotací není dovoleno. Nejprve je nutné smazat všechny anotace daného typu.",
313  /* 48 */ "Data nebylo možné uložit kvůli interní chybě serveru.",
314  /* 49 */ "Duplicitní URI typu anotace.",
315  /* 50 */ "Popis modifikace textu je chybný.",
316  /* 51 */ "Mazání typů anotací s podtypy není dovoleno. Nejprve je nutné vymazat všechny podtypy.",
317  /* 52 */ "Nejednoznačný fragment (lze jej nalézt na více místech v dokumentu).",
318  /* 53 */ "Chybný URI anotovaného dokumentu.",
319  /* 54 */ "Chybný popis anotace.",
320  /* 55 */ "Seznam předků přidávaného typu anotace je chybný - některé předky bylo nutno vynechat.",
321  /* 56 */ "URI přidávaného typu anotace je chybný nebo není dostatek informací k jeho vytvoření.",
322  /* 57 */ "Nelze se přidat do skupiny administrátorů. Tuto operaci smí provést pouze administrátor.",
323  /* 58 */ "Nemůžete opustit skupinu administrátorů, protože jste jejím posledním členem.",
324  /* 59 */ "Některé anotace by měly být aktualizovány, ale tyto změny nebylo možné uložit.",
325  /* 60 */ "Nelze se připojit k SEC serveru.",
326  /* 61 */ "Část dat nebyla uložena kvůli interní chybě serveru.",
327  /* 62 */ "Jiný klient pracuje s jinou verzí tohoto dokumentu.",
328  /* 63 */ "Špatný filtr v požadavku na entity.",
329  /* 64 */ "Identifikátor odběru nebyl nalezen.",
330  /* 65 */ "Jméno odběru nebylo nalezeno.",
331  /* 66 */ "Nepodařilo se najít URI odběru.",
332  /* 67 */ "Odběr nebyl nalezen.",
333  /* 68 */ "Nelze najít informace o zpětné vazbě odběru.",
334  /* 69 */ "Špatný identifikátor odběru.",
335  /* 70 */ "Takový odběr již existuje.",
336  /* 71 */ "Chybí zdrojové prvky odběru.",
337  /* 72 */ "Nastal problém při hledaní elementu.",
338  /* 73 */ "Nelze najít dokument.",
339  /* 74 */ "Uri dokumentu nebylo nalezeno.",
340  /* 75 */ "Nastal problém při dekódování.",
341  /* 76 */ "Chybí URI anotace.",
342  /* 77 */ "Chybí URI typu anotace.",
343  /* 78 */ "Nastal problém s Xpointrem.",
344  /* 79 */ "Nastal problém s datem a časem.",
345  /* 80 */ "Chybí autorovo URI.",
346  /* 81 */ "Composite fragmentu je prazdny.",
347  /* 82 */ "Chybí URI obsahu.",
348  /* 83 */ "V ontologii není žádná URI.",
349  /* 84 */ "Neznámý uživatel.",
350  /* 85 */ "Nebylo možné najít žádný datový typ pro trojici.",
351  /* 86 */ "Chybný URI anotace.",
352  /* 87 */ "Chybný id anotace.",
353  /* 88 */ "Chybný URI získané z ontologie.",
354  /* 89 */ "První trojice nebyla nalezena.",
355  /* 90 */ "V entite se objevila chyba.",
356  /* 91 */ "Ve jméne se objevila chyba.",
357  /* 92 */ "Duplicitní typ atributu anotace.",
358  /* 93 */ "Neznámý typ atributu pro daný typ anotace.",
359  /* 94 */ "Špatné URI skupiny.",
360  /* 95 */ "Chybí atribut minimální důvěryhodnoti.",
361  /* 96 */ "Špatný formát pro maximální počet entit.",
362  /* 97 */ "Nejste v žádné skupině uživatelů - nelze manipulovat s typy anotací, anotacemi apod.",
363  /* 98 */ "Chyba v trix trojici.",
364  /* 99 */ "Nepodporovaná operace.",
365  /* 100 */ "",
366  /* 101 */ "Nabídky ještě nejsou připraveny.",
367  /* 102 */ "Chybí atribut modofikace.",
368  /* 103 */ "Schází element s anotací.",
369  /* 104 */ "Schází URI potvrzené nabídky.",
370  /* 105 */ "Chybně specifikovaná modifikace.",
371  /* 106 */ "Byl nalezen duplicitní odběr.",
372  /* 107 */ "Chybná míra důvěryhodnosti pro automatické potvrzování návrhů."
373  };
374  /** Error message for unknown error */
375  public static final String ERROR_100_UNKNOWN_STRING_CS = "Neznámá chyba.";
376 
377  /**
378  * Gets error message
379  *
380  * @param langNum Number of language
381  * @param errorNum Number of error message
382  * @return Returns error message in given language
383  */
384  public static String getErrMessage(int langNum, int errorNum) {
385  switch (langNum) {
386  case LANGUAGE_ENG:
387  return ERR_STRINGS_EN[errorNum];
388  case LANGUAGE_CZE:
389  return ERR_STRINGS_CS[errorNum];
390  }
391  return ERR_STRINGS_EN[errorNum]; // default
392  } // getErrMessage()
393 
394  /**
395  * Gets message for unknown error
396  *
397  * @param langNum Number of language
398  * @return Returns error message in given language
399  */
400  public static String getUnknownErrMessage(int langNum) {
401  switch (langNum) {
402  case LANGUAGE_ENG:
404  case LANGUAGE_CZE:
406  }
407  return ERROR_100_UNKNOWN_STRING_EN; // default
408  } // getUnknownErrMessage()
409 
410 
411  /**
412  * Gets number of error messages
413  *
414  * @return Returns number of error messages
415  */
416  public static int getNumOfErrors() {
417  return ERR_STRINGS_EN.length;
418  }
419 
420  /** Array with error codes */
421  public static final String[] ERR_CODES_2_0 = {
422  /* 0 */ "0",
423  /* 1 */ "bad credentials",
424  /* 2 */ "permission denied",
425  /* 3 */ "read only",
426  /* 4 */ "change not permitted",
427  /* 5 */ "removing not permitted",
428  /* 6 */ "attribute required",
429  /* 7 */ "attribute value",
430  /* 8 */ "sug fragment",
431  /* 9 */ "sync error different",
432  /* 10 */ "sync error not possible",
433  /* 11 */ "sync error need resync",
434  /* 12 */ "",
435  /* 13 */ "",
436  /* 14 */ "type add not permitted",
437  /* 15 */ "attribute type unavailable",
438  /* 16 */ "type malformed",
439  /* 17 */ "type attributes malformed",
440  /* 18 */ "",
441  /* 19 */ "type unknown",
442  /* 20 */ "type name modify",
443  /* 21 */ "settings malformed",
444  /* 22 */ "missing document uri",
445  /* 23 */ "missing document content",
446  /* 24 */ "",
447  /* 25 */ "bad fragment",
448  /* 26 */ "attribute malformed",
449  /* 27 */ "",
450  /* 28 */ "bad confirm",
451  /* 29 */ "changed annot not found",
452  /* 30 */ "rem annot not found",
453  /* 31 */ "session expired",
454  /* 32 */ "bad request",
455  /* 33 */ "module error",
456  /* 34 */ "reload annot not found",
457  /* 35 */ "",
458  /* 36 */ "bad document",
459  /* 37 */ "",
460  /* 38 */ "annot malformed",
461  /* 39 */ "modification not applicable",
462  /* 40 */ "bad sugg type",
463  /* 41 */ "",
464  /* 42 */ "",
465  /* 43 */ "not synchronized",
466  /* 44 */ "",
467  /* 45 */ "unknown group",
468  /* 46 */ "",
469  /* 47 */ "used type del",
470  /* 48 */ "persistence error",
471  /* 49 */ "duplicit type",
472  /* 50 */ "bad modification",
473  /* 51 */ "type w subtype del",
474  /* 52 */ "ambiguous fragment",
475  /* 53 */ "bad document uri",
476  /* 54 */ "",
477  /* 55 */ "type ancestors malformed",
478  /* 56 */ "",
479  /* 57 */ "join administrators",
480  /* 58 */ "last admin",
481  /* 59 */ "auto update failed",
482  /* 60 */ "SEC not available",
483  /* 61 */ "",
484  /* 62 */ "sync error other different",
485  /* 63 */ "empty entity filter",
486  /* 64 */ "unknown sub uri",
487  /* 65 */ "subscription malformed",
488  /* 66 */ "",
489  /* 67 */ "",
490  /* 68 */ "",
491  /* 69 */ "",
492  /* 70 */ "",
493  /* 71 */ "",
494  /* 72 */ "",
495  /* 73 */ "",
496  /* 74 */ "",
497  /* 75 */ "",
498  /* 76 */ "",
499  /* 77 */ "",
500  /* 78 */ "",
501  /* 79 */ "",
502  /* 80 */ "",
503  /* 81 */ "empty composite",
504  /* 82 */ "",
505  /* 83 */ "",
506  /* 84 */ "",
507  /* 85 */ "",
508  /* 86 */ "",
509  /* 87 */ "",
510  /* 88 */ "",
511  /* 89 */ "",
512  /* 90 */ "",
513  /* 91 */ "",
514  /* 92 */ "duplicit attribute of type",
515  /* 93 */ "",
516  /* 94 */ "",
517  /* 95 */ "missing confidence",
518  /* 96 */ "bad max entities",
519  /* 97 */ "not in group",
520  /* 98 */ "",
521  /* 99 */ "unsupported operation",
522  /* 100 */ "unknown error",
523  /* 101 */ "suggestions not ready",
524  /* 102 */ "",
525  /* 103 */ "missing modified sug",
526  /* 104 */ "",
527  /* 105 */ "modification specification",
528  /* 106 */ "duplicit subscription",
529  /* 107 */ "bad autoconfirm"
530  };
531 
532  /** Array with error messages for protocol version 2.0 */
533  public static final String[] ERR_STRINGS_2_0_EN = {
534  /* 0 */ "Unsupported protocol version.",
535  /* 1 */ "Bad login or password.",
536  /* 2 */ "Permission to selected annotation denied.",
537  /* 3 */ "Read only access - annotation not saved.",
538  /* 4 */ "Change not permitted.",
539  /* 5 */ "Removing not permitted.",
540  /* 6 */ "Missing mandatory attributes.",
541  /* 7 */ "Bad attribute value.",
542  /* 8 */ "Bad selection of fragment - suggestions is not possible.",
543  /* 9 */ "Synchronization failed - there is registered different content with this URI.",
544  /* 10 */ "Synchronization is not possible.",
545  /* 11 */ "Synchronization error.",
546  /* 12 */ "", // N/A
547  /* 13 */ "", // N/A
548  /* 14 */ "Addition of annotation types is not permitted.",
549  /* 15 */ "Type of attribute not exists.",
550  /* 16 */ "Annotation type is malformed.",
551  /* 17 */ "Annotation type attributes are malformed.",
552  /* 18 */ "", // N/A
553  /* 19 */ "Type of annotation does not exists.",
554  /* 20 */ "Modification of annotation type name, ancestor or group is not possible.",
555  /* 21 */ "Error in settings.",
556  /* 22 */ "Synchronization message without document address.",
557  /* 23 */ "Synchronization message without document content.",
558  /* 24 */ "", // N/A
559  /* 25 */ "Bad annotated fragment.",
560  /* 26 */ "Attribute of annotation is malformed.",
561  /* 27 */ "", // N/A
562  /* 28 */ "Bad suggestion URI or unrecognized modify.",
563  /* 29 */ "Changed annotation was not found. Changes was not saved.",
564  /* 30 */ "Annotation to remove was not found. Annotation was not removed. ",
565  /* 31 */ "Session expired or bad session number.",
566  /* 32 */ "Bad request. Possible client error or incompatible protocol.",
567  /* 33 */ "Error in server module.",
568  /* 34 */ "Requested annotation was not found.",
569  /* 35 */ "", // N/A
570  /* 36 */ "Error in annotated document.",
571  /* 37 */ "", // N/A
572  /* 38 */ "Errors in annotation.",
573  /* 39 */ "Modification of document is not applicable.",
574  /* 40 */ "Unknown annotation type - it is not possible to suggest such annotations.",
575  /* 41 */ "", // N/A
576  /* 42 */ "", // N/A
577  /* 43 */ "Document is not synchronized. Manipulation with annotations is not possible.",
578  /* 44 */ "", // N/A
579  /* 45 */ "Unknown user group.",
580  /* 46 */ "", // N/A
581  /* 47 */ "Removing of used types is not allowed. You must remove annotations of this type first.",
582  /* 48 */ "Server internal error caused that data has not been saved.",
583  /* 49 */ "Duplicit annotation type URI.",
584  /* 50 */ "Description of document modification is bad.",
585  /* 51 */ "Deletion of used types is not allowed. You must delete subtypes first.",
586  /* 52 */ "Ambiguous fragment (found in more than one place in document).",
587  /* 53 */ "Bad URI of annotated document.",
588  /* 54 */ "", // N/A
589  /* 55 */ "Annotation type ancestors are malformed.",
590  /* 56 */ "", // N/A
591  /* 57 */ "You can't join to group with administrators. Only administrator can do that.",
592  /* 58 */ "You can't leave group with administrators, because You are the last administrator.",
593  /* 59 */ "Some annotations should be updated, but these changes cannot be saved.",
594  /* 60 */ "SEC (Semantic Enrichment Component) server is not available (suggestions will not be available).",
595  /* 61 */ "", // N/A
596  /* 62 */ "Another client is holding a different version of this document.",
597  /* 63 */ "Empty filter for name in query for entities.",
598  /* 64 */ "URI of subscription was not found.",
599  /* 65 */ "Subscription is malformed.",
600  /* 66 */ "", // N/A
601  /* 67 */ "", // N/A
602  /* 68 */ "", // N/A
603  /* 69 */ "", // N/A
604  /* 70 */ "", // N/A
605  /* 71 */ "", // N/A
606  /* 72 */ "", // N/A
607  /* 73 */ "", // N/A
608  /* 74 */ "", // N/A
609  /* 75 */ "", // N/A
610  /* 76 */ "", // N/A
611  /* 77 */ "", // N/A
612  /* 78 */ "", // N/A
613  /* 79 */ "", // N/A
614  /* 80 */ "", // N/A
615  /* 81 */ "Composite of fragments is empty.",
616  /* 82 */ "", // N/A
617  /* 83 */ "", // N/A
618  /* 84 */ "", // N/A
619  /* 85 */ "", // N/A
620  /* 86 */ "", // N/A
621  /* 87 */ "", // N/A
622  /* 88 */ "", // N/A
623  /* 89 */ "", // N/A
624  /* 90 */ "", // N/A
625  /* 91 */ "", // N/A
626  /* 92 */ "Duplicit attribute of type of annotation.",
627  /* 93 */ "", // N/A
628  /* 94 */ "", // N/A
629  /* 95 */ "Missing minimal confidence in request for suggestions.",
630  /* 96 */ "Bad format of maximum of results in request for entities.",
631  /* 97 */ "User is not in any group - it is not possible to manipulate with annotation types, annotations etc.",
632  /* 98 */ "", // N/A
633  /* 99 */ "Unsupported operation.",
634  /* 100 */ "Unknown error.",
635  /* 101 */ "Suggestions are not ready, please try it later.",
636  /* 102 */ "", // N/A
637  /* 103 */ "Modified suggestion is missing.",
638  /* 104 */ "", // N/A
639  /* 105 */ "Wrong specification of modification.",
640  /* 106 */ "Duplicit subscription was found.",
641  /* 107 */ "Bad confidence value for automatic confirmation of suggestions."
642  };
643 
644  /** Array with czech error messages for protocol version 2.0 */
645  public static final String[] ERR_STRINGS_2_0_CS = {
646  /* 0 */ "Nepodporovaná verze protokolu.",
647  /* 1 */ "Chybné přihlašovací jméno nebo heslo.",
648  /* 2 */ "Nemáte oprávnění ke zvolené anotaci.",
649  /* 3 */ "Přístup pouze pro čtení - anotace nebyla uložena.",
650  /* 4 */ "Editace není povolena.",
651  /* 5 */ "Mazání není povolené.",
652  /* 6 */ "Chybí povinné atributy.",
653  /* 7 */ "Chybná hodnota atributu.",
654  /* 8 */ "Chybná volba fragmentu - nabízení není možné.",
655  /* 9 */ "Synchronizace selhala - pro danou URI je již uložen jiný obsah dokumentu.",
656  /* 10 */ "Synchronizace není možná.",
657  /* 11 */ "Chyba synchronizace.",
658  /* 12 */ "", // N/A
659  /* 13 */ "", // N/A
660  /* 14 */ "Přidávání typů anotací není povolené.",
661  /* 15 */ "Typ atributu neexistuje.",
662  /* 16 */ "Typ anotace je chybný.",
663  /* 17 */ "Atributy typu anotace jsou chybné.",
664  /* 18 */ "", // N/A
665  /* 19 */ "Typ anotace neexistuje.",
666  /* 20 */ "Změna názvu, předka či skupiny typu anotace není možná.",
667  /* 21 */ "Chyba v nastavení.",
668  /* 22 */ "Synchronizační zpráva bez adresy zdrojového dokumentu.",
669  /* 23 */ "Synchronizační zpráva bez obsahu dokumentu.",
670  /* 24 */ "", // N/A
671  /* 25 */ "Chybný anotovaný fragment.",
672  /* 26 */ "Chybný atribut anotace.",
673  /* 27 */ "", // N/A
674  /* 28 */ "Chybný indikátor změny nebo identifikátor nabídky.",
675  /* 29 */ "Editovaná anotace nebyla nalezena. Změny nelze uložit.",
676  /* 30 */ "Mazaná anotace nebyla nalezena. Anotaci nelze vymazat.",
677  /* 31 */ "Identifikátor sezení je neplatný - sezení pravděpodobně expirovalo.",
678  /* 32 */ "Chybný požadavek. Chyba klienta či nekompatibilní verze protokolu.",
679  /* 33 */ "Chyba v modulu serveru.",
680  /* 34 */ "Požadovaná anotace nebyla nalezena.",
681  /* 35 */ "", // N/A
682  /* 36 */ "Chyba v anotovaném dokumentu.",
683  /* 37 */ "", // N/A
684  /* 38 */ "Chyby v anotaci.",
685  /* 39 */ "Modifikaci textu nelze aplikovat.",
686  /* 40 */ "Neznámý typ anotace - nabízení není možné.",
687  /* 41 */ "", // N/A
688  /* 42 */ "", // N/A
689  /* 43 */ "Dokument nebyl synchronizován. Manipulace s anotacemi není možná.",
690  /* 44 */ "", // N/A
691  /* 45 */ "Neznámá skupina uživatelů.",
692  /* 46 */ "", // N/A
693  /* 47 */ "Mazání využitých typů anotací není dovoleno. Nejprve je nutné smazat všechny anotace daného typu.",
694  /* 48 */ "Data nebylo možné uložit kvůli interní chybě serveru.",
695  /* 49 */ "Duplicitní URI typu anotace.",
696  /* 50 */ "Popis modifikace textu je chybný.",
697  /* 51 */ "Mazání typů anotací s podtypy není dovoleno. Nejprve je nutné vymazat všechny podtypy.",
698  /* 52 */ "Nejednoznačný fragment (lze jej nalézt na více místech v dokumentu).",
699  /* 53 */ "Chybný URI anotovaného dokumentu.",
700  /* 54 */ "", // N/A
701  /* 55 */ "Seznam předků přidávaného typu anotace je chybný.",
702  /* 56 */ "", // N/A
703  /* 57 */ "Nelze se přidat do skupiny administrátorů. Tuto operaci smí provést pouze administrátor.",
704  /* 58 */ "Nemůžete opustit skupinu administrátorů, protože jste jejím posledním členem.",
705  /* 59 */ "Některé anotace by měly být aktualizovány, ale tyto změny nebylo možné uložit.",
706  /* 60 */ "SEC (Semantic Enrichment Component) server není dostupný (nabídky anotací nebudou dostupné).",
707  /* 61 */ "", // N/A
708  /* 62 */ "Jiný klient pracuje s jinou verzí tohoto dokumentu.",
709  /* 63 */ "Špatný filtr pro název v požadavku na entity.",
710  /* 64 */ "Identifikátor odběru nebyl nalezen.",
711  /* 65 */ "Odběr je chybný.",
712  /* 66 */ "", // N/A
713  /* 67 */ "", // N/A
714  /* 68 */ "", // N/A
715  /* 69 */ "", // N/A
716  /* 70 */ "", // N/A
717  /* 71 */ "", // N/A
718  /* 72 */ "", // N/A
719  /* 73 */ "", // N/A
720  /* 74 */ "", // N/A
721  /* 75 */ "", // N/A
722  /* 76 */ "", // N/A
723  /* 77 */ "", // N/A
724  /* 78 */ "", // N/A
725  /* 79 */ "", // N/A
726  /* 80 */ "", // N/A
727  /* 81 */ "Composite fragmentu je prázdný.",
728  /* 82 */ "", // N/A
729  /* 83 */ "", // N/A
730  /* 84 */ "", // N/A
731  /* 85 */ "", // N/A
732  /* 86 */ "", // N/A
733  /* 87 */ "", // N/A
734  /* 88 */ "", // N/A
735  /* 89 */ "", // N/A
736  /* 90 */ "", // N/A
737  /* 91 */ "", // N/A
738  /* 92 */ "Duplicitní atribut typu anotace.",
739  /* 93 */ "", // N/A
740  /* 94 */ "", // N/A
741  /* 95 */ "V požadavku o nabídky chybí minimální důvěryhodnost.",
742  /* 96 */ "Chybný formát maximálního počtu výsledků v požadavku o entity.",
743  /* 97 */ "Nejste v žádné skupině uživatelů - nelze manipulovat s typy anotací, anotacemi apod.",
744  /* 98 */ "", // N/A
745  /* 99 */ "Nepodporovaná operace.",
746  /* 100 */ "Neznámá chyba.",
747  /* 101 */ "Nabídky ještě nejsou připraveny, zkuste to prosím později.",
748  /* 102 */ "", // N/A
749  /* 103 */ "Chybí modikovaný návrh anotace.",
750  /* 104 */ "", // N/A
751  /* 105 */ "Chybně specifikovaná modifikace.",
752  /* 106 */ "Byl nalezen duplicitní odběr.",
753  /* 107 */ "Chybná míra důvěryhodnosti pro automatické potvrzování návrhů."
754  };
755 
756  /**
757  * Gets error message for protocol version 2.0
758  *
759  * @param langNum Number of language
760  * @param errorNum Number of error message
761  * @return Returns error message in given language
762  */
763  public static String getErrMessage2(int langNum, int errorNum) {
764  switch (langNum) {
765  case LANGUAGE_ENG:
766  return ERR_STRINGS_2_0_EN[errorNum];
767  case LANGUAGE_CZE:
768  return ERR_STRINGS_2_0_CS[errorNum];
769  }
770  return ERR_STRINGS_2_0_EN[errorNum]; // default
771  } // getErrMessage2()
772 
773  /**
774  * Gets error message for unknown error for protocol version 2.0
775  *
776  * @param langNum Number of language
777  * @return Returns error message in given language
778  */
779  public static String getUnknownErrMessage2(int langNum) {
780  switch (langNum) {
781  case LANGUAGE_ENG:
783  case LANGUAGE_CZE:
785  }
786  return ERR_STRINGS_2_0_EN[ERROR_100_UNKNOWN_ERROR]; // default
787  } // getUnknownErrMessage2()
788 
789  /**
790  * Gets error code for protocol version 2.0
791  *
792  * @param errorNum Number of error
793  * @return Returns error code
794  */
795  public static String getErrCode(int errorNum) {
796  return ERR_CODES_2_0[errorNum];
797  } // getErrCode()
798 
799  /* Warning numbers */
800  public static final int WARNING_1_ANNOT_SUPERSEDED = 1;
801  public static final int WARNING_2_ANNOT_ORPHANED = 2;
802  public static final int WARNING_3_ANNOT_UPDATED = 3;
803  public static final int WARNING_4_ANNOT_PART_ORPHANED = 4;
804  public static final int WARNING_5_NOT_LOGGED_IN = 5;
805  public static final int WARNING_6_FRAGMENTS_UPDATED = 6;
806  public static final int WARNING_100_UNKNOWN = 100;
807 
808  /** Array with warning messages */
809  public static final String[] WARNING_STRINGS_EN = {
810  /* 0 */ "Server internal error.", /* pad - number starts with 1 */
811  /* 1 */ "Annotation superseded.",
812  /* 2 */ "Annotation orphaned.",
813  /* 3 */ "Annotation automatically updated.",
814  /* 4 */ "Annotation partially orphaned.",
815  /* 5 */ "You are not logged in. You can only log in or disconnect (other messages will be discarded).",
816  /* 6 */ "Annotated fragments were updated."
817  };
818  /** Warning message for unknown warning. If displayed, it's server internal error. */
819  public static final String WARNING_100_UNKNOWN_STRING_EN = "Server internal error.";
820 
821  /** Array with czech warning messages */
822  public static final String[] WARNING_STRINGS_CS = {
823  /* 0 */ "Server internal error.", /* pad - number starts with 1 */
824  /* 1 */ "Anotace nahrazena.",
825  /* 2 */ "Anotace osiřela (fragmenty byly zneplatněny).",
826  /* 3 */ "Anotace byla automaticky aktualizována.",
827  /* 4 */ "Anotace částečně osiřela (některé fragmenty byly zneplatněny).",
828  /* 5 */ "Nejste přihlášen. Můžete se pouze přihlásit nebo odpojit (ostatní zprávy budou ignorovány).",
829  /* 6 */ "Fragmenty anotace byly aktualizovány."
830  };
831  /** Warning message for unknown warning. If displayed, it's server internal error. */
832  public static final String WARNING_100_UNKNOWN_STRING_CS = "Interní chyba serveru.";
833 
834  /**
835  * Gets warning message
836  *
837  * @param langNum Number of language
838  * @param warningNum Number of warning message
839  * @return Returns warning message in given language
840  */
841  public static String getWarningMessage(int langNum, int warningNum) {
842  switch (langNum) {
843  case LANGUAGE_ENG:
844  return WARNING_STRINGS_EN[warningNum];
845  case LANGUAGE_CZE:
846  return WARNING_STRINGS_CS[warningNum];
847  }
848  return WARNING_STRINGS_EN[warningNum]; // default
849  } // getWarningMessage()
850 
851  /**
852  * Gets warning message for unknown warning
853  *
854  * @param langNum Number of language
855  * @return Returns warning message in given language
856  */
857  public static String getUnknownWarningMessage(int langNum) {
858  switch (langNum) {
859  case LANGUAGE_ENG:
861  case LANGUAGE_CZE:
863  }
864  return WARNING_100_UNKNOWN_STRING_EN; // default
865  } // getUnknownWarningMessage()
866 
867 
868  /**
869  * Gets number of warning messages
870  *
871  * @return Returns number of warning messages
872  */
873  public static int getNumOfWarnings() {
874  return WARNING_STRINGS_EN.length;
875  }
876 
877  /** Array with warning codes */
878  public static final String[] WARNING_CODES_2_0 = {
879  /* 0 */ "server error", /* pad - number starts with 1 */
880  /* 1 */ "annot superseded",
881  /* 2 */ "annot orphaned",
882  /* 3 */ "annot updated",
883  /* 4 */ "annot partially orphaned",
884  /* 5 */ "not logged",
885  /* 6 */ "fragments updated"
886  };
887 
888  /** Array with warning messages for protocol version 2.0 */
889  public static final String[] WARNING_STRINGS_2_0_EN = {
890  /* 0 */ "Noncritical server internal error.", /* pad - number starts with 1 */
891  /* 1 */ "Annotation was superseded.",
892  /* 2 */ "Annotation was orphaned.",
893  /* 3 */ "Annotation was automatically updated.",
894  /* 4 */ "Annotation was partially orphaned.",
895  /* 5 */ "You are not logged in. You can only log in or disconnect (other messages will be discarded).",
896  /* 6 */ "Annotated fragments were updated."
897  };
898  /** Warning message for unknown warning. If displayed, it's server internal error. */
899  public static final String WARNING_100_UNKNOWN_STRING_2_0_EN = "Noncritical server internal error.";
900 
901  /** Array with czech warning messages for protocol version 2.0 */
902  public static final String[] WARNING_STRINGS_2_0_CS = {
903  /* 0 */ "Nekritická interní chyba serveru.", /* pad - number starts with 1 */
904  /* 1 */ "Anotace odstraněna.",
905  /* 2 */ "Anotace osiřela (fragmenty byly zneplatněny).",
906  /* 3 */ "Anotace byla automaticky aktualizována.",
907  /* 4 */ "Anotace částečně osiřela (některé fragmenty byly zneplatněny).",
908  /* 5 */ "Nejste přihlášen. Můžete se pouze přihlásit nebo odpojit (ostatní zprávy budou ignorovány).",
909  /* 6 */ "Fragmenty anotace byly aktualizovány."
910  };
911  /** Warning message for unknown warning. If displayed, it's server internal error. */
912  public static final String WARNING_100_UNKNOWN_STRING_2_0_CS = "Nekritická interní chyba serveru.";
913 
914  /**
915  * Gets warning message for protocol version 2.0
916  *
917  * @param langNum Number of language
918  * @param warningNum Number of warning message
919  * @return Returns warning message in given language
920  */
921  public static String getWarningMessage2(int langNum, int warningNum) {
922  switch (langNum) {
923  case LANGUAGE_ENG:
924  return WARNING_STRINGS_2_0_EN[warningNum];
925  case LANGUAGE_CZE:
926  return WARNING_STRINGS_2_0_CS[warningNum];
927  }
928  return WARNING_STRINGS_2_0_EN[warningNum]; // default
929  } // getWarningMessage2()
930 
931  /**
932  * Gets warning message for unknown warning for protocol version 2.0
933  *
934  * @param langNum Number of language
935  * @return Returns warning message in given language
936  */
937  public static String getUnknownWarningMessage2(int langNum) {
938  switch (langNum) {
939  case LANGUAGE_ENG:
941  case LANGUAGE_CZE:
943  }
944  return WARNING_100_UNKNOWN_STRING_2_0_EN; // default
945  } // getUnknownWarningMessage2()
946 
947  /**
948  * Gets warning code for protocol version 2.0
949  *
950  * @param warningNum Number of warning
951  * @return Returns warning code
952  */
953  public static String getWarningCode(int warningNum) {
954  return WARNING_CODES_2_0[warningNum];
955  } // getWarningCode()
956 
957 
958  /** Array with exception messages */
959  public static final String[] EXCEPTION_STRINGS_EN = {
960  /* 0 */ "Server internal error.", /* pad - number starts with 1 */
961  /* 1 */ "Too many nodes.",
962  /* 2 */ "Node not found.",
963  /* 3 */ "Bad fragment specification.",
964  /* 4 */ "Bad document."
965  };
966 
967  /** Array with czech exception messages */
968  public static final String[] EXCEPTION_STRINGS_CS = {
969  /* 0 */ "Interní chyba serveru.", /* pad - number starts with 1 */
970  /* 1 */ "Příliš mnoho uzlů.",
971  /* 2 */ "Uzel nebyl nalezen.",
972  /* 3 */ "Chybná specifikace fragmentu.",
973  /* 4 */ "Chybný dokument."
974  };
975 
976  /** Exception message id for case of too many nodes represented by fragment XPath */
977  public static final int EXC_TOO_MANY_NODES = 1;
978  /** Exception message id for case of node represented by fragment XPath is not found */
979  public static final int EXC_NODE_NOT_FOUND = 2;
980  /** Exception message id for case of bad fragment specification */
981  public static final int EXC_BAD_FRAG_SPEC = 3;
982  /** Exception message id for case of bad document */
983  public static final int EXC_BAD_DOCUMENT = 4;
984 
985  public static String getExceptionMessage(int langNum, int excNum) {
986  switch (langNum) {
987  case LANGUAGE_ENG:
988  return EXCEPTION_STRINGS_EN[excNum];
989  case LANGUAGE_CZE:
990  return EXCEPTION_STRINGS_CS[excNum];
991  }
992  return EXCEPTION_STRINGS_EN[excNum]; // default
993  } // getWarningMessage()
994 
995 
996  public static final int KB_ARTWORK_NAME = 1;
997  public static final int KB_DESCRIPTION = 2;
998  public static final int KB_VISUAL_REPRESENTATION = 3;
999  public static final int KB_ARTIST = 4;
1000  public static final int KB_ART_SUBJECT = 5;
1001  public static final int KB_ART_FORM = 6;
1002  public static final int KB_ART_GENRE = 7;
1003  public static final int KB_MEDIA = 8;
1004  public static final int KB_SUPPORT = 9;
1005  public static final int KB_PERIOD_OF_MOVEMENT = 10;
1006  public static final int KB_LOCATIONS = 11;
1007  public static final int KB_DATE_BEGUN = 12;
1008  public static final int KB_DATE_COMPLETED = 13;
1009  public static final int KB_OWNER = 14;
1010  public static final int KB_DIMENSION_HEIGHT = 15;
1011  public static final int KB_DIMENSION_WIDTH = 16;
1012  public static final int KB_DIMENSION_DEPTH = 17;
1013  public static final int KB_FREEBASE_URI = 18;
1014  public static final int KB_WIKIPEDIA_URI = 19;
1015  public static final int KB_DIMENSIONS = 20;
1016  public static final int KB_PERSON_NAME = 21;
1017  public static final int KB_PREFERRED_P_ROLE = 22;
1018  public static final int KB_P_ROLE = 23;
1019  public static final int KB_PREFERRED_NATIONALITY = 24;
1020  public static final int KB_NATIONALITIES = 25;
1021  public static final int KB_DATE_OF_BIRTH = 26;
1022  public static final int KB_PLACE_OF_BIRTH = 27;
1023  public static final int KB_DATE_OF_DEATH = 28;
1024  public static final int KB_PLACE_OF_DEATH = 29;
1025  public static final int KB_GENDER = 30;
1026  public static final int KB_MALE = 31;
1027  public static final int KB_FEMALE = 32;
1028  public static final int KB_NOTE = 33;
1029  public static final int KB_LOCATION_NAME = 34;
1030  public static final int KB_GEO_LOCATION = 35;
1031  public static final int KB_FEATURE_CODE = 36;
1032  public static final int KB_FEATURE_TYPE = 37;
1033  public static final int KB_POPULATION = 38;
1034  public static final int KB_ELEVATION = 39;
1035  public static final int KB_PREFERRED_C_ROLE = 40;
1036  public static final int KB_C_ROLE = 41;
1037  public static final int KB_PERSON_TYPE_NAME = 42;
1038  public static final int KB_CORPORATION_TYPE_NAME = 43;
1039  public static final int KB_ARTWORK_TYPE_PATH = 44;
1040  public static final int KB_LOCATION_TYPE_NAME = 45;
1041  public static final int KB_URI = 46;
1042  public static final int KB_EVENT_TYPE_PATH = 47;
1043  public static final int KB_EVENT_NAME = 48;
1044  public static final int KB_START_DATE = 49;
1045  public static final int KB_END_DATE = 50;
1046  public static final int KB_NOTABLE_TYPES = 51;
1047  public static final int KB_AF_TYPE_PATH = 52;
1048  public static final int KB_AF_NAME = 53;
1049  public static final int KB_AM_TYPE_PATH = 54;
1050  public static final int KB_AM_NAME = 55;
1051  public static final int KB_APM_TYPE_PATH = 56;
1052  public static final int KB_APM_NAME = 57;
1053  public static final int KB_AG_TYPE_PATH = 58;
1054  public static final int KB_AG_NAME = 59;
1055  public static final int KB_COUNTRY_TYPE_PATH = 60;
1056  public static final int KB_C_NAME = 61;
1057  public static final int KB_SHORT_NAME = 62;
1058  public static final int KB_ADJECTIVAL_FORM = 63;
1059  public static final int DATE_TYPE_PATH = 64;
1060  public static final int DATE_NAME = 65;
1061  public static final int INTERVAL_TYPE_PATH = 66;
1062  public static final int START_DATE_NAME = 67;
1063  public static final int END_DATE_NAME = 68;
1064  public static final int INTERVAL_NAME = 69;
1065  public static final int KB_NATIONALITY_TYPE_PATH = 70;
1066  public static final int KB_NATIONALITY_NAME = 71;
1067  public static final int KB_STATE_NAME = 72;
1068  public static final int KB_ALIASES = 73;
1069  public static final int KB_TYPE_OF_MUSEUM = 74;
1070  public static final int KB_ESTABLISHED = 75;
1071  public static final int KB_DIRECTOR = 76;
1072  public static final int KB_VISITORS = 77;
1073  public static final int KB_CITY_TOWN = 78;
1074  public static final int KB_POSTAL_CODE = 79;
1075  public static final int KB_STATE_REGION = 80;
1076  public static final int KB_STREET_ADDRESS = 81;
1077  public static final int KB_DBPEDIA_URI = 82;
1078  public static final int KB_SETTLEMENT_TYPE = 83;
1079  public static final int KB_TIME_ZONE = 84;
1080  public static final int KB_INFLUENCED = 85;
1081  public static final int KB_INFLUENCED_BY = 86;
1082  public static final int KB_INFLUENCES = 87;
1083  public static final int KB_PLACES_LIFT = 88;
1084  public static final int KB_TRAINING = 89;
1085  public static final int KB_MOVEMENT = 90;
1086  public static final int KB_MUSEUM_TYPE_NAME = 91;
1087  public static final int KB_MUSEUM_NAME = 92;
1088  public static final int KB_COREFERENCE_TO = 93;
1089  public static final int ACTIVITY_TYPE_PATH = 94;
1090  public static final int ACTIVITY_NAME = 95;
1091  public static final int KB_VISUAL_ARTIST_TYPE_NAME = 96;
1092  public static final int KB_VISUAL_ARTIST_TYPE_PATH = 97;
1093  public static final int KB_PERSON_TYPE_PATH = 98;
1094  public static final int KB_CORPORATION_TYPE_PATH = 99;
1095  public static final int KB_MUSEUM_TYPE_PATH = 100;
1096  public static final int KB_LOCATION_TYPE_PATH = 101;
1097  public static final int KB_ARTIST_TYPE_PATH = 102;
1098  public static final int KB_ARTIST_NAME = 103;
1099  public static final int KB_PLACES_LIVED = 104;
1100  public static final int KB_PROFESSION = 105;
1101  public static final int KB_NATIONALITY = 106;
1102  public static final int KB_COUNTRY = 107;
1103  public static final int KB_ENTITY_URI = 108;
1104  public static final int KB_DATE_FROM = 109;
1105  public static final int KB_DATE_TO = 110;
1106  public static final int KB_DISPLAY_TERM = 111;
1107  public static final int KB_ALIAS = 112;
1108  public static final int KB_PREFERRED_TERM = 113;
1109  public static final int KB_OTHER_TERMS = 114;
1110  public static final int KB_OTHER_ROLES = 115;
1111  public static final int KB_OTHER_NATIONALITIES = 116;
1112  public static final int KB_ALTERNATIVE_NAMES = 117;
1113  public static final int KB_FEATURE_TYPE_DESCRIPTION = 118;
1114  public static final int KB_TIMEZONE = 119;
1115  public static final int KB_PAINTING_ALIGNMENT = 120;
1116  public static final int KB_STATE_PROVINCE_REGION = 121;
1117  public static final int KB_COUNTRY_NAME = 122;
1118  public static final int KB_ULAN_ID = 123;
1119  public static final int KB_PLACE_LIVED = 124;
1120  public static final int KB_FREEBASE_IMAGE = 125;
1121  public static final int KB_OTHER_TERM = 126;
1122  public static final int KB_OTHER_ROLE = 127;
1123  public static final int KB_OTHER_NATIONALITY = 128;
1124  public static final int KB_ALTERNATIVE_NAME = 129;
1125  public static final int KB_NOTABLE_TYPE = 130;
1126  public static final int KB_IMAGE = 131;
1127  public static final int KB_MYTHOLOGY_TYPE_PATH = 132;
1128  public static final int KB_MYTHOLOGY_TYPE_NAME = 133;
1129  public static final int KB_LATITUDE = 134;
1130  public static final int KB_LONGITUDE = 135;
1131  public static final int KB_DISAMBIGUATION = 136;
1132 
1133  /** Array with strings for knowledge base */
1134  public static final String[] KB_STRINGS_EN = {
1135  /* 0 */ "", /* pad - number starts with 1 */
1136  /* 1 */ "Name",
1137  /* 2 */ "Description",
1138  /* 3 */ "Visual_representation",
1139  /* 4 */ "Artist",
1140  /* 5 */ "Art_subject",
1141  /* 6 */ "Art_form",
1142  /* 7 */ "Art_genre",
1143  /* 8 */ "Media",
1144  /* 9 */ "Support",
1145  /* 10 */ "Period_of_movement",
1146  /* 11 */ "Locations",
1147  /* 12 */ "Date_begun",
1148  /* 13 */ "Date_completed",
1149  /* 14 */ "Owner",
1150  /* 15 */ "Dimension_height",
1151  /* 16 */ "Dimension_width",
1152  /* 17 */ "Dimension_depth",
1153  /* 18 */ "Freebase_URI",
1154  /* 19 */ "Wikipedia_URI",
1155  /* 20 */ "Dimensions",
1156  /* 21 */ "Name",
1157  /* 22 */ "Preferred_role",
1158  /* 23 */ "Roles",
1159  /* 24 */ "Preferred_nationality",
1160  /* 25 */ "Nationalities",
1161  /* 26 */ "Date_of_birth",
1162  /* 27 */ "Place_of_birth",
1163  /* 28 */ "Date_of_death",
1164  /* 29 */ "Place_of_death",
1165  /* 30 */ "Gender",
1166  /* 31 */ "Male",
1167  /* 32 */ "Female",
1168  /* 33 */ "Note",
1169  /* 34 */ "Name",
1170  /* 35 */ "Geographical location",
1171  /* 36 */ "Feature_code",
1172  /* 37 */ "Feature_type",
1173  /* 38 */ "Population",
1174  /* 39 */ "Elevation",
1175  /* 40 */ "Preferred_role",
1176  /* 41 */ "Roles",
1177  /* 42 */ "Person",
1178  /* 43 */ "Corporation",
1179  /* 44 */ "Art/Artwork",
1180  /* 45 */ "Location",
1181  /* 46 */ "URI",
1182  /* 47 */ "Historical_event",
1183  /* 48 */ "Name",
1184  /* 49 */ "Start_date",
1185  /* 50 */ "End_date",
1186  /* 51 */ "Notable_types",
1187  /* 52 */ "Art/Art_form",
1188  /* 53 */ "Name",
1189  /* 54 */ "Art/Art_medium",
1190  /* 55 */ "Name",
1191  /* 56 */ "Art/Art_period_movement",
1192  /* 57 */ "Name",
1193  /* 58 */ "Art/Art_genre",
1194  /* 59 */ "Name",
1195  /* 60 */ "Country",
1196  /* 61 */ "Name",
1197  /* 62 */ "Short_name",
1198  /* 63 */ "Adjectival_form",
1199  /* 64 */ "Date",
1200  /* 65 */ "Date",
1201  /* 66 */ "Interval",
1202  /* 67 */ "Start_date",
1203  /* 68 */ "End_date",
1204  /* 69 */ "Interval",
1205  /* 70 */ "Nationality",
1206  /* 71 */ "Nationality",
1207  /* 72 */ "State_name",
1208  /* 73 */ "Aliases",
1209  /* 74 */ "Type_of_museum",
1210  /* 75 */ "Established",
1211  /* 76 */ "Director",
1212  /* 77 */ "Visitors",
1213  /* 78 */ "City",
1214  /* 79 */ "Postal_code",
1215  /* 80 */ "State_region",
1216  /* 81 */ "Street_address",
1217  /* 82 */ "DBpedia_URI",
1218  /* 83 */ "Settlement_type",
1219  /* 84 */ "Time_zone",
1220  /* 85 */ "Influenced",
1221  /* 86 */ "Influenced_by",
1222  /* 87 */ "Influences",
1223  /* 88 */ "Places_lift",
1224  /* 89 */ "Training",
1225  /* 90 */ "Movement",
1226  /* 91 */ "Museum",
1227  /* 92 */ "Museum",
1228  /* 93 */ "Coreference_to_",
1229  /* 94 */ "Activity",
1230  /* 95 */ "Activity",
1231  /* 96 */ "Visual_artist",
1232  /* 97 */ "Art/Visual_artist",
1233  /* 98 */ "Person",
1234  /* 99 */ "Corporation",
1235  /* 100 */ "Museum",
1236  /* 101 */ "Location",
1237  /* 102 */ "Artist",
1238  /* 103 */ "Name",
1239  /* 104 */ "Places_lived",
1240  /* 105 */ "Profession",
1241  /* 106 */ "Nationality",
1242  /* 107 */ "Country",
1243  /* 108 */ "URI_of_entity",
1244  /* 109 */ "Date_from",
1245  /* 110 */ "Date_to",
1246  /* 111 */ "Display_term",
1247  /* 112 */ "Alias",
1248  /* 113 */ "Preferred_term",
1249  /* 114 */ "Other_terms",
1250  /* 115 */ "Other_roles",
1251  /* 116 */ "Other_nationalities",
1252  /* 117 */ "Alternative_names",
1253  /* 118 */ "Feature_type_description",
1254  /* 119 */ "Timezone",
1255  /* 120 */ "Painting_alignment",
1256  /* 121 */ "State_province_region",
1257  /* 122 */ "Country_name",
1258  /* 123 */ "ULAN_ID",
1259  /* 124 */ "Place_lived",
1260  /* 125 */ "Freebase_image",
1261  /* 126 */ "Other_term",
1262  /* 127 */ "Other_role",
1263  /* 128 */ "Other_nationality",
1264  /* 129 */ "Alternative_name",
1265  /* 130 */ "Notable_type",
1266  /* 131 */ "Image",
1267  /* 132 */ "Mythology",
1268  /* 133 */ "Mythology",
1269  /* 134 */ "Latitude",
1270  /* 135 */ "Longitude",
1271  /* 136 */ "Disambiguation"
1272  };
1273 
1274  /** Array with czech strings for knowledge base */
1275  public static final String[] KB_STRINGS_CS = {
1276  /* 0 */ "", /* pad - number starts with 1 */
1277  /* 1 */ "Název",
1278  /* 2 */ "Popis",
1279  /* 3 */ "Vizuální_reprezentace",
1280  /* 4 */ "Umělec",
1281  /* 5 */ "Předmět_díla",
1282  /* 6 */ "Forma_díla",
1283  /* 7 */ "Žánr",
1284  /* 8 */ "Médium",
1285  /* 9 */ "Podpora",
1286  /* 10 */ "Umělecký_styl",
1287  /* 11 */ "Umístění",
1288  /* 12 */ "Datum_začátku",
1289  /* 13 */ "Datum_dokončení",
1290  /* 14 */ "Vlastník",
1291  /* 15 */ "Výška",
1292  /* 16 */ "Šířka",
1293  /* 17 */ "Hloubka",
1294  /* 18 */ "Freebase_URI",
1295  /* 19 */ "Wikipedia_URI",
1296  /* 20 */ "Rozměry",
1297  /* 21 */ "Jméno",
1298  /* 22 */ "Preferované_role",
1299  /* 23 */ "Role",
1300  /* 24 */ "Preferovaná_národnost",
1301  /* 25 */ "Národnosti",
1302  /* 26 */ "Datum_narození",
1303  /* 27 */ "Místo_narození",
1304  /* 28 */ "Datum_úmrtí",
1305  /* 29 */ "Místo_úmrtí",
1306  /* 30 */ "Pohlaví",
1307  /* 31 */ "Muž",
1308  /* 32 */ "Žena",
1309  /* 33 */ "Poznámka",
1310  /* 34 */ "Název",
1311  /* 35 */ "Geografické_umístění",
1312  /* 36 */ "Feature_code",
1313  /* 37 */ "Typ_umístění",
1314  /* 38 */ "Populace",
1315  /* 39 */ "Nadmořská_výška",
1316  /* 40 */ "Preferovaná_role",
1317  /* 41 */ "Role",
1318  /* 42 */ "Osoba",
1319  /* 43 */ "Společnost",
1320  /* 44 */ "Umění/Umělecké_dílo",
1321  /* 45 */ "Umístění",
1322  /* 46 */ "URI",
1323  /* 47 */ "Historická_událost",
1324  /* 48 */ "Název",
1325  /* 49 */ "Datum_začátku",
1326  /* 50 */ "Datum_konce",
1327  /* 51 */ "Významné_typy",
1328  /* 52 */ "Umění/Forma_díla",
1329  /* 53 */ "Název",
1330  /* 54 */ "Umění/Umělecké_médium",
1331  /* 55 */ "Název",
1332  /* 56 */ "Umění/Umělecký_styl",
1333  /* 57 */ "Název",
1334  /* 58 */ "Umění/Žánr",
1335  /* 59 */ "Název",
1336  /* 60 */ "Země",
1337  /* 61 */ "Název",
1338  /* 62 */ "Krátký_název",
1339  /* 63 */ "Adjektivní_forma",
1340  /* 64 */ "Datum",
1341  /* 65 */ "Datum",
1342  /* 66 */ "Interval",
1343  /* 67 */ "Počáteční_datum",
1344  /* 68 */ "Koncové_datum",
1345  /* 69 */ "Interval",
1346  /* 70 */ "Národnost",
1347  /* 71 */ "Národnost",
1348  /* 72 */ "Název_státu",
1349  /* 73 */ "Aliasy",
1350  /* 74 */ "Typ_muzea",
1351  /* 75 */ "Datum_vzniku",
1352  /* 76 */ "Ředitel",
1353  /* 77 */ "Návštěvníci",
1354  /* 78 */ "Město",
1355  /* 79 */ "PSČ",
1356  /* 80 */ "Část_státu",
1357  /* 81 */ "Ulice",
1358  /* 82 */ "DBpedia_URI",
1359  /* 83 */ "Druh_osídlení",
1360  /* 84 */ "Časová_zóna",
1361  /* 85 */ "Ovlivnil",
1362  /* 86 */ "Ovlivněn",
1363  /* 87 */ "Vlivy",
1364  /* 88 */ "Žil_v",
1365  /* 89 */ "Studia",
1366  /* 90 */ "Umělecký_směr",
1367  /* 91 */ "Muzeum",
1368  /* 92 */ "Muzeum",
1369  /* 93 */ "Koreference_na_",
1370  /* 94 */ "Aktivita",
1371  /* 95 */ "Aktivita",
1372  /* 96 */ "Umělec",
1373  /* 97 */ "Umění/Umělec",
1374  /* 98 */ "Osoba",
1375  /* 99 */ "Společnost",
1376  /* 100 */ "Muzeum",
1377  /* 101 */ "Umístění",
1378  /* 102 */ "Umělec",
1379  /* 103 */ "Jméno",
1380  /* 104 */ "Místa_pobytu",
1381  /* 105 */ "Profese",
1382  /* 106 */ "Národnost",
1383  /* 107 */ "Země",
1384  /* 108 */ "URI_entity",
1385  /* 109 */ "Datum_od",
1386  /* 110 */ "Datum_do",
1387  /* 111 */ "Zobrazovaný_termín",
1388  /* 112 */ "Alias",
1389  /* 113 */ "Preferovaný_termín",
1390  /* 114 */ "Ostatní_termíny",
1391  /* 115 */ "Ostatní_role",
1392  /* 116 */ "Ostatní_národnosti",
1393  /* 117 */ "Alternativní_jména",
1394  /* 118 */ "Popis_typu_umístění",
1395  /* 119 */ "Časová_zóna",
1396  /* 120 */ "Zarovnání_obrazu",
1397  /* 121 */ "Stát_provincie_region",
1398  /* 122 */ "Název_země",
1399  /* 123 */ "ULAN_ID",
1400  /* 124 */ "Místo_pobytu",
1401  /* 125 */ "Obrázek_z_freebase",
1402  /* 126 */ "Další_název",
1403  /* 127 */ "Další_role",
1404  /* 128 */ "Další_národnost",
1405  /* 129 */ "Alternativní_jméno",
1406  /* 130 */ "Významný_typ",
1407  /* 131 */ "Obrázek",
1408  /* 132 */ "Mytologie",
1409  /* 133 */ "Mytologie",
1410  /* 134 */ "Zeměpisná_šířka",
1411  /* 135 */ "Zeměpisná_délka",
1412  /* 136 */ "Disambiguation" /* This is special attribute so it must have same name in all languages */
1413  };
1414 
1415  /**
1416  * Array with strings for knowledge base used for translation from SEC API
1417  * (some strings will not be used - but number of strings must match so they
1418  * must be here)
1419  */
1420  public static final ArrayList<String> KB_STRINGS_INTERNAL = new ArrayList<String>(Arrays.asList(
1421  /* 0 */ "", /* pad - number starts with 1 */
1422  /* 1 */ "name",
1423  /* 2 */ "description",
1424  /* 3 */ "image",
1425  /* 4 */ "artist",
1426  /* 5 */ "art_subject",
1427  /* 6 */ "art_form",
1428  /* 7 */ "art_genre",
1429  /* 8 */ "media",
1430  /* 9 */ "support",
1431  /* 10 */ "period_of_movement",
1432  /* 11 */ "locations",
1433  /* 12 */ "date_begun",
1434  /* 13 */ "date_completed",
1435  /* 14 */ "owner",
1436  /* 15 */ "height",
1437  /* 16 */ "width",
1438  /* 17 */ "depth",
1439  /* 18 */ "freebase_url",
1440  /* 19 */ "wikipedia_url",
1441  /* 20 */ "dimensions",
1442  /* 21 */ "name",
1443  /* 22 */ "preferred_role",
1444  /* 23 */ "roles",
1445  /* 24 */ "preferred_nationality",
1446  /* 25 */ "nationalities",
1447  /* 26 */ "date_of_birth",
1448  /* 27 */ "place_of_birth",
1449  /* 28 */ "date_of_death",
1450  /* 29 */ "place_of_death",
1451  /* 30 */ "gender",
1452  /* 31 */ "male",
1453  /* 32 */ "female",
1454  /* 33 */ "note",
1455  /* 34 */ "name",
1456  /* 35 */ "geographical location",
1457  /* 36 */ "feature_code",
1458  /* 37 */ "feature_type",
1459  /* 38 */ "population",
1460  /* 39 */ "elevation",
1461  /* 40 */ "preferred_role",
1462  /* 41 */ "roles",
1463  /* 42 */ "person",
1464  /* 43 */ "corporation",
1465  /* 44 */ "Art/Artwork",
1466  /* 45 */ "location",
1467  /* 46 */ "url",
1468  /* 47 */ "event",
1469  /* 48 */ "name",
1470  /* 49 */ "start_date",
1471  /* 50 */ "end_date",
1472  /* 51 */ "notable_types",
1473  /* 53 */ "Art/Art_form",
1474  /* 52 */ "name",
1475  /* 54 */ "Art/Art_medium",
1476  /* 55 */ "name",
1477  /* 56 */ "Art/Art_period_movement",
1478  /* 57 */ "name",
1479  /* 58 */ "Art/Art_genre",
1480  /* 59 */ "name",
1481  /* 60 */ "country",
1482  /* 61 */ "name",
1483  /* 62 */ "short_name",
1484  /* 63 */ "adjectival_form",
1485  /* 64 */ "date",
1486  /* 65 */ "date",
1487  /* 66 */ "interval",
1488  /* 67 */ "start_date",
1489  /* 68 */ "end_date",
1490  /* 69 */ "interval",
1491  /* 70 */ "nationality",
1492  /* 71 */ "nationality",
1493  /* 72 */ "state_name",
1494  /* 73 */ "atiases",
1495  /* 74 */ "Type_of_museum",
1496  /* 75 */ "established",
1497  /* 76 */ "director",
1498  /* 77 */ "visitors",
1499  /* 78 */ "city",
1500  /* 79 */ "postal_code",
1501  /* 80 */ "state_region",
1502  /* 81 */ "street_address",
1503  /* 82 */ "dbpedia_url",
1504  /* 83 */ "settlement_type",
1505  /* 84 */ "time_zone",
1506  /* 85 */ "influenced",
1507  /* 86 */ "influenced_by",
1508  /* 87 */ "influences",
1509  /* 88 */ "places_lift",
1510  /* 89 */ "training",
1511  /* 90 */ "movement",
1512  /* 91 */ "museum",
1513  /* 92 */ "museum",
1514  /* 93 */ "coreference_to_",
1515  /* 94 */ "activity",
1516  /* 95 */ "activity",
1517  /* 96 */ "visual_artist",
1518  /* 97 */ "Art/Visual_artist",
1519  /* 98 */ "Person",
1520  /* 99 */ "Corporation",
1521  /* 100 */ "Museum",
1522  /* 101 */ "location",
1523  /* 102 */ "Artist",
1524  /* 103 */ "name",
1525  /* 104 */ "places_lived",
1526  /* 105 */ "profession",
1527  /* 106 */ "nationality",
1528  /* 107 */ "country",
1529  /* 108 */ "uri_of_entity",
1530  /* 109 */ "date_from",
1531  /* 110 */ "date_to",
1532  /* 111 */ "display_term",
1533  /* 112 */ "alias",
1534  /* 113 */ "preferred_term",
1535  /* 114 */ "other_terms",
1536  /* 115 */ "other_roles",
1537  /* 116 */ "other_nationalities",
1538  /* 117 */ "alternative_names",
1539  /* 118 */ "feature_type_description",
1540  /* 119 */ "timezone",
1541  /* 120 */ "painting_alignment",
1542  /* 121 */ "state_province_region",
1543  /* 122 */ "country_name",
1544  /* 123 */ "ulan_id",
1545  /* 124 */ "place_lived",
1546  /* 125 */ "freebase_image",
1547  /* 126 */ "other_term",
1548  /* 127 */ "other_role",
1549  /* 128 */ "other_nationality",
1550  /* 129 */ "alternative_name",
1551  /* 130 */ "notable_type",
1552  /* 131 */ "image",
1553  /* 132 */ "Mythology",
1554  /* 133 */ "mythology",
1555  /* 134 */ "latitude",
1556  /* 135 */ "longitude",
1557  /* 136 */ "disambiguation"
1558  ));
1559 
1560  /**
1561  * Map for reliable translating of type names from SEC API to numbers of KB strings with paths
1562  */
1563  public static final HashMap<String, Integer> TYPE_PATH_NUMBERS = new HashMap<String, Integer>() {{
1564  put("artwork", KB_ARTWORK_TYPE_PATH);
1565  put("visual_artist", KB_VISUAL_ARTIST_TYPE_PATH);
1566  put("person", KB_PERSON_TYPE_PATH);
1567  put("corporation", KB_CORPORATION_TYPE_PATH);
1568  put("museum", KB_MUSEUM_TYPE_PATH);
1569  put("museums", KB_MUSEUM_TYPE_PATH); // fix for available KB
1570  put("event", KB_EVENT_TYPE_PATH);
1571  put("art_form", KB_AF_TYPE_PATH);
1572  put("art_genre", KB_AG_TYPE_PATH);
1573  put("visual_art_genre", KB_AG_TYPE_PATH);
1574  put("art_medium", KB_AM_TYPE_PATH);
1575  put("visual_art_medium", KB_AM_TYPE_PATH);
1576  put("art_period_movement", KB_APM_TYPE_PATH);
1577  put("country", KB_COUNTRY_TYPE_PATH);
1578  put("nationality", KB_NATIONALITY_TYPE_PATH);
1579  put("location", KB_LOCATION_TYPE_PATH);
1580  put("mythology", KB_MYTHOLOGY_TYPE_PATH);
1581  put("activity", ACTIVITY_TYPE_PATH);
1582  put("date", DATE_TYPE_PATH);
1583  put("interval", INTERVAL_TYPE_PATH);
1584  }};
1585 
1586  /**
1587  * Gets localised string for KB
1588  *
1589  * @param langNum Number of language
1590  * @param stringNum Number of string
1591  * @return REturns localised string for KB
1592  */
1593  public static String getKBStr(int langNum, int stringNum) {
1594  switch (langNum) {
1595  case LANGUAGE_ENG:
1596  return KB_STRINGS_EN[stringNum];
1597  case LANGUAGE_CZE:
1598  return KB_STRINGS_CS[stringNum];
1599  }
1600  return KB_STRINGS_EN[stringNum]; // default
1601  } // getKBStr()
1602 
1603 } // public class Localisation
static final ArrayList< String > KB_STRINGS_INTERNAL
static final ArrayList< String > LANGUAGE_CODES
static String getWarningMessage2(int langNum, int warningNum)
static String getUnknownWarningMessage2(int langNum)
static String getWarningCode(int warningNum)
static String getErrMessage2(int langNum, int errorNum)
static String getUnknownWarningMessage(int langNum)
static String getErrMessage(int langNum, int errorNum)
static String getUnknownErrMessage2(int langNum)
static String getUnknownErrMessage(int langNum)
static String getWarningMessage(int langNum, int warningNum)
static final HashMap< String, Integer > TYPE_PATH_NUMBERS
static String getExceptionMessage(int langNum, int excNum)
Class responsible for localised strings.
static String getKBStr(int langNum, int stringNum)