Skip to content

Node.js based forum software built for the modern web

replaced hardcoded english string

barisusakli1000df09ff6f
diff --git a/public/language/en_GB/topic.json b/public/language/en_GB/topic.json
index 4b12428c86..7669a23fe0 100644
--- a/public/language/en_GB/topic.json
+++ b/public/language/en_GB/topic.json
@@ -6,6 +6,8 @@
"no_topics_found": "No topics found!",
"no_posts_found": "No posts found!",
+ "post_is_deleted": "This post is deleted!",
+
"profile": "Profile",
"posted_by": "Posted by %1",
"chat": "Chat",
diff --git a/src/topics/posts.js b/src/topics/posts.js
index f75c9bff3a..6d59daf763 100644
--- a/src/topics/posts.js
+++ b/src/topics/posts.js
@@ -70,7 +70,7 @@ module.exports = function(Topics) {
postData[i].display_move_tools = results.privileges[i].move;
if(postData[i].deleted && !results.privileges[i].view_deleted) {
- postData[i].content = 'This post is deleted!';
+ postData[i].content = '[[topic:post_is_deleted]]';
}
}