Re: date format in list view

On Thu, 2004-07-15 at 20:18, Jürg Billeter wrote:
> On Don, 2004-07-15 at 09:48 +0200, Alexander Larsson wrote:
> > On Wed, 2004-07-14 at 23:55, Raul Acevedo wrote:
> > > In list view, the date format takes up way too much space, and because
> > > it uses whole words for week day and month names, it's also actually
> > > harder to read at a glance.  I know that sounds counter-intuitive, but
> > > it's easier to visually parse a list of dates when they are in shorter
> > > format that looks more like fixed width fields.
> > > 
> > > Is there a way to change this?  Ideally either Nautilus would
> > > automatically use a format like "mm/dd/yyyy hh:mi", or I could configure
> > > it via the List View tab in Preferences or even a GConf key that allows
> > > me to enter the raw format string.
> > 
> > There is no way currently, but having a date format preference is
> > probably the right thing to do here. And we should probably change the
> > default setting to be more 'regular'.
> Attached is a patch that adds a preference for the date format. One can
> choose between '%c' ('the preferred representation for the current
> locale'), iso-style (%Y-%m-%d %H:%M:%S) and the current format. The
> patch changes the default format to '%c'.

In nautilus-file.c, use eel_preferences_add_auto_enum instead of the
manual callbacks.

In nautilsu-global-preferences.c, add a comment about why the strings
are not translated.

+	date_string = eel_strdup_strftime (N_("today at %-I:%M:%S %p"), now);

Should use _(), not N_() here, or it won't be translated.

I fixed these and commited to cvs. Thanks.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a witless sweet-toothed rock star haunted by an iconic dead American 
confidante She's a beautiful psychic Hell's Angel with only herself to blame. 
They fight crime! 

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