jenkins-bot has submitted this change and it was merged.

Change subject: Add tracking category in case of broken <score>
......................................................................


Add tracking category in case of broken <score>

Bug: 47351
Change-Id: I9e38cca6f2ddaf5a6652684ed1d1c83671a74969
---
M Score.body.php
M Score.i18n.php
2 files changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Score.body.php b/Score.body.php
index 61e2938..147c27c 100644
--- a/Score.body.php
+++ b/Score.body.php
@@ -342,6 +342,7 @@
 
                        $html = self::generateHTML( $parser, $code, $options );
                } catch ( ScoreException $e ) {
+                       $parser->addTrackingCategory( 'score-error-category' );
                        $html = "$e";
                }
 
diff --git a/Score.i18n.php b/Score.i18n.php
index d41ce31..f1ade72 100644
--- a/Score.i18n.php
+++ b/Score.i18n.php
@@ -36,6 +36,7 @@
        'score-backend-error' => 'Unable to copy the generated files to their 
final location:
 $1',
        'score-desc' => 'Adds a tag for rendering musical scores with LilyPond',
+       'score-error-category' => 'Pages with score rendering errors',
        'score-getcwderr' => 'Unable to obtain current working directory',
        'score-invalidlang' => 'Invalid score language 
lang="<nowiki>$1</nowiki>". Currently recognized languages are lang="lilypond" 
(the default) and lang="ABC".',
        'score-invalidoggoverride' => 'The file "<nowiki>$1</nowiki>" you 
specified with override_ogg is invalid. Please specify the file name only, omit 
<nowiki>[[…]]</nowiki> and the "{{ns:file}}:" prefix.',
@@ -75,6 +76,7 @@
        'score-backend-error' => 'Parameters:
 * $1 - result message which was returned',
        'score-desc' => 
'{{desc|name=Score|url=http://www.mediawiki.org/wiki/Extension:Score}}',
+       'score-error-category' => 'Name of [[mw:Help:Tracking 
categories|tracking category]] to list pages where there was an error rendering 
the &lt;score&gt; tag.',
        'score-getcwderr' => 'Displayed if the extension cannot obtain the 
current working directory.',
        'score-invalidlang' => 'Displayed if the lang="…" attribute contains an 
unrecognized score language. $1 is the unrecognized language.',
        'score-invalidoggoverride' => 'Displayed if the file specified with the 
override_ogg="…" attribute is invalid. $1 is the value of the override_ogg 
attribute.',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9e38cca6f2ddaf5a6652684ed1d1c83671a74969
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Score
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <[email protected]>
Gerrit-Reviewer: MZMcBride <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to