W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2009

2002/css-validator/org/w3c/css/util Messages.java,1.31,1.32

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 24 Mar 2009 20:10:24 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LmCx6-0005Op-0h@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv20730/org/w3c/css/util

Modified Files:
	Messages.java 
Log Message:
enabling bulgarian translation for tests

Index: Messages.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- Messages.java	3 Mar 2009 15:37:04 -0000	1.31
+++ Messages.java	24 Mar 2009 20:10:21 -0000	1.32
@@ -430,6 +430,22 @@
 	}
 
 	// -----------------------
+	try {
+	    java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.bg");
+	    try {
+		tmp = new Utf8Properties<String,String>();
+		tmp.load(f);
+		languages_name.add("bg");
+		languages.put("bg", tmp);
+	    } finally {
+		f.close();
+	    }
+	} catch (Exception e) {
+	    System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties bg");
+	    System.err.println("  " + e.toString());
+	}
+
+	// -----------------------
 
 	try {
 	    java.io.InputStream f = Messages.class.getResourceAsStream("Messages.properties.zh-cn");
Received on Tuesday, 24 March 2009 20:10:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:35 UTC