Index: trunk/extensions/Translate/scripts/pagetranslation-check-database.php |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | array( 'delete tag', 'revtag', array( 'rt_page' => $id, 'rt_type' => $_->rt_type ) ); |
140 | 140 | continue; |
141 | 141 | } elseif ( $_->rt_type === RevTag::getType( 'tp:transver' ) ) { |
142 | | - $check = $this->checkTransrevRevision( $rev ); |
| 142 | + $check = $this->checkTransrevRevision( $rev ); // FIXME: $rev is undefined |
143 | 143 | if ( $check !== true ) { |
144 | 144 | $name = $this->idToName( $_->rt_page ); |
145 | 145 | $this->output( "Page $name has invalid tp:transver: $check\n" ); |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -1075,6 +1075,7 @@ |
1076 | 1076 | } |
1077 | 1077 | natcasesort( $labels ); |
1078 | 1078 | |
| 1079 | + $sorted = array(); |
1079 | 1080 | foreach ( array_keys( $labels ) as $id ) { |
1080 | 1081 | $sorted[$id] = $structure[$id]; |
1081 | 1082 | } |
Index: trunk/extensions/Translate/utils/JsSelectToInput.php |
— | — | @@ -72,8 +72,8 @@ |
73 | 73 | */ |
74 | 74 | public function getHtmlAndPrepareJS() { |
75 | 75 | if ( $this->sourceId === false ) { |
76 | | - if ( is_callable( array( $select, 'getAttribute' ) ) ) { |
77 | | - $this->sourceId = $select->getAttribute['id']; |
| 76 | + if ( is_callable( array( $this->select, 'getAttribute' ) ) ) { |
| 77 | + $this->sourceId = $this->->getAttribute['id']; |
78 | 78 | } |
79 | 79 | |
80 | 80 | if ( !$this->sourceId ) { |
Index: trunk/extensions/Translate/ffs/Gettext.php |
— | — | @@ -85,6 +85,9 @@ |
86 | 86 | throw new MWException( "Gettext file header was not found:\n\n$data" ); |
87 | 87 | } |
88 | 88 | |
| 89 | + $template = array(); |
| 90 | + $messages = array(); |
| 91 | + |
89 | 92 | // Extract some metadata from headers for easier use |
90 | 93 | $metadata = array(); |
91 | 94 | if ( isset( $headers['X-Language-Code'] ) ) { |