Révision 1224

tmp/org.txm.core/src/java/org/txm/core/messages/messages.properties (revision 1224)
1 1

  
2
AbsoluteFrequency_1 = Absolute Frequency
3

  
4
AbstractCqiClient_2 = No error.
5

  
6
ApplicationWorkbenchAdvisor_13 = ** Could not create TXMHOME directory: {0}
2
ApplicationWorkbenchAdvisor_13 = ** Could not create TXMHOME directory: {0}.
7 3
ApplicationWorkbenchAdvisor_14 = \ evaluating extension:
8 4
ApplicationWorkbenchAdvisor_15 = Loading extensions...
9
ApplicationWorkbenchAdvisor_39 = Missing folder in TXM install dir: {0}
10
ApplicationWorkbenchAdvisor_40 = Failed to copy TXM files from TXMINSTALL DIR to TXMHOME: {0}
5
ApplicationWorkbenchAdvisor_40 = Failed to copy TXM files from TXMINSTALL DIR to TXMHOME: {0}.
11 6
ApplicationWorkbenchAdvisor_6  = Exception:
12 7

  
13
Base_0  = Binary directory 
14
Base_22 = 'corpora' element missing from 'base' element
15
Base_3  = \ does not exist?
16
Base_4  = Parent directory 
17
Base_5  = \ does not exist?
18
Base_6  = Error: linkGrp/link/@target malformed: 
8
Base_0 = Binary directory 
9
Base_3 = \ does not exist?
10
Base_4 = Parent directory 
11
Base_5 = \ does not exist?
12
Base_6 = Error: linkGrp/link/@target malformed: 
19 13

  
20
BuildCwbEncodeArgs_0 = The file ''{0}'' cannot be found.
21

  
22
CONNECTING_CQI_CLIENT = Connecting to the Search Engine with the following parameters: {0}:{1}@{2}{3}
23

  
24
CQI_CLIENT_CONNECTED = Connected to the Search Engine.
25

  
26
CREATING_PART      = Part {0} created with query {1}
27
CREATING_SUBCORPUS = Subcorpus {1} created from corpus {0} with the query {2}
28

  
29 14
CatalogManager_0 = ** Manager Error during initialization: 
30 15
CatalogManager_1 = \ does not exist.
31 16

  
......
60 45
Corpus_5        = No values given
61 46
Corpus_8        = \ in \	\	\	\	\	\	\	\	
62 47

  
63
CqiClient_0  = Get Last CQP error
64
CqiClient_32 = Search Engine launched...
65
CqiClient_33 = ** failed to connect to Search Engine.
66

  
67
CwbEncode_0  = The directory does not exists: 
68
CwbEncode_21 = The "binary" directory does not exists: 
69
CwbEncode_23 = The "registry" directory does not exists:  
70
CwbEncode_25 = The "corpora" directory does not exists: 
71
CwbEncode_27 = Processing corpus...
72
CwbEncode_29 = The "data" directory does not exists: 
73
CwbEncode_32 = Fixing registry file {0} with {1}
74

  
75
CwbProcess_1 = Starting process with command: 
76
CwbProcess_3 = Stopping process: 
77
CwbProcess_4 = Process stoped: 
78
CwbProcess_5 = ** Can't find CQP location : 
79

  
80
DROP_QUERYRESULT = Deleting query results {0}
81
DROP_SUBCORPUS   = Deleting subcorpus {0}
82

  
83
END_SUBCORPUS_SIZE = Size of subcorpus {0} ({1}) computed in {2} ms
84

  
85 48
Error_CONNECTION_FAILED = ** Error : while connection to search engine, with the following parameters: 
86 49

  
87 50
FMAX_2 = , fmax 
......
99 62
GroovyImportScriptRunner_1 = > beginning execution of 
100 63
GroovyImportScriptRunner_3 = > end of execution 
101 64

  
102
LEXICON = Lexicon 
103

  
104 65
MainCorpus_0 = \ is not a valid CQP ID for a corpus. It must be in uppercase characters.
105
MainCorpus_2 = Delete binary directory: 
106 66

  
107
MemCqiClient_0  = Internal CQi error: 
108
MemCqiClient_1  = CL error: 
109
MemCqiClient_10 = Unknown CQP codes: b1 
110
MemCqiClient_11 = Query ERROR
111
MemCqiClient_2  = CQP error: 
112
MemCqiClient_3  = Unknown CQP error: b1 
113
MemCqiClient_5  = Unknown CQP cqi error: b1 
114
MemCqiClient_7  = Unknown CQP code: b1 
115
MemCqiClient_9  = b2 
116

  
117
NetCqiClient_1  = getLastCQiError: 
118
NetCqiClient_3  = getLastCQPError: 
119
NetCqiClient_5  = Could not reconnect to server: 
120
NetCqiClient_97 = client.dumpSubCorpus(subcorpus, NetCqiClient.CQI_CONST_FIELD_MATCH, 1, 2) : 
121

  
122
NetCqiServer_0 = ** cqpserver stdout: 
123
NetCqiServer_1 = ** cqpserver stderr: 
124

  
125 67
Page_3 = ** Malformed URL, file 
126 68

  
127 69
PartitionFocus_1 = The focus cannot be null or empty.
......
130 72
PartitionFocus_4 = ** Unknown partition name.
131 73

  
132 74
Partition_18     = Failed to get last CQP error: 
133
Partition_21     = Warning: the partition could not be saved in workspace: 
134 75
Partition_9      = ** Failed to create part: 
135 76

  
136
PatchCwbRegistry_13 = Source registry does not exists: 
137
PatchCwbRegistry_16 = Can't find registry file
138
PatchCwbRegistry_2  = Updating 
139
PatchCwbRegistry_23 = encoding to 
140
PatchCwbRegistry_27 = data directory 
141
PatchCwbRegistry_28 = Could not patch registry
142
PatchCwbRegistry_29 = could not be found in registry file 
143
PatchCwbRegistry_3  = ** The target corpus doesn't exist
144
PatchCwbRegistry_34 = Updating 
145
PatchCwbRegistry_35 = language to 
146
PatchCwbRegistry_4  = Add Alignment attribute to corpus 
147
PatchCwbRegistry_5  = registry: 
148

  
149
Project_0  = Use directory name to build corpus declaration
150
Project_1  = The corpus declaration file is not found too: 
151
Project_10 = Project.load: workspace XML file error: 
152
Project_11 = Failed to load base parameters from file: 
153
Project_14 = Error: no version in import.xml file
154
Project_15 = Error: the corpus version is too old to be loaded.
155
Project_17 = Error: skipping the loading of corpus: 
156
Project_18 = PARAMS: 
157
Project_2  = Warning in corpus definition: no name attribute defined in its XML file : {0}
158
Project_26 = ** Error: ''{0}'' corpus directory is not conformant to TXM corpus binary format: corpus skipped."
77
Project_11     = Failed to load base parameters from file: 
78
Project_17     = Error: skipping the loading of corpus: 
79
Project_18     = PARAMS: 
80
Project_26     = ** Error: ''{0}'' corpus directory is not conformant to TXM corpus binary format: corpus skipped."
159 81
Project_26_079 = ** Error: ''{0}'' corpus directory is not conformant to TXM 0.7.9 corpus binary format: corpus skipped."  
160
Project_28 = TXM needs folders: 
161
Project_31 = and file 
162
Project_6  = Failed to load corpus with params: 
163
Project_7  = Failed to load base with parameters file: 
164
Project_8  = Can't read corpus parameters file: 
82
Project_28     = TXM needs folders: 
83
Project_31     = and file 
165 84

  
166 85
QUERY = Query on {0} : {1} <- {2}
167 86

  
......
172 91

  
173 92
QueryResult_0 = \ is not a valid CQP Id for a subcorpus. It must be an uppercase characters followed by lowercase characters.
174 93

  
175
READING_2D_INT_ARRAY_FROM_CQI_SERVER = Reading an integer table from the CQi server
176
READING_BOOLEAN_FROM_CQI_SERVER      = Reading boolean from the CQi server
177
READING_HEADER_FROM_CQI_SERVER       = Reading header from the CQi server
178
READING_INTEGER_FROM_CQI_SERVER      = Reading integer from the CQi server
179
READING_INT_ARRAY_FROM_CQI_SERVER    = Reading integer array from the CQi server
180
READING_STRING_ARRAY_FROM_CQI_SERVER = Reading string array from the CQi server
181
READING_STRING_FROM_CQI_SERVER       = Reading string from the CQi server
182

  
183
READ_2D_INT_ARRAY_FROM_CQI_SERVER    = Read string 2D integer from the CQi server: {0}
184
READ_BOOLEAN_FROM_CQI_SERVER         = Read boolean from the CQi server: {0}
185
READ_BYTE_FROM_CQI_SERVER            = Read byte from the CQi server: {0}
186
READ_INTEGER_FROM_CQI_SERVER         = Read integer from the CQi server: {0}
187
READ_INT_ARRAY_FROM_CQI_SERVER       = Read integer array from the CQi server: {0}
188
READ_STRING_ARRAY_FROM_CQI_SERVER    = Read string array from the CQi server: {0}
189
READ_STRING_FROM_CQI_SERVER          = Read string from the CQi server: {0}
190

  
191
RelativeFrequency_3 = Relative Frequency %
192

  
193
SERVER_STOPED = Search Engine stopped
194

  
195
STOPING_SERVER = Stopping the Search Engine
196

  
197
SUBCORPUS_CREATED = Subcorpus {0} created in {1} ms
198
SUBCORPUS_LEXICON = Computing the lexicon of subcorpus {0}
199
SUBCORPUS_SIZE    = Computing the size of subcorpus {0}
200

  
201 94
Selection_26 = Failed to get sup values of 
202 95
Selection_5  = Text metadata: 
203 96
Selection_6  = Selection error: the corpus 
......
207 100

  
208 101
StructuralUnitProperty_0 = ** Failed to access structural property values 
209 102

  
210
Subcorpus_2 = Warning: the subcorpus could not be saved in workspace: 
211
Subcorpus_3 = \ is not a valid CQP ID for a subcorpus. It must be an uppercase character followed by lowercase characters.
212

  
213
Summary_13 = Error : text 
214
Summary_14 = is null
215
Summary_15 = Error : edition default is null
216
Summary_16 = Error: textids
217
Summary_17 = and wordids
218

  
219
T = t 
220

  
221 103
TSCmd_30 = Query was: 
222 104
TSCmd_31 = matches found.
223 105

  
......
226 108

  
227 109
TSCorpus_0        = Couldn't read corpus: 
228 110

  
229
TSResult_0  = Number of match 
230
TSResult_13 = Cannot found tigerXml file: 
231
TSResult_14 = Ts: conc: Failed to create xml file
232
TSResult_18 = Starting injection
233
TSResult_2  = Number of sub match 
234
TSResult_7  = Can't find 
235
TSResult_8  = in TS export methods 
111
TSResult_0 = Number of match 
112
TSResult_2 = Number of sub match 
236 113

  
237 114
TigerXmlIndexing_2 = ERROR: !exists
238 115
TigerXmlIndexing_3 = ERROR: !read
......
258 135
Toolbox_37                        = kill `ps aux | grep cqpserver | awk '/-P 
259 136
Toolbox_38                        = / {print $2}'`
260 137
Toolbox_39                        = Failed to exec '
261
Toolbox_4                         = With parameters: 
262 138
Toolbox_40                        = ': 
263 139
Toolbox_connected_to_corpus_sever = connected
264
Toolbox_workspace_init            = Loading subcorpora and partitions... 
265 140
Toolbox_workspace_init_failed     = ** Error during workspace initialization:
266 141
Toolbox_wrong_port                = ** Error : the connexion to the server failed: wrong port format
267 142

  
268
TxmObject_2 = Failed to save attribute 
269

  
270 143
V = , v 
271 144

  
272
VMAX_1 = Vmax
273

  
274 145
ValidateXml_0 = XmlValidation: 
275 146
ValidateXml_1 = is a directory
276 147
ValidateXml_2 = does not exists
277 148
ValidateXml_3 = is not read-able
278 149

  
279
Workspace_2 = ** Failed to load workspace: 
280
Workspace_3 = Project: 
281
Workspace_4 = \	Base: 
282
Workspace_6 = ** Failed to create empty workspace file: 
283
Workspace_8 = Workspace XML file is mal formed. We need to recreate one...
150
common_absoluteFrequency         = Absolute Frequency
151
common_cols                      = Cols
152
common_delete                    = Delete
153
common_description               = Description
154
common_done                      = Done.
155
common_fMax                      = Fmax
156
common_fMin                      = Fmin
157
common_frequency                 = Frequency
158
common_lowestFrequency           = Lowest frequency
159
common_mode                      = Mode
160
common_numberOfLines             = Number of lines
161
common_ok                        = OK
162
common_pleaseWait                = Please wait...
163
common_properties                = Properties:
164
common_property                  = Property:
165
common_queries                   = Queries:
166
common_query                     = Query 
167
common_reference                 = Reference
168
common_rows                      = Rows
169
common_structuralUnit            = Structural Unit: 
170
common_structuralUnitAndProperty = Structural unit and property
171
common_structure                 = Structure
172
common_t                         = t 
173
common_thresholds                = Thresholds
174
common_units                     = Units
175
common_vMax                      = Vmax
284 176

  
285
common_cols            = Cols
286
common_delete          = Delete
287
common_description     = Description
288
common_done            = Done.
289
common_fMax            = Fmax
290
common_fMin            = Fmin
291
common_frequency       = Frequency
292
common_lowestFrequency = Lowest frequency
293
common_mode            = Mode
294
common_numberOfLines   = Number of lines
295
common_ok              = OK
296
common_pleaseWait      = Please wait...
297
common_properties      = Properties:
298
common_property        = Property:
299
common_queries         = Queries:
300
common_query           = Query 
301
common_reference       = Reference
302
common_rows            = Rows
303
common_structuralUnit  = Structural Unit: 
304
common_structuralUnitAndProperty=Structural unit and property
305
common_structure       = Structure
306
common_thresholds      = Thresholds
307
common_units           = Units
177
error_error                   = ** Error: {0}.
178
error_error2                  = Error
179
error_errorWhileSortingResult = Error while sorting result.
308 180

  
309
error_error  = ** Error: {0}.
310
error_error2 = Error
311

  
312
info_creatingNewPartition  = Creating new partion of corpus {0}: {1}.
313
info_deletingPartition     = Deleting partition {0}.
314
info_partCreatedInXMs      = Part {0} created in {1} ms
315
info_partitionCreatedInXMs = Partition {0} created in {1} ms
181
info_connected = Connected.
tmp/org.txm.core/src/java/org/txm/core/messages/messages_ru.properties (revision 1224)
1 1

  
2 2
ApplicationWorkbenchAdvisor_13 = ** Не удалось создать папку TXMHOME : {0}
3
ApplicationWorkbenchAdvisor_39 = Не хватает папки в директории установки TXM : {0}
4 3
ApplicationWorkbenchAdvisor_40 = ** Не удалось скопировать файлы из папки TXMINSTALL в TXMHOME: {0}
5 4

  
6 5
common_cols            = 
......
21 20
common_thresholds      = Пороги
22 21
common_units           = Единицы
23 22

  
24
error_error2 = 
23
error_error                   = ** Ошибка: {0}
24
error_error2                  = Ошибка
25
error_errorWhileSortingResult = 
26

  
27
info_connected = 
tmp/org.txm.core/src/java/org/txm/core/messages/TXMCoreMessages.java (revision 1224)
36 36
	public static String common_reference;
