2006/unicorn/WebContent/WEB-INF/resources/templates/includes footer.vm,1.13,1.14

Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes
In directory hutz:/tmp/cvs-serv32662/WebContent/WEB-INF/resources/templates/includes

Modified Files:
	footer.vm 
Log Message:
updated to match new code regarding localization

Index: footer.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes/footer.vm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- footer.vm	14 Jan 2010 14:01:59 -0000	1.13
+++ footer.vm	20 Mar 2010 17:17:43 -0000	1.14
@@ -5,12 +5,14 @@
 			<li><a href="${baseUri}translations" hreflang="en" title="$translations_title">$translations</a></li>
 	</ul>
 	<ul id="lang_choice">
-#foreach( $key in $languages.keySet() )
+#foreach( $locale in $languages )
 		<li>
-			#if ($key == $lang)
-			$languages.get($key)
+			#set($localeName = $strUtils.capitalize($locale.getDisplayName($locale)))
+			#if ($locale.getName() == $lang)
+			$localeName
 			#else
-			<a href="${queryString}ucn_lang=$key" lang="$key" xml:lang="$key" hreflang="$key" rel="alternate">$languages.get($key)</a>
+			#set($langKey = $locale.getName())
+			<a href="${queryString}ucn_lang=$langKey" lang="$langKey" xml:lang="$langKey" hreflang="$langKey" rel="alternate">$localeName</a>
 			#end
 		</li>
 #end

Received on Saturday, 20 March 2010 17:17:46 UTC