- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 30 Jun 2008 20:41:59 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util In directory hutz:/tmp/cvs-serv5036/org/w3c/css/util Modified Files: Messages.java Log Message: telling the CSS validator about the portuguese/brazilian translation Index: Messages.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Messages.java 24 Apr 2008 07:25:57 -0000 1.16 +++ Messages.java 30 Jun 2008 20:41:57 -0000 1.17 @@ -330,6 +330,24 @@ } // ----------------------- + + try { + URL url = adjustURL(Messages.class.getResource("Messages.properties.pt-br")); + java.io.InputStream f = url.openStream(); + try { + tmp = new Utf8Properties(); + tmp.load(f); + languages_name.add("pt-bt"); + languages.put("pt", tmp); + } finally { + f.close(); + } + } catch (Exception e) { + System.err.println("org.w3c.css.util.Messages: " + "couldn't load properties pt-br"); + System.err.println(" " + e.toString()); + } + + // ----------------------- try { URL url = adjustURL(Messages.class.getResource("Messages.properties.zh-cn"));
Received on Monday, 30 June 2008 20:42:32 UTC