37 37
	public static String common_rows;
38 38
	public static String common_structuralUnit;
39

  
40

  
41 39
	public static String common_structuralUnitAndProperty;
42 40
	public static String common_structure;
43 41
	public static String common_thresholds;
44 42
	public static String common_units;
43
	public static String common_t;
44
	public static String common_vMax;
45 45

  
46
	
47
	
46 48
	public static String error_error2;
47 49
	public static String error_error;
50
	public static String error_errorWhileSortingResult;
51

  
52

  
48 53
	
49
	public static String info_deletingPartition;
50
	public static String info_partitionCreatedInXMs;
54
	public static String info_connected;
51 55

  
52 56
	
53 57
	public static String ApplicationWorkbenchAdvisor_13;
54 58
	public static String ApplicationWorkbenchAdvisor_14;
55 59
	public static String ApplicationWorkbenchAdvisor_15;
56
	public static String ApplicationWorkbenchAdvisor_39;
57 60
	public static String ApplicationWorkbenchAdvisor_40;
58 61
	public static String ApplicationWorkbenchAdvisor_6;
59 62
	public static String FMAX_2;
60 63
	public static String FMIN_2;
61
	public static String T;
62 64
	public static String V;
63
	public static String VMAX_1;
64 65

  
65 66
	
66
	public static String AbsoluteFrequency_1;
67
	public static String AbstractCqiClient_2;
67

  
68
	
69
	public static String common_absoluteFrequency;
70

  
68 71
	public static String Base_0;
69
	public static String Base_22;
70 72
	public static String Base_3;
71 73
	public static String Base_4;
72 74
	public static String Base_5;
73 75
	public static String Base_6;
74
	public static String BuildCwbEncodeArgs_0;
75 76
	public static String Catalog_0;
76 77
	public static String CatalogManager_0;
77 78
	public static String CatalogManager_1;
78
	public static String CONNECTING_CQI_CLIENT;
79 79
	public static String Contrasts_0;
80 80
	public static String Convert5To6_10;
81 81
	public static String Convert5To6_11;
......
101 101
	public static String Corpus_8;
102 102
	public static String CorpusManager_0;
103 103
	public static String CorpusManager_1;
104
	public static String CQI_CLIENT_CONNECTED;
105
	public static String CqiClient_0;
106
	public static String CqiClient_32;
107
	public static String CqiClient_33;
108
	public static String CREATING_PART;
109
	public static String CREATING_SUBCORPUS;
110
	public static String CwbEncode_0;
111
	public static String CwbEncode_21;
