svn: /web/doc-editor/trunk/ error_type.php

From: Date: Mon, 22 Mar 2010 21:31:46 +0000
Subject: svn: /web/doc-editor/trunk/ error_type.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1645@lists.php.net to get a copy of this message
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/>'; } } } ?>

« previous php.doc.web (#1645) next »