Index: TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/messages.properties
===================================================================
--- TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/messages.properties	(revision 3826)
+++ TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/messages.properties	(revision 3827)
@@ -1,10 +1,15 @@
 #TXM messages generated by the PluginMessagesManager class
 #Fri Jun 10 16:36:03 CEST 2022
 coFreq=CoFreq
+common_noResults=
 cooccurrentsOfP0PropertieP1InTheP2Corpus=Cooccurrents of {0}, property {1} {2} {3}, ≥{4} ≥{5} ≥{6}, in {7} corpus...
+error_error=
 errorColonNegativeArgumentInFactlnFunction=** Error\: negative argument in 'factln' function
 errorColonNegativeArgumentInRbicolnFunction=** Error\: negative argument in 'rbicoln' function
 errorColonNoCooccurrents=** Error\: no cooccurrents
+ErrorWhileComputingIndexForTheCooccurrenceAborting=Error while computing Index for the cooccurrence. Aborting.
+ErrorWhileComputingIndexForTheCooccurrenceP0=Error while computing Index for the cooccurrence: 
+ErrorWhileSettingCooccurrenceParameters=Error while setting cooccurrence parameters: 
 fColon=\ F\: 
 freq=Freq
 info_buildingLexicalTable=Building lexical table...
@@ -16,6 +21,7 @@
 info_retreivingMatches=Retrieving matches...
 meanDist=MeanDist
 meanDistColon=\ M.D.\:
+NoQuery=<no query>
 occ=Occ
 occColon=\ Occ\:
 occFreqCoFreqScoreMeanDistMode=Occ Freq CoFreq Score MeanDist Mode
Index: TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/CooccurrenceCoreMessages.java
===================================================================
--- TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/CooccurrenceCoreMessages.java	(revision 3826)
+++ TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/CooccurrenceCoreMessages.java	(revision 3827)
@@ -19,11 +19,15 @@
 	
 	public static String P0CooccurentsForP1Occurrences;
 	public static String propertiesColon; 
+	public static String error_error;
+
 	public static String errorColonNegativeArgumentInFactlnFunction; 
 	public static String errorColonNegativeArgumentInRbicolnFunction; 
 	public static String occ; 
 	public static String freq; 
-	public static String coFreq; 
+	public static String coFreq;
+
+	public static String common_noResults; 
 	public static String score; 
 	public static String meanDist; 
 	public static String errorColonNoCooccurrents; 
@@ -36,6 +40,12 @@
 	public static String cooccurrentsOfP0PropertieP1InTheP2Corpus;
 	
 	
+	public static String ErrorWhileComputingIndexForTheCooccurrenceAborting;
+
+	public static String ErrorWhileComputingIndexForTheCooccurrenceP0;
+
+	public static String ErrorWhileSettingCooccurrenceParameters;
+
 	public static String info_buildingQueries;
 	public static String info_retreivingMatches;
 	public static String info_buildingLineSignatures;
@@ -43,6 +53,8 @@
 	public static String info_buildingLexicalTable;
 	public static String info_computingSpecificitiesScores;
 	public static String info_details;
