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

2006/unicorn/WebContent/WEB-INF/resources/templates language.vm,1.14,1.15 language.form.vm,1.6,1.7

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 13 Oct 2009 15:12:51 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mxj3T-0001Hr-79@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv4925/WebContent/WEB-INF/resources/templates

Modified Files:
	language.vm language.form.vm 
Log Message:
re-populated name, mail, comments fields 
+ xml:lang attributes
+ automatic selection of the language on /translations (dropdown menu) based on $native_lang

Index: language.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.vm,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- language.vm	12 Oct 2009 15:29:22 -0000	1.14
+++ language.vm	13 Oct 2009 15:12:49 -0000	1.15
@@ -23,7 +23,7 @@
 				<select name="${param_prefix}lang">
 					<optgroup label="Select a language">
 					#foreach ($key in $availableLocales.keySet())
-						<option value="$key">$availableLocales.get($key)</option>
+						<option value="$key" xml:lang="$key" #if($native_lang == $key)selected="selected"#end>$availableLocales.get($key)</option>
 					#end
 					</optgroup>
 				</select>
@@ -69,7 +69,7 @@
 					<th class="property_name" scope="row">$key <p>$esc.html($defaultProps.get($key))</p></th>
 					#foreach($prop in $languageProps)
 						#if($prop.get($key))
-						<td class="ok"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end>✔</span></td>
+						<td class="ok"><span xml:lang="$prop.get('lang')" #if($prop.get($key))title="$!esc.html($prop.get($key))"#end>✔</span></td>
 						#{else}
 						<td class="missing"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end><a href="./translations?ucn_lang=$prop.get('lang')">✘</a></span></td>
 						#end

Index: language.form.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.form.vm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- language.form.vm	12 Oct 2009 16:01:28 -0000	1.6
+++ language.form.vm	13 Oct 2009 15:12:49 -0000	1.7
@@ -12,9 +12,9 @@
 		
 		<fieldset class="about_you">
 			<legend>About you</legend>
-			<label for="name"><span>Name<b style="color:red">*</b>:</span><input type="text" name="translator_name" id="name" size="50"/></label><br />
-			<label for="mail"><span>Email address<b style="color:red">*</b>:</span><input type="text" name="translator_mail" id="mail" size="50"/></label><br />
-			<label for="comments"><span>Comments:</span><textarea id="comments" name="translator_comments" rows="5" cols="20"></textarea></label>
+			<label for="name"><span>Name<b style="color:red">*</b>:</span><input type="text" name="translator_name" id="name" size="50" value="$!translator_name"/></label><br />
+			<label for="mail"><span>Email address<b style="color:red">*</b>:</span><input type="text" name="translator_mail" id="mail" size="50" value="$!translator_mail"/></label><br />
+			<label for="comments"><span>Comments:</span><textarea id="comments" name="translator_comments" rows="5" cols="20">$!translator_comments</textarea></label>
 		</fieldset>
 		
 		<fieldset class="translation">
Received on Tuesday, 13 October 2009 15:12:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC