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

Re: [PATCH] For consistency mark some dates and strings for localization

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta_at_gmail.com>
Date: 2007-09-13 19:25:03 CEST

2007-09-10 22:32:11 Arfrever Frehtes Taifersar Arahesis napisał(a):
> 2007-09-10 21:46:02 Erik Huelsmann napisał(a):
> > On 9/10/07, Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> wrote:
> > > 2007-09-10 21:18:32 Karl Fogel napisał(a):
> > > > So right now, I think it wouldn't be applied. If we're missing
> > > > something important, please let us know.
> > >
> > > Thanks for reply.
> > >
> > > %c is too long for `svn ls -v`. Its localization would be also consistent with e.g. `ls -l`.
> > >
> > > I don't have strong arguments for localization of "%a %b %e %H:%M:%S %Y", but e.g. in
> > > Simplified Chinese the order is "year month day" instead of "month day year", so maybe Cauchy
> > > would like to localize it.
> > >
> > > No problem in case of "txn" and "rev".
> > >
> > > For me, the most important would be the localization of dates in `svn ls -v`.
> >
> > Understood. Maybe you could have a look at how ls localized it's
> > output? Did they do it the way you do, or do they use some other %
> > format specifier from strftime?
>
> <Coreutils-6.9>/src/ls.c: Lines 672-693:
> /* strftime formats for non-recent and recent files, respectively, in
> -l output. */
>
> static char const *long_time_format[2] =
> {
> /* strftime format for non-recent files (older than 6 months), in
> -l output. This should contain the year, month and day (at
> least), in an order that is understood by people in your
> locale's territory. Please try to keep the number of used
> screen columns small, because many people work in windows with
> only 80 columns. But make this as wide as the other string
> below, for recent files. */
> N_("%b %e %Y"),
> /* strftime format for recent files (younger than 6 months), in -l
> output. This should contain the month, day and time (at
> least), in an order that is understood by people in your
> locale's territory. Please try to keep the number of used
> screen columns small, because many people work in windows with
> only 80 columns. But make this as wide as the other string
> above, for non-recent files. */
> N_("%b %e %H:%M")
> };

So what do you think about this small, reduced patch, which I'm attaching now?
As mentioned earlier, localization of dates in `svn ls -v` would be consistent
with localization of dates in `ls -l`.

[[[
Mark dates for localization.

* subversion/svn/list-cmd.c
  (print_dirent): Mark dates for localization.

Patch by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
]]]

-- 
Arfrever Frehtes Taifersar Arahesis

Received on Thu Sep 13 19:24:31 2007

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.