W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2009

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

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 24 Jul 2009 14:13:18 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MULWQ-0008TU-OH@lionel-hutz.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:09 GMT