112
	public static String CwbEncode_23;
113
	public static String CwbEncode_25;
114
	public static String CwbEncode_27;
115
	public static String CwbEncode_29;
116
	public static String CwbEncode_32;
117
	public static String CwbProcess_1;
118
	public static String CwbProcess_3;
119
	public static String CwbProcess_4;
120
	public static String CwbProcess_5;
121
	public static String DROP_QUERYRESULT;
122
	public static String DROP_SUBCORPUS;
123
	public static String END_SUBCORPUS_SIZE;
104

  
124 105
	public static String Error_CONNECTION_FAILED;
125 106
	public static String Filter_7;
126 107
	public static String FilterManager_0;
......
129 110
	public static String GroovyImportScriptRunner_0;
130 111
	public static String GroovyImportScriptRunner_1;
131 112
	public static String GroovyImportScriptRunner_3;
132
	public static String LEXICON;
133 113
	public static String MainCorpus_0;
134
	public static String MainCorpus_2;
135
	public static String MemCqiClient_0;
136
	public static String MemCqiClient_10;
137
	public static String MemCqiClient_11;
138
	public static String MemCqiClient_1;
139
	public static String MemCqiClient_2;
140
	public static String MemCqiClient_3;
141
	public static String MemCqiClient_5;
142
	public static String MemCqiClient_7;
143
	public static String MemCqiClient_9;
144
	public static String NetCqiClient_1;
145
	public static String NetCqiClient_3;
146
	public static String NetCqiClient_5;
147
	public static String NetCqiClient_97;
148
	public static String NetCqiServer_0;
149
	public static String NetCqiServer_1;
150
	public static String info_creatingNewPartition;
114
	
115
	
151 116
	public static String Page_3;
152
	public static String info_partCreatedInXMs;
153 117
	public static String Partition_18;
154
	public static String Partition_21;
155 118
	public static String Partition_9;
156 119
	public static String PartitionFocus_1;
157 120
	public static String PartitionFocus_2;
158 121
	public static String PartitionFocus_3;
159 122
	public static String PartitionFocus_4;
160
	public static String PatchCwbRegistry_13;
161
	public static String PatchCwbRegistry_16;
162
	public static String PatchCwbRegistry_23;
163
	public static String PatchCwbRegistry_27;
164
	public static String PatchCwbRegistry_28;
165
	public static String PatchCwbRegistry_29;
166
	public static String PatchCwbRegistry_2;
167
	public static String PatchCwbRegistry_34;
168
	public static String PatchCwbRegistry_35;
169
	public static String PatchCwbRegistry_3;
170
	public static String PatchCwbRegistry_4;
171
	public static String PatchCwbRegistry_5;
172
	public static String Project_0;
173
	public static String Project_10;
174 123
	public static String Project_11;
175
	public static String Project_14;
176
	public static String Project_15;
177 124
	public static String Project_17;
178 125
	public static String Project_18;
179
	public static String Project_1;
180 126
	public static String Project_26;
181 127
	public static String Project_26_079;
182 128
	public static String Project_28;
183
	public static String Project_2;
184 129
	public static String Project_31;
185
	public static String Project_6;
186
	public static String Project_7;
187
	public static String Project_8;
188 130
	public static String QUERY;
189 131
	public static String QueryIndex_2;
190 132
	public static String QueryIndex_3;
191 133
	public static String QUERYING_PARTITION;
192 134
	public static String QueryResult_0;
193
	public static String READ_2D_INT_ARRAY_FROM_CQI_SERVER;
194
	public static String READ_BOOLEAN_FROM_CQI_SERVER;
195
	public static String READ_BYTE_FROM_CQI_SERVER;
196
	public static String READ_INT_ARRAY_FROM_CQI_SERVER;
197
	public static String READ_INTEGER_FROM_CQI_SERVER;
198
	public static String READ_STRING_ARRAY_FROM_CQI_SERVER;
199
	public static String READ_STRING_FROM_CQI_SERVER;
200
	public static String READING_2D_INT_ARRAY_FROM_CQI_SERVER;
201
	public static String READING_BOOLEAN_FROM_CQI_SERVER;
202
	public static String READING_HEADER_FROM_CQI_SERVER;
203
	public static String READING_INT_ARRAY_FROM_CQI_SERVER;
204
	public static String READING_INTEGER_FROM_CQI_SERVER;
205
	public static String READING_STRING_ARRAY_FROM_CQI_SERVER;
206
	public static String READING_STRING_FROM_CQI_SERVER;
207
	public static String RelativeFrequency_3;
208 135
	public static String Selection_26;
209 136
	public static String Selection_5;
210 137
	public static String Selection_6;
211 138
	public static String Selection_7;
212 139
	public static String Selection_8;
213 140
	public static String Selection_9;
214
	public static String SERVER_STOPED;
215
	public static String STOPING_SERVER;
216 141
	public static String StructuralUnitProperty_0;
217
	public static String Subcorpus_2;
218
	public static String Subcorpus_3;
219
	public static String SUBCORPUS_CREATED;
220
	public static String SUBCORPUS_LEXICON;
221
	public static String SUBCORPUS_SIZE;
222
	public static String Summary_13;
223
	public static String Summary_14;
224
	public static String Summary_15;
225
	public static String Summary_16;
226
	public static String Summary_17;
227 142
	public static String TigerXmlIndexing_2;
228 143
	public static String TigerXmlIndexing_3;
229 144
	public static String TigerXmlIndexing_6;
......
248 163
	public static String Toolbox_38;
249 164
	public static String Toolbox_39;
250 165
	public static String Toolbox_40;
251
	public static String Toolbox_4;
252 166
	public static String Toolbox_connected_to_corpus_sever;
253
	public static String Toolbox_workspace_init;
254 167
	public static String Toolbox_workspace_init_failed;
255 168
	public static String Toolbox_wrong_port;
256 169
	public static String TSCmd_30;
......
259 172
	public static String TSCorpusManager_0;
260 173
	public static String TSCorpusManager_1;
261 174
	public static String TSResult_0;
262
	public static String TSResult_13;
263
	public static String TSResult_14;
264
	public static String TSResult_18;
265 175
	public static String TSResult_2;
266
	public static String TSResult_7;
267
	public static String TSResult_8;
268
	public static String TxmObject_2;
269 176
	public static String ValidateXml_0;
270 177
	public static String ValidateXml_1;
271 178
	public static String ValidateXml_2;
272 179
	public static String ValidateXml_3;
273
	public static String Workspace_2;
274
	public static String Workspace_3;
275
	public static String Workspace_4;
276
	public static String Workspace_6;
277
	public static String Workspace_8;
278 180
	
279 181
	
182
	/**
183
	 * Bind the given message's substitution locations with the given string values.
184
	 * @param message
185
	 * @param binding1
186
	 * @param binding2
187
	 * @param binding3
188
	 * @return
189
	 */
190
	// FIXME: do a method that takes vargs instead of these 2 methods
191
	public static String bind(String message, Object binding1, Object binding2, Object binding3) {
192
		return bind(message, new Object[] {binding1, binding2, binding3});
193
	}
280 194
	
195
	/**
196
	 * Bind the given message's substitution locations with the given string values.
197
	 * @param message
198
	 * @param binding1
199
	 * @param binding2
200
	 * @param binding3
201
	 * @param binding4
202
	 * @return
203
	 */
204
	// FIXME: do a method that takes vargs instead of these 2 methods
205
	public static String bind(String message, Object binding1, Object binding2, Object binding3, Object binding4) {
206
		return bind(message, new Object[] {binding1, binding2, binding3, binding4});
207
	}
208
	
209
	
