2002/css-validator/org/w3c/css/util Messages.java,1.10,1.11

Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv28586/org/w3c/css/util

Modified Files:
	Messages.java 
Log Message:
change the order of the language links
and restore pl to pl-PL

Index: Messages.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Messages.java	13 Jul 2007 13:32:21 -0000	1.10
+++ Messages.java	31 Jul 2007 14:18:59 -0000	1.11
@@ -162,55 +162,63 @@
 	static {
 		Utf8Properties tmp;
 		try {
-			URL url = Messages.class.getResource("Messages.properties.en");
+			URL url = Messages.class.getResource("Messages.properties.de");
 			java.io.InputStream f = url.openStream();
 			try {
 				tmp = new Utf8Properties();
 				tmp.load(f);
-				languages_name.add("en");
-				languages.put("en", tmp);
+				languages_name.add("de");
+				languages.put("de", tmp);
+				languages.put("de_DE", tmp);
+				languages.put("de_AT", tmp);
+				languages.put("de_CH", tmp);
 			} finally {
 				f.close();
 			}
 		} catch (Exception e) {
-			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties en");
+			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties de");
 			System.err.println("  " + e.toString());
 		}
 
+		// ------------------------------------------------
+
 		try {
-			URL url = Messages.class.getResource("Messages.properties.zh-cn");
+			URL url = Messages.class.getResource("Messages.properties.en");
 			java.io.InputStream f = url.openStream();
 			try {
 				tmp = new Utf8Properties();
 				tmp.load(f);
-				languages_name.add("zh-cn");
-				languages.put("zh-cn", tmp);
-				languages.put("zh", tmp); // for now we have no other
-											// alternative for chinese
+				languages_name.add("en");
+				languages.put("en", tmp);
 			} finally {
 				f.close();
 			}
 		} catch (Exception e) {
-			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties cn");
+			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties en");
 			System.err.println("  " + e.toString());
 		}
 
+		// ------------------------------------------------
+
 		try {
-			URL url = Messages.class.getResource("Messages.properties.ja");
+			URL url = Messages.class.getResource("Messages.properties.es");
 			java.io.InputStream f = url.openStream();
 			try {
 				tmp = new Utf8Properties();
 				tmp.load(f);
-				languages_name.add("ja");
-				languages.put("ja", tmp);
+				languages_name.add("es");
+				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 ja");
+			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties es");
 			System.err.println("  " + e.toString());
 		}
 
+		// -----------------------
+
 		try {
 			URL url = Messages.class.getResource("Messages.properties.fr");
 			java.io.InputStream f = url.openStream();
@@ -229,27 +237,24 @@
 		}
 
 		// -----------------------
-
+		
 		try {
-			URL url = Messages.class.getResource("Messages.properties.de");
+			URL url = Messages.class.getResource("Messages.properties.it");
 			java.io.InputStream f = url.openStream();
 			try {
 				tmp = new Utf8Properties();
 				tmp.load(f);
-				languages_name.add("de");
-				languages.put("de", tmp);
-				languages.put("de_DE", tmp);
-				languages.put("de_AT", tmp);
-				languages.put("de_CH", tmp);
+				languages_name.add("it");
+				languages.put("it", tmp);
 			} finally {
 				f.close();
 			}
 		} catch (Exception e) {
-			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties de");
+			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties it");
 			System.err.println("  " + e.toString());
 		}
 
-		// ------------------------------------------------
+		// -----------------------
 
 		try {
 			URL url = Messages.class.getResource("Messages.properties.nl");
@@ -267,31 +272,33 @@
 			System.err.println("  " + e.toString());
 		}
 
-		// ------------------------------------------------
+		// -----------------------
+
 		try {
-			URL url = Messages.class.getResource("Messages.properties.it");
+			URL url = Messages.class.getResource("Messages.properties.ja");
 			java.io.InputStream f = url.openStream();
 			try {
 				tmp = new Utf8Properties();
 				tmp.load(f);
-				languages_name.add("it");
-				languages.put("it", tmp);
+				languages_name.add("ja");
+				languages.put("ja", tmp);
 			} finally {
 				f.close();
 			}
 		} catch (Exception e) {
-			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties it");
+			System.err.println("org.w3c.css.util.Messages:" + " couldn't load properties ja");
 			System.err.println("  " + e.toString());
 		}
 
-		// ------------------------------------------------
+		// -----------------------
+		
 		try {
 			URL url = Messages.class.getResource("Messages.properties.pl-PL");
 			java.io.InputStream f = url.openStream();
 			try {
 				tmp = new Utf8Properties();
 				tmp.load(f);
-				languages_name.add("pl");
+				languages_name.add("pl-PL");
 				languages.put("pl", tmp);
 				languages.put("pl_PL", tmp);
 				languages.put("pl-PL", tmp);
@@ -303,22 +310,23 @@
 			System.err.println("  " + e.toString());
 		}
 
-		// ------------------------------------------------
+		// -----------------------
 
 		try {
-			URL url = Messages.class.getResource("Messages.properties.es");
+			URL url = Messages.class.getResource("Messages.properties.zh-cn");
 			java.io.InputStream f = url.openStream();
 			try {
 				tmp = new Utf8Properties();
 				tmp.load(f);
-				languages_name.add("es");
-				languages.put("es", tmp);
-				languages.put("es_ES", tmp);
+				languages_name.add("zh-cn");
+				languages.put("zh-cn", tmp);
+				languages.put("zh", tmp); // for now we have no other
+											// alternative for chinese
 			} finally {
 				f.close();
 			}
 		} catch (Exception e) {
-			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties es");
+			System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties cn");
 			System.err.println("  " + e.toString());
 		}
 	}

Received on Tuesday, 31 July 2007 14:19:14 UTC