[Xfce4-commits] <thunar:xfce-4.8> Show translated names of desktop files (bug #7393).

Jannis Pohlmann noreply at xfce.org
Mon Sep 19 15:54:01 CEST 2011


Updating branch refs/heads/xfce-4.8
         to 5e3b25c4020d8b2ba8acebc748e873316c87885f (commit)
       from 970a5fdc1fa28524a085fe678bb0550f532f8d29 (commit)

commit 5e3b25c4020d8b2ba8acebc748e873316c87885f
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Mon Sep 19 15:51:41 2011 +0200

    Show translated names of desktop files (bug #7393).
    
    Fix by Lionel Le Folgoc<lionel at lefolgoc.net>.

 NEWS                 |    2 ++
 thunar/thunar-file.c |    8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/NEWS b/NEWS
index bdb764a..a759046 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,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 at lefolgoc.net>.
 
 1.2.2
 =====
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 12e1556..909da25 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)


More information about the Xfce4-commits mailing list