Merge lp:~jeremywootten/pantheon-files/fix-1217214-translate-desktop-files into lp:~elementary-apps/pantheon-files/trunk

Proposed by Jeremy Wootten
Status: Merged
Approved by: Cody Garver
Approved revision: 2133
Merged at revision: 2133
Proposed branch: lp:~jeremywootten/pantheon-files/fix-1217214-translate-desktop-files
Merge into: lp:~elementary-apps/pantheon-files/trunk
Diff against target: 15 lines (+2/-1)
1 file modified
libcore/gof-file.c (+2/-1)
To merge this branch: bzr merge lp:~jeremywootten/pantheon-files/fix-1217214-translate-desktop-files
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+293484@code.launchpad.net

Commit message

Show translated name for .desktop files if present (lp:1217214)

Description of the change

This branch fixes the custom display name for .desktop files so that the name in the current locale is returned (if the .desktop file contains translated names). Note: At present, the Pantheon Files .desktop file does not contain translations.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libcore/gof-file.c'
--- libcore/gof-file.c 2016-04-14 17:32:32 +0000
+++ libcore/gof-file.c 2016-05-01 18:23:09 +0000
@@ -476,9 +476,10 @@
476476
477 /* read the display name from the .desktop file (will be overwritten later477 /* read the display name from the .desktop file (will be overwritten later
478 * if it's undefined here) */478 * if it's undefined here) */
479 gchar *custom_display_name = g_key_file_get_string (key_file,479 gchar *custom_display_name = g_key_file_get_locale_string (key_file,
480 G_KEY_FILE_DESKTOP_GROUP,480 G_KEY_FILE_DESKTOP_GROUP,
481 G_KEY_FILE_DESKTOP_KEY_NAME,481 G_KEY_FILE_DESKTOP_KEY_NAME,
482 NULL,
482 NULL);483 NULL);
483484
484 /* check if we have a display name now */485 /* check if we have a display name now */

Subscribers

People subscribed via source and target branches

to all changes: