[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Fix typos in error messages

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-06-04 19:12:19 CEST

* Branko Čibej <brane@xbc.nu> [2004-06-04 10:23]:
> >Index: subversion/libsvn_client/commit_util.c
> >===================================================================
> >--- subversion/libsvn_client/commit_util.c (revision 9929)
> >+++ subversion/libsvn_client/commit_util.c (working copy)
> >@@ -641,7 +641,7 @@
> > return svn_error_createf
> > (SVN_ERR_ILLEGAL_TARGET, NULL,
> > "Entry for '%s' is marked as 'copied' but is not itself scheduled\n"
> >- "for addition. Perhaps you're committing a target that this\n"
> >+ "for addition. Perhaps you're committing a target that is\n"
> > "inside of an unversioned (or not-yet-versioned) directory?",
> > target);
> >
> >
> While you're at it, you might've removed that "of" after the "inside"...

Yep, you're right. Leaving it there would be okay, but it does sound
better without it.

> >Index: subversion/svnlook/main.c
> >===================================================================
> >--- subversion/svnlook/main.c (revision 9929)
> >+++ subversion/svnlook/main.c (working copy)
> >@@ -1893,7 +1893,7 @@
> > SVN_INT_ERR (svn_error_create
> > (SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS, NULL,
> > _("The '--transaction' (-t) and '--revision' (-r) arguments "
> >- "can not co-exist")));
> >+ "cannot co-exist")));
> >
> >
> Nope. "can not" is perfectly correct spelling, and the emphasis is
> correct for this case, too..

Yeah, they're both technically okay, but I think "cannot" is generally
preferred, and "cannot" is used in all other cases in the code. I'd
rather see those changes go in, but if it will hold up getting the other
fixes applied, it's no problem to leave them alone.

> By the way: Once we have translations bundled with the release, we
> should also bundle an en.po that contains a simple 1:1 mapping between
> the text in the source and in the message file. Then we can fix typos in
> messages, and distribute the fix, /without/ having to recompile everything.

I agree, this would be a better way to handle English error messages. I
was also surprised to see a lot of error message duplication throughout
the code, and using an en.po file may help with that, too. Here's an
updated patch with your suggested changes.

Log:
Fix typos in error messages.

Patch by Michael W Thelen <thelenm@cs.utah.edu>, including one typo noticed by
Dylan McNamee <dylan@exanetworks.com>.

* subversion/libsvn_fs_base/dag.c,
  subversion/libsvn_client/commit_util.c,
  subversion/mod_dav_svn/log.c,
  subversion/mod_dav_svn/util.c,
  subversion/libsvn_ra_dav/merge.c,
  subversion/libsvn_fs_fs/fs_fs.c,
  subversion/libsvn_fs_fs/dag.c: Fix typos in error messages.

Index: subversion/libsvn_fs_base/dag.c
===================================================================
--- subversion/libsvn_fs_base/dag.c (revision 9929)
+++ subversion/libsvn_fs_base/dag.c (working copy)
@@ -1409,7 +1409,7 @@
   if (! node_id)
     return svn_error_createf
       (SVN_ERR_FS_NOT_FOUND, NULL,
- "Attempted to open non-existant child node '%s'", name);
+ "Attempted to open non-existent child node '%s'", name);
 
   /* Make sure that NAME is a single path component. */
   if (! svn_path_is_single_path_component (name))
Index: subversion/libsvn_client/commit_util.c
===================================================================
--- subversion/libsvn_client/commit_util.c (revision 9929)
+++ subversion/libsvn_client/commit_util.c (working copy)
@@ -641,8 +641,8 @@
         return svn_error_createf
           (SVN_ERR_ILLEGAL_TARGET, NULL,
            "Entry for '%s' is marked as 'copied' but is not itself scheduled\n"
- "for addition. Perhaps you're committing a target that this\n"
- "inside of an unversioned (or not-yet-versioned) directory?",
+ "for addition. Perhaps you're committing a target that is\n"
+ "inside an unversioned (or not-yet-versioned) directory?",
            target);
 
       /* Handle our TARGET. */
Index: subversion/mod_dav_svn/log.c
===================================================================
--- subversion/mod_dav_svn/log.c (revision 9929)
+++ subversion/mod_dav_svn/log.c (working copy)
@@ -309,7 +309,7 @@
   if ((serr = maybe_send_header(&lrb)))
     {
       derr = dav_svn_convert_err(serr, HTTP_INTERNAL_SERVER_ERROR,
- "Error beginning REPORT reponse.",
+ "Error beginning REPORT response.",
                                  resource->pool);
       goto cleanup;
     }
@@ -317,7 +317,7 @@
   if ((serr = send_xml(&lrb, "</S:log-report>" DEBUG_CR)))
     {
       derr = dav_svn_convert_err(serr, HTTP_INTERNAL_SERVER_ERROR,
- "Error ending REPORT reponse.",
+ "Error ending REPORT response.",
                                  resource->pool);
       goto cleanup;
     }
Index: subversion/mod_dav_svn/util.c
===================================================================
--- subversion/mod_dav_svn/util.c (revision 9929)
+++ subversion/mod_dav_svn/util.c (working copy)
@@ -242,7 +242,7 @@
       || memcmp(path, relative->info->repos->root_path, len2) != 0)
     {
       return svn_error_create(SVN_ERR_APMOD_MALFORMED_URI, NULL,
- "Ununsable URI: it does not refer to this "
+ "Unusable URI: it does not refer to this "
                               "repository");
     }
 
Index: subversion/libsvn_ra_dav/merge.c
===================================================================
--- subversion/libsvn_ra_dav/merge.c (revision 9929)
+++ subversion/libsvn_ra_dav/merge.c (working copy)
@@ -213,7 +213,7 @@
       /* ### shouldn't have happened. we told the server "don't merge" */
       /* ### need something better than APR_EGENERAL */
       return svn_error_createf(APR_EGENERAL, NULL,
- _("Protocol error: we told the server to not "
+ _("Protocol error: we told the server not to "
                                  "auto-merge any resources, but it said that "
                                  "'%s' was merged"), mc->href->data);
     }
Index: subversion/libsvn_fs_fs/fs_fs.c
===================================================================
--- subversion/libsvn_fs_fs/fs_fs.c (revision 9929)
+++ subversion/libsvn_fs_fs/fs_fs.c (working copy)
@@ -1327,7 +1327,7 @@
               if (! rb->src_state)
                 return svn_error_create (SVN_ERR_FS_CORRUPT, NULL,
                                          "svndiff data requested "
- "non-existant source.");
+ "non-existent source.");
               rs = rb->src_state;
               sbuf = apr_pcalloc (rb->pool, window->sview_len);
               if (! ((rs->start + window->sview_offset) < rs->end))
Index: subversion/libsvn_fs_fs/dag.c
===================================================================
--- subversion/libsvn_fs_fs/dag.c (revision 9929)
+++ subversion/libsvn_fs_fs/dag.c (working copy)
@@ -957,7 +957,7 @@
   if (! node_id)
     return svn_error_createf
       (SVN_ERR_FS_NOT_FOUND, NULL,
- "Attempted to open non-existant child node '%s'", name);
+ "Attempted to open non-existent child node '%s'", name);
   
   /* Make sure that NAME is a single path component. */
   if (! svn_path_is_single_path_component (name))

-- Mike

-- 
Michael W. Thelen
Many would be cowards if they had courage enough.
                -- Thomas Fuller

Received on Fri Jun 4 19:13:43 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.