From 428f5a847bf1e6fa81dbe12c8410b25fa4def033 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Tue, 6 Nov 2018 17:19:43 -0800 Subject: [PATCH] Drop support for MediaWiki core's removed "2006 wikitext editor" Change-Id: I59bad8faee3f0f998344f985eb675087533d3d8f --- extension.json | 10 ---------- i18n/en.json | 2 -- i18n/qqq.json | 2 -- images/button_math.png | Bin 597 -> 0 bytes modules/ext.math.editbutton.js | 14 -------------- src/MathHooks.php | 8 -------- 6 files changed, 36 deletions(-) delete mode 100644 images/button_math.png delete mode 100644 modules/ext.math.editbutton.js diff --git a/extension.json b/extension.json index 2177322..82381fb 100644 --- a/extension.json +++ b/extension.json @@ -62,9 +62,6 @@ "PageRenderingHash": [ "MathHooks::onPageRenderingHash" ], - "EditPageBeforeEditToolbar": [ - "MathHooks::onEditPageBeforeEditToolbar" - ], "WikibaseClientDataTypes": [ "MathWikidataHook::onWikibaseClientDataTypes" ], @@ -142,13 +139,6 @@ "ext.math.scripts": { "scripts": "ext.math.js" }, - "ext.math.editbutton.enabler": { - "scripts": "ext.math.editbutton.js", - "messages": [ - "math_tip", - "math_sample" - ] - }, "ext.math.visualEditor": { "scripts": [ "ve-math/ve.dm.MWLatexNode.js", diff --git a/i18n/en.json b/i18n/en.json index a04be67..74b4474 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -78,7 +78,6 @@ "math_mathoid_error": "Conversion error. Server (\"$1\") reported: \"$2\"", "math_notexvc": "Missing texvc executable. Please see math/README to configure.", "math_output_error": "Cannot store math image on filesystem.", - "math_sample": "Insert formula here", "math-status-introduction" : "This page displays information about the enabled math rendering {{PLURAL:$1|mode|modes}}.\n\nThe following rendering {{PLURAL:$1|mode is|modes are}} enabled:", "math_syntax_error": "syntax error", "math_timeout": "$1 timeout from \"$2\".", @@ -88,7 +87,6 @@ "math-test-success": "Test ''$1'' succeeded.", "math-test-contains-diff" : "Returned string $1 does not contain expected string $2.", "math-test-equals-diff" : "Returned string $1 is different from expected string $2.", - "math_tip": "Mathematical formula (LaTeX)", "math-tracking-category-error": "Pages with math errors", "math-tracking-category-error-desc": "Pages in this category have errors in the usage of math tags.", "math-tracking-category-render-error": "Pages with math render errors", diff --git a/i18n/qqq.json b/i18n/qqq.json index 79fe233..0c691fe 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -78,7 +78,6 @@ "math_mathoid_error": "Used as error message.\n\nFollows the message {{msg-mw|Math failure}}.\n\nParameters:\n* $1 - hostname\n* $2 - error message retrieved from the server", "math_notexvc": "Used as error message.\n\nThis message follows the message {{msg-mw|Math failure}}.\n\nSee also:\n* {{msg-mw|Math notexvccheck}}", "math_output_error": "Used as error message if the texvc output file could not be stored.\n\nThis message follows the message {{msg-mw|Math failure}}.", - "math_sample": "The sample formula text that you get when you press the fourth button from the right on the edit toolbar.", "math-status-introduction": "Used as special-page text.\n\nParameters:\n* $1 mode count", "math_syntax_error": "Used as error message for a texvc syntax error.\n\nThis message follows the message {{msg-mw|Math failure}}.\n{{Identical|Syntax error}}", "math_timeout": "Used as error message.\n\nParameters:\n* $1 - rendering type (either LaTeXML or Mathoid)\n* $2 - hostname or URL", @@ -88,7 +87,6 @@ "math-test-success": "Used as special-page text.\n\nParameters:\n* $1 test name", "math-test-contains-diff": "Used as special-page wikitext.\n\nParameters:\n* $1 syntax highlight element of the returned string \n* $2 syntax highlight element of the expected string", "math-test-equals-diff": "Used as special-page wikitext.\n\nParameters:\n* $1 syntax highlight element of the returned string \n* $2 syntax highlight element of the expected string", - "math_tip": "This is the text that appears when you hover the mouse over the fourth button from the right on the edit toolbar.", "math-tracking-category-error": "Tracking category name.", "math-tracking-category-error-desc": "Tracking category description.", "math-tracking-category-render-error": "Tracking category name.", diff --git a/images/button_math.png b/images/button_math.png deleted file mode 100644 index 78ea19e5264615cbe0759f472507e630fddade42..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 597 zcmV-b0;>IqP)$#mZ@uYhGcGio2$WG zW^*(-KtM-OS72;jXm=SLAgH_5qqff~E;XgN(lt9nTxN8nx6l$57lDwZm#D#ch?@Wa z0EU&SqqfjuZGB;Ee4w+<1_lRpgOwT`A)m3zPFG}}vCEyX$s{N)Fg8A%ugN1QEt;*y ze~zOJ4G(5=gF#7DS!8p4jG>yX$7yzm1Ox?wlBi^GfmL5^kfFM6dybc?!(VHAc!ryo zs>GJ5!xtJJJVQ<>Ei{s(y_2TER$_4h0RmKCZjhtBj-a|IEj5jxxrUgrb%>*Y;h~8D z005;)L_t(|0hEkI0s=t{1jj8MoHPIbAZI$b!`905R3x~!_~62OCVAS2rSXiTPj~n; zi9TMSzvjn&e@*lc?X|_;PyO{us-sqIeNij@I3XhZk!Uyb0!u(OZ~E-V9)ODASi;H@ zy~qwq2ET7A`NPuovZ~bydP9iaQ5&BXx@#O*f^p2C~=&Sed jIP4!2V|Onm=>7))n1UFTqkoEO00000NkvXXu0mjfytWw@ diff --git a/modules/ext.math.editbutton.js b/modules/ext.math.editbutton.js deleted file mode 100644 index 2db5b38..0000000 --- a/modules/ext.math.editbutton.js +++ /dev/null @@ -1,14 +0,0 @@ -( function ( mw ) { - var iconPath; - if ( mw.toolbar ) { - iconPath = mw.config.get( 'wgExtensionAssetsPath' ) + '/Math/images/'; - mw.toolbar.addButton( { - imageFile: iconPath + 'button_math.png', - speedTip: mw.msg( 'math_tip' ), - tagOpen: '', - tagClose: '', - sampleText: mw.msg( 'math_sample' ), - imageId: 'mw-editbutton-math' - } ); - } -}( mediaWiki ) ); diff --git a/src/MathHooks.php b/src/MathHooks.php index 833f83d..fd26279 100644 --- a/src/MathHooks.php +++ b/src/MathHooks.php @@ -385,14 +385,6 @@ class MathHooks { return true; } - /** - * @param string &$toolbar HTML - */ - public static function onEditPageBeforeEditToolbar( &$toolbar ) { - global $wgOut; - $wgOut->addModules( [ 'ext.math.editbutton.enabler' ] ); - } - public static function registerExtension() { global $wgDefaultUserOptions, $wgMathValidModes, $wgMathDisableTexFilter; $wgMathValidModes = MathRenderer::getValidModes();