2006/unicorn/org/w3c/unicorn/index IndexGenerator.java,1.8,1.9

Update of /sources/public/2006/unicorn/org/w3c/unicorn/index
In directory hutz:/tmp/cvs-serv32546/org/w3c/unicorn/index

Modified Files:
	IndexGenerator.java 
Log Message:
Fixed output language was always french

Index: IndexGenerator.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/index/IndexGenerator.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- IndexGenerator.java	24 Jul 2009 13:47:46 -0000	1.8
+++ IndexGenerator.java	24 Jul 2009 14:13:16 -0000	1.9
@@ -130,11 +130,13 @@
 		
 		aVelocityContext.put("languages", languages);
 		
+		
 		MergeProperties mergeProps = new MergeProperties();
 		
 		for (File langFile : langFiles) {
 			
 			String langCode = langFile.getName().split("\\.")[1];
+			aVelocityContext.put("lang", langCode);
 		    
 		    Properties props = mergeProps.getMergeProperties(defaultLangFile[0], langFile);
 		    

Received on Friday, 24 July 2009 14:28:03 UTC