Révision 1579

tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/GroovyScriptedImportEngine.java (revision 1579)
55 55
				}
56 56
				AnnotationEngine engine = (AnnotationEngine) e;
57 57
				if (!engine.isRunning()) {
58
					Log.severe("Error: TreeTagger annotation engine is not ready please check TXM > Advance > TAL > TreeTagger preferences. Aborting");
58
					Log.severe(GroovyMessages.errorTreeTaggerAnnotationEngineIsNotReady);
59 59
					return Status.CANCEL_STATUS;
60 60
				}
61 61
				
......
158 158
					//							IPath path = new Path(params.rootDir);
159 159
					//							srcFolder.createLink(path, IResource.ALLOW_MISSING_LOCAL, monitor);
160 160
				} else {
161
					Log.severe("Error: import not correctly ended. See console messages.");
161
					Log.severe(GroovyMessages.errorImportNotCorrectlyEndedSeeConsoleMessages);
162 162
//					if (basedir.exists()) basedir.renameTo(errorBinDirectory);
163 163
//					if (tempBinDirectory.exists()) tempBinDirectory.renameTo(basedir);
164
					return new Status(Status.ERROR, "org.txm.groovy.core", "Import not correclty ended. See console messages.");
164
					return new Status(Status.ERROR, "org.txm.groovy.core", GroovyMessages.errorImportNotCorrectlyEndedSeeConsoleMessages);
165 165
				}
166 166
			} else {
167
				Log.severe("Error: import not correctly ended (no 'readyToLoad' binding found). See console messages.");
168
				return new Status(Status.ERROR, "org.txm.groovy.core", "Import not correclty ended. See console messages.");
167
				Log.fine(GroovyMessages.errorImportNotCorrectlyEndedSeeConsoleMessages);
168
				return new Status(Status.ERROR, "org.txm.groovy.core", GroovyMessages.errorImportNotCorrectlyEndedSeeConsoleMessages);
169 169
			}
170 170
		} catch (ThreadDeath td) {
171 171
			return Status.CANCEL_STATUS;
......
175 175
			return new Status(Status.ERROR, "org.txm.groovy.core", e.getMessage());
176 176
		} finally {
177 177
			if (!CQPSearchEngine.isInitialized()) { // the import failed
178
				monitor.setTaskName("Restarting Toolbox search engine"); //$NON-NLS-1$
178
				monitor.setTaskName(GroovyMessages.restartingToolboxSearchengines); //$NON-NLS-1$
179 179
				Toolbox.getEngineManager(EngineType.SEARCH).restartEngines();
180 180
			}
181 181
		}
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/messages/GroovyMessages.java (revision 1579)
6 6
public class GroovyMessages extends TXMCoreMessages {
7 7
	
8 8
	private static final String BUNDLE_NAME = "org.txm.groovy.core.messages.messages"; //$NON-NLS-1$
9
	
9 10
	public static String restartingToolboxSearchengines;
10 11
	public static String startingTheP0GroovyImportScript;
12
	public static String errorImportNotCorrectlyEndedSeeConsoleMessages;
13
	public static Throwable errorTreeTaggerAnnotationEngineIsNotReady;
11 14
	
12 15
	static {
13 16
		// initialize resource bundle
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/messages/messages.properties (revision 1579)
1 1
restartingToolboxSearchengines=Restarting search engine...
2
startingTheP0GroovyImportScript=Starting the {0} Groovy import script.
2
startingTheP0GroovyImportScript=Starting the {0} Groovy import script.
3
errorImportNotCorrectlyEndedSeeConsoleMessages=Error: import not correctly ended. See previous messages.
4
errorTreeTaggerAnnotationEngineIsNotReady=** Error: TreeTagger annotation engine is not ready please check TXM > Advance > NLP > TreeTagger preferences. Aborting.
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/messages/messages_fr.properties (revision 1579)
1 1
restartingToolboxSearchengines=Red?marrage des moteurs de recherche...
2
startingTheP0GroovyImportScript=D?marrage du script d'import Groovy {0}.
2
startingTheP0GroovyImportScript=D?marrage du script d'import Groovy {0}.
3
errorImportNotCorrectlyEndedSeeConsoleMessages=** Erreur: l'import ne s'est pas termin? correctement. Voir les messages pr?c?dent.
4
errorTreeTaggerAnnotationEngineIsNotReady=**Erreur : l'annotation treetagger n'est pas possible. Veuillez v?rifier les pr?f?rences de la page TXM > Avanc? > TAL > TreeTagger. Abandon.

Formats disponibles : Unified diff