Index: trunk/extensions/Translate/scripts/populateFuzzy.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | $limit = max(1000,intval($count/100)); |
39 | 39 | $offset = 0; |
40 | 40 | while (true) { |
41 | | - $insert = array(); |
| 41 | + $inserts = array(); |
42 | 42 | echo "$offset/$count\n"; |
43 | 43 | $options = array( 'LIMIT' => $limit, 'OFFSET' => $offset ); |
44 | 44 | $res = $db->select( $tables, $fields, $conds, __METHOD__, $options ); |
Index: trunk/extensions/Translate/scripts/messageDust.php |
— | — | @@ -27,14 +27,14 @@ |
28 | 28 | $mg = TranslateUtils::messageKeyToGroup( $row->page_namespace, $key ); |
29 | 29 | $ns = $wgContLang->getNsText( $row->page_namespace ); |
30 | 30 | if ( is_null($mg) ) { |
31 | | - $keys["$ns:$pieces"][] = $code; |
| 31 | + $keys["$ns:$key"][] = $code; |
32 | 32 | $owner = 'xx-unknown'; |
33 | 33 | } else { |
34 | 34 | $owner = $mg; |
35 | 35 | } |
36 | 36 | |
37 | 37 | if ( !isset($codes[$code]) ) { |
38 | | - $invalid[$code][] = "[[$ns:$pieces/$code]]"; |
| 38 | + $invalid[$code][] = "[[$ns:$key/$code]]"; |
39 | 39 | } |
40 | 40 | |
41 | 41 | if ( !isset($owners[$owner]) ) $owners[$owner] = 0; |