From 01a351e79c22b5e1186e0699102d83229efb7059 Mon Sep 17 00:00:00 2001
From: Andre Miranda <andreldm@xfce.org>
Date: Mon, 9 Oct 2017 23:46:41 -0300
Subject: [PATCH] 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 1c6ec217c..0e058e273 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 9a870919b..42326b01b 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 ef2a5d263..40fcc1cbf 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);
-- 
GitLab