svn: /web/doc-editor/trunk/ error_type.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Mon, 22 Mar 2010 21:31:46 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296630
Log:
Add new error type specific for EN files
Changed paths:
U web/doc-editor/trunk/error_type.php
Modified: web/doc-editor/trunk/error_type.php
===================================================================
--- web/doc-editor/trunk/error_type.php 2010-03-22 19:01:08 UTC (rev 296629)
+++ web/doc-editor/trunk/error_type.php 2010-03-22 21:31:46 UTC (rev 296630)
@@ -256,6 +256,9 @@
$error['attributXmlIdVarlistentry']['head'] = 'Varlistentry tag';
$error['attributXmlIdVarlistentry']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.';
+$error['acronym']['head'] = 'Missing acronym tag';
+$error['acronym']['desc'] = 'An acronym have been found but without <acronym> tag around him.';
+
$to_display = array();
// If $error_to_display is an empty array, we add it all errors (default page)
@@ -300,7 +303,7 @@
if (isset($error_to_display[$k2]['error'])) {
for ($i = 0; $i < count($error_to_display[$k2]['error']); $i++) {
echo 'value in En : ' . $error_to_display[$k2]['error'][$i]['value_en'] . '<br/>';
- echo 'value in ' . ucfirst($am->vcsLang) . ' : ' . $error_to_display[$k2]['error'][$i]['value_lang'] . '<br/>';
+ if( $am->vcsLang != 'en' ) { echo 'value in ' . ucfirst($am->vcsLang) . ' : ' . $error_to_display[$k2]['error'][$i]['value_lang'] . '<br/>'; }
}
}
?>