Re: some spelling and grammar fixes for messages and man pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 03, 2013 at 01:22:07PM +0200, Benno Schulenberg wrote:
> About the 0003 patch I'm not entirely sure, but looking at almost
> identical messages, a path should be %s, not %d.

 You're right, %d is bug. Almost all your patches applied, thanks!

> -		fdisk_warn(cxt, _("open failed %s"), path);
> +		fdisk_warn(cxt, _("opening %s failed"), path);

 I don't like this kind of change.

 Please, ALWAYS when you want to change any very common message then
 see po/util-linux.pot. 
 
 We have on "cannot open %s" on more than 100 places!

 The ideal solution is to use already translated message than
 introduce new one. Or if you don't like the message then change the
 string on *all places*. 
 
 The goal is to minimize number of messages and unify our utils.

 It would be nice to cleanup all the messages and use for example

    cannot open %s
    cannot close %s
    cannot read %s
    cannot write %s
    seek on %s failed

 on all places. Now (rc1) is the ideal time for this change. 
 
 (Not sure why someone updated util-linux on translationproject.org
  when there is no -rc2 yet.)

>  	if (read_all(fd, ptr, size) != size) {
> -		fdisk_warn(cxt, _("read failed %s"), path);
> +		fdisk_warn(cxt, _("reading %s failed"), path);

...

>  	if (write_all(cxt->dev_fd, l->bsdbuffer, BSD_BBSIZE)) {
> -		fdisk_warn(cxt, _("write failed %s"), cxt->dev_path);
> +		fdisk_warn(cxt, _("writing %s failed"), cxt->dev_path);

 I have committed "cannot {write,read} %s".


    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux