[Xfce4-commits] [xfce/thunar] 01/01: Missing Trash Translation String (Bug #13409)
noreply at xfce.org
noreply at xfce.org
Tue Oct 10 04:48:21 CEST 2017
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 01a351e79c22b5e1186e0699102d83229efb7059
Author: Andre Miranda <andreldm at xfce.org>
Date: Mon Oct 9 23:46:41 2017 -0300
Missing Trash Translation String (Bug #13409)
Thanks to ToZ!
---
thunar/thunar-file.c | 2 ++
thunar/thunar-gio-extensions.c | 5 +++++
thunar/thunar-shortcuts-model.c | 1 +
3 files changed, 8 insertions(+)
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 1c6ec21..0e058e2 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -1071,6 +1071,8 @@ thunar_file_info_reload (ThunarFile *file,
{
if (strcmp (display_name, "/") == 0)
file->display_name = g_strdup (_("File System"));
+ else if (strcmp (display_name, "Trash") == 0)
+ file->display_name = g_strdup (_("Trash"));
else
file->display_name = g_strdup (display_name);
}
diff --git a/thunar/thunar-gio-extensions.c b/thunar/thunar-gio-extensions.c
index 9a87091..42326b0 100644
--- a/thunar/thunar-gio-extensions.c
+++ b/thunar/thunar-gio-extensions.c
@@ -237,6 +237,11 @@ thunar_g_file_get_display_name (GFile *file)
display_name = g_strdup (_("File System"));
g_free (base_name);
}
+ else if (strcmp (base_name, "Trash") == 0)
+ {
+ display_name = g_strdup (_("Trash"));
+ g_free (base_name);
+ }
else if (g_utf8_validate (base_name, -1, NULL))
{
display_name = base_name;
diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index ef2a5d2..40fcc1c 100644
--- a/thunar/thunar-shortcuts-model.c
+++ b/thunar/thunar-shortcuts-model.c
@@ -1036,6 +1036,7 @@ thunar_shortcuts_model_shortcut_places (ThunarShortcutsModel *model)
{
shortcut = g_slice_new0 (ThunarShortcut);
shortcut->group = THUNAR_SHORTCUT_GROUP_PLACES_TRASH;
+ shortcut->name = g_strdup (_("Trash"));
shortcut->file = file;
shortcut->hidden = thunar_shortcuts_model_get_hidden (model, shortcut);
thunar_shortcuts_model_add_shortcut (model, shortcut);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list