From 2fec6b007a1652cd5e71ffd118f9cfa2ec59ff31 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 30 Nov 2022 14:40:35 -0500 Subject: [PATCH] feat: supply subject-first topic event text for themes --- public/language/en-GB/topic.json | 10 ++++++++++ src/topics/events.js | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/public/language/en-GB/topic.json b/public/language/en-GB/topic.json index 94a3b5db3f..2538a39bdb 100644 --- a/public/language/en-GB/topic.json +++ b/public/language/en-GB/topic.json @@ -54,6 +54,16 @@ "backlink": "Referenced by", "forked-by": "Forked by", + "x-locked": "locked this topic", + "x-unlocked": "unlocked this topic", + "x-pinned": "pinned this topic", + "x-unpinned": "unpinned this topic", + "x-deleted": "deleted this topic", + "x-restored": "restored this topic", + "x-moved-from": "moved this topic from %1", + "x-backlink": "referenced this topic", + "x-forked": "forked this topic", + "bookmark_instructions" : "Click here to return to the last read post in this thread.", "flag-post": "Flag this post", diff --git a/src/topics/events.js b/src/topics/events.js index 8e2b8e04e1..df2afc7bd0 100644 --- a/src/topics/events.js +++ b/src/topics/events.js @@ -26,26 +26,32 @@ Events._types = { pin: { icon: 'fa-thumb-tack', text: '[[topic:pinned-by]]', + 'x-text': '[[topic:x-pinned]]', }, unpin: { icon: 'fa-thumb-tack fa-rotate-90', text: '[[topic:unpinned-by]]', + 'x-text': '[[topic:x-unpinned]]', }, lock: { icon: 'fa-lock', text: '[[topic:locked-by]]', + 'x-text': '[[topic:x-locked]]', }, unlock: { icon: 'fa-unlock', text: '[[topic:unlocked-by]]', + 'x-text': '[[topic:x-unlocked]]', }, delete: { icon: 'fa-trash', text: '[[topic:deleted-by]]', + 'x-text': '[[topic:x-deleted]]', }, restore: { icon: 'fa-trash-o', text: '[[topic:restored-by]]', + 'x-text': '[[topic:x-restored]]', }, move: { icon: 'fa-arrow-circle-right', @@ -59,10 +65,12 @@ Events._types = { backlink: { icon: 'fa-link', text: '[[topic:backlink]]', + 'x-text': '[[topic:x-backlink]]', }, fork: { icon: 'fa-code-fork', text: '[[topic:forked-by]]', + 'x-text': '[[topic:x-forked]]', }, };