281 210
	static {
282 211
		// initialize resource bundle
283 212
		Utf8NLS.initializeMessages(BUNDLE_NAME, TXMCoreMessages.class);
tmp/org.txm.core/src/java/org/txm/core/messages/messages_fr.properties (revision 1224)
1 1

  
2
AbsoluteFrequency_1 = Fréquence absolue
2
ApplicationWorkbenchAdvisor_13 = ** Échec de la création du dossier TXMHOME : {0}.
3
ApplicationWorkbenchAdvisor_40 = ** Échec de la copie des fichiers TXM du dossier TXMINSTALL vers TXMHOME : {0}.
3 4

  
4
AbstractCqiClient_2 = Pas d'erreur à notifier.
5
Base_0 = Dossier binaire 
6
Base_3 = \ n'existe pas ?
7
Base_4 = Le dossier parent 
8
Base_5 = \ n'existe pas ?
9
Base_6 = Erreur: linkGrp/link/@target mal formé : 
5 10

  
6
ApplicationWorkbenchAdvisor_13 = ** Échec de la création du dossier TXMHOME : {0}
7
ApplicationWorkbenchAdvisor_39 = Dossier manquant dans le dossier d''installation de TXM : {0}
8
ApplicationWorkbenchAdvisor_40 = ** Échec de la copie des fichiers TXM du dossier TXMINSTALL vers TXMHOME : {0}
9

  
10
Base_0  = Dossier binaire 
11
Base_22 = L'élément 'corpora' est absent de l'élément 'base'
12
Base_3  = \ n'existe pas ?
13
Base_4  = Le dossier parent 
14
Base_5  = \ n'existe pas ?
15
Base_6  = Erreur: linkGrp/link/@target mal formé : 
16

  
17
BuildCwbEncodeArgs_0 = Le fichier ''{0}'' est introuvable.
18

  
19
CONNECTING_CQI_CLIENT = Connexion au moteur de recherche avec les paramètres suivants : {0}:{1}@{2}{3}...
20

  
21
CQI_CLIENT_CONNECTED = Connexion au moteur de recherche établie.
22

  
23
CREATING_PART      = Partie {0} créée à partir de la requête {1}
24
CREATING_SUBCORPUS = Création du sous-corpus {1} à partir du corpus {0} et de la requête {2}
25

  
26 11
CatalogManager_0 = ** Erreur du gestionnaire de catalogue : initialisation 
27 12
CatalogManager_1 = \ n'existe pas.
28 13

  
......
57 42
Corpus_5        = Pas de valeur donnée
58 43
Corpus_8        = \ dans
59 44

  
60
CqiClient_0  = Récupération de la dernière erreur CQP
61
CqiClient_32 = Moteur de recherche lancé...
62
CqiClient_33 = ** La connexion au moteur de recherche a échoué.
63

  
64
CwbEncode_0  = le dossier n'existe pas :
65
CwbEncode_21 = Le dossier "bin" n'existe pas : 
66
CwbEncode_23 = Le dossier "registry" n'existe pas : 
67
CwbEncode_25 = Le dossier "corpora" n'existe pas :
68
CwbEncode_27 = Traitement du corpus 
69
CwbEncode_29 = Le dossier "data" n'existe pas :
70
CwbEncode_32 = Patch le fichier registry {0} avec {1}
71

  
72
CwbProcess_1 = Démarrage avec la ligne de commande : 
73
CwbProcess_3 = Arrêt en cours du processus : 
74
CwbProcess_4 = Processus arrêté : 
75
CwbProcess_5 = ** Echec de localisation de CQP : 
76

  
77
DROP_QUERYRESULT = Suppression du résultat de requête {0}
78
DROP_SUBCORPUS   = Suppression du sous-corpus {0}
79

  
80
END_SUBCORPUS_SIZE = Taille du sous-corpus {0} ({1}) calculée en {2} ms
81

  
82 45
Error_CONNECTION_FAILED = ** Echec de connexion au moteur de recherche avec les paramètres suivants : 
83 46

  
84 47
FilterManager_0 = ** Erreur du gestionnaire de filtre : initialisation 
......
92 55
GroovyImportScriptRunner_1 = > début de l'exécution de 
93 56
GroovyImportScriptRunner_3 = > fin de l'exécution
94 57

  
95
LEXICON = Lexique
96

  
97 58
MainCorpus_0 = \ n'est pas un identifiant de corpus CQP valide. Il doit être en majuscule.
98
MainCorpus_2 = Suppression du dossier de corpus binaire : 
99 59

  
100
MemCqiClient_0  = Erreur interne CQi : 
101
MemCqiClient_1  = Erreur 
102
MemCqiClient_10 = Codes CQP inconnus : b1 
103
MemCqiClient_11 = Erreur de requête
104
MemCqiClient_2  = Attention 
105
MemCqiClient_3  = Erreur CQP inconnue : b1 
106
MemCqiClient_5  = Erreur CQP cqi inconnue : b1 
107
MemCqiClient_7  = Code CQP inconnu : b1 
108
MemCqiClient_9  = b2 
109

  
110
NetCqiClient_1  = Dernière erreur Cqi : 
111
NetCqiClient_3  = Dernière erreur CQP : 
112
NetCqiClient_5  = Echec de la reconnexion auserveur : 
113
NetCqiClient_97 = client.dumpSubCorpus(subcorpus, NetCqiClient.CQI_CONST_FIELD_MATCH, 1, 2) : 
114

  
115
NetCqiServer_0 = ** cqpserver stdout: 
116
NetCqiServer_1 = ** cqpserver stderr: 
117

  
118 60
Page_3 = ** URL mal formée, fichier 
119 61

  
120 62
PartitionFocus_1 = Le focus ne doit pas être vide ou nul.
......
123 65
PartitionFocus_4 = ** Nom de partition inconnu.
124 66

  
125 67
Partition_18     = Erreur lors de la récupération de la dernière erreur CQP : 
126
Partition_21     = Attention : la partition n'a pu être sauvegardée
127 68
Partition_9      = ** Echec de la création de la partie :
128 69

  
129
PatchCwbRegistry_13 = Le fichier registry source n'existe pas
130
PatchCwbRegistry_16 = Le fichier 'registry' est introuvable
131
PatchCwbRegistry_2  = Mise à jour du corpus 
132
PatchCwbRegistry_23 = pour l'encodage 
133
PatchCwbRegistry_27 = dossier 'data'
134
PatchCwbRegistry_28 = Erreur lors de la reécriture du fichier 'registry'
135
PatchCwbRegistry_29 = n'a pu être trouvé dans 
136
PatchCwbRegistry_3  = ** Le corpus cible n'existe pas
137
PatchCwbRegistry_34 = Mise à jour de la langue du corpus 
138
PatchCwbRegistry_35 = à 
139
PatchCwbRegistry_4  = Ajout au corpus 
140
PatchCwbRegistry_5  = de l'attribut d'alignement 
141

  
142
Project_0  = Utiliser le nom de dossier pour générer la déclaration de corpus
143
Project_1  = Le fichier de déclaration de corpus n'a pas été trouvé
144
Project_10 = Project.load: erreur dans le fichier XML du workspace: 
145
Project_11 = Erreur lors  de la récupération des 
146
Project_14 = Erreur : le fichier 'import.xml' ne contient pas de version
147
Project_15 = Erreur : la version du fichier 'import.xml' est trop ancienne pour que le corpus soit chargé
148
Project_17 = Erreur : le corpus ne sera pas chargé
149
Project_18 = Paramètres : 
150
Project_2  = Attention, l''attribut ''name'' du corpus n''est pas défini dans la définition XML du fichier {0}.
151
Project_26 = ** Erreur : le dossier d''entrée n''est pas conforme au format de corpus binaire de TXM :
70
Project_11     = Erreur lors  de la récupération des 
71
Project_17     = Erreur : le corpus ne sera pas chargé
72
Project_18     = Paramètres : 
73
Project_26     = ** Erreur : le dossier d''entrée n''est pas conforme au format de corpus binaire de TXM :
152 74
Project_26_079 = ** Erreur : le dossier d''entrée n''est pas conforme au format de corpus binaire de TXM 0.7.9 :    
153
Project_28 = TXM a besoin des dossiers suivants : 
154
Project_31 = et le fichier
155
Project_6  = Erreur lors du chargement du corpus avec : 
156
Project_7  = Erreur lors du chargement du corpus avec : 
157
Project_8  = Le fichier de paramétrage de corpus est introuvable (ou illisible). : {0}. Le corpus correspondant ne sera pas disponible. 
75
Project_28     = TXM a besoin des dossiers suivants : 
76
Project_31     = et le fichier
158 77

  
159 78
QUERY = Requête sur {0} : {1} <- {2}
160 79

  
......
165 84

  
166 85
QueryResult_0 = \ n'est pas un identifiant de sous-corpus CQP valide. Il doit être en majuscules suivies de caractères minuscules.
167 86

  
168
READING_2D_INT_ARRAY_FROM_CQI_SERVER = Lecture d''un tableau d'entiers du serveur CQi
169
READING_BOOLEAN_FROM_CQI_SERVER      = Lecture d''un booléen du serveur CQi
170
READING_HEADER_FROM_CQI_SERVER       = Lecture d''une entête du serveur CQi
171
READING_INTEGER_FROM_CQI_SERVER      = Lecture d''un entier du serveur CQi
172
READING_INT_ARRAY_FROM_CQI_SERVER    = Lecture d''un tableau d'entiers du serveur CQi
173
READING_STRING_ARRAY_FROM_CQI_SERVER = Lecture d''un tableau de chaines du serveur CQi
174
READING_STRING_FROM_CQI_SERVER       = Lecture d''une chaine du serveur CQi
175

  
176
READ_2D_INT_ARRAY_FROM_CQI_SERVER    = Tableau d''entiers reçu du serveur CQi : {0}
177
READ_BOOLEAN_FROM_CQI_SERVER         = Booléen reçu du serveur CQi : {0}
178
READ_BYTE_FROM_CQI_SERVER            = Octet reçu du serveur CQi : {0}
179
READ_INTEGER_FROM_CQI_SERVER         = Entier reçu du serveur CQi : {0}
180
READ_INT_ARRAY_FROM_CQI_SERVER       = Tableau d''entiers reçu du serveur CQi : {0}
181
READ_STRING_ARRAY_FROM_CQI_SERVER    = Tableau de chaines reçu du serveur CQi : {0}
182
READ_STRING_FROM_CQI_SERVER          = Chaine reçue du serveur CQi : {0}
183

  
184
RelativeFrequency_3 = Fréquence Relative %
185

  
186
SERVER_STOPED = Moteur de recherche arrêté
187

  
188
STOPING_SERVER = Arrêt du moteur de recherche
189

  
190
SUBCORPUS_CREATED = Sous-corpus {0} créé en {1} ms
191
SUBCORPUS_LEXICON = Calcul du lexique du sous-corpus {0}
192
SUBCORPUS_SIZE    = Calcul de la taille du sous-corpus {0}
193

  
194 87
Selection_26 = Echec de la récupération des valeurs de structures de
195 88
Selection_5  = Métadonnées de textes : 
196 89
Selection_6  = Erreur : le corpus
......
200 93

  
201 94
StructuralUnitProperty_0 = ** Echec de lecture des valeurs de la propriété de structure 
202 95

  
203
Subcorpus_2 = Attention : le sous-corpus n'a pu être sauvegardé.
204
Subcorpus_3 = \ n'est pas un identifiant de sous-corpus CQP valide. Il doit être en majuscules suivies de caractères minuscules.
205

  
206
Summary_13 = Erreur : text
207
Summary_14 = a pour valeur  'null'
208
Summary_15 = Erreur : edition a pour valeur 'null'
209
Summary_16 = Erreur : textids
210
Summary_17 = et wordids
211

  
212 96
TSCmd_30 = La requête était : 
213 97
TSCmd_31 = résultats trouvés
214 98

  
......
217 101

  
218 102
TSCorpus_0        = Erreur : le corpus n'a pas les droits de lecture
219 103

  
220
TSResult_0  = Nombre de match
221
TSResult_13 = Erreur : le fichier tigerXML est introuvable : 
222
TSResult_14 = Erreur : la concordance n'a pu être enregistré dans le fichier XML
223
TSResult_18 = Début de l'injection
224
TSResult_2  = Nombre de sous graph
225
TSResult_7  = Erreur : la méthode d'export 
226
TSResult_8  = est introuvable
104
TSResult_0 = Nombre de match
105
TSResult_2 = Nombre de sous graph
227 106

  
228 107
TigerXmlIndexing_2 = Erreur : n'existe pas
229 108
TigerXmlIndexing_3 = Erreur : n'a pas les droits de lecture
......
249 128
Toolbox_37                        = kill `ps aux | grep cqpserver | awk '/-P 
250 129
Toolbox_38                        = / {print $2}'`
251 130
Toolbox_39                        = Echec de l'exécution de '
252
Toolbox_4                         = Avec les paramètres suivants :
253 131
Toolbox_40                        = ' :
254 132
Toolbox_connected_to_corpus_sever = connecté.
255
Toolbox_workspace_init            = Chargement des sous-corpus et des partitions...
256 133
Toolbox_workspace_init_failed     = ** Echec de l'initialisation de l'espace de travail : 
257 134
Toolbox_wrong_port                = ** La connexion au moteur de recherche a échoué : le port fourni en paramètre n'est pas un nombre entier
258 135

  
259
TxmObject_2 = Erreur de la sauvegarde de l'attribut
260

  
261 136
ValidateXml_0 = Validation XML : 
262 137
ValidateXml_1 = est un dossier
263 138
ValidateXml_2 = n'existe pas
264 139
ValidateXml_3 = n'a pas les bon droits de lecture
265 140

  
266
Workspace_2 = ** Echec du chargement de l'espace de travail :
267
Workspace_3 = Projet : 
268
Workspace_4 = \	Base : 
269
Workspace_6 = ** Echec de la création du fichier d'espace de travail : 
270
Workspace_8 = Le fichier XML d'espace de travail est mal formé. Un nouveau doit être regénéré...
271

  
141
common_absoluteFrequency         = Fréquence absolue
272 142
common_cols                      = Colonnes
273 143
common_delete                    = Supprimer
274 144
common_description               = Description
......
289 159
common_rows                      = Lignes
290 160
common_structuralUnitAndProperty = Unité structurelle et propriété
291 161
common_structure                 = Structure
162
common_t                         = t
292 163
common_thresholds                = Seuils
293 164
common_units                     = Unités
294 165

  
295
error_error  = ** Erreur : {0}.
296
error_error2 = Erreur
166
error_error                   = ** Erreur : {0}.
167
error_error2                  = Erreur
168
error_errorWhileSortingResult = Erreur pendant le tri du résultat.
297 169

  
298
info_creatingNewPartition  = Création d''une nouvelle partition du corpus {0} : {1}.
299
info_deletingPartition     = Suppression de la partition {0}.
300
info_partCreatedInXMs      = Partie {0} créée en {1} ms
301
info_partitionCreatedInXMs = Partition {0} créée en {1} ms
170
info_connected = Connecté.
tmp/org.txm.index.rcp/src/org/txm/index/rcp/editors/PartitionIndexEditor.java (revision 1224)
599 599

  
600 600
		lFminInfo.setText(TXMCoreMessages.FMIN_2 + index.getFmin());
601 601
		lFmaxInfo.setText(TXMCoreMessages.FMAX_2 + index.getFmax());
602
		lTInfo.setText(TXMCoreMessages.T + index.getT());
602
		lTInfo.setText(TXMCoreMessages.common_t + index.getT());
603 603
		lVInfo.setText(TXMCoreMessages.V + index.getV());
604 604

  
605 605
		lVInfo.getParent().layout();
tmp/org.txm.index.rcp/src/org/txm/index/rcp/editors/DictionnaryEditor.java (revision 1224)
4 4
import org.eclipse.swt.layout.GridData;
5 5

  
6 6
/**
7
 * extends the index editor to : 
8
 * set the number of property to 1 
9
 * hide the query field
7
 * Extends the index editor to :
8
 * - set the number of property to 1 
9
 * - hide the query field
10 10
 * 
11 11
 *  @author mdecorde.
12 12
 */
......
19 19
		super._createPartControl();
20 20
		
21 21
		this.propertiesSelector.setMaxPropertyNumber(1);
22
		
22 23
		this.queryWidget.setText("[]"); //$NON-NLS-1$
23 24
		this.queryWidget.setEnabled(false);
24 25
		this.queryWidget.setVisible(false);
tmp/org.txm.index.rcp/src/org/txm/index/rcp/editors/IndexEditor.java (revision 1224)
72 72
import org.txm.utils.logger.Log;
73 73

  
74 74
/**
75
 * display an index/lexicon parameters and result.
75
 * Index editor.
76 76
 *
77 77
 * @author mdecorde
78 78
 */
......
509 509

  
510 510
		lFminInfo.setText(TXMCoreMessages.FMIN_2 + index.getFmin());
511 511
		lFmaxInfo.setText(TXMCoreMessages.FMAX_2 + index.getFmax());
512
		lTInfo.setText(TXMCoreMessages.T + index.getT());
512
		lTInfo.setText(TXMCoreMessages.common_t + index.getT());
513 513
		lVInfo.setText(TXMCoreMessages.V + index.getV());
514 514

  
515 515
		lVInfo.getParent().layout();
......
544 544
	}
