- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 02 Jul 2008 18:49:14 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv13106/org/w3c/css/util
Modified Files:
Messages.java
Added Files:
Messages.properties.sv
Log Message:
swedish translations, courtesy of Olle Olsson and W3C Swedish office
--- NEW FILE: Messages.properties.sv ---
(This appears to be a binary file; contents omitted.)
Index: Messages.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- Messages.java 1 Jul 2008 13:43:04 -0000 1.19
+++ Messages.java 2 Jul 2008 18:49:11 -0000 1.20
@@ -351,6 +351,23 @@
}
// -----------------------
+ try {
+ URL url = adjustURL(Messages.class.getResource("Messages.properties.sv"));
+ java.io.InputStream f = url.openStream();
+ try {
+ tmp = new Utf8Properties();
+ tmp.load(f);
+ languages_name.add("sv");
+ languages.put("sv", tmp);
+ } finally {
+ f.close();
+ }
+ } catch (Exception e) {
+ System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties sv");
+ System.err.println(" " + e.toString());
+ }
+
+ // -----------------------
try {
URL url = adjustURL(Messages.class.getResource("Messages.properties.zh-cn"));
Received on Wednesday, 2 July 2008 18:49:48 UTC