diff options
author | Christian Neumair <cneumair@src.gnome.org> | 2003-12-21 01:01:23 +0800 |
---|---|---|
committer | Christian Neumair <cneumair@src.gnome.org> | 2003-12-21 01:01:23 +0800 |
commit | c822c32d2e71cc462ca79903e5bccbdbea658408 (patch) | |
tree | abdc8710893951ed2ab39794baec619336bd528b /src/prefs-dialog.c | |
parent | c1563eced7a53f75f6dbddbba78a9245723e3b26 (diff) | |
download | gsoc2013-epiphany-c822c32d2e71cc462ca79903e5bccbdbea658408.tar gsoc2013-epiphany-c822c32d2e71cc462ca79903e5bccbdbea658408.tar.gz gsoc2013-epiphany-c822c32d2e71cc462ca79903e5bccbdbea658408.tar.bz2 gsoc2013-epiphany-c822c32d2e71cc462ca79903e5bccbdbea658408.tar.lz gsoc2013-epiphany-c822c32d2e71cc462ca79903e5bccbdbea658408.tar.xz gsoc2013-epiphany-c822c32d2e71cc462ca79903e5bccbdbea658408.tar.zst gsoc2013-epiphany-c822c32d2e71cc462ca79903e5bccbdbea658408.zip |
Fixed #129737.
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 36f875587..75f26dc79 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -1076,23 +1076,36 @@ create_language_section (EphyDialog *dialog) static char* get_download_button_label () { - char *label, *key, *desktop_path, *tmp; + char *label, *key, *desktop_path, *home_path, *tmp; key = eel_gconf_get_string (CONF_STATE_DOWNLOAD_DIR); + tmp = g_build_filename (g_get_home_dir (), "Desktop", NULL); desktop_path = g_filename_to_utf8 (tmp, -1, NULL, NULL, NULL); + home_path = g_filename_to_utf8 (g_get_home_dir (), -1, NULL, NULL, NULL); g_free (tmp); + if (g_utf8_collate (key, desktop_path) == 0) { g_free (key); label = g_strdup (_("Desktop")); } + else if (g_utf8_collate (key, home_path) == 0) + { + g_free (key); + /* Note that this does NOT refer to the home page but to a + * user's home folder. It should be translated by the same + * term as GTK+'s "Home" string to be consistent with the + * filechooser */ + label = g_strdup (_("Home")); + } else { label = key; } g_free (desktop_path); + g_free (home_path); return label; } |