Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -662,8 +662,11 @@ |
663 | 663 | |
664 | 664 | $mykey = $wgContLang->lcfirst( $this->page ); |
665 | 665 | $data = $reader->parseFile(); |
666 | | - $help = GettextFormatWriter::formatComments( @$data[$mykey]['comments'], false, @$data[$mykey]['flags'] ); |
667 | | - $info .= "<hr /><pre>$help</pre>"; |
| 666 | + $help = trim( GettextFormatWriter::formatComments( @$data[$mykey]['comments'], false, @$data[$mykey]['flags'] ) ); |
| 667 | + // Do not display an empty comment. That's no help and takes up unnecessary space. |
| 668 | + if( $help !== '#:' ) { |
| 669 | + $info .= "<hr /><pre>$help</pre>"; |
| 670 | + } |
668 | 671 | } |
669 | 672 | } |
670 | 673 | |