W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

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

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 20 Mar 2010 17:17:45 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Nt2Iz-0008V6-7W@lionel-hutz.w3.org>
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 GMT

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