Révision 3185

tmp/org.txm.core/src/java/org/txm/metadatas/Metadatas.java (revision 3185)
59 59
import javax.xml.xpath.XPathExpressionException;
60 60
import javax.xml.xpath.XPathFactory;
61 61

  
62
import org.txm.core.messages.TXMCoreMessages;
62 63
import org.txm.importer.AddAttributeInXml;
63 64
import org.txm.importer.PersonalNamespaceContext;
64 65
import org.txm.libs.msoffice.ReadExcel;
......
80 81
 */
81 82
public class Metadatas extends LinkedHashMap<String, TextInjection> {
82 83
	
84
	private static final long serialVersionUID = -179183433465353130L;
85

  
83 86
	/**
84 87
	 * Load metadatas from a xml file $lt;metadatas> $lt;meta key="key1"> $lt;entry
85 88
	 * name="attr1" value="value1"/> $lt;entry name="attr1" value="value1"/>
......
422 425
			}
423 426
			
424 427
			if (!headers[0].equals("id")) {
425
				System.out.println("Error: The first column name in the header line of the metadata file '$csvfile' must be 'id' and found '" + headers[0]
426
						+ "' column separator='\"+separator+\"' and text separator='\"+txtseparator+\"'");
428
				System.out.println(TXMCoreMessages.bind("Error: The first column name in the header line of the metadata file ''{0}'' must be 'id' and found ''{1}'' column separator=''{2}'' and text separator=''{3}''", csvfile, headers[0], separator, txtseparator));
427 429
				writer.close();
428 430
				output.close();
429 431
				if (!separator.equals("\t")) {

Formats disponibles : Unified diff