Correct way to use ISO date/time format in nautilus



Hello

What's the correct way to use the ISO date/time format in nautilus?

The current date format seems to be adapted for hackers that understand
the most difficult date formats on earth. But most people like a equally
width date format, so reading dates is easy.

For me, I've patched nautilus to use ISO date/time format.
But patching the sources is not easy for everyone.

How a normal nautilus user would do it?

In KDE/Konqueror this is easy as the user can choose the date/time
format in the control panel.
Will GNOME ever have this kind of control panel?

For more information about this date format just look at:
ISO 8601 http://www.cl.cam.ac.uk/~mgk25/iso-time.html

Eduardo
--- nautilus/libnautilus-private/nautilus-file.c
+++ nautilus/libnautilus-private/nautilus-file.c
@@ -2510,17 +2510,11 @@
 	 * off zero padding, and putting a "_" there will use
 	 * space padding instead of zero padding.
 	 */
-	N_("today at 00:00:00 PM"),
-	N_("today at %-I:%M:%S %p"),
+	"0000-00-00 00:00:00",
+	"%Y-%m-%d %H:%M:%S",
 	
-	N_("today at 00:00 PM"),
-	N_("today at %-I:%M %p"),
-	
-	N_("today, 00:00 PM"),
-	N_("today, %-I:%M %p"),
-	
-	N_("today"),
-	N_("today"),
+	"0000-00-00 00:00",
+	"%Y-%m-%d %H:%M",
 
 	NULL
 };
@@ -2529,17 +2523,11 @@
 	/* Yesterday, use special word.
 	 * Note to localizers: Same issues as "today" string.
 	 */
-	N_("yesterday at 00:00:00 PM"),
-	N_("yesterday at %-I:%M:%S %p"),
-	
-	N_("yesterday at 00:00 PM"),
-	N_("yesterday at %-I:%M %p"),
-	
-	N_("yesterday, 00:00 PM"),
-	N_("yesterday, %-I:%M %p"),
+	"0000-00-00 00:00:00",
+	"%Y-%m-%d %H:%M:%S",
 	
-	N_("yesterday"),
-	N_("yesterday"),
+	"0000-00-00 00:00",
+	"%Y-%m-%d %H:%M",
 
 	NULL
 };
@@ -2550,26 +2538,14 @@
 	 * The width measurement templates correspond to
 	 * the day/month name with the most letters.
 	 */
-	N_("Wednesday, September 00 0000 at 00:00:00 PM"),
-	N_("%A, %B %-d %Y at %-I:%M:%S %p"),
-
-	N_("Mon, Oct 00 0000 at 00:00:00 PM"),
-	N_("%a, %b %-d %Y at %-I:%M:%S %p"),
-
-	N_("Mon, Oct 00 0000 at 00:00 PM"),
-	N_("%a, %b %-d %Y at %-I:%M %p"),
-	
-	N_("Oct 00 0000 at 00:00 PM"),
-	N_("%b %-d %Y at %-I:%M %p"),
-	
-	N_("Oct 00 0000, 00:00 PM"),
-	N_("%b %-d %Y, %-I:%M %p"),
+	"0000-00-00 00:00:00",
+	"%Y-%m-%d %H:%M:%S",
 	
-	N_("00/00/00, 00:00 PM"),
-	N_("%m/%-d/%y, %-I:%M %p"),
+	"0000-00-00 00:00",
+	"%Y-%m-%d %H:%M",
 
-	N_("00/00/00"),
-	N_("%m/%d/%y"),
+	"0000-00-00",
+	"%Y-%m-%d",
 
 	NULL
 };
--- nautilus/src/file-manager/nautilus-indexing-info.c
+++ nautilus/src/file-manager/nautilus-indexing-info.c
@@ -314,7 +314,7 @@
         
 	update_time = medusa_index_service_get_last_index_update_time ();
         if (update_time) {
-                return eel_strdup_strftime (_("%I:%M %p, %x"),
+                return eel_strdup_strftime ("%Y-%m-%d %H:%M",
                                                  localtime (&update_time));
         } else {
                 return NULL;


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