http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70942
Revision: 70942 Author: siebrand Date: 2010-08-12 12:50:47 +0000 (Thu, 12 Aug 2010) Log Message: ----------- Do not display an empty comment. That's no help and takes up unnecessary space. Modified Paths: -------------- trunk/extensions/Translate/utils/TranslationHelpers.php Modified: trunk/extensions/Translate/utils/TranslationHelpers.php =================================================================== --- trunk/extensions/Translate/utils/TranslationHelpers.php 2010-08-12 12:40:44 UTC (rev 70941) +++ trunk/extensions/Translate/utils/TranslationHelpers.php 2010-08-12 12:50:47 UTC (rev 70942) @@ -662,8 +662,11 @@ $mykey = $wgContLang->lcfirst( $this->page ); $data = $reader->parseFile(); - $help = GettextFormatWriter::formatComments( @$data[$mykey]['comments'], false, @$data[$mykey]['flags'] ); - $info .= "<hr /><pre>$help</pre>"; + $help = trim( GettextFormatWriter::formatComments( @$data[$mykey]['comments'], false, @$data[$mykey]['flags'] ) ); + // Do not display an empty comment. That's no help and takes up unnecessary space. + if( $help !== '#:' ) { + $info .= "<hr /><pre>$help</pre>"; + } } } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs