FIX: use new key for delete topic to make it lowercased as all other buttons label around it (#6778)

FIX: use new key for delete topic to make it lowercased as all other buttons label around it (#6778)
diff --git a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-menu.js.es6
index c796a5e..a0f00d1 100644
--- a/app/assets/javascripts/discourse/widgets/post-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-menu.js.es6
@@ -267,7 +267,7 @@ registerButton("delete", attrs => {
     return {
       id: "delete_topic",
       action: "deletePost",
-      title: "topic.actions.delete",
+      title: "post.controls.delete_topic",
       icon: "trash-o",
       className: "delete"
     };
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 548fd10..6f1f3e0 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -2166,6 +2166,7 @@ en:
         unlock_post_description: "allow the poster to edit this post"
         delete_topic_disallowed_modal: "You don't have permission to delete this topic. If you really want it to be deleted, submit a flag for moderator attention together with reasoning."
         delete_topic_disallowed: "you don't have permission to delete this topic"
+        delete_topic: "delete topic"
 
       actions:
         flag: 'Flag'

GitHub
sha: ed1a309f

1 Like