Index: trunk/extensions/RegexFun/RegexFun.i18n.php |
— | — | @@ -18,9 +18,16 @@ |
19 | 19 | $messages['en'] = array( |
20 | 20 | 'regexfun-desc' => 'Adds parser functions allowing the use of regular expressions within wiki pages', |
21 | 21 | 'regexfun-invalid' => 'The regular expression "$1" is invalid.', |
22 | | - 'regexfun-limit-exceed' => 'Maximum of $1 "Regex Fun" regular expression handlings reached.', |
| 22 | + 'regexfun-limit-exceed' => 'Maximum of {{PLURAL:$1|$1 "Regex Fun" regular expression handling|$1 "Regex Fun" regular expression handlings}} reached.', |
23 | 23 | ); |
24 | 24 | |
| 25 | +/** Message documentation (Message documentation) |
| 26 | + * @author Daniel Werner |
| 27 | + */ |
| 28 | +$messages['qqq'] = array( |
| 29 | + 'regexfun-limit-exceed' => '$1 is the in LocalSettings.php defined limit of total Regex Fun function calls (per parser process) dealing with regular expressions.', |
| 30 | +); |
| 31 | + |
25 | 32 | /** German (Deutsch) |
26 | 33 | * @author Daniel Werner |
27 | 34 | * @author Kghbln |
Index: trunk/extensions/RegexFun/RegexFun.php |
— | — | @@ -220,8 +220,8 @@ |
221 | 221 | } |
222 | 222 | |
223 | 223 | protected static function msgLimitExceeded() { |
224 | | - global $egRegexFunMaxRegexPerParse; |
225 | | - $msg = '<span class="error">' . wfMsgForContent( 'regexfun-limit-exceed', $egRegexFunMaxRegexPerParse ). '</span>'; |
| 224 | + global $egRegexFunMaxRegexPerParse, $wgContLang; |
| 225 | + $msg = '<span class="error">' . wfMsgForContent( 'regexfun-limit-exceed', $wgContLang->formatNum( $$egRegexFunMaxRegexPerParse ) ) . '</span>'; |
226 | 226 | return array( $msg, 'noparse' => true, 'isHTML' => false ); // 'isHTML' must be false for #iferror! |
227 | 227 | } |
228 | 228 | |