- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 12 Dec 2006 05:09:04 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util In directory hutz:/tmp/cvs-serv26060/org/w3c/css/util Modified Files: Makefile Messages.java Log Message: enabling Polish and Italian localizations Index: Makefile =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile 13 Mar 2002 19:56:54 -0000 1.1 +++ Makefile 12 Dec 2006 05:09:02 -0000 1.2 @@ -43,7 +43,7 @@ /usr/local/java11/lib/classes.zip NVPair.class:: NVPair.java -Messages.properties.ja: Messages.properties.ja.EUCJIS - native2ascii -encoding EUCJIS Messages.properties.ja.EUCJIS Messages.properties.ja -Messages.properties.zh-cn: Messages.properties.zh-cn.GB - native2ascii -encoding euc-cn Messages.properties.zh-cn.GB Messages.properties.zh-cn +#Messages.properties.ja: Messages.properties.ja.EUCJIS +# native2ascii -encoding EUCJIS Messages.properties.ja.EUCJIS Messages.properties.ja +#Messages.properties.zh-cn: Messages.properties.zh-cn.GB +# native2ascii -encoding euc-cn Messages.properties.zh-cn.GB Messages.properties.zh-cn Index: Messages.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Messages.java 14 Sep 2005 15:15:32 -0000 1.7 +++ Messages.java 12 Dec 2006 05:09:02 -0000 1.8 @@ -188,6 +188,7 @@ tmp = new Utf8Properties(); tmp.load(f); languages.put("zh-cn", tmp); + languages.put("zh", tmp); // for now we have no other alternative for chinese } finally { f.close(); } @@ -270,6 +271,40 @@ } // ------------------------------------------------ + try { + URL url = Messages.class.getResource("Messages.properties.it"); + java.io.InputStream f = url.openStream(); + try { + tmp = new Utf8Properties(); + tmp.load(f); + languages.put("it", tmp); + } finally { + f.close(); + } + } catch (Exception e) { + 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.pl-PL"); + java.io.InputStream f = url.openStream(); + try { + tmp = new Utf8Properties(); + tmp.load(f); + languages.put("pl", tmp); + } finally { + f.close(); + } + } catch (Exception e) { + System.err.println("org.w3c.css.util.Messages: "+ + "couldn't load properties pl"); + System.err.println(" " + e.toString()); + } + + // ------------------------------------------------ try { URL url = Messages.class.getResource("Messages.properties.es");
Received on Tuesday, 12 December 2006 05:09:13 UTC