From df2ef5194e88514081511302da45ebf19afcb248 Mon Sep 17 00:00:00 2001 From: Paladox Date: Mon, 14 Dec 2015 19:57:39 +0000 Subject: [PATCH] Allow the signature button wikitext to be overridden locally Related change in wikieditor: I43f5bbaee007bbd038f2e118b3ffb8690753afb8 Bug: T26191 Change-Id: I33de58e9729a51ae73a13853ffcfcbb2d2305111 --- includes/EditPage.php | 2 +- languages/i18n/en.json | 1 + languages/i18n/qqq.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 02093fffff..870e2e0056 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3860,7 +3860,7 @@ HTML ], $showSignature ? [ 'id' => 'mw-editbutton-signature', - 'open' => '--~~~~', + 'open' => wfMessage( 'sig-text', '~~~~' )->inContentLanguage()->text(), 'close' => '', 'sample' => '', 'tip' => wfMessage( 'sig_tip' )->text(), diff --git a/languages/i18n/en.json b/languages/i18n/en.json index e7fa4c767f..03716e6c55 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -634,6 +634,7 @@ "image_tip": "Embedded file", "media_sample": "Example.ogg", "media_tip": "File link", + "sig-text": "--$1", "sig_tip": "Your signature with timestamp", "hr_tip": "Horizontal line (use sparingly)", "summary": "Summary:", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 751bb82bc5..3e44d4522d 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -812,6 +812,7 @@ "image_tip": "This is the text that appears when you hover the mouse over the sixth (middle) button on the edit toolbar.\n\n{{Identical|Embedded file}}", "media_sample": "{{optional}}\n{{Identical|Example}}", "media_tip": "This is the text that appears when you hover the mouse over the fifth button from the right in the edit toolbar.\n{{Identical|File link}}", + "sig-text": "{{notranslate}} This is the text that appears when you click on the signature button (second button from the right) on the edit toolbar. $1 will be replaced with four tildes (which cannot be included directly in the message for technical reasons).", "sig_tip": "This is the text that appears when you hover the mouse over the second key from the right on the edit toolbar.\n{{Identical|Signature with timestamp}}", "hr_tip": "This is the text that appears when you hover the mouse over the first button on the right on the edit toolbar.", "summary": "The Summary text beside the edit summary field\n\nSee also:\n* {{msg-mw|Subject}}\nSee also:\n* {{msg-mw|Accesskey-summary}}\n* {{msg-mw|Tooltip-summary}}\n{{Identical|Summary}}", -- 2.20.1