bug#29377: date/time of "ls -lh" translation is wrong for Simplified Chinese

2017-12-03 Thread Yasuaki Taniguchi/谷口康明
Hello,

The coreutils is CUI program and it is used as input of other text
processing programs
such as cut, sed, awk, and so on. The text processors use spaces,
tabs, and newlines
as field delimiters. So removing spaces is dangerous.


2017-11-29 15:23 GMT+09:00 Peng Wu :
> How about we remove all space characters in date/time?
>
> I mean to display date/time like "11月21日 11:22" or "11月21日11:22".
>
> On Fri, Nov 24, 2017 at 3:31 PM, Yasuaki Taniguchi/谷口康明 
> wrote:
>>
>> Hello.
>>
>> As for Japanese, I want to append "日", but I can't do it because of
>> the compatibility.
>>
>> ls and some other programs in coreutils must work in the
>> terminal with 80 columns and 24 rows.
>>
>> The original English message may be "Nov 21 11:22", the number of
>> columns is 12. And
>> translated Japanese messages is "`11月 21 11:22", the number of columns
>> is 13 (月 is full-width
>> character and it spends 2 columns).
>> If we append 日 after the number of the day, the number of columns will
>> be 15. That is too long.
>>
>> Displaying date and time is very complex issue.
>>
>>
>>
>>
>> 2017-11-24 14:03 GMT+09:00 Peng Wu :
>> > Thanks, I see.
>> >
>> > On Tue, Nov 21, 2017 at 6:06 PM, Eric Blake  wrote:
>> >>
>> >> tag 29377 notabug
>> >> thanks
>> >>
>> >> On 11/20/2017 11:55 PM, Peng Wu wrote:
>> >> > Hi,
>> >> >
>> >> > Currently the output of "ls -lh" for Simplified Chinese misses the
>> >> > "日"
>> >> > character for the date.
>> >> >
>> >> > It displays date as "11月 21", but in Simplified Chinese it should
>> >> > display
>> >> > "11月 21日".
>> >> >
>> >> > Maybe it also happens with Traditional Chinese and Japanese.
>> >> >
>> >> > After checked with gnome desktop translation, I wrote one patch.
>> >> > URL:
>> >> >
>> >> >
>> >> > https://l10n.gnome.org/POT/gnome-desktop.master/gnome-desktop.master.zh_CN.po
>> >>
>> >> Thanks for the report and the patch.  The translations for coreutils
>> >> are
>> >> maintained by the translation project, and not upstream coreutils
>> >> proper; so I'm closing this bug in the coreutils database (once the
>> >> translation project includes your patch, coreutils will automatically
>> >> pick it up on the next release).  Meanwhile, your patch should be sent
>> >> to the Language-Team: mentioned in zh_CN.po (which I've cc'd) (see also
>> >> the X-Bugs: tag in that file, as well as the translation of the "Report
>> >> bugs to:" string that appears in localized 'date --help').
>> >>
>> >> >
>> >> > In the attachment, the patch add the "日" character.
>> >> >
>> >> > Thanks,
>> >> >   Peng Wu
>> >> >
>> >>
>> >> --
>> >> Eric Blake, Principal Software Engineer
>> >> Red Hat, Inc.   +1-919-301-3266
>> >> Virtualization:  qemu.org | libvirt.org
>> >>
>> >
>>
>>
>>
>> --
>> Yasuaki Taniguchi (谷口康明)
>>   yasua...@gmail.com
>
>



-- 
Yasuaki Taniguchi (谷口康明)
  yasua...@gmail.com





bug#29377: date/time of "ls -lh" translation is wrong for Simplified Chinese

2017-11-28 Thread Peng Wu
How about we remove all space characters in date/time?

I mean to display date/time like "11月21日 11:22" or "11月21日11:22".

On Fri, Nov 24, 2017 at 3:31 PM, Yasuaki Taniguchi/谷口康明 
wrote:

> Hello.
>
> As for Japanese, I want to append "日", but I can't do it because of
> the compatibility.
>
> ls and some other programs in coreutils must work in the
> terminal with 80 columns and 24 rows.
>
> The original English message may be "Nov 21 11:22", the number of
> columns is 12. And
> translated Japanese messages is "`11月 21 11:22", the number of columns
> is 13 (月 is full-width
> character and it spends 2 columns).
> If we append 日 after the number of the day, the number of columns will
> be 15. That is too long.
>
> Displaying date and time is very complex issue.
>
>
>
>
> 2017-11-24 14:03 GMT+09:00 Peng Wu :
> > Thanks, I see.
> >
> > On Tue, Nov 21, 2017 at 6:06 PM, Eric Blake  wrote:
> >>
> >> tag 29377 notabug
> >> thanks
> >>
> >> On 11/20/2017 11:55 PM, Peng Wu wrote:
> >> > Hi,
> >> >
> >> > Currently the output of "ls -lh" for Simplified Chinese misses the "日"
> >> > character for the date.
> >> >
> >> > It displays date as "11月 21", but in Simplified Chinese it should
> >> > display
> >> > "11月 21日".
> >> >
> >> > Maybe it also happens with Traditional Chinese and Japanese.
> >> >
> >> > After checked with gnome desktop translation, I wrote one patch.
> >> > URL:
> >> >
> >> > https://l10n.gnome.org/POT/gnome-desktop.master/gnome-
> desktop.master.zh_CN.po
> >>
> >> Thanks for the report and the patch.  The translations for coreutils are
> >> maintained by the translation project, and not upstream coreutils
> >> proper; so I'm closing this bug in the coreutils database (once the
> >> translation project includes your patch, coreutils will automatically
> >> pick it up on the next release).  Meanwhile, your patch should be sent
> >> to the Language-Team: mentioned in zh_CN.po (which I've cc'd) (see also
> >> the X-Bugs: tag in that file, as well as the translation of the "Report
> >> bugs to:" string that appears in localized 'date --help').
> >>
> >> >
> >> > In the attachment, the patch add the "日" character.
> >> >
> >> > Thanks,
> >> >   Peng Wu
> >> >
> >>
> >> --
> >> Eric Blake, Principal Software Engineer
> >> Red Hat, Inc.   +1-919-301-3266
> >> Virtualization:  qemu.org | libvirt.org
> >>
> >
>
>
>
> --
> Yasuaki Taniguchi (谷口康明)
>   yasua...@gmail.com
>


bug#29377: date/time of "ls -lh" translation is wrong for Simplified Chinese

2017-11-24 Thread Yasuaki Taniguchi/谷口康明
Hello.

As for Japanese, I want to append "日", but I can't do it because of
the compatibility.

ls and some other programs in coreutils must work in the
terminal with 80 columns and 24 rows.

The original English message may be "Nov 21 11:22", the number of
columns is 12. And
translated Japanese messages is "`11月 21 11:22", the number of columns
is 13 (月 is full-width
character and it spends 2 columns).
If we append 日 after the number of the day, the number of columns will
be 15. That is too long.

Displaying date and time is very complex issue.




2017-11-24 14:03 GMT+09:00 Peng Wu :
> Thanks, I see.
>
> On Tue, Nov 21, 2017 at 6:06 PM, Eric Blake  wrote:
>>
>> tag 29377 notabug
>> thanks
>>
>> On 11/20/2017 11:55 PM, Peng Wu wrote:
>> > Hi,
>> >
>> > Currently the output of "ls -lh" for Simplified Chinese misses the "日"
>> > character for the date.
>> >
>> > It displays date as "11月 21", but in Simplified Chinese it should
>> > display
>> > "11月 21日".
>> >
>> > Maybe it also happens with Traditional Chinese and Japanese.
>> >
>> > After checked with gnome desktop translation, I wrote one patch.
>> > URL:
>> >
>> > https://l10n.gnome.org/POT/gnome-desktop.master/gnome-desktop.master.zh_CN.po
>>
>> Thanks for the report and the patch.  The translations for coreutils are
>> maintained by the translation project, and not upstream coreutils
>> proper; so I'm closing this bug in the coreutils database (once the
>> translation project includes your patch, coreutils will automatically
>> pick it up on the next release).  Meanwhile, your patch should be sent
>> to the Language-Team: mentioned in zh_CN.po (which I've cc'd) (see also
>> the X-Bugs: tag in that file, as well as the translation of the "Report
>> bugs to:" string that appears in localized 'date --help').
>>
>> >
>> > In the attachment, the patch add the "日" character.
>> >
>> > Thanks,
>> >   Peng Wu
>> >
>>
>> --
>> Eric Blake, Principal Software Engineer
>> Red Hat, Inc.   +1-919-301-3266
>> Virtualization:  qemu.org | libvirt.org
>>
>



-- 
Yasuaki Taniguchi (谷口康明)
  yasua...@gmail.com





bug#29377: date/time of "ls -lh" translation is wrong for Simplified Chinese

2017-11-23 Thread Peng Wu
Thanks, I see.

On Tue, Nov 21, 2017 at 6:06 PM, Eric Blake  wrote:

> tag 29377 notabug
> thanks
>
> On 11/20/2017 11:55 PM, Peng Wu wrote:
> > Hi,
> >
> > Currently the output of "ls -lh" for Simplified Chinese misses the "日"
> > character for the date.
> >
> > It displays date as "11月 21", but in Simplified Chinese it should display
> > "11月 21日".
> >
> > Maybe it also happens with Traditional Chinese and Japanese.
> >
> > After checked with gnome desktop translation, I wrote one patch.
> > URL:
> > https://l10n.gnome.org/POT/gnome-desktop.master/gnome-
> desktop.master.zh_CN.po
>
> Thanks for the report and the patch.  The translations for coreutils are
> maintained by the translation project, and not upstream coreutils
> proper; so I'm closing this bug in the coreutils database (once the
> translation project includes your patch, coreutils will automatically
> pick it up on the next release).  Meanwhile, your patch should be sent
> to the Language-Team: mentioned in zh_CN.po (which I've cc'd) (see also
> the X-Bugs: tag in that file, as well as the translation of the "Report
> bugs to:" string that appears in localized 'date --help').
>
> >
> > In the attachment, the patch add the "日" character.
> >
> > Thanks,
> >   Peng Wu
> >
>
> --
> Eric Blake, Principal Software Engineer
> Red Hat, Inc.   +1-919-301-3266
> Virtualization:  qemu.org | libvirt.org
>
>


bug#29377: date/time of "ls -lh" translation is wrong for Simplified Chinese

2017-11-21 Thread Eric Blake
tag 29377 notabug
thanks

On 11/20/2017 11:55 PM, Peng Wu wrote:
> Hi,
> 
> Currently the output of "ls -lh" for Simplified Chinese misses the "日"
> character for the date.
> 
> It displays date as "11月 21", but in Simplified Chinese it should display
> "11月 21日".
> 
> Maybe it also happens with Traditional Chinese and Japanese.
> 
> After checked with gnome desktop translation, I wrote one patch.
> URL:
> https://l10n.gnome.org/POT/gnome-desktop.master/gnome-desktop.master.zh_CN.po

Thanks for the report and the patch.  The translations for coreutils are
maintained by the translation project, and not upstream coreutils
proper; so I'm closing this bug in the coreutils database (once the
translation project includes your patch, coreutils will automatically
pick it up on the next release).  Meanwhile, your patch should be sent
to the Language-Team: mentioned in zh_CN.po (which I've cc'd) (see also
the X-Bugs: tag in that file, as well as the translation of the "Report
bugs to:" string that appears in localized 'date --help').

> 
> In the attachment, the patch add the "日" character.
> 
> Thanks,
>   Peng Wu
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.   +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



signature.asc
Description: OpenPGP digital signature


bug#29377: date/time of "ls -lh" translation is wrong for Simplified Chinese

2017-11-20 Thread Peng Wu
Hi,

Currently the output of "ls -lh" for Simplified Chinese misses the "日"
character for the date.

It displays date as "11月 21", but in Simplified Chinese it should display
"11月 21日".

Maybe it also happens with Traditional Chinese and Japanese.

After checked with gnome desktop translation, I wrote one patch.
URL:
https://l10n.gnome.org/POT/gnome-desktop.master/gnome-desktop.master.zh_CN.po

In the attachment, the patch add the "日" character.

Thanks,
  Peng Wu
--- coreutils-8.28-pre2.zh_CN.po	2017-08-29 23:12:57.0 +0530
+++ zh_CN.po	2017-11-21 10:45:47.553323779 +0530
@@ -13,7 +13,7 @@
 "Project-Id-Version: coreutils 8.23-pre1\n"
 "Report-Msgid-Bugs-To: bug-coreutils@gnu.org\n"
 "POT-Creation-Date: 2017-08-29 01:20-0700\n"
-"PO-Revision-Date: 2015-02-20 23:59+0800\n"
+"PO-Revision-Date: 2017-11-21 10:45+0530\n"
 "Last-Translator: Aron Xu \n"
 "Language-Team: Chinese (simplified) \n"
 "Language: zh_CN\n"
@@ -5827,7 +5827,7 @@
 #. will count bytes rather than characters in multibyte locales.
 #: src/ls.c:769
 msgid "%b %e  %Y"
-msgstr "%b %e %Y"
+msgstr "%-m月%-e日 %Y"
 
 #. TRANSLATORS: ls output needs to be aligned for ease of reading,
 #. so be wary of using variable width fields from the locale.
@@ -5836,7 +5836,7 @@
 #. will count bytes rather than characters in multibyte locales.
 #: src/ls.c:782
 msgid "%b %e %H:%M"
-msgstr "%b %e %H:%M"
+msgstr "%-m月%-e日 %H:%M"
 
 #: src/ls.c:1747
 #, c-format