Physikerwelt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/112589

Change subject: Differntiate missing texvccheck from missing texvc
......................................................................

Differntiate missing texvccheck from missing texvc

Introduce different error messages for missing texvccheck and
texvc and update the README file.

Bug: 61154
Change-Id: I52f796f181f6a3ab6d65a8e8d89f59d523d5b7b8
---
M Math.i18n.php
M MathInputCheckTexvc.php
M README
3 files changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math 
refs/changes/89/112589/1

diff --git a/Math.i18n.php b/Math.i18n.php
index b52b26a..d2fddf3 100644
--- a/Math.i18n.php
+++ b/Math.i18n.php
@@ -34,6 +34,7 @@
        'math_bad_tmpdir' => 'Cannot write to or create math temp directory',
        'math_bad_output' => 'Cannot write to or create math output directory',
        'math_notexvc' => 'Missing texvc executable; please see math/README to 
configure.',
+       'math_notexvccheck' => 'Missing texvccheck executable; please see 
math/README to configure.',
        'math_output_error' => 'Cannot store math image on filesystem.',
        'math_latexml_timeout' => 'LaTeXML timeout from \'$1\'',
        'math_latexml_invalidresponse' => 'LaTeXML Invalid response (\'$2\') 
from server \'$1\':',
@@ -154,6 +155,7 @@
 
 This message follows the message {{msg-mw|Math failure}}.',
        'math_latexml_xmlversion' => 'Warning that XML checking of MathML 
requires wmf/1.22wmf7 or newer.',
+       'math_notexvccheck' => 'texvccheck executable is missing. Very similar 
to math_notexvc.',
 );
 
 /** Achinese (Acèh)
diff --git a/MathInputCheckTexvc.php b/MathInputCheckTexvc.php
index f8b1613..36c0ae8 100644
--- a/MathInputCheckTexvc.php
+++ b/MathInputCheckTexvc.php
@@ -59,7 +59,7 @@
        public function doValidCheck() {
                global $wgMathTexvcCheckExecutable;
                if ( !is_executable( $wgMathTexvcCheckExecutable ) ) {
-                       $msg = wfMessage( 'math_notexvc' 
)->inContentLanguage()->escaped();
+                       $msg = wfMessage( 'math_notexvccheck' 
)->inContentLanguage()->escaped();
                        trigger_error( $msg, E_USER_NOTICE );
                        wfDebugLog( 'Math', $msg );
                        return true;
diff --git a/README b/README
index b64242e..addb24f 100644
--- a/README
+++ b/README
@@ -6,11 +6,13 @@
 
 See the README in the math subdirectory for more info on setting up the
 low-level conversion tools.
+See the README in the texvccheck subdirectory for more info on setting up the
+security checking tools for MathJax and LaTeXML.
 
 MathML support:
 If you prefer MathML rather than images you can use LaTeXML to convert the
 math tags to MathML. To use that feature you have to enable LaTeXML by setting
-$wgUseLaTeXML = true;
+$wgMathUseLaTeXML = true;
 It is possible to choose LaTeXML as default option (for anonymous user) by 
setting
 $wgDefaultUserOptions['math'] = MW_MATH_LATEXML;
 in the LocalSettings.php file.

-- 
To view, visit https://gerrit.wikimedia.org/r/112589
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I52f796f181f6a3ab6d65a8e8d89f59d523d5b7b8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to