diff --git a/SpecialMathStatus.php b/SpecialMathStatus.php index 9477da2..488500e 100644 --- a/SpecialMathStatus.php +++ b/SpecialMathStatus.php @@ -28,8 +28,9 @@ class SpecialMathStatus extends SpecialPage { } $out = $this->getOutput(); - $out->addWikiMsg( 'math-status-introduction' ); $enabledMathModes = MathHooks::getMathNames(); + $out->addWikiMsg( 'math-status-introduction', count( $enabledMathModes ) ); + foreach ( $enabledMathModes as $modeNr => $modeName ){ $out->addWikiText( "=== $modeName ===" ); switch( $modeNr ){ diff --git a/i18n/en.json b/i18n/en.json index be214a1..6dd7944 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -25,7 +25,7 @@ "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 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 {{PLURAL:$1|mode is|modes are}} enabled:", "math_syntax_error": "syntax error", "math_timeout": "$1 timeout from \"$2\".", "math-test-end": "Backend tests for rendering mode ''$1'' completed.", diff --git a/i18n/qqq.json b/i18n/qqq.json index 58bc0da..14c0cf2 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -36,7 +36,7 @@ "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.", + "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", "math-test-end": "Used as special-page text.\n\nParameters:\n* $1 rendering mode",