+
+	public static String NoQuery;
 	
 	static {
 		// initialize resource bundle
Index: TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/Cooccurrence.java
===================================================================
--- TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/Cooccurrence.java	(revision 3826)
+++ TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/Cooccurrence.java	(revision 3827)
@@ -505,22 +505,22 @@
 	public boolean canCompute() {
 
 		if (pQuery == null || pQuery.isEmpty()) {
-			Log.fine("No query set.");
+			Log.fine("No query set."); //$NON-NLS-1$
 			return false;
 		}
 
 		if (pProperties == null) {
-			Log.fine("No properties set.");
+			Log.fine("No properties set."); //$NON-NLS-1$
 			return false;
 		}
 
 		if (getCorpus() == null) {
-			Log.fine("No corpus set.");
+			Log.fine("No corpus set."); //$NON-NLS-1$
 			return false;
 		}
 
 		if (pProperties.size() == 0) {
-			Log.fine("No properties filled.");
+			Log.fine("No properties filled."); //$NON-NLS-1$
 			return false;
 		}
 
@@ -692,7 +692,7 @@
 
 	@Override
 	public String getComputingStartMessage() {
-		return TXMCoreMessages.bind(CooccurrenceCoreMessages.cooccurrentsOfP0PropertieP1InTheP2Corpus, (this.pQuery != null?this.pQuery.asString():"<no query>"), WordProperty.asString(this.pProperties),
+		return TXMCoreMessages.bind(CooccurrenceCoreMessages.cooccurrentsOfP0PropertieP1InTheP2Corpus, (this.pQuery != null?this.pQuery.asString():CooccurrenceCoreMessages.NoQuery), WordProperty.asString(this.pProperties),
 				(this.pMaxLeftContextSize - 1), (this.pMaxRightContextSize - 1), this.pFminFilter, this.pFCoocFilter, this.pScoreMinFilter, this.getCorpus().getName());
 	}
 
@@ -1094,7 +1094,7 @@
 
 		}
 		catch (Exception e) {
-			System.out.println("Error while setting cooccurrence parameters: " + e.getLocalizedMessage());
+			System.out.println(CooccurrenceCoreMessages.ErrorWhileSettingCooccurrenceParameters + e.getLocalizedMessage());
 			Log.printStackTrace(e);
 			return false;
 		}
@@ -1184,12 +1184,12 @@
 				index.setVisible(false);
 				index.setParameters(new CQLQuery(pCooccurentQueryFilter), pProperties, null, null, null, null);
 				if (!index.compute(new LogMonitor())) {
-					Log.severe("Cooccurrence internal Index compute failed. Aborting.");
+					Log.severe(CooccurrenceCoreMessages.ErrorWhileComputingIndexForTheCooccurrenceAborting);
 					return false;
 				}
 			}
 			catch (Exception e) {
-				Log.severe("Error while computing Index for the cooccurrence: " + e.getLocalizedMessage());
+				Log.severe(CooccurrenceCoreMessages.ErrorWhileComputingIndexForTheCooccurrenceP0 + e.getLocalizedMessage());
 				return false;
 			}
 		}
