jenkins-bot has submitted this change and it was merged.
Change subject: Plural support for MathStatus page
......................................................................
Plural support for MathStatus page
Bug: T94546
Change-Id: I431abc2c2690b24d75d30a15ce6430f0c31b3103
---
M SpecialMathStatus.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 4 insertions(+), 3 deletions(-)
Approvals:
Amire80: Looks good to me, approved
Raimond Spekking: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/SpecialMathStatus.php b/SpecialMathStatus.php
index 9477da2..488500e 100644
--- a/SpecialMathStatus.php
+++ b/SpecialMathStatus.php
@@ -28,8 +28,9 @@
}
$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 <code>texvc</code> 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",
--
To view, visit https://gerrit.wikimedia.org/r/203852
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I431abc2c2690b24d75d30a15ce6430f0c31b3103
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: Raimond Spekking <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: TheDJ <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits