cvs: doc-editor / error_type.php /php ToolsError.php
| From: | Yannick Torres | Date: | Sun, 19 Apr 2009 14:15:56 +0000 |
| Subject: | cvs: doc-editor / error_type.php /php ToolsError.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3802@lists.php.net to get a copy of this message | ||
yannick Sun Apr 19 14:15:56 2009 UTC
Modified files:
/doc-editor/php ToolsError.php
/doc-editor error_type.php
Log:
- Add some new check
- "*tags" => "*tag"
http://cvs.php.net/viewvc.cgi/doc-editor/php/ToolsError.php?r1=1.3&r2=1.4&diff_format=u Index: doc-editor/php/ToolsError.php diff -u doc-editor/php/ToolsError.php:1.3 doc-editor/php/ToolsError.php:1.4 --- doc-editor/php/ToolsError.php:1.3 Sun Apr 19 13:15:15 2009 +++ doc-editor/php/ToolsError.php Sun Apr 19 14:15:56 2009 @@ -194,7 +194,7 @@ function getFilesError($ModifiedFiles) { if ($_SESSION['userConf']['conf_error_skipnbliteraltag'] == 'true' ) { - $type = ' type != \'nbLiteralTags\' AND '; + $type = ' type != \'nbLiteralTag\' AND '; } else { $type = ''; } @@ -304,41 +304,47 @@ function run() { - $this->attributAppendixTags(); - $this->attributBookTags(); - $this->attributChapterTags(); - $this->attributLinkTags(); - $this->attributPrefaceTags(); - $this->attributQandaentryTags(); - $this->attributRefsec1Tags(); - $this->attributRefentryTags(); - $this->attributReferenceTags(); - $this->attributSect1Tags(); - $this->attributSectionTags(); - $this->attributVarlistentryTags(); + $this->attributAppendixTag(); + $this->attributBookTag(); + $this->attributChapterTag(); + $this->attributLinkTag(); + $this->attributPrefaceTag(); + $this->attributQandaentryTag(); + $this->attributRefsec1Tag(); + $this->attributRefentryTag(); + $this->attributReferenceTag(); + $this->attributSect1Tag(); + $this->attributSectionTag(); + $this->attributVarlistentryTag(); $this->classsynopsis(); $this->methodsynopsis(); - $this->nbCdataTags(); + $this->nbAcronymTag(); + $this->nbCautionTag(); + $this->nbCdataTag(); $this->nbChapterTag(); $this->nbCommandTag(); + $this->nbConstantTag(); $this->nbElInTable(); $this->nbEmphasisTag(); + $this->nbFilenameTag(); $this->nbLiteralTag(); $this->nbMemberInSeeAlso(); $this->nbNoteTag(); $this->nbParaTag(); - $this->nbTipTag(); // + $this->nbSimparaTag(); + $this->nbTipTag(); $this->nbVarnameTag(); - $this->spaceOrPeriodRefpurposeTags(); + $this->nbWarningTag(); + $this->spaceOrPeriodRefpurposeTag(); } /** - * Check attributs in chapter tags + * Check attributs in chapter tag * Add an entry into the error's stack if an error is found * */ - function attributChapterTags() + function attributChapterTag() { $reg = '/<chapter\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?(version="(.*?)"\s*?)?>/s'; @@ -400,11 +406,11 @@ } /** - * Check attributs in appendix tags + * Check attributs in appendix tag * Add an entry into the error's stack if an error is found * */ - function attributAppendixTags() + function attributAppendixTag() { $reg = '/<appendix\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -448,11 +454,11 @@ } /** - * Check attributs in qandaentry tags + * Check attributs in qandaentry tag * Add an entry into the error's stack if an error is found * */ - function attributQandaentryTags() + function attributQandaentryTag() { $reg = '/<qandaentry\s*?xml:id="(.*?)"\s*?>/s'; @@ -488,11 +494,11 @@ } /** - * Check attributs in Link tags + * Check attributs in Link tag * Add an entry into the error's stack if an error is found * */ - function attributLinkTags() + function attributLinkTag() { $reg = '/<link\s*?xlink:href="(.*?)">/s'; @@ -550,11 +556,11 @@ } /** - * Check attributs in Sect1 tags + * Check attributs in Sect1 tag * Add an entry into the error's stack if an error is found * */ - function attributSect1Tags() + function attributSect1Tag() { $reg = '/<sect1\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -606,11 +612,11 @@ } /** - * Check attributs in Book tags + * Check attributs in Book tag * Add an entry into the error's stack if an error is found * */ - function attributBookTags() + function attributBookTag() { $reg = '/<book\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -661,11 +667,11 @@ } /** - * Check attributs in Preface tags + * Check attributs in Preface tag * Add an entry into the error's stack if an error is found * */ - function attributPrefaceTags() + function attributPrefaceTag() { $reg = '/<preface\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -722,11 +728,11 @@ } /** - * Check attributs in Section tags + * Check attributs in Section tag * Add an entry into the error's stack if an error is found * */ - function attributSectionTags() + function attributSectionTag() { $reg = '/<section\s*?xml:id=("|\')(.*?)("|\')\s*?(xmlns=("|\')(.*?)("|\'))?\s*?(xmlns:xlink=("|\')(.*?)("|\')\s*?)?>/s'; @@ -787,11 +793,11 @@ } /** - * Check attributs in Varlistentry tags + * Check attributs in Varlistentry tag * Add an entry into the error's stack if an error is found * */ - function attributVarlistentryTags() + function attributVarlistentryTag() { $reg = '/<varlistentry\s*?xml:id=("|\')(.*?)("|\')\s*?>/s'; @@ -826,11 +832,11 @@ } /** - * Check attributs in Reference tags + * Check attributs in Reference tag * Add an entry into the error's stack if an error is found * */ - function attributReferenceTags() + function attributReferenceTag() { $reg = '/<reference\s*?xml:id="(.*?)"\s*?xmlns="(.*?)"\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -894,11 +900,11 @@ } /** - * Check attributs in Refentry tags + * Check attributs in Refentry tag * Add an entry into the error's stack if an error is found * */ - function attributRefentryTags() + function attributRefentryTag() { $reg = '/<refentry\s*?xml:id="(.*?)"\s*?xmlns="(.*?)"\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -963,11 +969,11 @@ } /** - * Check attributs in Refsec1 tags + * Check attributs in Refsec1 tag * Add an entry into the error's stack if an error is found * */ - function attributRefsec1Tags() + function attributRefsec1Tag() { $reg = '/<refsect1\s*?role="(.*?)"\s*?>/s'; @@ -994,11 +1000,11 @@ } /** - * Check Space or period at the end of Refpurpose tags + * Check Space or period at the end of Refpurpose tag * Add an entry into the error's stack if an error is found * */ - function spaceOrPeriodRefpurposeTags() + function spaceOrPeriodRefpurposeTag() { $reg = '/<refpurpose>.*([^A-Za-z1-9 ])<\/refpurpose>/s'; @@ -1019,11 +1025,11 @@ } /** - * Check Nb <![CDATA tags + * Check Nb <![CDATA tag * Add an entry into the error's stack if an error is found * */ - function nbCdataTags() + function nbCdataTag() { $reg = '/<!\[CDATA\[(.*?)\]\]>/s'; @@ -1044,13 +1050,13 @@ $this->addError(array( "value_en" => $en_cdataSection, "value_lang" => $lang_cdataSection, - "type" => "nbCdataTags" + "type" => "nbCdataTag" )); } } /** - * Check error in <classsynopsis> tags + * Check error in <classsynopsis> tag * Add an entry into the error's stack if an error is found * */ @@ -1200,7 +1206,7 @@ } /** - * Check Nb <para> tags + * Check Nb <para> tag * Add an entry into the error's stack if an error is found * */ @@ -1221,14 +1227,14 @@ $this->addError(array( 'value_en' => $en_para, 'value_lang' => $lang_para, - 'type' => 'nbParaTags' + 'type' => 'nbParaTag' )); } } /** - * Check Nb <note> tags + * Check Nb <note> tag * Add an entry into the error's stack if an error is found * */ @@ -1253,14 +1259,14 @@ $this->addError(array( "value_en" => $en_note, "value_lang" => $lang_note, - "type" => "nbNoteTags" + "type" => "nbNoteTag" )); } } /** - * Check Nb <chapter> tags + * Check Nb <chapter> tag * Add an entry into the error's stack if an error is found * */ @@ -1285,13 +1291,199 @@ $this->addError(array( "value_en" => $en_chapter, "value_lang" => $lang_chapter, - "type" => "nbChapterTags" + "type" => "nbChapterTag" )); } } /** - * Check Nb <tip> tags + * Check Nb <caution> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbCautionTag() + { + + $reg = '/<caution>/s'; + + $en_Caution = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_Caution = count($match[0]); + } + + $lang_Caution = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_Caution = count($match[0]); + } + + if ($en_Caution != $lang_Caution ) { + $this->addError(array( + "value_en" => $en_Caution, + "value_lang" => $lang_Caution, + "type" => "nbCautionTag" + )); + } + } + + /** + * Check Nb <filename> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbFilenameTag() + { + + $reg = '/<filename>/s'; + + $en_filename = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_filename = count($match[0]); + } + + $lang_filename = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_filename = count($match[0]); + } + + if ($en_filename != $lang_filename ) { + $this->addError(array( + "value_en" => $en_filename, + "value_lang" => $lang_filename, + "type" => "nbFilenameTag" + )); + } + } + + /** + * Check Nb <acronym> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbAcronymTag() + { + + $reg = '/<constant>/s'; + + $en_acronym = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_acronym = count($match[0]); + } + + $lang_acronym = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_acronym = count($match[0]); + } + + if ($en_acronym != $lang_acronym ) { + $this->addError(array( + "value_en" => $en_acronym, + "value_lang" => $lang_acronym, + "type" => "nbAcronymTag" + )); + } + } + + /** + * Check Nb <constant> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbConstantTag() + { + + $reg = '/<constant>/s'; + + $en_constant = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_constant = count($match[0]); + } + + $lang_constant = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_constant = count($match[0]); + } + + if ($en_constant != $lang_constant ) { + $this->addError(array( + "value_en" => $en_constant, + "value_lang" => $lang_constant, + "type" => "nbConstantTag" + )); + } + } + + /** + * Check Nb <warning> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbWarningTag() + { + + $reg = '/<warning>/s'; + + $en_warning = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_warning = count($match[0]); + } + + $lang_warning = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_warning = count($match[0]); + } + + if ($en_warning != $lang_warning ) { + $this->addError(array( + "value_en" => $en_warning, + "value_lang" => $lang_warning, + "type" => "nbWarningTag" + )); + } + } + + /** + * Check Nb <simpara> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbSimparaTag() + { + + $reg = '/<simpara>/s'; + + $en_simpara = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_simpara = count($match[0]); + } + + $lang_simpara = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_simpara = count($match[0]); + } + + if ($en_simpara != $lang_simpara ) { + $this->addError(array( + "value_en" => $en_simpara, + "value_lang" => $lang_simpara, + "type" => "nbSimparaTag" + )); + } + } + + /** + * Check Nb <tip> tag * Add an entry into the error's stack if an error is found * */ @@ -1316,13 +1508,13 @@ $this->addError(array( "value_en" => $en_tip, "value_lang" => $lang_tip, - "type" => "nbTipTags" + "type" => "nbTipTag" )); } } /** - * Check Nb <varname> tags + * Check Nb <varname> tag * Add an entry into the error's stack if an error is found * */ @@ -1347,13 +1539,13 @@ $this->addError(array( "value_en" => $en_varname, "value_lang" => $lang_varname, - "type" => "nbVarnameTags" + "type" => "nbVarnameTag" )); } } /** - * Check Nb <emphasis> tags + * Check Nb <emphasis> tag * Add an entry into the error's stack if an error is found * */ @@ -1378,13 +1570,13 @@ $this->addError(array( "value_en" => $en_emphasis, "value_lang" => $lang_emphasis, - "type" => "nbEmphasisTags" + "type" => "nbEmphasisTag" )); } } /** - * Check Nb <command> tags + * Check Nb <command> tag * Add an entry into the error's stack if an error is found * */ @@ -1409,13 +1601,13 @@ $this->addError(array( "value_en" => $en_command, "value_lang" => $lang_command, - "type" => "nbCommandTags" + "type" => "nbCommandTag" )); } } /** - * Check Nb <literal> tags + * Check Nb <literal> tag * Add an entry into the error's stack if an error is found * */ @@ -1440,13 +1632,13 @@ $this->addError(array( "value_en" => $en_literal, "value_lang" => $lang_literal, - "type" => "nbLiteralTags" + "type" => "nbLiteralTag" )); } } /** - * Check attr in <row> tags + * Check attr in <row> tag * Add an entry into the error's stack if an error is found * */ @@ -1507,7 +1699,7 @@ $this->addError(array( 'value_en' => $en_tag, 'value_lang' => $lang_tag, - 'type' => 'nb' . ucfirst($tag) . 'Tags' + 'type' => 'nb' . ucfirst($tag) . 'Tag' )); } } http://cvs.php.net/viewvc.cgi/doc-editor/error_type.php?r1=1.6&r2=1.7&diff_format=u Index: doc-editor/error_type.php diff -u doc-editor/error_type.php:1.6 doc-editor/error_type.php:1.7 --- doc-editor/error_type.php:1.6 Sun Apr 19 13:15:15 2009 +++ doc-editor/error_type.php Sun Apr 19 14:15:56 2009 @@ -90,60 +90,72 @@ $error['-No error-']['head'] = '- No error -'; $error['-No error-']['desc'] = 'There is no more error in this file.'; -$error['attributXmlXlinkAppendix']['head'] = 'Appendix tags'; +$error['attributXmlXlinkAppendix']['head'] = 'Appendix tag'; $error['attributXmlXlinkAppendix']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsAppendix']['head'] = 'Appendix tags'; +$error['attributXmlNsAppendix']['head'] = 'Appendix tag'; $error['attributXmlNsAppendix']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdAppendix']['head'] = 'Appendix tags'; +$error['attributXmlIdAppendix']['head'] = 'Appendix tag'; $error['attributXmlIdAppendix']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlXlinkBook']['head'] = 'Book tags'; +$error['attributXmlXlinkBook']['head'] = 'Book tag'; $error['attributXmlXlinkBook']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsBook']['head'] = 'Book tags'; +$error['attributXmlNsBook']['head'] = 'Book tag'; $error['attributXmlNsBook']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdBook']['head'] = 'Book tags'; +$error['attributXmlIdBook']['head'] = 'Book tag'; $error['attributXmlIdBook']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['nbCdataTags']['head'] = 'Cdata section'; -$error['nbCdataTags']['desc'] = 'Throw if the number of <b>cdata</b> section is different from english version.'; +$error['nbCdataTag']['head'] = 'Cdata section'; +$error['nbCdataTag']['desc'] = 'Throw if the number of <b>cdata</b> section is different from english version.'; -$error['attributXmlXlinkChapter']['head'] = 'Chapter tags'; +$error['attributXmlXlinkChapter']['head'] = 'Chapter tag'; $error['attributXmlXlinkChapter']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsChapter']['head'] = 'Chapter tags'; +$error['attributXmlNsChapter']['head'] = 'Chapter tag'; $error['attributXmlNsChapter']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdChapter']['head'] = 'Chapter tags'; +$error['attributXmlIdChapter']['head'] = 'Chapter tag'; $error['attributXmlIdChapter']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributVersionChapter']['head'] = 'Chapter tags'; +$error['attributVersionChapter']['head'] = 'Chapter tag'; $error['attributVersionChapter']['desc'] = 'Throw if the value of the attribut <b>version</b> is different from english version.'; -$error['nbChapterTags']['head'] = 'Chapter tags'; -$error['nbChapterTags']['desc'] = 'Throw if the number of <b>chapter</b> tags is different from english version.'; +$error['nbChapterTag']['head'] = 'Chapter tag'; +$error['nbChapterTag']['desc'] = 'Throw if the number of <b>chapter</b> tags is different from english version.'; -$error['nbTipTags']['head'] = 'Tip tags'; -$error['nbTipTags']['desc'] = 'Throw if the number of <b>tip</b> tags is different from english version.'; +$error['nbSimparaTag']['head'] = 'Simpara tag'; +$error['nbSimparaTag']['desc'] = 'Throw if the number of <b>simpara</b> tags is different from english version.'; -$error['nbEntryTags']['head'] = 'Entry tags'; -$error['nbEntryTags']['desc'] = 'Throw if the number of <b>entry</b> tags is different from english version.'; +$error['nbCautionTag']['head'] = 'Caution tag'; +$error['nbCautionTag']['desc'] = 'Throw if the number of <b>caution</b> tags is different from english version.'; -$error['nbCommandTags']['head'] = 'Command tags'; -$error['nbCommandTags']['desc'] = 'Throw if the number of <b>command</b> tags is different from english version.'; +$error['nbAcronymTag']['head'] = 'Acronym tag'; +$error['nbAcronymTag']['desc'] = 'Throw if the number of <b>acronym</b> tags is different from english version.'; -$error['nbEmphasisTags']['head'] = 'Emphasis tags'; -$error['nbEmphasisTags']['desc'] = 'Throw if the number of <b>emphasis</b> tags is different from english version.'; +$error['nbConstantTag']['head'] = 'Constant tag'; +$error['nbConstantTag']['desc'] = 'Throw if the number of <b>constant</b> tags is different from english version.'; -$error['nbVarnameTags']['head'] = 'Varname tags'; -$error['nbVarnameTags']['desc'] = 'Throw if the number of <b>varname</b> tags is different from english version.'; +$error['nbTipTag']['head'] = 'Tip tag'; +$error['nbTipTag']['desc'] = 'Throw if the number of <b>tip</b> tags is different from english version.'; -$error['errorFieldsynopsisInitializer']['head'] = 'Fieldsynopsis tags'; +$error['nbEntryTag']['head'] = 'Entry tag'; +$error['nbEntryTag']['desc'] = 'Throw if the number of <b>entry</b> tags is different from english version.'; + +$error['nbCommandTag']['head'] = 'Command tag'; +$error['nbCommandTag']['desc'] = 'Throw if the number of <b>command</b> tags is different from english version.'; + +$error['nbEmphasisTag']['head'] = 'Emphasis tag'; +$error['nbEmphasisTag']['desc'] = 'Throw if the number of <b>emphasis</b> tags is different from english version.'; + +$error['nbVarnameTag']['head'] = 'Varname tag'; +$error['nbVarnameTag']['desc'] = 'Throw if the number of <b>varname</b> tags is different from english version.'; + +$error['errorFieldsynopsisInitializer']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisInitializer']['desc'] = 'Throw if the value of the <b>initializer</b> tags is different from english version.'; -$error['errorFieldsynopsisModifier']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisModifier']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisModifier']['desc'] = 'Throw if the value of the <b>modifier</b> tags is different from english version.'; -$error['errorFieldsynopsisType']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisType']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisType']['desc'] = 'Throw if the value of the <b>type</b> tags is different from english version.'; -$error['errorFieldsynopsisVarnameAttr']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisVarnameAttr']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisVarnameAttr']['desc'] = 'Throw if the value of the attribut <b>varname</b> is different from english version.'; -$error['errorFieldsynopsisVarnameValue']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisVarnameValue']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisVarnameValue']['desc'] = 'Throw if the value of the <b>varname</b> tags is different from english version.'; $error['attributLinkendLink']['head'] = 'Linkend and xlink tags'; @@ -151,96 +163,96 @@ $error['attributXlinkLink']['head'] = 'Linkend and xlink tags'; $error['attributXlinkLink']['desc'] = 'Throw if the value of the attribut <b>xlink:href</b> is different from english version.'; -$error['nbLiteralTags']['head'] = 'Literal tags'; -$error['nbLiteralTags']['desc'] = 'Throw if the number of <b>literal</b> tags is different from english version.'; +$error['nbLiteralTag']['head'] = 'Literal tag'; +$error['nbLiteralTag']['desc'] = 'Throw if the number of <b>literal</b> tags is different from english version.'; -$error['errorRoleMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorRoleMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorRoleMethodsynopsis']['desc'] = 'Throw if the value of the attribut <b>role</b> is different from english version.'; -$error['errorOptionalMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorOptionalMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorOptionalMethodsynopsis']['desc'] = 'Throw if the value of the attribut <b>choice</b> is different from english version.'; -$error['errorParameterInitializerMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorParameterInitializerMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorParameterInitializerMethodsynopsis']['desc'] = 'Throw if the value of the <b>initializer</b> tags is different from english version.'; -$error['errorParameterTypeMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorParameterTypeMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorParameterTypeMethodsynopsis']['desc'] = 'Throw if the value of the <b>type</b> tags is different from english version.'; -$error['errorParameterNameMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorParameterNameMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorParameterNameMethodsynopsis']['desc'] = 'Throw if the value of the <b>parameter</b> tags is different from english version.'; -$error['errorNbMethodparamMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorNbMethodparamMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorNbMethodparamMethodsynopsis']['desc'] = 'Throw if the number of <b>parameter</b> tags is different from english version.'; -$error['errorTypeMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorTypeMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorTypeMethodsynopsis']['desc'] = 'Throw if the value of the <b>type</b> tags is different from english version.'; -$error['errorMethodnameMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorMethodnameMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorMethodnameMethodsynopsis']['desc'] = 'Throw if the value of the <b>methodname</b> tags is different from english version.'; -$error['nbNoteTags']['head'] = 'Note tags'; -$error['nbNoteTags']['desc'] = 'Throw if the number of <b>note</b> tags is different from english version.'; +$error['nbNoteTag']['head'] = 'Note tag'; +$error['nbNoteTag']['desc'] = 'Throw if the number of <b>note</b> tags is different from english version.'; -$error['errorNbOoclassClassname']['head'] = 'Ooclass tags'; +$error['errorNbOoclassClassname']['head'] = 'Ooclass tag'; $error['errorNbOoclassClassname']['desc'] = 'Throw if the number of <b>classname</b> tags is different from english version.'; -$error['errorOoclassClassname']['head'] = 'Ooclass tags'; +$error['errorOoclassClassname']['head'] = 'Ooclass tag'; $error['errorOoclassClassname']['desc'] = 'Throw if the value of the <b>classname</b> tags is different from english version.'; -$error['nbParaTags']['head'] = 'Para tags'; -$error['nbParaTags']['desc'] = 'Throw if the number of <b>para</b> tags is different from english version.'; +$error['nbParaTag']['head'] = 'Para tag'; +$error['nbParaTag']['desc'] = 'Throw if the number of <b>para</b> tags is different from english version.'; -$error['attributXmlNsXlinkPreface']['head'] = 'Preface tags'; +$error['attributXmlNsXlinkPreface']['head'] = 'Preface tag'; $error['attributXmlNsXlinkPreface']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsPreface']['head'] = 'Preface tags'; +$error['attributXmlNsPreface']['head'] = 'Preface tag'; $error['attributXmlNsPreface']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdPreface']['head'] = 'Preface tags'; +$error['attributXmlIdPreface']['head'] = 'Preface tag'; $error['attributXmlIdPreface']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlIdQandaentry']['head'] = 'Qandaentry tags'; +$error['attributXmlIdQandaentry']['head'] = 'Qandaentry tag'; $error['attributXmlIdQandaentry']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkRefentry']['head'] = 'Refentry tags'; +$error['attributXmlNsXlinkRefentry']['head'] = 'Refentry tag'; $error['attributXmlNsXlinkRefentry']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsRefentry']['head'] = 'Refentry tags'; +$error['attributXmlNsRefentry']['head'] = 'Refentry tag'; $error['attributXmlNsRefentry']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdRefentry']['head'] = 'Refentry tags'; +$error['attributXmlIdRefentry']['head'] = 'Refentry tag'; $error['attributXmlIdRefentry']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkReference']['head'] = 'Reference tags'; +$error['attributXmlNsXlinkReference']['head'] = 'Reference tag'; $error['attributXmlNsXlinkReference']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsReference']['head'] = 'Reference tags'; +$error['attributXmlNsReference']['head'] = 'Reference tag'; $error['attributXmlNsReference']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIDReference']['head'] = 'Reference tags'; +$error['attributXmlIDReference']['head'] = 'Reference tag'; $error['attributXmlIDReference']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['spaceOrPeriodRefpurpose']['head'] = 'Refpurpose tags'; +$error['spaceOrPeriodRefpurpose']['head'] = 'Refpurpose tag'; $error['spaceOrPeriodRefpurpose']['desc'] = 'Throw if there is a space or a period at the end of refpurpose value.'; -$error['attributRefsect1']['head'] = 'Refsect1 tags'; +$error['attributRefsect1']['head'] = 'Refsect1 tag'; $error['attributRefsect1']['desc'] = 'Throw if the value of the attribut <b>role</b> is different from english version.'; -$error['nbRowTags']['head'] = 'Row tags'; -$error['nbRowTags']['desc'] = 'Throw if the number of <b>row</b> tags is different from english version.'; -$error['attributXmlIdRow']['head'] = 'Row tags'; +$error['nbRowTag']['head'] = 'Row tag'; +$error['nbRowTag']['desc'] = 'Throw if the number of <b>row</b> tags is different from english version.'; +$error['attributXmlIdRow']['head'] = 'Row tag'; $error['attributXmlIdRow']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkSect1']['head'] = 'Sect1 tags'; +$error['attributXmlNsXlinkSect1']['head'] = 'Sect1 tag'; $error['attributXmlNsXlinkSect1']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsSect1']['head'] = 'Sect1 tags'; +$error['attributXmlNsSect1']['head'] = 'Sect1 tag'; $error['attributXmlNsSect1']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdSect1']['head'] = 'Sect1 tags'; +$error['attributXmlIdSect1']['head'] = 'Sect1 tag'; $error['attributXmlIdSect1']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkSection']['head'] = 'Section tags'; +$error['attributXmlNsXlinkSection']['head'] = 'Section tag'; $error['attributXmlNsXlinkSection']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsSection']['head'] = 'section tags'; +$error['attributXmlNsSection']['head'] = 'section tag'; $error['attributXmlNsSection']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdSection']['head'] = 'section tags'; +$error['attributXmlIdSection']['head'] = 'section tag'; $error['attributXmlIdSection']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; $error['nbSeeAlsoMember']['head'] = 'SeeAlso section'; $error['nbSeeAlsoMember']['desc'] = 'Throw if the number of <b>member</b> tags is different from english version.'; -$error['nbTbodyTags']['head'] = 'Tbody tags'; -$error['nbTbodyTags']['desc'] = 'Throw if the number of <b>tbody</b> tags is different from english version.'; +$error['nbTbodyTag']['head'] = 'Tbody tag'; +$error['nbTbodyTag']['desc'] = 'Throw if the number of <b>tbody</b> tags is different from english version.'; -$error['nbTheadTags']['head'] = 'Thead tags'; -$error['nbTheadTags']['desc'] = 'Throw if the number of <b>thead</b> tags is different from english version.'; +$error['nbTheadTag']['head'] = 'Thead tag'; +$error['nbTheadTag']['desc'] = 'Throw if the number of <b>thead</b> tags is different from english version.'; -$error['attributXmlIdVarlistentry']['head'] = 'varlistentry tags'; +$error['attributXmlIdVarlistentry']['head'] = 'varlistentry tag'; $error['attributXmlIdVarlistentry']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; $to_display = array();
http://cvs.php.net/viewvc.cgi/doc-editor/php/ToolsError.php?r1=1.3&r2=1.4&diff_format=u Index: doc-editor/php/ToolsError.php diff -u doc-editor/php/ToolsError.php:1.3 doc-editor/php/ToolsError.php:1.4 --- doc-editor/php/ToolsError.php:1.3 Sun Apr 19 13:15:15 2009 +++ doc-editor/php/ToolsError.php Sun Apr 19 14:15:56 2009 @@ -194,7 +194,7 @@ function getFilesError($ModifiedFiles) { if ($_SESSION['userConf']['conf_error_skipnbliteraltag'] == 'true' ) { - $type = ' type != \'nbLiteralTags\' AND '; + $type = ' type != \'nbLiteralTag\' AND '; } else { $type = ''; } @@ -304,41 +304,47 @@ function run() { - $this->attributAppendixTags(); - $this->attributBookTags(); - $this->attributChapterTags(); - $this->attributLinkTags(); - $this->attributPrefaceTags(); - $this->attributQandaentryTags(); - $this->attributRefsec1Tags(); - $this->attributRefentryTags(); - $this->attributReferenceTags(); - $this->attributSect1Tags(); - $this->attributSectionTags(); - $this->attributVarlistentryTags(); + $this->attributAppendixTag(); + $this->attributBookTag(); + $this->attributChapterTag(); + $this->attributLinkTag(); + $this->attributPrefaceTag(); + $this->attributQandaentryTag(); + $this->attributRefsec1Tag(); + $this->attributRefentryTag(); + $this->attributReferenceTag(); + $this->attributSect1Tag(); + $this->attributSectionTag(); + $this->attributVarlistentryTag(); $this->classsynopsis(); $this->methodsynopsis(); - $this->nbCdataTags(); + $this->nbAcronymTag(); + $this->nbCautionTag(); + $this->nbCdataTag(); $this->nbChapterTag(); $this->nbCommandTag(); + $this->nbConstantTag(); $this->nbElInTable(); $this->nbEmphasisTag(); + $this->nbFilenameTag(); $this->nbLiteralTag(); $this->nbMemberInSeeAlso(); $this->nbNoteTag(); $this->nbParaTag(); - $this->nbTipTag(); // + $this->nbSimparaTag(); + $this->nbTipTag(); $this->nbVarnameTag(); - $this->spaceOrPeriodRefpurposeTags(); + $this->nbWarningTag(); + $this->spaceOrPeriodRefpurposeTag(); } /** - * Check attributs in chapter tags + * Check attributs in chapter tag * Add an entry into the error's stack if an error is found * */ - function attributChapterTags() + function attributChapterTag() { $reg = '/<chapter\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?(version="(.*?)"\s*?)?>/s'; @@ -400,11 +406,11 @@ } /** - * Check attributs in appendix tags + * Check attributs in appendix tag * Add an entry into the error's stack if an error is found * */ - function attributAppendixTags() + function attributAppendixTag() { $reg = '/<appendix\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -448,11 +454,11 @@ } /** - * Check attributs in qandaentry tags + * Check attributs in qandaentry tag * Add an entry into the error's stack if an error is found * */ - function attributQandaentryTags() + function attributQandaentryTag() { $reg = '/<qandaentry\s*?xml:id="(.*?)"\s*?>/s'; @@ -488,11 +494,11 @@ } /** - * Check attributs in Link tags + * Check attributs in Link tag * Add an entry into the error's stack if an error is found * */ - function attributLinkTags() + function attributLinkTag() { $reg = '/<link\s*?xlink:href="(.*?)">/s'; @@ -550,11 +556,11 @@ } /** - * Check attributs in Sect1 tags + * Check attributs in Sect1 tag * Add an entry into the error's stack if an error is found * */ - function attributSect1Tags() + function attributSect1Tag() { $reg = '/<sect1\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -606,11 +612,11 @@ } /** - * Check attributs in Book tags + * Check attributs in Book tag * Add an entry into the error's stack if an error is found * */ - function attributBookTags() + function attributBookTag() { $reg = '/<book\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -661,11 +667,11 @@ } /** - * Check attributs in Preface tags + * Check attributs in Preface tag * Add an entry into the error's stack if an error is found * */ - function attributPrefaceTags() + function attributPrefaceTag() { $reg = '/<preface\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -722,11 +728,11 @@ } /** - * Check attributs in Section tags + * Check attributs in Section tag * Add an entry into the error's stack if an error is found * */ - function attributSectionTags() + function attributSectionTag() { $reg = '/<section\s*?xml:id=("|\')(.*?)("|\')\s*?(xmlns=("|\')(.*?)("|\'))?\s*?(xmlns:xlink=("|\')(.*?)("|\')\s*?)?>/s'; @@ -787,11 +793,11 @@ } /** - * Check attributs in Varlistentry tags + * Check attributs in Varlistentry tag * Add an entry into the error's stack if an error is found * */ - function attributVarlistentryTags() + function attributVarlistentryTag() { $reg = '/<varlistentry\s*?xml:id=("|\')(.*?)("|\')\s*?>/s'; @@ -826,11 +832,11 @@ } /** - * Check attributs in Reference tags + * Check attributs in Reference tag * Add an entry into the error's stack if an error is found * */ - function attributReferenceTags() + function attributReferenceTag() { $reg = '/<reference\s*?xml:id="(.*?)"\s*?xmlns="(.*?)"\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -894,11 +900,11 @@ } /** - * Check attributs in Refentry tags + * Check attributs in Refentry tag * Add an entry into the error's stack if an error is found * */ - function attributRefentryTags() + function attributRefentryTag() { $reg = '/<refentry\s*?xml:id="(.*?)"\s*?xmlns="(.*?)"\s*?(xmlns:xlink="(.*?)"\s*?)?>/s'; @@ -963,11 +969,11 @@ } /** - * Check attributs in Refsec1 tags + * Check attributs in Refsec1 tag * Add an entry into the error's stack if an error is found * */ - function attributRefsec1Tags() + function attributRefsec1Tag() { $reg = '/<refsect1\s*?role="(.*?)"\s*?>/s'; @@ -994,11 +1000,11 @@ } /** - * Check Space or period at the end of Refpurpose tags + * Check Space or period at the end of Refpurpose tag * Add an entry into the error's stack if an error is found * */ - function spaceOrPeriodRefpurposeTags() + function spaceOrPeriodRefpurposeTag() { $reg = '/<refpurpose>.*([^A-Za-z1-9 ])<\/refpurpose>/s'; @@ -1019,11 +1025,11 @@ } /** - * Check Nb <![CDATA tags + * Check Nb <![CDATA tag * Add an entry into the error's stack if an error is found * */ - function nbCdataTags() + function nbCdataTag() { $reg = '/<!\[CDATA\[(.*?)\]\]>/s'; @@ -1044,13 +1050,13 @@ $this->addError(array( "value_en" => $en_cdataSection, "value_lang" => $lang_cdataSection, - "type" => "nbCdataTags" + "type" => "nbCdataTag" )); } } /** - * Check error in <classsynopsis> tags + * Check error in <classsynopsis> tag * Add an entry into the error's stack if an error is found * */ @@ -1200,7 +1206,7 @@ } /** - * Check Nb <para> tags + * Check Nb <para> tag * Add an entry into the error's stack if an error is found * */ @@ -1221,14 +1227,14 @@ $this->addError(array( 'value_en' => $en_para, 'value_lang' => $lang_para, - 'type' => 'nbParaTags' + 'type' => 'nbParaTag' )); } } /** - * Check Nb <note> tags + * Check Nb <note> tag * Add an entry into the error's stack if an error is found * */ @@ -1253,14 +1259,14 @@ $this->addError(array( "value_en" => $en_note, "value_lang" => $lang_note, - "type" => "nbNoteTags" + "type" => "nbNoteTag" )); } } /** - * Check Nb <chapter> tags + * Check Nb <chapter> tag * Add an entry into the error's stack if an error is found * */ @@ -1285,13 +1291,199 @@ $this->addError(array( "value_en" => $en_chapter, "value_lang" => $lang_chapter, - "type" => "nbChapterTags" + "type" => "nbChapterTag" )); } } /** - * Check Nb <tip> tags + * Check Nb <caution> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbCautionTag() + { + + $reg = '/<caution>/s'; + + $en_Caution = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_Caution = count($match[0]); + } + + $lang_Caution = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_Caution = count($match[0]); + } + + if ($en_Caution != $lang_Caution ) { + $this->addError(array( + "value_en" => $en_Caution, + "value_lang" => $lang_Caution, + "type" => "nbCautionTag" + )); + } + } + + /** + * Check Nb <filename> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbFilenameTag() + { + + $reg = '/<filename>/s'; + + $en_filename = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_filename = count($match[0]); + } + + $lang_filename = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_filename = count($match[0]); + } + + if ($en_filename != $lang_filename ) { + $this->addError(array( + "value_en" => $en_filename, + "value_lang" => $lang_filename, + "type" => "nbFilenameTag" + )); + } + } + + /** + * Check Nb <acronym> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbAcronymTag() + { + + $reg = '/<constant>/s'; + + $en_acronym = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_acronym = count($match[0]); + } + + $lang_acronym = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_acronym = count($match[0]); + } + + if ($en_acronym != $lang_acronym ) { + $this->addError(array( + "value_en" => $en_acronym, + "value_lang" => $lang_acronym, + "type" => "nbAcronymTag" + )); + } + } + + /** + * Check Nb <constant> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbConstantTag() + { + + $reg = '/<constant>/s'; + + $en_constant = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_constant = count($match[0]); + } + + $lang_constant = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_constant = count($match[0]); + } + + if ($en_constant != $lang_constant ) { + $this->addError(array( + "value_en" => $en_constant, + "value_lang" => $lang_constant, + "type" => "nbConstantTag" + )); + } + } + + /** + * Check Nb <warning> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbWarningTag() + { + + $reg = '/<warning>/s'; + + $en_warning = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_warning = count($match[0]); + } + + $lang_warning = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_warning = count($match[0]); + } + + if ($en_warning != $lang_warning ) { + $this->addError(array( + "value_en" => $en_warning, + "value_lang" => $lang_warning, + "type" => "nbWarningTag" + )); + } + } + + /** + * Check Nb <simpara> tag + * Add an entry into the error's stack if an error is found + * + */ + function nbSimparaTag() + { + + $reg = '/<simpara>/s'; + + $en_simpara = 0; + $match = array(); + if (preg_match_all($reg, $this->en_content, $match)) { + $en_simpara = count($match[0]); + } + + $lang_simpara = 0; + $match = array(); + if (preg_match_all($reg, $this->lang_content, $match)) { + $lang_simpara = count($match[0]); + } + + if ($en_simpara != $lang_simpara ) { + $this->addError(array( + "value_en" => $en_simpara, + "value_lang" => $lang_simpara, + "type" => "nbSimparaTag" + )); + } + } + + /** + * Check Nb <tip> tag * Add an entry into the error's stack if an error is found * */ @@ -1316,13 +1508,13 @@ $this->addError(array( "value_en" => $en_tip, "value_lang" => $lang_tip, - "type" => "nbTipTags" + "type" => "nbTipTag" )); } } /** - * Check Nb <varname> tags + * Check Nb <varname> tag * Add an entry into the error's stack if an error is found * */ @@ -1347,13 +1539,13 @@ $this->addError(array( "value_en" => $en_varname, "value_lang" => $lang_varname, - "type" => "nbVarnameTags" + "type" => "nbVarnameTag" )); } } /** - * Check Nb <emphasis> tags + * Check Nb <emphasis> tag * Add an entry into the error's stack if an error is found * */ @@ -1378,13 +1570,13 @@ $this->addError(array( "value_en" => $en_emphasis, "value_lang" => $lang_emphasis, - "type" => "nbEmphasisTags" + "type" => "nbEmphasisTag" )); } } /** - * Check Nb <command> tags + * Check Nb <command> tag * Add an entry into the error's stack if an error is found * */ @@ -1409,13 +1601,13 @@ $this->addError(array( "value_en" => $en_command, "value_lang" => $lang_command, - "type" => "nbCommandTags" + "type" => "nbCommandTag" )); } } /** - * Check Nb <literal> tags + * Check Nb <literal> tag * Add an entry into the error's stack if an error is found * */ @@ -1440,13 +1632,13 @@ $this->addError(array( "value_en" => $en_literal, "value_lang" => $lang_literal, - "type" => "nbLiteralTags" + "type" => "nbLiteralTag" )); } } /** - * Check attr in <row> tags + * Check attr in <row> tag * Add an entry into the error's stack if an error is found * */ @@ -1507,7 +1699,7 @@ $this->addError(array( 'value_en' => $en_tag, 'value_lang' => $lang_tag, - 'type' => 'nb' . ucfirst($tag) . 'Tags' + 'type' => 'nb' . ucfirst($tag) . 'Tag' )); } } http://cvs.php.net/viewvc.cgi/doc-editor/error_type.php?r1=1.6&r2=1.7&diff_format=u Index: doc-editor/error_type.php diff -u doc-editor/error_type.php:1.6 doc-editor/error_type.php:1.7 --- doc-editor/error_type.php:1.6 Sun Apr 19 13:15:15 2009 +++ doc-editor/error_type.php Sun Apr 19 14:15:56 2009 @@ -90,60 +90,72 @@ $error['-No error-']['head'] = '- No error -'; $error['-No error-']['desc'] = 'There is no more error in this file.'; -$error['attributXmlXlinkAppendix']['head'] = 'Appendix tags'; +$error['attributXmlXlinkAppendix']['head'] = 'Appendix tag'; $error['attributXmlXlinkAppendix']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsAppendix']['head'] = 'Appendix tags'; +$error['attributXmlNsAppendix']['head'] = 'Appendix tag'; $error['attributXmlNsAppendix']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdAppendix']['head'] = 'Appendix tags'; +$error['attributXmlIdAppendix']['head'] = 'Appendix tag'; $error['attributXmlIdAppendix']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlXlinkBook']['head'] = 'Book tags'; +$error['attributXmlXlinkBook']['head'] = 'Book tag'; $error['attributXmlXlinkBook']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsBook']['head'] = 'Book tags'; +$error['attributXmlNsBook']['head'] = 'Book tag'; $error['attributXmlNsBook']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdBook']['head'] = 'Book tags'; +$error['attributXmlIdBook']['head'] = 'Book tag'; $error['attributXmlIdBook']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['nbCdataTags']['head'] = 'Cdata section'; -$error['nbCdataTags']['desc'] = 'Throw if the number of <b>cdata</b> section is different from english version.'; +$error['nbCdataTag']['head'] = 'Cdata section'; +$error['nbCdataTag']['desc'] = 'Throw if the number of <b>cdata</b> section is different from english version.'; -$error['attributXmlXlinkChapter']['head'] = 'Chapter tags'; +$error['attributXmlXlinkChapter']['head'] = 'Chapter tag'; $error['attributXmlXlinkChapter']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsChapter']['head'] = 'Chapter tags'; +$error['attributXmlNsChapter']['head'] = 'Chapter tag'; $error['attributXmlNsChapter']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdChapter']['head'] = 'Chapter tags'; +$error['attributXmlIdChapter']['head'] = 'Chapter tag'; $error['attributXmlIdChapter']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributVersionChapter']['head'] = 'Chapter tags'; +$error['attributVersionChapter']['head'] = 'Chapter tag'; $error['attributVersionChapter']['desc'] = 'Throw if the value of the attribut <b>version</b> is different from english version.'; -$error['nbChapterTags']['head'] = 'Chapter tags'; -$error['nbChapterTags']['desc'] = 'Throw if the number of <b>chapter</b> tags is different from english version.'; +$error['nbChapterTag']['head'] = 'Chapter tag'; +$error['nbChapterTag']['desc'] = 'Throw if the number of <b>chapter</b> tags is different from english version.'; -$error['nbTipTags']['head'] = 'Tip tags'; -$error['nbTipTags']['desc'] = 'Throw if the number of <b>tip</b> tags is different from english version.'; +$error['nbSimparaTag']['head'] = 'Simpara tag'; +$error['nbSimparaTag']['desc'] = 'Throw if the number of <b>simpara</b> tags is different from english version.'; -$error['nbEntryTags']['head'] = 'Entry tags'; -$error['nbEntryTags']['desc'] = 'Throw if the number of <b>entry</b> tags is different from english version.'; +$error['nbCautionTag']['head'] = 'Caution tag'; +$error['nbCautionTag']['desc'] = 'Throw if the number of <b>caution</b> tags is different from english version.'; -$error['nbCommandTags']['head'] = 'Command tags'; -$error['nbCommandTags']['desc'] = 'Throw if the number of <b>command</b> tags is different from english version.'; +$error['nbAcronymTag']['head'] = 'Acronym tag'; +$error['nbAcronymTag']['desc'] = 'Throw if the number of <b>acronym</b> tags is different from english version.'; -$error['nbEmphasisTags']['head'] = 'Emphasis tags'; -$error['nbEmphasisTags']['desc'] = 'Throw if the number of <b>emphasis</b> tags is different from english version.'; +$error['nbConstantTag']['head'] = 'Constant tag'; +$error['nbConstantTag']['desc'] = 'Throw if the number of <b>constant</b> tags is different from english version.'; -$error['nbVarnameTags']['head'] = 'Varname tags'; -$error['nbVarnameTags']['desc'] = 'Throw if the number of <b>varname</b> tags is different from english version.'; +$error['nbTipTag']['head'] = 'Tip tag'; +$error['nbTipTag']['desc'] = 'Throw if the number of <b>tip</b> tags is different from english version.'; -$error['errorFieldsynopsisInitializer']['head'] = 'Fieldsynopsis tags'; +$error['nbEntryTag']['head'] = 'Entry tag'; +$error['nbEntryTag']['desc'] = 'Throw if the number of <b>entry</b> tags is different from english version.'; + +$error['nbCommandTag']['head'] = 'Command tag'; +$error['nbCommandTag']['desc'] = 'Throw if the number of <b>command</b> tags is different from english version.'; + +$error['nbEmphasisTag']['head'] = 'Emphasis tag'; +$error['nbEmphasisTag']['desc'] = 'Throw if the number of <b>emphasis</b> tags is different from english version.'; + +$error['nbVarnameTag']['head'] = 'Varname tag'; +$error['nbVarnameTag']['desc'] = 'Throw if the number of <b>varname</b> tags is different from english version.'; + +$error['errorFieldsynopsisInitializer']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisInitializer']['desc'] = 'Throw if the value of the <b>initializer</b> tags is different from english version.'; -$error['errorFieldsynopsisModifier']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisModifier']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisModifier']['desc'] = 'Throw if the value of the <b>modifier</b> tags is different from english version.'; -$error['errorFieldsynopsisType']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisType']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisType']['desc'] = 'Throw if the value of the <b>type</b> tags is different from english version.'; -$error['errorFieldsynopsisVarnameAttr']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisVarnameAttr']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisVarnameAttr']['desc'] = 'Throw if the value of the attribut <b>varname</b> is different from english version.'; -$error['errorFieldsynopsisVarnameValue']['head'] = 'Fieldsynopsis tags'; +$error['errorFieldsynopsisVarnameValue']['head'] = 'Fieldsynopsis tag'; $error['errorFieldsynopsisVarnameValue']['desc'] = 'Throw if the value of the <b>varname</b> tags is different from english version.'; $error['attributLinkendLink']['head'] = 'Linkend and xlink tags'; @@ -151,96 +163,96 @@ $error['attributXlinkLink']['head'] = 'Linkend and xlink tags'; $error['attributXlinkLink']['desc'] = 'Throw if the value of the attribut <b>xlink:href</b> is different from english version.'; -$error['nbLiteralTags']['head'] = 'Literal tags'; -$error['nbLiteralTags']['desc'] = 'Throw if the number of <b>literal</b> tags is different from english version.'; +$error['nbLiteralTag']['head'] = 'Literal tag'; +$error['nbLiteralTag']['desc'] = 'Throw if the number of <b>literal</b> tags is different from english version.'; -$error['errorRoleMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorRoleMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorRoleMethodsynopsis']['desc'] = 'Throw if the value of the attribut <b>role</b> is different from english version.'; -$error['errorOptionalMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorOptionalMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorOptionalMethodsynopsis']['desc'] = 'Throw if the value of the attribut <b>choice</b> is different from english version.'; -$error['errorParameterInitializerMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorParameterInitializerMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorParameterInitializerMethodsynopsis']['desc'] = 'Throw if the value of the <b>initializer</b> tags is different from english version.'; -$error['errorParameterTypeMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorParameterTypeMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorParameterTypeMethodsynopsis']['desc'] = 'Throw if the value of the <b>type</b> tags is different from english version.'; -$error['errorParameterNameMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorParameterNameMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorParameterNameMethodsynopsis']['desc'] = 'Throw if the value of the <b>parameter</b> tags is different from english version.'; -$error['errorNbMethodparamMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorNbMethodparamMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorNbMethodparamMethodsynopsis']['desc'] = 'Throw if the number of <b>parameter</b> tags is different from english version.'; -$error['errorTypeMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorTypeMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorTypeMethodsynopsis']['desc'] = 'Throw if the value of the <b>type</b> tags is different from english version.'; -$error['errorMethodnameMethodsynopsis']['head'] = 'Methodsynopsis tags'; +$error['errorMethodnameMethodsynopsis']['head'] = 'Methodsynopsis tag'; $error['errorMethodnameMethodsynopsis']['desc'] = 'Throw if the value of the <b>methodname</b> tags is different from english version.'; -$error['nbNoteTags']['head'] = 'Note tags'; -$error['nbNoteTags']['desc'] = 'Throw if the number of <b>note</b> tags is different from english version.'; +$error['nbNoteTag']['head'] = 'Note tag'; +$error['nbNoteTag']['desc'] = 'Throw if the number of <b>note</b> tags is different from english version.'; -$error['errorNbOoclassClassname']['head'] = 'Ooclass tags'; +$error['errorNbOoclassClassname']['head'] = 'Ooclass tag'; $error['errorNbOoclassClassname']['desc'] = 'Throw if the number of <b>classname</b> tags is different from english version.'; -$error['errorOoclassClassname']['head'] = 'Ooclass tags'; +$error['errorOoclassClassname']['head'] = 'Ooclass tag'; $error['errorOoclassClassname']['desc'] = 'Throw if the value of the <b>classname</b> tags is different from english version.'; -$error['nbParaTags']['head'] = 'Para tags'; -$error['nbParaTags']['desc'] = 'Throw if the number of <b>para</b> tags is different from english version.'; +$error['nbParaTag']['head'] = 'Para tag'; +$error['nbParaTag']['desc'] = 'Throw if the number of <b>para</b> tags is different from english version.'; -$error['attributXmlNsXlinkPreface']['head'] = 'Preface tags'; +$error['attributXmlNsXlinkPreface']['head'] = 'Preface tag'; $error['attributXmlNsXlinkPreface']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsPreface']['head'] = 'Preface tags'; +$error['attributXmlNsPreface']['head'] = 'Preface tag'; $error['attributXmlNsPreface']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdPreface']['head'] = 'Preface tags'; +$error['attributXmlIdPreface']['head'] = 'Preface tag'; $error['attributXmlIdPreface']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlIdQandaentry']['head'] = 'Qandaentry tags'; +$error['attributXmlIdQandaentry']['head'] = 'Qandaentry tag'; $error['attributXmlIdQandaentry']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkRefentry']['head'] = 'Refentry tags'; +$error['attributXmlNsXlinkRefentry']['head'] = 'Refentry tag'; $error['attributXmlNsXlinkRefentry']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsRefentry']['head'] = 'Refentry tags'; +$error['attributXmlNsRefentry']['head'] = 'Refentry tag'; $error['attributXmlNsRefentry']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdRefentry']['head'] = 'Refentry tags'; +$error['attributXmlIdRefentry']['head'] = 'Refentry tag'; $error['attributXmlIdRefentry']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkReference']['head'] = 'Reference tags'; +$error['attributXmlNsXlinkReference']['head'] = 'Reference tag'; $error['attributXmlNsXlinkReference']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsReference']['head'] = 'Reference tags'; +$error['attributXmlNsReference']['head'] = 'Reference tag'; $error['attributXmlNsReference']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIDReference']['head'] = 'Reference tags'; +$error['attributXmlIDReference']['head'] = 'Reference tag'; $error['attributXmlIDReference']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['spaceOrPeriodRefpurpose']['head'] = 'Refpurpose tags'; +$error['spaceOrPeriodRefpurpose']['head'] = 'Refpurpose tag'; $error['spaceOrPeriodRefpurpose']['desc'] = 'Throw if there is a space or a period at the end of refpurpose value.'; -$error['attributRefsect1']['head'] = 'Refsect1 tags'; +$error['attributRefsect1']['head'] = 'Refsect1 tag'; $error['attributRefsect1']['desc'] = 'Throw if the value of the attribut <b>role</b> is different from english version.'; -$error['nbRowTags']['head'] = 'Row tags'; -$error['nbRowTags']['desc'] = 'Throw if the number of <b>row</b> tags is different from english version.'; -$error['attributXmlIdRow']['head'] = 'Row tags'; +$error['nbRowTag']['head'] = 'Row tag'; +$error['nbRowTag']['desc'] = 'Throw if the number of <b>row</b> tags is different from english version.'; +$error['attributXmlIdRow']['head'] = 'Row tag'; $error['attributXmlIdRow']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkSect1']['head'] = 'Sect1 tags'; +$error['attributXmlNsXlinkSect1']['head'] = 'Sect1 tag'; $error['attributXmlNsXlinkSect1']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsSect1']['head'] = 'Sect1 tags'; +$error['attributXmlNsSect1']['head'] = 'Sect1 tag'; $error['attributXmlNsSect1']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdSect1']['head'] = 'Sect1 tags'; +$error['attributXmlIdSect1']['head'] = 'Sect1 tag'; $error['attributXmlIdSect1']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; -$error['attributXmlNsXlinkSection']['head'] = 'Section tags'; +$error['attributXmlNsXlinkSection']['head'] = 'Section tag'; $error['attributXmlNsXlinkSection']['desc'] = 'Throw if the value of the attribut <b>xmlns:xlink</b> is different from english version.'; -$error['attributXmlNsSection']['head'] = 'section tags'; +$error['attributXmlNsSection']['head'] = 'section tag'; $error['attributXmlNsSection']['desc'] = 'Throw if the value of the attribut <b>xmlns</b> is different from english version.'; -$error['attributXmlIdSection']['head'] = 'section tags'; +$error['attributXmlIdSection']['head'] = 'section tag'; $error['attributXmlIdSection']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; $error['nbSeeAlsoMember']['head'] = 'SeeAlso section'; $error['nbSeeAlsoMember']['desc'] = 'Throw if the number of <b>member</b> tags is different from english version.'; -$error['nbTbodyTags']['head'] = 'Tbody tags'; -$error['nbTbodyTags']['desc'] = 'Throw if the number of <b>tbody</b> tags is different from english version.'; +$error['nbTbodyTag']['head'] = 'Tbody tag'; +$error['nbTbodyTag']['desc'] = 'Throw if the number of <b>tbody</b> tags is different from english version.'; -$error['nbTheadTags']['head'] = 'Thead tags'; -$error['nbTheadTags']['desc'] = 'Throw if the number of <b>thead</b> tags is different from english version.'; +$error['nbTheadTag']['head'] = 'Thead tag'; +$error['nbTheadTag']['desc'] = 'Throw if the number of <b>thead</b> tags is different from english version.'; -$error['attributXmlIdVarlistentry']['head'] = 'varlistentry tags'; +$error['attributXmlIdVarlistentry']['head'] = 'varlistentry tag'; $error['attributXmlIdVarlistentry']['desc'] = 'Throw if the value of the attribut <b>xml:id</b> is different from english version.'; $to_display = array();