Index: trunk/extensions/Translate/RcFilter.php |
— | — | @@ -19,10 +19,13 @@ |
20 | 20 | |
21 | 21 | if ( $translations === 'only' ) { |
22 | 22 | $conds[] = 'rc_namespace IN (' . $dbr->makeList($namespaces) . ')'; |
| 23 | + $conds[] = 'rc_title like \'%%/%%\''; |
23 | 24 | } elseif ( $translations === 'filter' ) { |
24 | 25 | $conds[] = 'rc_namespace NOT IN (' . $dbr->makeList($namespaces) . ')'; |
| 26 | + } elseif ( $translations === 'site' ) { |
| 27 | + $conds[] = 'rc_namespace IN (' . $dbr->makeList($namespaces) . ')'; |
| 28 | + $conds[] = 'rc_title not like \'%%/%%\''; |
25 | 29 | } |
26 | | - |
27 | 30 | return true; |
28 | 31 | } |
29 | 32 | |
— | — | @@ -38,6 +41,7 @@ |
39 | 42 | $select->addOption( wfMsg( 'translate-rc-translation-filter-no' ), '' ); |
40 | 43 | $select->addOption( wfMsg( 'translate-rc-translation-filter-only' ), 'only' ); |
41 | 44 | $select->addOption( wfMsg( 'translate-rc-translation-filter-filter' ), 'filter' ); |
| 45 | + $select->addOption( wfMsg( 'translate-rc-translation-filter-site' ), 'site' ); |
42 | 46 | |
43 | 47 | $items['translations'] = array( $label, $select->getHTML() ); |
44 | 48 | return true; |
Index: trunk/extensions/Translate/Translate.i18n.php |
— | — | @@ -115,6 +115,7 @@ |
116 | 116 | 'translate-rc-translation-filter-no' => 'Do nothing', |
117 | 117 | 'translate-rc-translation-filter-only' => 'Show translations only', |
118 | 118 | 'translate-rc-translation-filter-filter' => 'Filter out translations', |
| 119 | + 'translate-rc-translation-filter-site' => 'Changes to site messages only', |
119 | 120 | ); |
120 | 121 | |
121 | 122 | /** Karelian (Karjala) |
Index: trunk/extensions/Translate/ffs/Simple.php |
— | — | @@ -22,7 +22,8 @@ |
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
26 | | - protected $authors, $staticHeader; |
| 26 | + protected $authors = array(); |
| 27 | + protected $staticHeader = ''; |
27 | 28 | |
28 | 29 | public function parseAuthors() { |
29 | 30 | if ( $this->authors === null ) { |
— | — | @@ -40,7 +41,7 @@ |
41 | 42 | |
42 | 43 | protected function parseHeader() { |
43 | 44 | if ( $this->filename === false ) { |
44 | | - return ''; |
| 45 | + return; |
45 | 46 | } |
46 | 47 | |
47 | 48 | $authors = array(); |