Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -161,14 +161,16 @@ |
162 | 162 | } |
163 | 163 | |
164 | 164 | // Some syntactic checks |
165 | | - $message = new TMessage( $key, $en ); |
166 | | - $message->database = $object->textbox1 ? $object->textbox1 : $xx; |
167 | | - $checks = MessageChecks::doChecks( $message ); |
168 | | - if ( count($checks) ) { |
169 | | - $boxes[] = TranslateUtils::fieldset( wfMsgHtml( self::MSG . 'warnings' ), implode( '<hr />', $checks) ); |
| 165 | + $translation = $object->textbox1 ? $object->textbox1 : $xx; |
| 166 | + if ( $translation ) { |
| 167 | + $message = new TMessage( $key, $en ); |
| 168 | + $message->database = $translation; |
| 169 | + $checks = MessageChecks::doChecks( $message ); |
| 170 | + if ( count($checks) ) { |
| 171 | + $boxes[] = TranslateUtils::fieldset( wfMsgHtml( self::MSG . 'warnings' ), implode( '<hr />', $checks) ); |
| 172 | + } |
170 | 173 | } |
171 | 174 | |
172 | | - |
173 | 175 | $group->reset(); |
174 | 176 | return implode("\n\n", $boxes); |
175 | 177 | } |