From e3b04ef343e1f88d8e284076443f2d15ee6c690d Mon Sep 17 00:00:00 2001 From: Lionel Le Folgoc Date: Wed, 9 Mar 2011 14:16:31 +0100 Subject: Retrieve the translated desktop file name --- thunar/thunar-file.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 506713c..d7970c7 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -822,10 +822,11 @@ 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) -- 1.7.4.1