Index: trunk/extensions/Translate/MessageChecks.php |
— | — | @@ -265,12 +265,10 @@ |
266 | 266 | $definition = $message->definition(); |
267 | 267 | $translation = $message->translation(); |
268 | 268 | |
269 | | - preg_match_all( '/%[sd]/U', $definition, $defVars ); |
270 | | - preg_match_all( '/%[sd]/U', $translation, $transVars ); |
| 269 | + preg_match_all( '/%(\d+\$)[sduf]/U', $definition, $defVars ); |
| 270 | + preg_match_all( '/%(\d+\$)[sduf]/U', $translation, $transVars ); |
271 | 271 | |
272 | | - /** |
273 | | - * Check for missing variables in the translation |
274 | | - */ |
| 272 | + // Check for missing variables in the translation |
275 | 273 | $subcheck = 'missing'; |
276 | 274 | $params = self::compareArrays( $defVars[0], $transVars[0] ); |
277 | 275 | |
— | — | @@ -283,9 +281,7 @@ |
284 | 282 | ); |
285 | 283 | } |
286 | 284 | |
287 | | - /** |
288 | | - * Check for unknown variables in the translation |
289 | | - */ |
| 285 | + // Check for unknown variables in the translatio |
290 | 286 | $subcheck = 'unknown'; |
291 | 287 | $params = self::compareArrays( $transVars[0], $defVars[0] ); |
292 | 288 | |
Index: trunk/extensions/Translate/groups/StatusNet/StatusNet.yaml |
— | — | @@ -23,4 +23,9 @@ |
24 | 24 | zh-hant: zh_TW |
25 | 25 | header: | |
26 | 26 | # This file is distributed under the same license as the StatusNet package. |
27 | | - # |
\ No newline at end of file |
| 27 | + # |
| 28 | + |
| 29 | +CHECKER: |
| 30 | + class: MessageChecker |
| 31 | + checks: |
| 32 | + - printfCheck |