545 545

  
546 546
	/**
547
	 * Gets the corpus.
547
	 * Gets the corpus of the index.
548 548
	 *
549 549
	 * @return the corpus
550 550
	 */
......
553 553
	}
554 554

  
555 555
	/**
556
	 * Sets the focus.
557
	 *
558
	 * @param query the new focus
556
	 * Gets the query of the query widget.
557
	 * @return
559 558
	 */
560
	public void setFocus(String query) {
561
		this.queryWidget.setText(query);
562
	}
563

  
564 559
	public Query getQuery() {
565 560
		return queryWidget.getQuery();
566 561
	}
tmp/org.txm.progression.rcp/src/org/txm/progression/rcp/messages/ProgressionUIMessages.java (revision 1224)
18 18
	public static String ProgressionEventCallBack_error_missing_default_edition;
19 19
	public static String ProgressionEventCallBack_error_missing_text;
20 20
	
21
	public static String common_ok;
22

  
23 21
	public static String ProgressionPreferencePage_3;
24 22
	public static String ProgressionPreferencePage_6;
25 23
	public static String ProgressionPreferencePage_7;
......
45 43

  
46 44
	public static String ProgressionEditor_select_property_file;
47 45

  
48
	public static String error_error2;
49

  
50 46
	public static String error_theQueryIsAlreadyRepresentedByACurveInTheGraphic;
51 47

  
52
	public static String preferences_multipleLineStrokeStyles;
53
	
