Index: trunk/extensions/Translate/scripts/populateFuzzy.php |
— | — | @@ -34,11 +34,10 @@ |
35 | 35 | 'page_namespace' => $wgTranslateMessageNamespaces, |
36 | 36 | ); |
37 | 37 | |
38 | | -$insert = array(); |
39 | | - |
40 | 38 | $limit = max(1000,intval($count/100)); |
41 | 39 | $offset = 0; |
42 | 40 | while (true) { |
| 41 | + $insert = array(); |
43 | 42 | echo "$offset/$count\n"; |
44 | 43 | $options = array( 'LIMIT' => $limit, 'OFFSET' => $offset ); |
45 | 44 | $res = $db->select( $tables, $fields, $conds, __METHOD__, $options ); |
— | — | @@ -58,6 +57,3 @@ |
59 | 58 | $db->replace( 'revtag', 'rt_type_page_revision', $inserts, __METHOD__ ); |
60 | 59 | } |
61 | 60 | |
62 | | - |
63 | | - |
64 | | -echo $db->affectedRows() . "\n"; |
\ No newline at end of file |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -320,7 +320,9 @@ |
321 | 321 | $ns = $article->getTitle()->getNamespace(); |
322 | 322 | if ( !in_array( $ns, $wgTranslateMessageNamespaces) ) return true; |
323 | 323 | |
324 | | - // We are not interested in null revisions |
| 324 | + // No fuzzy - no tag |
| 325 | + if ( strpos( $text, TRANSLATE_FUZZY ) === false ) return true; |
| 326 | + |
325 | 327 | if ( $revision === null ) { |
326 | 328 | $rev = $article->getTitle()->getLatestRevId(); |
327 | 329 | } else { |