# Do infinite loop check
if ( !$frame->loopCheck( $title ) ) {
$found = true;
- $text = "<span class=\"error\">Template loop detected: [[$titleText]]</span>";
+ $text = '<span class="error">' . wfMsgForContent( 'parser-template-loop-warning', $titleText ) . '</span>';
wfDebug( __METHOD__.": template loop broken at '$titleText'\n" );
}
# Do recursion depth check
$limit = $this->mOptions->getMaxTemplateDepth();
if ( $frame->depth >= $limit ) {
$found = true;
- $text = "<span class=\"error\">Template recursion depth limit exceeded ($limit)</span>";
+ $text = '<span class="error">' . wfMsgForContent( 'parser-template-recursion-depth-warning', $limit ) . '</span>';
}
}
}
'post-expand-template-argument-warning' => 'Warning: This page contains at least one template argument which has a too large expansion size.
These arguments have been omitted.',
'post-expand-template-argument-category' => 'Pages containing omitted template arguments',
+'parser-template-loop-warning' => 'Template loop detected: [[$1]]',
+'parser-template-recursion-depth-warning' => 'Template recursion depth limit exceeded ($1)',
# "Undo" feature
'undo-success' => 'The edit can be undone.
'post-expand-template-inclusion-category',
'post-expand-template-argument-warning',
'post-expand-template-argument-category',
+ 'parser-template-loop-warning',
+ 'parser-template-recursion-depth-warning',
),
'undo' => array(
'undo-success',