- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 22 Mar 2010 18:41:06 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util In directory hutz:/tmp/cvs-serv8618/src/org/w3c/unicorn/util Modified Files: Language.java Log Message: fixed isComplete function Index: Language.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Language.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- Language.java 22 Mar 2010 18:16:49 -0000 1.23 +++ Language.java 22 Mar 2010 18:41:04 -0000 1.24 @@ -150,27 +150,29 @@ public static boolean isComplete(ULocale localeParam) { Properties testedProps = LanguageAction.getLanguageProperties().get(localeParam); - Properties testedMetadataProps = LanguageAction.getMetadataProperties().get(localeParam); if (testedProps == null) return false; - if (testedProps.get("complete") == null) { + Properties testedMetadataProps = LanguageAction.getMetadataProperties().get(localeParam); + Properties originalProps = Framework.getLanguageProperties().get(localeParam); + + if (originalProps.get("complete") == null) { for (Object key : LanguageAction.getLanguageProperties().get(defaultLocale).keySet()) { - if (!testedProps.containsKey(key) && key != "complete") { - testedProps.put("complete", "false"); + if (!testedProps.containsKey(key)) { + originalProps.put("complete", "false"); return false; } } for (Object key : LanguageAction.getMetadataProperties().get(defaultLocale).keySet()) { if (!testedMetadataProps.containsKey(key)) { - testedProps.put("complete", "false"); + originalProps.put("complete", "false"); return false; } } return true; } else { - return testedProps.get("complete").equals("true"); + return originalProps.get("complete").equals("true"); } }
Received on Monday, 22 March 2010 18:41:07 UTC