From 83f60a8ec913ee1f5ee2d0357dd8e3577b14c696 Mon Sep 17 00:00:00 2001 From: "This, that and the other" Date: Sun, 30 Aug 2015 17:28:44 +1000 Subject: [PATCH] Reword 'stub-threshold' message in Special:Preferences advanced section Message changed from "Threshold for stub link formatting bytes" to "Threshold in bytes for stub link rendering (sample)". Also convert it to a wikitext message (not raw HTML) and improve the "qqq" documentation. Bug: T107732 Change-Id: I493679073b9881c98a068dede2db00b391ab8353 --- includes/Preferences.php | 6 +++++- languages/i18n/en.json | 3 ++- languages/i18n/qqq.json | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/Preferences.php b/includes/Preferences.php index fbb7b510ef..6f959521b2 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -751,7 +751,11 @@ class Preferences { 'type' => 'select', 'section' => 'rendering/advancedrendering', 'options' => $stubThresholdOptions, - 'label-raw' => $context->msg( 'stub-threshold' )->text(), // Raw HTML message. Yay? + // This is not a raw HTML message; label-raw is needed for the manual + 'label-raw' => $context->msg( 'stub-threshold' )->rawParams( + '' . + $context->msg( 'stub-threshold-sample-link' )->parse() . + '' )->parse(), ); $defaultPreferences['showhiddencats'] = array( diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 681d63e33d..7703f7b841 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -975,7 +975,8 @@ "rows": "Rows:", "columns": "Columns:", "searchresultshead": "Search", - "stub-threshold": "Threshold for stub link formatting (bytes):", + "stub-threshold": "Threshold for stub link formatting ($1):", + "stub-threshold-sample-link": "sample", "stub-threshold-disabled": "Disabled", "recentchangesdays": "Days to show in recent changes:", "recentchangesdays-max": "Maximum $1 {{PLURAL:$1|day|days}}", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index e011dd7bd8..a983bbacf3 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1146,7 +1146,8 @@ "rows": "Used on [[Special:Preferences]], \"Editing\" section in the \"Size of editing window\" fieldset.\n{{Identical|Row}}", "columns": "Used on [[Special:Preferences]], \"Editing\" section in the \"Size of editing window\" fieldset.\n{{Identical|Column}}", "searchresultshead": "Replaced by {{msg-mw|prefs-searchoptions}}, though may still be used in some extensions. DEPRECATED.\n\n{{Identical|Search}}", - "stub-threshold": "Used in [[Special:Preferences]], tab \"Misc\".", + "stub-threshold": "Used in [[Special:Preferences]], \"Advanced options\" section. The setting allows the user to select a threshold value, in bytes, from a predefined list of options. Any links that lead to pages smaller than the threshold (\"stub links\") will be styled differently.\n\nParameters:\n* $1: the text of {{msg-mw|stub-threshold-sample-link}}, styled as a stub link", + "stub-threshold-sample-link": "Passed as a parameter to the {{msg-mw|stub-threshold}} message.", "stub-threshold-disabled": "Used in [[Special:Preferences]].\n{{Identical|Disabled}}", "recentchangesdays": "Used in [[Special:Preferences]], tab \"Recent changes\".", "recentchangesdays-max": "Shown as hint in [[Special:Preferences]], tab \"Recent changes\". Parameters:\n* $1 - number of days\nSee also:\n* {{msg-mw|Prefs-watchlist-days-max}}", -- 2.20.1