Merge "Improve layout of Special:MathStatus"
This commit is contained in:
commit
3cfe991957
|
@ -31,7 +31,7 @@ class SpecialMathStatus extends SpecialPage {
|
||||||
$out->addWikiMsg( 'math-status-introduction' );
|
$out->addWikiMsg( 'math-status-introduction' );
|
||||||
$enabledMathModes = MathHooks::getMathNames();
|
$enabledMathModes = MathHooks::getMathNames();
|
||||||
foreach ( $enabledMathModes as $modeNr => $modeName ){
|
foreach ( $enabledMathModes as $modeNr => $modeName ){
|
||||||
$out->addWikiText( "* $modeName" );
|
$out->addWikiText( "=== $modeName ===" );
|
||||||
switch( $modeNr ){
|
switch( $modeNr ){
|
||||||
case MW_MATH_MATHML:
|
case MW_MATH_MATHML:
|
||||||
$this->runMathMLTest( $modeName );
|
$this->runMathMLTest( $modeName );
|
||||||
|
@ -52,7 +52,7 @@ class SpecialMathStatus extends SpecialPage {
|
||||||
|
|
||||||
private function runMathLaTeXMLTest( $modeName ) {
|
private function runMathLaTeXMLTest( $modeName ) {
|
||||||
$this->getOutput()->addWikiMsgArray( 'math-test-start', $modeName );
|
$this->getOutput()->addWikiMsgArray( 'math-test-start', $modeName );
|
||||||
$this->testMathMLIntegration();
|
$this->testLaTeXMLIntegration();
|
||||||
$this->getOutput()->addWikiMsgArray( 'math-test-end', $modeName );
|
$this->getOutput()->addWikiMsgArray( 'math-test-end', $modeName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
"math-status-introduction" : "This page displays information about the enabled math rendering modes.\n\nThe following rendering mode is/rendering modes are enabled.",
|
"math-status-introduction" : "This page displays information about the enabled math rendering modes.\n\nThe following rendering mode is/rendering modes are enabled.",
|
||||||
"math_syntax_error": "syntax error",
|
"math_syntax_error": "syntax error",
|
||||||
"math_timeout": "$1 timeout from \"$2\".",
|
"math_timeout": "$1 timeout from \"$2\".",
|
||||||
"math-test-end": "Backend tests for rendering mode \"$1\" completed.",
|
"math-test-end": "Backend tests for rendering mode ''$1'' completed.",
|
||||||
"math-test-fail": "Test \"$1\" failed.",
|
"math-test-fail": "Test ''$1'' <span style=\"color:red\">failed</span>.",
|
||||||
"math-test-start": "Running backend tests for rendering mode \"$1\".",
|
"math-test-start": "Running backend tests for rendering mode ''$1''.",
|
||||||
"math-test-success": "Test \"$1\" succeeded.",
|
"math-test-success": "Test ''$1'' <span style=\"color:green\">succeeded</span>.",
|
||||||
"math_tip": "Mathematical formula (LaTeX)",
|
"math_tip": "Mathematical formula (LaTeX)",
|
||||||
"math_unknown_error": "unknown error",
|
"math_unknown_error": "unknown error",
|
||||||
"math_unknown_function": "unknown function \"$1\"",
|
"math_unknown_function": "unknown function \"$1\"",
|
||||||
|
|
Loading…
Reference in New Issue