- From: Olivier Thereaux <ot@dev.w3.org>
- Date: Mon, 17 Jan 2005 02:50:14 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv10849
Modified Files:
Messages.java
Log Message:
adding spanish as a potential message lang - thanks Carlos Iglesias
Index: Messages.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Messages.java 8 Apr 2002 21:19:15 -0000 1.2
+++ Messages.java 17 Jan 2005 02:50:12 -0000 1.3
@@ -6,6 +6,9 @@
// Please first read the full copyright statement in file COPYRIGHT.html
/*
* $Log$
+ * Revision 1.3 2005/01/17 02:50:12 ot
+ * adding spanish as a potential message lang - thanks Carlos Iglesias
+ *
* Revision 1.2 2002/04/08 21:19:15 plehegar
* New
*
@@ -228,6 +231,24 @@
System.err.println(" " + e.toString() );
}
+ // ------------------------------------------------
+
+ try {
+ URL url = Messages.class.getResource("Messages.properties.es");
+ java.io.InputStream f = url.openStream();
+ try {
+ tmp = new Properties();
+ tmp.load(f);
+ languages.put("es", tmp);
+ languages.put("es_ES", tmp);
+ } finally {
+ f.close();
+ }
+ } catch (Exception e) {
+ System.err.println("org.w3c.css.util.Messages: couldn't load properties es");
+ System.err.println(" " + e.toString() );
+ }
+
}
}
Received on Monday, 17 January 2005 02:50:15 UTC