@@ -1355,7 +1355,7 @@
 		//int[] positionsDistances = new ArrayList()
 		for (Match m : m1) { // for each match = for each focus
 
-			if (debug) System.out.println("m="+m);
+			if (debug) System.out.println("m="+m); //$NON-NLS-1$
 			if (m.getTarget() >= 0) { // if target is set focus on target position
 				m.setStart(m.getTarget());
 				m.setEnd(m.getTarget());
@@ -1424,11 +1424,11 @@
 					dist = position - m.getEnd() - 1;
 				}
 				else { // the n match is in the m match !?
-					Log.warning("Warning: the n match is in the m match ? " + n + " " + m);
+					Log.warning("Warning: the n match is in the m match ? " + n + " " + m); //$NON-NLS-1$ //$NON-NLS-2$
 					dist = 0;
 				}
 				
-				if (debug) System.out.println(" p="+position+" sign="+allsignaturesstr.get(position)+" dist="+dist);
+				if (debug) System.out.println(" p="+position+" sign="+allsignaturesstr.get(position)+" dist="+dist); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 				if (positionsDistances.containsKey(position) && positionsDistances.get(position) > dist) {
 					positionsDistances.put(position, dist);
 //					if (debug) System.out.println(" using the higher distance");
@@ -1523,9 +1523,9 @@
 		if (debug) System.out.println(anticontextquery);
 		if (debug) System.out.println(m3);
 
-		Log.finest("R1 size=" + m1.size());
-		Log.finest("R2 size=" + m2.size());
-		Log.finest("R3 size=" + m3.size());
+		Log.finest("R1 size=" + m1.size()); //$NON-NLS-1$
+		Log.finest("R2 size=" + m2.size()); //$NON-NLS-1$
+		Log.finest("R3 size=" + m3.size()); //$NON-NLS-1$
 
 		// System.out.println(query+" M1 size: "+m1.size());
 		// System.out.println(contextquery+" M2 size: "+m2.size());
@@ -1590,7 +1590,7 @@
 						indexfreqs.get(specifrownames[ii]), scores[ii][1], // freq
 						((float) (distances.get(signaturestr) / counts.get(signaturestr))), // mean distance
 						-1);
-				cline.debug = " "+signaturestr;
+				cline.debug = " "+signaturestr; //$NON-NLS-1$
 				// System.out.println("Line: "+specifrownames[ii]+" dists="+distances.get(signaturestr)+" counts="+counts.get(signaturestr)+" mean="+((float) (distances.get(signaturestr) / counts.get(signaturestr))));
 				// select the line
 				if (cline.freq >= this.pFminFilter && cline.nbocc >= this.pFCoocFilter && cline.score >= this.pScoreMinFilter) {
@@ -1615,14 +1615,14 @@
 		// structural context
 
 		String sfixedQuery = CQLQuery.fixQuery(pQuery.getQueryString(), this.getCorpus().getLang()); // a query starting with " or [ or (
-		if (sfixedQuery.contains("@[") || sfixedQuery.contains("@\"")) {
+		if (sfixedQuery.contains("@[") || sfixedQuery.contains("@\"")) { //$NON-NLS-1$ //$NON-NLS-2$
 			
-		} else if (sfixedQuery.startsWith("(")) {
-			sfixedQuery = "(@"+sfixedQuery.substring(1);
-		} else if (sfixedQuery.startsWith("((")) {
-			sfixedQuery = "((@"+sfixedQuery.substring(2);
+		} else if (sfixedQuery.startsWith("(")) { //$NON-NLS-1$
+			sfixedQuery = "(@"+sfixedQuery.substring(1); //$NON-NLS-1$
+		} else if (sfixedQuery.startsWith("((")) { //$NON-NLS-1$
+			sfixedQuery = "((@"+sfixedQuery.substring(2); //$NON-NLS-1$
 		} else {
-			sfixedQuery = "@"+sfixedQuery;
+			sfixedQuery = "@"+sfixedQuery; //$NON-NLS-1$
 		}
 
 		if (pStructuralUnitLimit != null) {
Index: TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/preferences/CooccurrencePreferences.java
===================================================================
--- TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/preferences/CooccurrencePreferences.java	(revision 3826)
+++ TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/preferences/CooccurrencePreferences.java	(revision 3827)
@@ -31,7 +31,7 @@
 
 	public static final String INCLUDE_X_PIVOT = "include_x_pivot"; //$NON-NLS-1$
 	public static final String PARTIAL_LEXICAL_TABLE = "partial_lexical_table"; //$NON-NLS-1$
-	public static final String MILESTONE_STRUCTURES_TO_IGNORE = "milestone_structures_to_ignore";
+	public static final String MILESTONE_STRUCTURES_TO_IGNORE = "milestone_structures_to_ignore"; //$NON-NLS-1$
 	
 
 	public static final String QUERY_FILTER = "query_filter"; //$NON-NLS-1$
@@ -67,7 +67,7 @@
 		preferences.putInt(MIN_RIGHT, 1);
 		preferences.putInt(MAX_RIGHT, 10);
 		
-		preferences.put(MILESTONE_STRUCTURES_TO_IGNORE, "txmcorpus,text,anchor,cb,fw,gb,lb,milestone,pb");
+		preferences.put(MILESTONE_STRUCTURES_TO_IGNORE, "txmcorpus,text,anchor,cb,fw,gb,lb,milestone,pb"); //$NON-NLS-1$
 		preferences.put(UNIT_PROPERTIES, TXMPreferences.DEFAULT_UNIT_PROPERTY);
 	}
 	
Index: TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/r/CooccurrencesRTransformer.java
===================================================================
--- TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/r/CooccurrencesRTransformer.java	(revision 3826)
+++ TXM/trunk/bundles/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/r/CooccurrencesRTransformer.java	(revision 3827)
@@ -60,7 +60,7 @@
 				//+ ", query=\""+this.query.getQueryString()+"\""
 				+ ")"); //$NON-NLS-1$
 
-		rw.eval("rm(coocfreq, cooccofreq, coocscore, coocmeandist)");
+		rw.eval("rm(coocfreq, cooccofreq, coocscore, coocmeandist)"); //$NON-NLS-1$
 		nocooc++;
 		return symbol;
 	}