54 48
	static {
55 49
		// initializes resource bundle
56 50
		Utf8NLS.initializeMessages(BUNDLE_NAME, ProgressionUIMessages.class);
tmp/org.txm.progression.rcp/src/org/txm/progression/rcp/messages/messages.properties (revision 1224)
1 1

  
2
common_ok=
3 2
ProgressionDialog_1  = Chart type:
4 3
ProgressionDialog_11 = Bandewidth multiplier:
5 4
ProgressionDialog_15 = Repeat same values
......
7 6
ProgressionDialog_2  = cumulative
8 7
ProgressionDialog_3  = density
9 8
ProgressionDialog_7  = Regex:
10
ProgressionEditor_add=Add
11
ProgressionEditor_add_queries_from_file=Add queries from file...
12
ProgressionEditor_no_query=No query - 
13
ProgressionEditor_queries=\ queries - 
14
ProgressionEditor_query=\ query - 
15
ProgressionEditor_select_property_file=Select an UTF-8 property file
16 9

  
10
ProgressionEditor_add                   = Add
11
ProgressionEditor_add_queries_from_file = Add queries from file...
12
ProgressionEditor_no_query              = No query - 
13
ProgressionEditor_queries               = \ queries - 
14
ProgressionEditor_query                 = \ query - 
15
ProgressionEditor_select_property_file  = Select an UTF-8 property file
16

  
17
ProgressionEventCallBack_error                         = Error: 
18
ProgressionEventCallBack_error_missing_default_edition = Default edition is missing.
19
ProgressionEventCallBack_error_missing_text            = Text {0} is missing.
20

  
17 21
ProgressionPreferencePage_3 = Default chart type is cumulative
18 22
ProgressionPreferencePage_6 = Repeat the values of the structure properties
19 23
ProgressionPreferencePage_7 = Bande size multiplier
20 24

  
21
error_error2=
22 25
error_theQueryIsAlreadyRepresentedByACurveInTheGraphic = The query {0} is already represented by a curve in the graphic. Please use another query.
23
preferences_multipleLineStrokeStyles=
24

  
25
ProgressionEventCallBack_error=Error: 
26
ProgressionEventCallBack_error_missing_default_edition=Default edition is missing.
27
ProgressionEventCallBack_error_missing_text=Text {0} is missing.
tmp/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/PatchCwbRegistry.java (revision 1224)
36 36
import java.io.OutputStreamWriter;
37 37

  
38 38
import org.txm.core.messages.TXMCoreMessages;
39
import org.txm.searchengine.cqp.core.messages.CQPSearchEngineCoreMessages;
39 40
import org.txm.utils.logger.Log;
40 41

  
41 42
// TODO: Auto-generated Javadoc
......
122 123
		}
123 124
		corpusEncoding = corpusEncoding.toLowerCase();
124 125

  
125
		Log.info(TXMCoreMessages.PatchCwbRegistry_2 + corpus
126
				+ TXMCoreMessages.PatchCwbRegistry_23 + corpusEncoding);
126
		Log.info(CQPSearchEngineCoreMessages.PatchCwbRegistry_2 + corpus
127
				+ CQPSearchEngineCoreMessages.PatchCwbRegistry_23 + corpusEncoding);
127 128
		String line = reader.readLine();
128 129
		while (line != null) {
129 130
			if (line.startsWith("##:: charset") || line.startsWith("charset")) { //$NON-NLS-1$ //$NON-NLS-2$
......
140 141
	}
141 142
	
142 143
	/**
143
	 * Change the language value.
144
	 * Changes the language value.
144 145
	 *
145 146
	 * @param registryfile the registry file to patch
146 147
	 * @param corpusLanguage the new language value
147 148
	 * @throws IOException Signals that an I/O exception has occurred.
148 149
	 */
149
	public static void patchLanguage(File registryfile, String corpusLanguage)
150
			throws IOException {
150
	public static void patchLanguage(File registryfile, String corpusLanguage)throws IOException {
151
		
151 152
		String corpus = registryfile.getName();
152 153

  
153 154
		// HOME INFO
......
155 156

  
156 157
		String encoding = "UTF-8"; //$NON-NLS-1$
157 158
		//if (OSDetector.isFamilyWindows()) encoding = "ISO-8859-1"; //$NON-NLS-1$
158
		BufferedReader reader = new BufferedReader(new InputStreamReader(
159
				new FileInputStream(registryfile), encoding));
160
		OutputStreamWriter writer = new OutputStreamWriter(
161
				new FileOutputStream(temp), encoding);
159
		BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(registryfile), encoding));
160
		OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(temp), encoding);
162 161

  
163 162
		corpusLanguage = corpusLanguage.toLowerCase();
164
		Log.info(TXMCoreMessages.PatchCwbRegistry_34 + corpus
165
				+ TXMCoreMessages.PatchCwbRegistry_35 + corpusLanguage);
163
		
164
		Log.info(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.PatchCwbRegistry_34, corpus, corpusLanguage));
165
		
166 166
		String line = reader.readLine();
167 167
		while (line != null) {
168 168
			if (line.startsWith("##:: language") || line.startsWith("language")) { //$NON-NLS-1$ //$NON-NLS-2$
......
185 185
	 * @param targetcorpus the aligned corpus
186 186
	 * @throws IOException Signals that an I/O exception has occurred.
187 187
	 */
188
	public static boolean patchAlignment(File registryfile, String targetcorpus)
189
			throws IOException {
188
	public static boolean patchAlignment(File registryfile, String targetcorpus) throws IOException {
189
		
190 190
		targetcorpus = targetcorpus.toLowerCase();
191 191
		String corpus = registryfile.getName();
192 192

  
193 193
		if (!new File(registryfile.getParent(), targetcorpus).exists()) {
194
			System.out.println(TXMCoreMessages.PatchCwbRegistry_3+" : "+new File(registryfile.getParent(), targetcorpus)); //$NON-NLS-1$
194
			Log.severe(CQPSearchEngineCoreMessages.PatchCwbRegistry_3+" : "+new File(registryfile.getParent(), targetcorpus)); //$NON-NLS-1$
195 195
			return false;
196 196
		}
197 197
		if (!registryfile.exists()) {
198
			System.out.println(TXMCoreMessages.PatchCwbRegistry_13+registryfile.getAbsolutePath());
198
			Log.severe(CQPSearchEngineCoreMessages.PatchCwbRegistry_13+registryfile.getAbsolutePath());
199 199
			return false;
200 200
		}
201
		
201 202
		boolean alignmentwritten = false;
202 203
		// HOME INFO
203 204
		File temp = File.createTempFile("temp", ".registry", registryfile.getParentFile()); //$NON-NLS-1$ //$NON-NLS-2$
204 205

  
205 206
		String encoding = "UTF-8"; //$NON-NLS-1$
206 207
		//if (OSDetector.isFamilyWindows()) encoding = "ISO-8859-1"; //$NON-NLS-1$
207
		BufferedReader reader = new BufferedReader(new InputStreamReader(
208
				new FileInputStream(registryfile), encoding));
209
		OutputStreamWriter writer = new OutputStreamWriter(
210
				new FileOutputStream(temp), encoding);
208
		BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(registryfile), encoding));
209
		OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(temp), encoding);
211 210

  
212
		Log.info(TXMCoreMessages.PatchCwbRegistry_4 + corpus
213
				+ TXMCoreMessages.PatchCwbRegistry_5 + targetcorpus);
211
		Log.info(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.PatchCwbRegistry_4, corpus, targetcorpus));
212
		
214 213
		String line = reader.readLine();
