Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -573,6 +573,8 @@ |
574 | 574 | 'post-expand-template-inclusion-category', |
575 | 575 | 'post-expand-template-argument-warning', |
576 | 576 | 'post-expand-template-argument-category', |
| 577 | + 'parser-template-loop-warning', |
| 578 | + 'parser-template-recursion-depth-warning', |
577 | 579 | ), |
578 | 580 | 'undo' => array( |
579 | 581 | 'undo-success', |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -2943,14 +2943,14 @@ |
2944 | 2944 | # Do infinite loop check |
2945 | 2945 | if ( !$frame->loopCheck( $title ) ) { |
2946 | 2946 | $found = true; |
2947 | | - $text = "<span class=\"error\">Template loop detected: [[$titleText]]</span>"; |
| 2947 | + $text = '<span class="error">' . wfMsgForContent( 'parser-template-loop-warning', $titleText ) . '</span>'; |
2948 | 2948 | wfDebug( __METHOD__.": template loop broken at '$titleText'\n" ); |
2949 | 2949 | } |
2950 | 2950 | # Do recursion depth check |
2951 | 2951 | $limit = $this->mOptions->getMaxTemplateDepth(); |
2952 | 2952 | if ( $frame->depth >= $limit ) { |
2953 | 2953 | $found = true; |
2954 | | - $text = "<span class=\"error\">Template recursion depth limit exceeded ($limit)</span>"; |
| 2954 | + $text = '<span class="error">' . wfMsgForContent( 'parser-template-recursion-depth-warning', $limit ) . '</span>'; |
2955 | 2955 | } |
2956 | 2956 | } |
2957 | 2957 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1216,6 +1216,8 @@ |
1217 | 1217 | 'post-expand-template-argument-warning' => 'Warning: This page contains at least one template argument which has a too large expansion size. |
1218 | 1218 | These arguments have been omitted.', |
1219 | 1219 | 'post-expand-template-argument-category' => 'Pages containing omitted template arguments', |
| 1220 | +'parser-template-loop-warning' => 'Template loop detected: [[$1]]', |
| 1221 | +'parser-template-recursion-depth-warning' => 'Template recursion depth limit exceeded ($1)', |
1220 | 1222 | |
1221 | 1223 | # "Undo" feature |
1222 | 1224 | 'undo-success' => 'The edit can be undone. |