Brian Wolff has uploaded a new change for review.
https://gerrit.wikimedia.org/r/63268
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Score
refs/changes/68/63268/1
diff --git a/Score.body.php b/Score.body.php
index 3240550..31b261b 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 <score> 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: newchange
Gerrit-Change-Id: I9e38cca6f2ddaf5a6652684ed1d1c83671a74969
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Score
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits