Hi Yannick,
I've attached 2 patches with corrected english. I'm not sure how you
build the js files, so I've only changed it in js/main.js. Though I did
notice the same text (instead of the index? why???) is also used as the
key in the translations, I did not update those (yet), though it should
be trivial to do so.
The other patch (error_type) changes all mentions of "attribut" to
"attribute" (with an -e at the end), these are only used in
error_type.php and php/ToolsError.php, for both of which the patch
should be valid.
Hope this helps in improving it a bit.
- Tul
On 29-02-2012 18:38, Yannick Torrès wrote:
Hi Jesús, Maciek,
@Jesús : Have you an SVN account to commit into phpdoc ? or have you
make this patch via an anonymous login (or Facebook/Googe account) ?
@Maciek : Could you file a bug report and indicate where you are not
able to commit the patch, and where you are able to commit it ?
About the bad english, sorry, but english isn't my native language. Tell
me by mail all sentence isn't correct and the correct sentence.
Best,
Yannick
2012/2/29 Jesús Ruiz García <jesusruiz2...@gmail.com
<mailto:jesusruiz2...@gmail.com>>
Thanks for your workMaciek ;)
I really do not know how the patch works, so maybe the problem is
we're doing something wrong. If not, hopefully as you say a patch soon.
Regards and thanks for everything.
2012/2/29 Maciek Sokolewicz <maciek.sokolew...@gmail.com
<mailto:maciek.sokolew...@gmail.com>>
On 29-02-2012 16:54, Maciek Sokolewicz wrote:
On 28-02-2012 23:00, Jesús Ruiz García wrote:
Hello and thanks for reading this message.
I created a patch, because I think there is an error in the
documentation in the file: isOriginal, in the directory
reference/ktaglib/__audioproperties.
In the line <refpurpose> of isOriginal, indicates that
returns the
length of an MPEG file. Return the length of an MPEG
file is responsible
of getLenght.
I do not know if the patch, I have to send to this
address. Attached the
patch, if any of you want to review it.
A greeting and thanks.
Jesús Ruiz
jesusruiz2...@gmail.com <mailto:jesusruiz2...@gmail.com>
<mailto:jesusruiz2007@gmail.__com
<mailto:jesusruiz2...@gmail.com>>
jesusr...@php.net <mailto:jesusr...@php.net>
<mailto:jesusr...@php.net <mailto:jesusr...@php.net>>
I just tried to validate and apply this patch via
edit.php.net <http://edit.php.net>, but got
the message 'You can't change file's owner. You must be a global
administrator or an administrator for this lang.'
However, when checking the Patches for Review section, I can
select the
user jesusruiz and click commit patch. Which works fine.
So one of both is incorrect. I personally think I should be
able to
validate such a patch anyway, and if not, I would like to
request karma
to be able to :)
Anyway: the patch is committed. Thank you for supplying this
patch.
On a side note, trying to reject a patch, I get:
"The file you want to clear local change isn't own by you.
You can only do this action for yours files."
Now, obviously this is incorrect as well, and very likely
related to the above problem (not to mention the hideous english).
I'm actually thinking of going through the source for the editor
and correcting all such grammar and spelling mistakes, I find
them quite annoying to be honest. So expect a patch soon ;)
diff --git a/error_type.php b/error_type.php
index 952a804..78991c7 100644
--- a/error_type.php
+++ b/error_type.php
@@ -113,148 +113,148 @@ $tags = array(
foreach ($tags as $tag => $label)
{
$error['nb' . $label . 'Tag']['head'] = $label . ' tag';
- $error['nb' . $label . 'Tag']['desc'] = 'Throw if the number of <b>' .
$label . '</b> tags is different from english version.';
+ $error['nb' . $label . 'Tag']['desc'] = 'Throw if the number of <b>' .
$label . '</b> tags is different in the english version.';
}
$error['-No error-']['head'] = '- No errors -';
$error['-No error-']['desc'] = 'There are no more errors in this file.';
-$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 tag';
-$error['attributXmlNsAppendix']['desc'] = 'Throw if the value of the attribut
<b>xmlns</b> is different from english version.';
-$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['attributeXmlXlinkAppendix']['head'] = 'Appendix tag';
+$error['attributeXmlXlinkAppendix']['desc'] = 'Throw if the value of the
attribute <b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsAppendix']['head'] = 'Appendix tag';
+$error['attributeXmlNsAppendix']['desc'] = 'Throw if the value of the
attribute <b>xmlns</b> is different in the english version.';
+$error['attributeXmlIdAppendix']['head'] = 'Appendix tag';
+$error['attributeXmlIdAppendix']['desc'] = 'Throw if the value of the
attribute <b>xml:id</b> is different in the english version.';
-$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 tag';
-$error['attributXmlNsBook']['desc'] = 'Throw if the value of the attribut
<b>xmlns</b> is different from english version.';
-$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['attributeXmlXlinkBook']['head'] = 'Book tag';
+$error['attributeXmlXlinkBook']['desc'] = 'Throw if the value of the attribute
<b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsBook']['head'] = 'Book tag';
+$error['attributeXmlNsBook']['desc'] = 'Throw if the value of the attribute
<b>xmlns</b> is different in the english version.';
+$error['attributeXmlIdBook']['head'] = 'Book tag';
+$error['attributeXmlIdBook']['desc'] = 'Throw if the value of the attribute
<b>xml:id</b> is different in the 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['nbCdataTag']['desc'] = 'Throw if the number of <b>cdata</b> section is
different in the english version.';
-$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 tag';
-$error['attributXmlNsChapter']['desc'] = 'Throw if the value of the attribut
<b>xmlns</b> is different from english version.';
-$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['attributeXmlXlinkChapter']['head'] = 'Chapter tag';
+$error['attributeXmlXlinkChapter']['desc'] = 'Throw if the value of the
attribute <b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsChapter']['head'] = 'Chapter tag';
+$error['attributeXmlNsChapter']['desc'] = 'Throw if the value of the attribute
<b>xmlns</b> is different in the english version.';
+$error['attributeXmlIdChapter']['head'] = 'Chapter tag';
+$error['attributeXmlIdChapter']['desc'] = 'Throw if the value of the attribute
<b>xml:id</b> is different in the english version.';
-$error['attributVersionChapter']['head'] = 'Chapter tag';
-$error['attributVersionChapter']['desc'] = 'Throw if the value of the attribut
<b>version</b> is different from english version.';
+$error['attributeVersionChapter']['head'] = 'Chapter tag';
+$error['attributeVersionChapter']['desc'] = 'Throw if the value of the
attribute <b>version</b> is different in the english version.';
$error['nbEntryTag']['head'] = 'Entry tag';
-$error['nbEntryTag']['desc'] = 'Throw if the number of <b>entry</b> tags is
different from english version.';
+$error['nbEntryTag']['desc'] = 'Throw if the number of <b>entry</b> tags is
different in the 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['errorFieldsynopsisInitializer']['desc'] = 'Throw if the value of the
<b>initializer</b> tags is different in the english version.';
$error['errorFieldsynopsisModifier']['head'] = 'Fieldsynopsis tag';
-$error['errorFieldsynopsisModifier']['desc'] = 'Throw if the value of the
<b>modifier</b> tags is different from english version.';
+$error['errorFieldsynopsisModifier']['desc'] = 'Throw if the value of the
<b>modifier</b> tags is different in the english version.';
$error['errorFieldsynopsisType']['head'] = 'Fieldsynopsis tag';
-$error['errorFieldsynopsisType']['desc'] = 'Throw if the value of the
<b>type</b> tags is different from english version.';
+$error['errorFieldsynopsisType']['desc'] = 'Throw if the value of the
<b>type</b> tags is different in the english version.';
$error['errorFieldsynopsisVarnameAttr']['head'] = 'Fieldsynopsis tag';
-$error['errorFieldsynopsisVarnameAttr']['desc'] = 'Throw if the value of the
attribut <b>varname</b> is different from english version.';
+$error['errorFieldsynopsisVarnameAttr']['desc'] = 'Throw if the value of the
attribute <b>varname</b> is different in the english version.';
$error['errorFieldsynopsisVarnameValue']['head'] = 'Fieldsynopsis tag';
-$error['errorFieldsynopsisVarnameValue']['desc'] = 'Throw if the value of the
<b>varname</b> tags is different from english version.';
+$error['errorFieldsynopsisVarnameValue']['desc'] = 'Throw if the value of the
<b>varname</b> tags is different in the english version.';
-$error['attributLinkendLink']['head'] = 'Linkend and xlink tags';
-$error['attributLinkendLink']['desc'] = 'Throw if the value of the attribut
<b>linkend</b> is different from english version.';
-$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['attributeLinkendLink']['head'] = 'Linkend and xlink tags';
+$error['attributeLinkendLink']['desc'] = 'Throw if the value of the attribute
<b>linkend</b> is different in the english version.';
+$error['attributeXlinkLink']['head'] = 'Linkend and xlink tags';
+$error['attributeXlinkLink']['desc'] = 'Throw if the value of the attribute
<b>xlink:href</b> is different in the english version.';
$error['NbXlinkLink']['head'] = 'Linkend and xlink tags';
-$error['NbXlinkLink']['desc'] = 'Throw if the number of <b>Link</b> tags is
different from english version.';
+$error['NbXlinkLink']['desc'] = 'Throw if the number of <b>Link</b> tags is
different in the english version.';
$error['NbXref']['head'] = 'Xref tags';
-$error['NbXref']['desc'] = 'Throw if the number of <b>Xref</b> tags is
different from english version.';
-$error['attributLinkendXref']['head'] = 'Xref tags';
-$error['attributLinkendXref']['desc'] = 'Throw if the value of the attribut
<b>linkend</b> is different from english version.';
+$error['NbXref']['desc'] = 'Throw if the number of <b>Xref</b> tags is
different in the english version.';
+$error['attributeLinkendXref']['head'] = 'Xref tags';
+$error['attributeLinkendXref']['desc'] = 'Throw if the value of the attribute
<b>linkend</b> is different in the english version.';
$error['errorRoleMethodsynopsis']['head'] = 'Methodsynopsis tag';
-$error['errorRoleMethodsynopsis']['desc'] = 'Throw if the value of the
attribut <b>role</b> is different from english version.';
+$error['errorRoleMethodsynopsis']['desc'] = 'Throw if the value of the
attribute <b>role</b> is different in the english version.';
$error['errorOptionalMethodsynopsis']['head'] = 'Methodsynopsis tag';
-$error['errorOptionalMethodsynopsis']['desc'] = 'Throw if the value of the
attribut <b>choice</b> is different from english version.';
+$error['errorOptionalMethodsynopsis']['desc'] = 'Throw if the value of the
attribute <b>choice</b> is different in the english version.';
$error['errorParameterInitializerMethodsynopsis']['head'] = 'Methodsynopsis
tag';
-$error['errorParameterInitializerMethodsynopsis']['desc'] = 'Throw if the
value of the <b>initializer</b> tags is different from english version.';
+$error['errorParameterInitializerMethodsynopsis']['desc'] = 'Throw if the
value of the <b>initializer</b> tags is different in the english version.';
$error['errorParameterTypeMethodsynopsis']['head'] = 'Methodsynopsis tag';
-$error['errorParameterTypeMethodsynopsis']['desc'] = 'Throw if the value of
the <b>type</b> tags is different from english version.';
+$error['errorParameterTypeMethodsynopsis']['desc'] = 'Throw if the value of
the <b>type</b> tags is different in the english version.';
$error['errorParameterNameMethodsynopsis']['head'] = 'Methodsynopsis tag';
-$error['errorParameterNameMethodsynopsis']['desc'] = 'Throw if the value of
the <b>parameter</b> tags is different from english version.';
+$error['errorParameterNameMethodsynopsis']['desc'] = 'Throw if the value of
the <b>parameter</b> tags is different in the english version.';
$error['errorNbMethodparamMethodsynopsis']['head'] = 'Methodsynopsis tag';
-$error['errorNbMethodparamMethodsynopsis']['desc'] = 'Throw if the number of
<b>parameter</b> tags is different from english version.';
+$error['errorNbMethodparamMethodsynopsis']['desc'] = 'Throw if the number of
<b>parameter</b> tags is different in the english version.';
$error['errorTypeMethodsynopsis']['head'] = 'Methodsynopsis tag';
-$error['errorTypeMethodsynopsis']['desc'] = 'Throw if the value of the
<b>type</b> tags is different from english version.';
+$error['errorTypeMethodsynopsis']['desc'] = 'Throw if the value of the
<b>type</b> tags is different in the english version.';
$error['errorMethodnameMethodsynopsis']['head'] = 'Methodsynopsis tag';
-$error['errorMethodnameMethodsynopsis']['desc'] = 'Throw if the value of the
<b>methodname</b> tags is different from english version.';
+$error['errorMethodnameMethodsynopsis']['desc'] = 'Throw if the value of the
<b>methodname</b> tags is different in the english version.';
$error['errorNbOoclassClassname']['head'] = 'Ooclass tag';
-$error['errorNbOoclassClassname']['desc'] = 'Throw if the number of
<b>classname</b> tags is different from english version.';
+$error['errorNbOoclassClassname']['desc'] = 'Throw if the number of
<b>classname</b> tags is different in the english version.';
$error['errorOoclassClassname']['head'] = 'Ooclass tag';
-$error['errorOoclassClassname']['desc'] = 'Throw if the value of the
<b>classname</b> tags is different from english version.';
-
-$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 tag';
-$error['attributXmlNsPreface']['desc'] = 'Throw if the value of the attribut
<b>xmlns</b> is different from english version.';
-$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 tag';
-$error['attributXmlIdQandaentry']['desc'] = 'Throw if the value of the
attribut <b>xml:id</b> is different from english version.';
-
-$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 tag';
-$error['attributXmlNsRefentry']['desc'] = 'Throw if the value of the attribut
<b>xmlns</b> is different from english version.';
-$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 tag';
-$error['attributXmlNsXlinkReference']['desc'] = 'Throw if the value of the
attribut <b>xmlns:xlink</b> is different from english version.';
-$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 tag';
-$error['attributXmlIDReference']['desc'] = 'Throw if the value of the attribut
<b>xml:id</b> is different from english version.';
+$error['errorOoclassClassname']['desc'] = 'Throw if the value of the
<b>classname</b> tags is different in the english version.';
+
+$error['attributeXmlNsXlinkPreface']['head'] = 'Preface tag';
+$error['attributeXmlNsXlinkPreface']['desc'] = 'Throw if the value of the
attribute <b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsPreface']['head'] = 'Preface tag';
+$error['attributeXmlNsPreface']['desc'] = 'Throw if the value of the attribute
<b>xmlns</b> is different in the english version.';
+$error['attributeXmlIdPreface']['head'] = 'Preface tag';
+$error['attributeXmlIdPreface']['desc'] = 'Throw if the value of the attribute
<b>xml:id</b> is different in the english version.';
+
+$error['attributeXmlIdQandaentry']['head'] = 'Qandaentry tag';
+$error['attributeXmlIdQandaentry']['desc'] = 'Throw if the value of the
attribute <b>xml:id</b> is different in the english version.';
+
+$error['attributeXmlNsXlinkRefentry']['head'] = 'Refentry tag';
+$error['attributeXmlNsXlinkRefentry']['desc'] = 'Throw if the value of the
attribute <b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsRefentry']['head'] = 'Refentry tag';
+$error['attributeXmlNsRefentry']['desc'] = 'Throw if the value of the
attribute <b>xmlns</b> is different in the english version.';
+$error['attributeXmlIdRefentry']['head'] = 'Refentry tag';
+$error['attributeXmlIdRefentry']['desc'] = 'Throw if the value of the
attribute <b>xml:id</b> is different in the english version.';
+
+$error['attributeXmlNsXlinkReference']['head'] = 'Reference tag';
+$error['attributeXmlNsXlinkReference']['desc'] = 'Throw if the value of the
attribute <b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsReference']['head'] = 'Reference tag';
+$error['attributeXmlNsReference']['desc'] = 'Throw if the value of the
attribute <b>xmlns</b> is different in the english version.';
+$error['attributeXmlIDReference']['head'] = 'Reference tag';
+$error['attributeXmlIDReference']['desc'] = 'Throw if the value of the
attribute <b>xml:id</b> is different in the english version.';
$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 tag';
-$error['attributRefsect1']['desc'] = 'Throw if the value of the attribut
<b>role</b> is different from english version.';
+$error['attributeRefsect1']['head'] = 'Refsect1 tag';
+$error['attributeRefsect1']['desc'] = 'Throw if the value of the attribute
<b>role</b> is different in the english version.';
$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 tag';
-$error['attributXmlNsXlinkSect1']['desc'] = 'Throw if the value of the
attribut <b>xmlns:xlink</b> is different from english version.';
-$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 tag';
-$error['attributXmlIdSect1']['desc'] = 'Throw if the value of the attribut
<b>xml:id</b> is different from english version.';
-
-$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 tag';
-$error['attributXmlNsSection']['desc'] = 'Throw if the value of the attribut
<b>xmlns</b> is different from english version.';
-$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['nbRowTag']['desc'] = 'Throw if the number of <b>row</b> tags is
different in the english version.';
+$error['attributeXmlIdRow']['head'] = 'Row tag';
+$error['attributeXmlIdRow']['desc'] = 'Throw if the value of the attribute
<b>xml:id</b> is different in the english version.';
+
+$error['attributeXmlNsXlinkSect1']['head'] = 'Sect1 tag';
+$error['attributeXmlNsXlinkSect1']['desc'] = 'Throw if the value of the
attribute <b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsSect1']['head'] = 'Sect1 tag';
+$error['attributeXmlNsSect1']['desc'] = 'Throw if the value of the attribute
<b>xmlns</b> is different in the english version.';
+$error['attributeXmlIdSect1']['head'] = 'Sect1 tag';
+$error['attributeXmlIdSect1']['desc'] = 'Throw if the value of the attribute
<b>xml:id</b> is different in the english version.';
+
+$error['attributeXmlNsXlinkSection']['head'] = 'Section tag';
+$error['attributeXmlNsXlinkSection']['desc'] = 'Throw if the value of the
attribute <b>xmlns:xlink</b> is different in the english version.';
+$error['attributeXmlNsSection']['head'] = 'Section tag';
+$error['attributeXmlNsSection']['desc'] = 'Throw if the value of the attribute
<b>xmlns</b> is different in the english version.';
+$error['attributeXmlIdSection']['head'] = 'Section tag';
+$error['attributeXmlIdSection']['desc'] = 'Throw if the value of the attribute
<b>xml:id</b> is different in the 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['nbSeeAlsoMember']['desc'] = 'Throw if the number of <b>member</b> tags
is different in the 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['nbTbodyTag']['desc'] = 'Throw if the number of <b>tbody</b> tags is
different in the 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['nbTheadTag']['desc'] = 'Throw if the number of <b>thead</b> tags is
different in the english version.';
-$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['attributeXmlIdVarlistentry']['head'] = 'Varlistentry tag';
+$error['attributeXmlIdVarlistentry']['desc'] = 'Throw if the value of the
attribute <b>xml:id</b> is different in the english version.';
$error['acronym']['head'] = 'Missing <acronym> tag';
diff --git a/php/ToolsError.php b/php/ToolsError.php
index d97c2f1..18f5275 100644
--- a/php/ToolsError.php
+++ b/php/ToolsError.php
@@ -375,19 +375,19 @@ class ToolsError
// Check Error specific to LANG files
else
{
- $this->attributAppendixTag();
- $this->attributBookTag();
- $this->attributChapterTag();
- $this->attributLinkTag();
- $this->attributXrefTag();
- $this->attributPrefaceTag();
- $this->attributQandaentryTag();
- $this->attributRefsec1Tag();
- $this->attributRefentryTag();
- $this->attributReferenceTag();
- $this->attributSect1Tag();
- $this->attributSectionTag();
- $this->attributVarlistentryTag();
+ $this->attributeAppendixTag();
+ $this->attributeBookTag();
+ $this->attributeChapterTag();
+ $this->attributeLinkTag();
+ $this->attributeXrefTag();
+ $this->attributePrefaceTag();
+ $this->attributeQandaentryTag();
+ $this->attributeRefsec1Tag();
+ $this->attributeRefentryTag();
+ $this->attributeReferenceTag();
+ $this->attributeSect1Tag();
+ $this->attributeSectionTag();
+ $this->attributeVarlistentryTag();
$this->classsynopsis();
$this->methodsynopsis();
$this->nbCdataTag();
@@ -458,11 +458,11 @@ class ToolsError
}
/**
- * Check attributs in chapter tag
+ * Check attributes in chapter tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributChapterTag()
+ function attributeChapterTag()
{
$reg =
'/<chapter\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?(version="(.*?)"\s*?)?>/s';
@@ -514,7 +514,7 @@ class ToolsError
$this->addError(array(
'value_en' => $en_chapter[$property][$i],
'value_lang' => $lang_chapter[$property][$i],
- 'type' => 'attribut' . $label . 'Chapter'
+ 'type' => 'attribute' . $label . 'Chapter'
));
}
@@ -524,11 +524,11 @@ class ToolsError
}
/**
- * Check attributs in appendix tag
+ * Check attributes in appendix tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributAppendixTag()
+ function attributeAppendixTag()
{
$reg =
'/<appendix\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s';
@@ -563,7 +563,7 @@ class ToolsError
$this->addError(array(
'value_en' => $en_appendix[$property][$i],
'value_lang' => $lang_appendix[$property][$i],
- 'type' => 'attribut' . $label . 'Appendix',
+ 'type' => 'attribute' . $label . 'Appendix',
));
}
@@ -572,11 +572,11 @@ class ToolsError
}
/**
- * Check attributs in qandaentry tag
+ * Check attributes in qandaentry tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributQandaentryTag()
+ function attributeQandaentryTag()
{
$reg = '/<qandaentry\s*?xml:id="(.*?)"\s*?>/s';
@@ -604,7 +604,7 @@ class ToolsError
$this->addError(array(
'value_en' => $en_qandaentry[$i],
'value_lang' => $lang_qandaentry[$i],
- 'type' => 'attributXmlIdQandaentry'
+ 'type' => 'attributeXmlIdQandaentry'
));
}
@@ -612,11 +612,11 @@ class ToolsError
}
/**
- * Check attributs in Xref tag
+ * Check attributes in Xref tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributXrefTag()
+ function attributeXrefTag()
{
$reg = '/<xref\s*?linkend=\s*?"(.[^"]*?)"\s*\/>/s';
@@ -637,7 +637,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_xref[$i],
"value_lang" => $lang_xref[$i],
- "type" => "attributLinkendXref"
+ "type" => "attributeLinkendXref"
));
}
}
@@ -652,11 +652,11 @@ class ToolsError
}
/**
- * Check attributs in Link tag
+ * Check attributes in Link tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributLinkTag()
+ function attributeLinkTag()
{
$reg = '/<link\s*?xlink:href=\s*?"(.[^"]*?)"(\s*|\s*?\/)?>/s';
@@ -678,7 +678,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_xlink[$i],
"value_lang" => $lang_xlink[$i],
- "type" => "attributXlinkLink"
+ "type" => "attributeXlinkLink"
));
}
@@ -718,7 +718,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_linkend[$i],
"value_lang" => $lang_linkend[$i],
- "type" => "attributLinkendLink"
+ "type" => "attributeLinkendLink"
));
}
@@ -726,11 +726,11 @@ class ToolsError
}
/**
- * Check attributs in Sect1 tag
+ * Check attributes in Sect1 tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributSect1Tag()
+ function attributeSect1Tag()
{
$reg =
'/<sect1\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s';
@@ -754,7 +754,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_sect1["xmlid"][$i],
"value_lang" => $lang_sect1["xmlid"][$i],
- "type" => "attributXmlIdSect1"
+ "type" => "attributeXmlIdSect1"
));
}
@@ -764,7 +764,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_sect1["xmlns"][$i],
"value_lang" => $lang_sect1["xmlns"][$i],
- "type" => "attributXmlNsSect1"
+ "type" => "attributeXmlNsSect1"
));
}
@@ -774,7 +774,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_sect1["xmlnsxlink"][$i],
"value_lang" => $lang_sect1["xmlnsxlink"][$i],
- "type" => "attributXmlNsXlinkSect1"
+ "type" => "attributeXmlNsXlinkSect1"
));
}
@@ -782,11 +782,11 @@ class ToolsError
}
/**
- * Check attributs in Book tag
+ * Check attributes in Book tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributBookTag()
+ function attributeBookTag()
{
$reg =
'/<book\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s';
@@ -808,7 +808,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_book["xmlid"][$i],
"value_lang" => $lang_book["xmlid"][$i],
- "type" => "attributXmlIdBook"
+ "type" => "attributeXmlIdBook"
));
}
@@ -819,7 +819,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_book["xmlns"][$i],
"value_lang" => $lang_book["xmlns"][$i],
- "type" => "attributXmlNsBook"
+ "type" => "attributeXmlNsBook"
));
}
@@ -830,18 +830,18 @@ class ToolsError
$this->addError(array(
"value_en" => $en_book["xmlnsxlink"][$i],
"value_lang" => $lang_book["xmlnsxlink"][$i],
- "type" => "attributXmlXlinkBook"
+ "type" => "attributeXmlXlinkBook"
));
}
}
}
/**
- * Check attributs in Preface tag
+ * Check attributes in Preface tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributPrefaceTag()
+ function attributePrefaceTag()
{
$reg =
'/<preface\s*?xml:id="(.*?)"\s*?(xmlns="(.*?)")?\s*?(xmlns:xlink="(.*?)"\s*?)?>/s';
@@ -889,7 +889,7 @@ class ToolsError
$this->addError(array(
'value_en' => $en_preface[$property][$i],
'value_lang' => $lang_preface[$property][$i],
- 'type' => 'attribut' . $label . 'Preface'
+ 'type' => 'attribute' . $label . 'Preface'
));
}
@@ -898,11 +898,11 @@ class ToolsError
}
/**
- * Check attributs in Section tag
+ * Check attributes in Section tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributSectionTag()
+ function attributeSectionTag()
{
$reg =
'/<section\s*?xml:id=("|\')(.*?)("|\')\s*?(xmlns=("|\')(.*?)("|\'))?\s*?(xmlns:xlink=("|\')(.*?)("|\')\s*?)?>/s';
@@ -953,7 +953,7 @@ class ToolsError
$this->addError(array(
'value_en' => $en_section[$property][$i],
'value_lang' => $lang_section[$property][$i],
- 'type' => 'attribut' . $label . 'Section'
+ 'type' => 'attribute' . $label . 'Section'
));
}
@@ -963,11 +963,11 @@ class ToolsError
}
/**
- * Check attributs in Varlistentry tag
+ * Check attributes in Varlistentry tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributVarlistentryTag()
+ function attributeVarlistentryTag()
{
$reg = '/<varlistentry\s*?xml:id=("|\')(.*?)("|\')\s*?>/s';
@@ -995,18 +995,18 @@ class ToolsError
$this->addError(array(
"value_en" => $en_varlistentry[$i],
"value_lang" => $lang_varlistentry[$i],
- "type" => "attributXmlIdVarlistentry"
+ "type" => "attributeXmlIdVarlistentry"
));
}
}
}
/**
- * Check attributs in Reference tag
+ * Check attributes in Reference tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributReferenceTag()
+ function attributeReferenceTag()
{
$reg =
'/<reference\s*?xml:id="(.*?)"\s*?xmlns="(.*?)"\s*?(xmlns:xlink="(.*?)"\s*?)?>/s';
@@ -1034,7 +1034,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_reference["xmlid"][$i],
"value_lang" => $lang_reference["xmlid"][$i],
- "type" => "attributXmlIDReference"
+ "type" => "attributeXmlIDReference"
));
}
@@ -1049,7 +1049,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_reference["xmlns"][$i],
"value_lang" => $lang_reference["xmlns"][$i],
- "type" => "attributXmlNsReference"
+ "type" => "attributeXmlNsReference"
));
}
}
@@ -1063,18 +1063,18 @@ class ToolsError
$this->addError(array(
"value_en" => $en_reference["xmlnsxlink"][$i],
"value_lang" => $lang_reference["xmlnsxlink"][$i],
- "type" => "attributXmlNsXlinkReference"
+ "type" => "attributeXmlNsXlinkReference"
));
}
}
}
/**
- * Check attributs in Refentry tag
+ * Check attributes in Refentry tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributRefentryTag()
+ function attributeRefentryTag()
{
$reg =
'/<refentry\s*?xml:id="(.*?)"\s*?xmlns="(.*?)"\s*?(xmlns:xlink="(.*?)"\s*?)?>/s';
@@ -1102,7 +1102,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_refentry["xmlid"][$i],
"value_lang" => $lang_refentry["xmlid"][$i],
- "type" => "attributXmlIdRefentry"
+ "type" => "attributeXmlIdRefentry"
));
}
}
@@ -1116,7 +1116,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_refentry["xmlns"][$i],
"value_lang" => $lang_refentry["xmlns"][$i],
- "type" => "attributXmlNsRefentry"
+ "type" => "attributeXmlNsRefentry"
));
}
@@ -1131,7 +1131,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_refentry["xmlnsxlink"][$i],
"value_lang" => $lang_refentry["xmlnsxlink"][$i],
- "type" => "attributXmlNsXlinkRefentry"
+ "type" => "attributeXmlNsXlinkRefentry"
));
}
@@ -1139,11 +1139,11 @@ class ToolsError
}
/**
- * Check attributs in Refsec1 tag
+ * Check attributes in Refsec1 tag
* Add an entry into the error's stack if an error is found
*
*/
- function attributRefsec1Tag()
+ function attributeRefsec1Tag()
{
$reg = '/<refsect1\s*?role="(.*?)"\s*?>/s';
@@ -1163,7 +1163,7 @@ class ToolsError
$this->addError(array(
"value_en" => $en_refsect1[$i],
"value_lang" => $lang_refsect1[$i],
- "type" => "attributRefsect1"
+ "type" => "attributeRefsect1"
));
}
}
@@ -1552,7 +1552,7 @@ class ToolsError
$this->addError(array(
'value_en' => $en_attrRow['xmlid'][$i],
'value_lang' => $lang_attrRow['xmlid'][$i],
- 'type' => 'attributXmlIdRow'
+ 'type' => 'attributeXmlIdRow'
));
}
diff --git a/js/main.js b/js/main.js
index 7525e9e..a4d7048 100755
--- a/js/main.js
+++ b/js/main.js
@@ -104,55 +104,55 @@ var PhDOE = function()
switch (type) {
case 'fs_error' :
title = _('Error');
- mess = _('File system error. Check read/write permission
under data folder.');
+ mess = _('File system error. Check read/write permissions
under data folder.');
break;
case 'encoding_error' :
title = _('Error');
- mess = _('You have used characters that require the use
of UTF-8 despite the XML header.<br>Please delete these characters or change
the header of the XML file in UTF-8 ; i.e.:<br><br><center><i><?xml
version="1.0" encoding="utf-8"?></i></center>');
+ mess = _('You have used characters that require the use
of UTF-8 despite the XML header.<br>Please delete these characters or change
the header of the XML file to UTF-8 ; i.e.:<br><br><center><i><?xml
version="1.0" encoding="utf-8"?></i></center>');
break;
case 'tabs_found' :
title = _('Error');
- mess = _('It seems that you have inserted some tabs
caracters into this files. Please, replace each one by one space.<br>Tip: You
can use the "Re-indent all this file" button to replace all tabs by spaces.');
+ mess = _('It seems that you have inserted tab caracters
into this file. Please, replace each one by a single space.<br>Tip: You can use
the "Re-indent this entire file" button to replace all tabs by spaces.');
break;
case 'folder_already_exist' :
title = _('Error');
- mess = _('This folder already exist in the current
folder.');
+ mess = _('This folder already exists in the current
folder.');
break;
case 'file_already_exist' :
title = _('Error');
- mess = _('This file already exist in the current
folder.');
+ mess = _('This file already exists in the current
folder.');
break;
case 'save_you_cant_modify_it' :
title = _('Error');
- mess = _('You can\'t modify this file as it was modify by
another user. Contact an administrator if you want to be able to modify it.');
+ mess = _('You aren\'t allowed to modify this file as it
has already been modified by different user. Contact an administrator if you
want to be able to modify it.');
break;
case 'file_isnt_owned_by_current_user' :
title = _('Error');
- mess = _('The file you want to clear local change isn\'t
own by you.<br>You can only do this action for yours files.');
+ mess = _('The file for which you want to clear local
changes isn\'t owned by you.<br>You can only perform this action on your own
files.');
break;
case 'file_localchange_didnt_exist' :
title = _('Error');
- mess = _('The file you want to clear local change isn\'t
exist as work in progress.');
+ mess = _('The file you want to clear local changes in
doesn\'t exist as a work in progress.');
break;
case 'changeFilesOwnerNotAdmin' :
title = _('Error');
- mess = _('You can\'t change file\'s owner. You must be a
global administrator or an administrator for this lang.');
+ mess = _('You aren\'t allowed to change this file\'s
owner. You must be a global administrator or an administrator for this language
to be able to do that.');
break;
case 'patch_delete_dont_exist' :
title = _('Error');
- mess = _('The patch you want to delete didn\'t exist.');
+ mess = _('The patch you want to delete doesn\'t exist.');
break;
case 'patch_delete_isnt_own_by_current_user' :
title = _('Error');
- mess = _('The patch you want to delete isn\'t own by you.
Only the user how create it or a global administrator can delete it.');
+ mess = _('The patch you want to delete isn\'t owned by
you. Only the author of the patch or a global administrator can delete it.');
break;
case 'action_only_global_admin' :
title = _('Error');
- mess = _('This action is available only to global
administrator.');
+ mess = _('This action is available to global
administrators only.');
break;
case 'action_only_admin' :
title = _('Error');
- mess = _('This action is available only to global
administrator or to administrator for this lang.');
+ mess = _('This action is available to global
administrators or to administrators for this language only.');
break;
}