[Xfce4-commits] <thunar:master> Show translated names of desktop files (bug #7393).
Jannis Pohlmann
noreply at xfce.org
Mon Sep 19 15:52:01 CEST 2011
Updating branch refs/heads/master
to fd2b39686f53fcdb1cf37bb9b7a89a2658dc2f67 (commit)
from 1c4c7f92f30d50712d57c9ab4ed56e23c30f7255 (commit)
commit fd2b39686f53fcdb1cf37bb9b7a89a2658dc2f67
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 cfbcae4..7c1609e 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 at lefolgoc.net>.
1.3.0
=====
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 2731ca9..9e5393c 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