From d6d3af9ef990a10967c7afc08f679b8cf2165f92 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 16 Jul 2012 09:58:36 -0400 Subject: Display owner as "me" for files I own --- libnautilus-private/nautilus-file.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c index b35920349..8f3ee6761 100644 --- a/libnautilus-private/nautilus-file.c +++ b/libnautilus-private/nautilus-file.c @@ -5600,7 +5600,10 @@ nautilus_file_get_owner_as_string (NautilusFile *file, gboolean include_real_nam return NULL; } - if (file->details->owner_real == NULL) { + if (file->details->uid == getuid ()) { + /* Translators: "me" is used to indicate the file is owned by me (the current user) */ + user_name = g_strdup (_("me")); + } else if (file->details->owner_real == NULL) { user_name = g_strdup (eel_ref_str_peek (file->details->owner)); } else if (file->details->owner == NULL) { user_name = g_strdup (eel_ref_str_peek (file->details->owner_real)); -- cgit v1.2.1