Pass the About page uri as a template variable
authorVivien Lacourba <vivien@w3.org>
Thu, 24 Oct 2013 11:19:38 +0200
changeset 422 c5ba57927e1e
parent 421 d5d80a8c51f8
child 423 05a7d2c336c5
Pass the About page uri as a template variable
langs/en.properties
templates/index.html.php
--- a/langs/en.properties	Thu Oct 24 10:14:44 2013 +0200
+++ b/langs/en.properties	Thu Oct 24 11:19:38 2013 +0200
@@ -3,7 +3,7 @@
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 title="W3C Internationalization Checker"
 subtitle="Is your page world ready?"
-intro="This checker performs various tests on a Web Page to determine its level of internationalisation-friendliness.  It also summarises key internationalization information about a page, such as character encoding and language declarations, etc. Please refer to the <a href='about'>About</a> page for more details."
+intro="This checker performs various tests on a Web Page to determine its level of internationalisation-friendliness.  It also summarises key internationalization information about a page, such as character encoding and language declarations, etc. Please refer to the <a href='%1'>About</a> page for more details."
 intro_links="If you wish to validate specific content such as <a title='W3C Markup Validation Service' href='http://validator.w3.org/'>markup validation</a>, <a title='W3C mobileOK Checker' href='http://validator.w3.org/mobile/'>mobileOK</a>, <a title='Feed validator, hosted at W3C' href='http://validator.w3.org/feed/'>RSS/Atom feeds</a>, <a title='W3C CSS Validation Service' href='http://jigsaw.w3.org/css-validator/'>CSS stylesheets</a>, or to <a title='W3C Link Checker' href='http://validator.w3.org/checklink'>find broken links</a>, there are <a href='http://www.w3.org/QA/Tools/'>other validators and tools</a> available."
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -403,4 +403,4 @@
 rep_latin_non_nfc_expl[]="Total number of non-NFC names: <strong>%1</strong>."
 rep_latin_non_nfc_expl[]="%2"
 rep_latin_non_nfc_todo="It is recommended to save all content as Unicode Normalization Form C (NFC)."
-rep_latin_non_nfc_link="<a href='http://www.w3.org/International/questions/qa-html-css-normalization'>Unicode normalization forms</a>"
\ No newline at end of file
+rep_latin_non_nfc_link="<a href='http://www.w3.org/International/questions/qa-html-css-normalization'>Unicode normalization forms</a>"
--- a/templates/index.html.php	Thu Oct 24 10:14:44 2013 +0200
+++ b/templates/index.html.php	Thu Oct 24 11:19:38 2013 +0200
@@ -14,7 +14,7 @@
 ?>
 
 	<div class="intro">
-		<p><?php _lang('intro') ?></p>
+		<p><?php _lang('intro', Conf::get('base_uri').'about'.(Conf::get('show_extension') ? '.php' : '')) ?></p>
 		<p><?php _lang('intro_links') ?></p>
 	</div>
 	<div class="disclaimer">
@@ -28,4 +28,4 @@
 		<script type="text/javascript" src="//www.w3.org/QA/Tools/w3c-include.js"></script>
 	</div>
 
-<?php include(PATH_TEMPLATES.'/html/footer.php');
\ No newline at end of file
+<?php include(PATH_TEMPLATES.'/html/footer.php');