[MERGE] enhanced mv command
John Arbash Meinel
john at arbash-meinel.com
Fri Jan 12 15:57:13 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley wrote:
> Marius Kruger wrote:
>>> Aaron Bentley wrote:
>>> ^^^ I'm dubious about trying to generate correct English plurals for
>>> error strings -- we've always just done "File(s) exist". You don't
>>> have
>>> to change this, it's just my reaction.
>>>
>>>
>>> I was also ok with file(s), but in the end it is more user friendly to
>>> handle plurals properly.
>
> Once you start down this path, internationalization gets trickier, and
> even English plurals aren't entirely regular. Plus the source is harder
> to read. So as a rule I try to avoid building grammar into my programs.
>
Just to clarify, I thought that the error being raised should have been
subclassed, because it was a different type of error, which always has 2
filenames. I wasn't advocating for if/else adding a plural. So my
feeling was that a too-generic exception was being raised. However, I'm
fine with "File(s)" for generic exceptions that don't know how many will
be there.
(Especially if you try to i18n to something like Polish that has
different rules for *1, *2-3, *4-6, ... I don't remember the specifics,
but IIRC you have groups like (1, 11, 21, 31) and (2,3, 12,13, 22,23,
...) I think gettext() has support for some of that stuff.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFp6/ZJdeBCYSNAAMRAhH+AKC+nBSW8O8IWS540dweyI+0dLFbUACfQ3PE
t13j6UDrz1x/GrTv2Of5xUY=
=O6O/
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list