aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 9b0a228a4..398b90a89 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -1093,17 +1093,7 @@ get_download_button_label ()
downloads_path = ephy_file_downloads_dir ();
converted_dp = g_filename_to_utf8 (downloads_path, -1, NULL, NULL, NULL);
- if (key == NULL ||
- g_utf8_collate (key, converted_dp) == 0 ||
- g_utf8_collate (key, "Downloads") == 0)
- {
- label = g_strdup (_("Downloads"));
- }
- else if (g_utf8_collate (key, "~/Desktop") == 0)
- {
- label = g_strdup (_("Desktop"));
- }
- else if (g_utf8_collate (key, "~") == 0)
+ if (key == NULL || g_utf8_collate (key, "~") == 0)
{
/* Note that this does NOT refer to the home page but to a
* user's home folder. It should be translated by the same
@@ -1111,6 +1101,15 @@ get_download_button_label ()
* filechooser */
label = g_strdup (_("Home"));
}
+ else if ((converted_dp != NULL && g_utf8_collate (key, converted_dp) == 0) ||
+ g_utf8_collate (key, "Downloads") == 0)
+ {
+ label = g_strdup (_("Downloads"));
+ }
+ else if (g_utf8_collate (key, "~/Desktop") == 0)
+ {
+ label = g_strdup (_("Desktop"));
+ }
else
{
label = g_strdup (key);