From fd2b39686f53fcdb1cf37bb9b7a89a2658dc2f67 Mon Sep 17 00:00:00 2001
From: Jannis Pohlmann <jannis@xfce.org>
Date: Mon, 19 Sep 2011 15:51:41 +0200
Subject: [PATCH] Show translated names of desktop files (bug #7393).

Fix by Lionel Le Folgoc<lionel@lefolgoc.net>.
---
 NEWS                 | 2 ++
 thunar/thunar-file.c | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/NEWS b/NEWS
index cfbcae429..7c1609e35 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,8 @@
   (bug #3545).
 - Prevent falling back to an unexpected locale (bug #4746).
   Patch by Martin Jürgens and Mark Trompell.
+- Show translated names of desktop files (bug #7393).
+  Fix by Lionel Le Folgoc<lionel@lefolgoc.net>.
 
 1.3.0
 =====
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 2731ca911..9e5393c5d 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -825,10 +825,10 @@ thunar_file_load (ThunarFile   *file,
 
           /* read the display name from the .desktop file (will be overwritten later
            * if it's undefined here) */
-          file->display_name = g_key_file_get_string (key_file,
-                                                      G_KEY_FILE_DESKTOP_GROUP,
-                                                      G_KEY_FILE_DESKTOP_KEY_NAME,
-                                                      NULL);
+          file->display_name = g_key_file_get_locale_string (key_file,
+                                                             G_KEY_FILE_DESKTOP_GROUP,
+                                                             G_KEY_FILE_DESKTOP_KEY_NAME,
+                                                             NULL, NULL);
           
           /* check if we have a display name now */
           if (file->display_name != NULL)
-- 
GitLab