2006/unicorn/src/org/w3c/unicorn/util Language.java,1.2,1.3

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv28441/src/org/w3c/unicorn/util

Modified Files:
	Language.java 
Log Message:
commit

Index: Language.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Language.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Language.java	4 Sep 2009 14:09:09 -0000	1.2
+++ Language.java	30 Sep 2009 09:35:19 -0000	1.3
@@ -77,47 +77,4 @@
 		return Framework.getLanguageProperties().get(langParameter).get("complete") == "true";
 	}
 	
-	/*public static void addToContext(VelocityContext velocityContext, Locale lang) throws Exception {
-		File languageFile = new File(Property.get("PATH_TO_LANGUAGE_FILES") + lang.getLanguage() + ".properties");
-		FileReader fr = new FileReader(languageFile);
-		
-		Properties langProps = new Properties();
-		langProps.load(fr);
-		
-	    Set<Object> keys = langProps.keySet();
-	    Iterator<Object> itr = keys.iterator();
-	    String key;
-	    while (itr.hasNext()) {
-			key = itr.next().toString();
-			velocityContext.put(key, langProps.get(key));
-	    }
-	}
-	
-	public static void addToContext(Properties langProps, VelocityContext context) throws Exception {
-	    Set<Object> keys = langProps.keySet();
-	    Iterator<Object> itr = keys.iterator();
-	    String key;
-	    while (itr.hasNext()) {
-			key = itr.next().toString();
-			context.put(key, langProps.get(key));
-	    }
-	    
-	    for (Object keyss : langProps.keySet()) {
-	    	context.put((String) keyss, langProps.get(keyss));
-	    }
-	}*/
-	
-
-	
-	/*public static void addLanguageFile(File langFile) throws MalformedURLException, IOException {
-		String fileName = langFile.getName();
-		String locale = fileName.split("\\.")[0];
-		if (!isISOLanguageCode(locale)) {
-			return;
-		}
-		//Locale locale = new Locale(localeString);
-		Properties props = new Properties();
-		props.load(langFile.toURI().toURL().openStream());
-		//languages.put(locale, props);
-	}*/
 }

Received on Wednesday, 30 September 2009 09:35:22 UTC