215 214
		while (line != null) {
216 215
			if (line.startsWith("ALIGNED " + targetcorpus)) { //$NON-NLS-1$
217 216
				alignmentwritten = true;
218 217
				writer.write(line + "\n"); //$NON-NLS-1$
219
			} else if (line.startsWith("# Yours sincerely, the Encode tool.")) { //$NON-NLS-1$
218
			}
219
			else if (line.startsWith("# Yours sincerely, the Encode tool.")) { //$NON-NLS-1$
220 220
				if (!alignmentwritten) {
221 221
					writer.write("ALIGNED " + targetcorpus + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
222 222
					alignmentwritten = true;
223 223
				}
224 224
				writer.write("# Yours sincerely, the Encode tool."); //$NON-NLS-1$
225
			} else {
225
			}
226
			else {
226 227
				writer.write(line + "\n"); //$NON-NLS-1$
227 228
			}
228 229
			line = reader.readLine();
......
242 243
	 * @return true, if successful
243 244
	 * @throws IOException Signals that an I/O exception has occurred.
244 245
	 */
245
	public static boolean patchAttribute(File registryfile, String oldname, String newname)
246
			throws IOException {
246
	public static boolean patchAttribute(File registryfile, String oldname, String newname) throws IOException {
247 247
		
248 248
		boolean found = false;
249 249
		String datapath = ""; //$NON-NLS-1$
250 250
		
251 251
		if (!registryfile.exists()) {
252
			Log.warning(TXMCoreMessages.PatchCwbRegistry_16);
252
			Log.warning(CQPSearchEngineCoreMessages.PatchCwbRegistry_16);
253 253
			return false;
254 254
		}
255 255

  
......
258 258

  
259 259
		String encoding = "UTF-8"; //$NON-NLS-1$
260 260
		//if (OSDetector.isFamilyWindows()) encoding = "ISO-8859-1"; //$NON-NLS-1$
261
		BufferedReader reader = new BufferedReader(new InputStreamReader(
262
				new FileInputStream(registryfile), encoding));
263
		OutputStreamWriter writer = new OutputStreamWriter(
264
				new FileOutputStream(temp), encoding);
261
		BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(registryfile), encoding));
262
		OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(temp), encoding);
265 263

  
266 264
		String line = reader.readLine();
267 265
		while (line != null) {
268 266
			if (line.startsWith("ATTRIBUTE "+oldname)) { //$NON-NLS-1$
269 267
				writer.write("ATTRIBUTE "+newname+"\n"); //$NON-NLS-1$ //$NON-NLS-2$
270 268
				found = true;
271
			} else {
269
			}
270
			else {
272 271
				if (line.startsWith("HOME")) { //$NON-NLS-1$
273 272
					datapath = line.substring(5);
274 273
				}
......
284 283
				for (File f : datadir.listFiles())
285 284
					if (f.getName().startsWith(oldname+".")) //$NON-NLS-1$
286 285
						f.renameTo(new File(f.getParent(), f.getName().replace(oldname+".", newname+"."))); //$NON-NLS-1$ //$NON-NLS-2$
287
			} else {
288
				System.out.println(TXMCoreMessages.PatchCwbRegistry_27+datadir +TXMCoreMessages.ValidateXml_2);
286
			}
287
			else {
288
				System.out.println(CQPSearchEngineCoreMessages.PatchCwbRegistry_27+datadir +TXMCoreMessages.ValidateXml_2);
289 289
				writer.close();
290 290
				reader.close();
291 291
				return false;
292 292
			}
293 293
		}
294
		else
295
		{
296
			System.out.println(TXMCoreMessages.PatchCwbRegistry_28);
294
		else {
295
			Log.severe(CQPSearchEngineCoreMessages.PatchCwbRegistry_28);
297 296
			
298
			if(!found)
299
				System.out.println(oldname +TXMCoreMessages.PatchCwbRegistry_29+registryfile);
297
			if(!found) {
298
				Log.severe(oldname +CQPSearchEngineCoreMessages.PatchCwbRegistry_29+registryfile);
299
			}
300 300
			
301
			if(!(datapath.length() > 0))
302
				System.out.println(TXMCoreMessages.PatchCwbRegistry_27+oldname +TXMCoreMessages.PatchCwbRegistry_29+registryfile);
301
			if(!(datapath.length() > 0)) {
302
				Log.severe(CQPSearchEngineCoreMessages.PatchCwbRegistry_27+oldname +CQPSearchEngineCoreMessages.PatchCwbRegistry_29+registryfile);
303
			}
303 304
			writer.close();
304 305
			reader.close();
305 306
			return false;
tmp/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/BuildCwbEncodeArgs.java (revision 1224)
44 44
import javax.xml.stream.XMLStreamReader;
45 45

  
46 46
import org.txm.core.messages.TXMCoreMessages;
47
import org.txm.searchengine.cqp.core.messages.CQPSearchEngineCoreMessages;
47 48

  
48 49
// TODO: Auto-generated Javadoc
49 50
/**
......
85 86
	public boolean process(File xmlfile, ArrayList<String> wordstag)
86 87
			throws XMLStreamException, FactoryConfigurationError, IOException {
87 88
		if (xmlfile == null || !xmlfile.exists()) {
88
			System.out.println(TXMCoreMessages.bind(TXMCoreMessages.BuildCwbEncodeArgs_0, xmlfile));
89
			System.out.println(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.BuildCwbEncodeArgs_0, xmlfile));
89 90
			return false;
90 91
		}
91 92
		URL u = xmlfile.toURI().toURL();
tmp/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/CwbEncode.java (revision 1224)
36 36

  
37 37
import org.eclipse.osgi.util.NLS;
38 38
import org.txm.Toolbox;
39
import org.txm.core.messages.TXMCoreMessages;
40 39
import org.txm.core.preferences.TBXPreferences;
41
import org.txm.core.preferences.TXMPreferences;
42 40
import org.txm.libs.cqp.CQPLibPreferences;
43
import org.txm.searchengine.cqp.CQPPreferences;
44 41
import org.txm.searchengine.cqp.clientExceptions.ServerNotFoundException;
42
import org.txm.searchengine.cqp.core.messages.CQPSearchEngineCoreMessages;
45 43
import org.txm.stat.utils.ConsoleProgressBar;
46 44
import org.txm.utils.OSDetector;
47 45
import org.txm.utils.io.IOUtils;
......
310 308
		File registry = new File(directory, "registry"); //$NON-NLS-1$
311 309
		File corpora = new File(directory, "corpora"); //$NON-NLS-1$
312 310
		if (!directory.exists()) {
313
			System.err.println(TXMCoreMessages.CwbEncode_0 + directory);
311
			System.err.println(CQPSearchEngineCoreMessages.CwbEncode_0 + directory);
314 312
			return;
315 313
		}
316 314
		if (!bin.exists()) {
317
			System.err.println(TXMCoreMessages.CwbEncode_21 + bin);
315
			System.err.println(CQPSearchEngineCoreMessages.CwbEncode_21 + bin);
318 316
			return;
319 317
		}
320 318
		if (!registry.exists()) {
321
			System.err.println(TXMCoreMessages.CwbEncode_23 + registry);
319
			System.err.println(CQPSearchEngineCoreMessages.CwbEncode_23 + registry);
322 320
			return;
323 321
		}
324 322
		if (!corpora.exists()) {
325
			System.err.println(TXMCoreMessages.CwbEncode_25 + corpora);
323
			System.err.println(CQPSearchEngineCoreMessages.CwbEncode_25 + corpora);
326 324
			return;
327 325
		}
328 326

  
329 327
		for (File corpus : corpora.listFiles()) {
330 328
			if (!corpus.isDirectory()) continue;
331 329
			
332
			System.out.println(TXMCoreMessages.CwbEncode_27 + corpus.getName());
330
			System.out.println(CQPSearchEngineCoreMessages.CwbEncode_27 + corpus.getName());
333 331
			File data = new File(corpus, "data"); //$NON-NLS-1$
334 332

  
335 333
			if (!data.exists()) {
336
				System.err.println(TXMCoreMessages.CwbEncode_29 + data);
334
				System.err.println(CQPSearchEngineCoreMessages.CwbEncode_29 + data);
337 335
				return;
338 336
			}
339 337

  
340 338
			String datapath = data.getAbsolutePath();
341 339
			String regpath = registry.getAbsolutePath() + "/" + corpus.getName(); //$NON-NLS-1$
342 340
			if (datapath.startsWith("\\\\")) datapath = datapath.replace("\\\\", "//"); // fix UNC paths for mingw
343
			System.out.println(NLS.bind(TXMCoreMessages.CwbEncode_32, regpath, datapath));
341
			System.out.println(NLS.bind(CQPSearchEngineCoreMessages.CwbEncode_32, regpath, datapath));
344 342
			try {
345 343
				PatchCwbRegistry.patch(new File(regpath), new File(datapath));
346 344
			} catch (IOException e) {
tmp/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/CwbProcess.java (revision 1224)
37 37

  
38 38
import org.apache.commons.lang.StringUtils;
39 39
import org.txm.core.messages.TXMCoreMessages;
40
import org.txm.core.preferences.TXMPreferences;
41 40
import org.txm.libs.cqp.CQPLibPreferences;
42 41
import org.txm.searchengine.cqp.clientExceptions.ServerNotFoundException;
42
import org.txm.searchengine.cqp.core.messages.CQPSearchEngineCoreMessages;
43 43
import org.txm.utils.logger.Log;
44 44

  
45 45
// TODO: Auto-generated Javadoc
......
116 116
	 */
117 117
	protected boolean run(List<String> cmd, boolean monitorOutput, boolean waitFor) throws ServerNotFoundException, InterruptedException, IOException {
118 118
		
119
		Log.info(TXMCoreMessages.CwbProcess_1 + StringUtils.join(cmd, " ")); //$NON-NLS-1$ 
119
		Log.info(CQPSearchEngineCoreMessages.CwbProcess_1 + StringUtils.join(cmd, " ")); //$NON-NLS-1$ 
120 120
		
121 121
		//System.out.println(StringUtils.join(cmd, " "));
122 122
		for (String s : cmd) {
......
176 176
	}
177 177

  
178 178
	/**
179
	 * Stop the cwb process.
179
	 * Stop the CWB process.
180 180
	 */
181 181
	public void stop() {
182
		Log.finest(TXMCoreMessages.CwbProcess_3 + name.toUpperCase());
182
		Log.finest(CQPSearchEngineCoreMessages.CwbProcess_3 + name.toUpperCase());
183 183
		this.process.destroy();
184
		Log.finest(TXMCoreMessages.CwbProcess_4+name.toUpperCase());
184
		Log.finest(CQPSearchEngineCoreMessages.CwbProcess_4 + name.toUpperCase());
185 185
	}
186 186

  
187 187
	/**
......
266 266
		String cwbLoc = CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_PATH_TO_CQPLIB)+File.separator;
267 267

  
268 268
		if (!new File(cwbLoc).exists()) {
269
			Log.severe(TXMCoreMessages.CwbProcess_5+cwbLoc);
269
			Log.severe(CQPSearchEngineCoreMessages.CwbProcess_5 + cwbLoc);
270 270
			return null;
271 271
		}
272 272

  
tmp/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/BuildCwbEncodeArgsFromCQP.java (revision 1224)
44 44
import javax.xml.stream.XMLStreamException;
45 45

  
46 46
import org.txm.core.messages.TXMCoreMessages;
47
import org.txm.searchengine.cqp.core.messages.CQPSearchEngineCoreMessages;
47 48

  
48 49
// TODO: Auto-generated Javadoc
49 50
/**
......
85 86
	public boolean process(File cqpfile)
86 87
			throws XMLStreamException, FactoryConfigurationError, IOException {
87 88
		if (cqpfile == null || !cqpfile.exists()) {
88
			System.out.println(TXMCoreMessages.bind(TXMCoreMessages.BuildCwbEncodeArgs_0, cqpfile));
89
			System.out.println(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.BuildCwbEncodeArgs_0, cqpfile));
89 90
			return false;
90 91
		}
91 92

  
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/core/messages/CQPSearchEngineCoreMessages.java (revision 1224)
15 15

  
16 16
	private static final String BUNDLE_NAME = "org.txm.searchengine.cqp.core.messages.messages"; //$NON-NLS-1$
17 17

  
18
	public static String Summary_13;
19
	public static String Summary_15;
20
	public static String Summary_16;
21
	public static String Subcorpus_3;
22

  
23
	public static String CONNECTING_CQI_CLIENT;
24
	public static String CQI_CLIENT_CONNECTED;
25
	public static String CqiClient_0;
26
	public static String CqiClient_32;
27
	public static String CqiClient_33;
28
	public static String CwbEncode_0;
29
	public static String CwbEncode_21;
30
	public static String CwbEncode_23;
31
	public static String CwbEncode_25;
32
	public static String CwbEncode_27;
33
	public static String CwbEncode_29;
34
	public static String CwbEncode_32;
35
	public static String CwbProcess_1;
36
	public static String CwbProcess_3;
37
	public static String CwbProcess_4;
38
	public static String CwbProcess_5;
39

  
40
	public static String MemCqiClient_0;
41
	public static String MemCqiClient_10;
42
	public static String MemCqiClient_11;
43
	public static String MemCqiClient_1;
44
	public static String MemCqiClient_2;
45
	public static String MemCqiClient_3;
46
	public static String MemCqiClient_5;
47
	public static String MemCqiClient_7;
48
	public static String MemCqiClient_9;
49
	public static String NetCqiClient_1;
50
	public static String NetCqiClient_3;
51
	public static String NetCqiClient_5;
52
	public static String NetCqiClient_97;
53
	public static String NetCqiServer_0;
54
	public static String NetCqiServer_1;
55
	public static String AbstractCqiClient_2;	
56
	public static String BuildCwbEncodeArgs_0;
18 57
	
58
	public static String PatchCwbRegistry_13;
59
	public static String PatchCwbRegistry_16;
60
	public static String PatchCwbRegistry_23;
61
	public static String PatchCwbRegistry_27;
62
	public static String PatchCwbRegistry_28;
63
	public static String PatchCwbRegistry_29;
64
	public static String PatchCwbRegistry_2;
65
	public static String PatchCwbRegistry_34;
66

  
67
	public static String PatchCwbRegistry_3;
68
	public static String PatchCwbRegistry_4;
69
	
70
	public static String READ_2D_INT_ARRAY_FROM_CQI_SERVER;
71
	public static String READ_BOOLEAN_FROM_CQI_SERVER;
72
	public static String READ_BYTE_FROM_CQI_SERVER;
73
	public static String READ_INT_ARRAY_FROM_CQI_SERVER;
74
	public static String READ_INTEGER_FROM_CQI_SERVER;
75
	public static String READ_STRING_ARRAY_FROM_CQI_SERVER;
76
	public static String READ_STRING_FROM_CQI_SERVER;
77
	public static String READING_2D_INT_ARRAY_FROM_CQI_SERVER;
78
	public static String READING_BOOLEAN_FROM_CQI_SERVER;
79
	public static String READING_HEADER_FROM_CQI_SERVER;
80
	public static String READING_INT_ARRAY_FROM_CQI_SERVER;
81
	public static String READING_INTEGER_FROM_CQI_SERVER;
82
	public static String READING_STRING_ARRAY_FROM_CQI_SERVER;
83
	public static String READING_STRING_FROM_CQI_SERVER;
84

  
85
	
86
	
19 87
	static {
20 88
		// initialize resource bundle
21 89
		Utf8NLS.initializeMessages(BUNDLE_NAME, CQPSearchEngineCoreMessages.class);
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/core/messages/messages.properties (revision 1224)
1

  
2
AbstractCqiClient_2 = No error.
3

  
4
BuildCwbEncodeArgs_0 = The file ''{0}'' cannot be found.
5

  
6
CONNECTING_CQI_CLIENT = Connecting to the Search Engine with the following parameters: {0}:{1}@{2}{3}...
7

  
8
CQI_CLIENT_CONNECTED = Connected to the Search Engine.
9

  
10
CqiClient_0  = Getting Last CQP error.
11
CqiClient_32 = Search Engine launched...
12
CqiClient_33 = ** failed to connect to Search Engine.
13

  
14
CwbEncode_0  = The directory does not exists: 
15
CwbEncode_21 = The "binary" directory does not exists: 
16
CwbEncode_23 = The "registry" directory does not exists:  
17
CwbEncode_25 = The "corpora" directory does not exists: 
18
CwbEncode_27 = Processing corpus...
19
CwbEncode_29 = The "data" directory does not exists: 
20
CwbEncode_32 = Fixing registry file {0} with {1}.
21

  
22
CwbProcess_1 = Starting process with command: 
23
CwbProcess_3 = Stopping process: 
24
CwbProcess_4 = Process stoped: 
25
CwbProcess_5 = ** Can't find CQP location : 
26

  
27
MemCqiClient_0  = Internal CQI error: 
28
MemCqiClient_1  = CL error: 
29
MemCqiClient_10 = Unknown CQP codes: b1 
30
MemCqiClient_11 = Query error
31
MemCqiClient_2  = CQP error: 
32
MemCqiClient_3  = Unknown CQP error: b1 
33
MemCqiClient_5  = Unknown CQP CQI error: b1 
34
MemCqiClient_7  = Unknown CQP code: b1 
35
MemCqiClient_9  = b2 
36

  
37
NetCqiClient_1  = Last CQi error: 
38
NetCqiClient_3  = Last CQP error: 
39
NetCqiClient_5  = Could not reconnect to server: 
40
NetCqiClient_97 = client.dumpSubCorpus(subcorpus, NetCqiClient.CQI_CONST_FIELD_MATCH, 1, 2) : 
41

  
42
NetCqiServer_0 = ** cqpserver stdout: 
43
NetCqiServer_1 = ** cqpserver stderr: 
44

  
45
PatchCwbRegistry_13 = Source registry does not exists: 
46
PatchCwbRegistry_16 = Can't find registry file
47
PatchCwbRegistry_2  = Updating 
48
PatchCwbRegistry_23 = encoding to 
49
PatchCwbRegistry_27 = data directory 
50
PatchCwbRegistry_28 = Could not patch the 'registry' file.
51
PatchCwbRegistry_29 = could not be found in registry file 
52
PatchCwbRegistry_3  = ** The target corpus doesn't exist
53
PatchCwbRegistry_34 = Updating {0} corpus language to {1}...
54
PatchCwbRegistry_4  = Adding Alignment attribute to corpus {0} registry: {1}...
55

  
56
READING_2D_INT_ARRAY_FROM_CQI_SERVER = Reading an integer table from the CQi server...
57
READING_BOOLEAN_FROM_CQI_SERVER      = Reading boolean from the CQi server...
58
READING_HEADER_FROM_CQI_SERVER       = Reading header from the CQi server...
59
READING_INTEGER_FROM_CQI_SERVER      = Reading integer from the CQi server...
60
READING_INT_ARRAY_FROM_CQI_SERVER    = Reading integer array from the CQi server...
61
READING_STRING_ARRAY_FROM_CQI_SERVER = Reading string array from the CQi server...
62
READING_STRING_FROM_CQI_SERVER       = Reading string from the CQi server...
63

  
64
READ_2D_INT_ARRAY_FROM_CQI_SERVER    = Read string 2D integer from the CQi server: {0}.
65
READ_BOOLEAN_FROM_CQI_SERVER         = Read boolean from the CQi server: {0}.
66
READ_BYTE_FROM_CQI_SERVER            = Read byte from the CQi server: {0}.
67
READ_INTEGER_FROM_CQI_SERVER         = Read integer from the CQi server: {0}.
68
READ_INT_ARRAY_FROM_CQI_SERVER       = Read integer array from the CQi server: {0}.
69
READ_STRING_ARRAY_FROM_CQI_SERVER    = Read string array from the CQi server: {0}.
70
READ_STRING_FROM_CQI_SERVER          = Read string from the CQi server: {0}.
71

  
72
Subcorpus_3 = {0} is not a valid CQP ID for a subcorpus. It must be an uppercase character followed by lowercase characters.
73

  
74
Summary_13 = Error: text {0} is null.
75
Summary_15 = Error : edition default is null
76
Summary_16 = Error: textids {0} and wordids {1}.
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff