Message info
 
To:mediawiki-cvs@lists.wikimedia.org From:siebrand@svn.wikimedia.org Subject:[MediaWiki-CVS] SVN: [111890] trunk/extensions/Translate/MessageGroups.php Date:Sun, 19 Feb 2012 21:07:55 +0000
 

https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111890

Revision: 111890
Author: siebrand
Date: 2012-02-19 21:07:55 +0000 (Sun, 19 Feb 2012)
Log Message:
-----------
Fix some more stupidity in r111871. Thanks for the help, Niklas.

Modified Paths:
--------------
trunk/extensions/Translate/MessageGroups.php

Modified: trunk/extensions/Translate/MessageGroups.php
===================================================================
--- trunk/extensions/Translate/MessageGroups.php 2012-02-19 20:58:28 UTC (rev 111889)
+++ trunk/extensions/Translate/MessageGroups.php 2012-02-19 21:07:55 UTC (rev 111890)
@@ -896,13 +896,13 @@

// Allow for adding a custom group description by using
// "MediaWiki:Tp-custom-<group ID>".
- if( wfMessage( 'tp-custom-' . $this->id )->inContentLanguage()->exists() ) {
- $customText = ' ' . wfMessage( 'tp-custom-' . $this->id )->text();
- } else {
- $customText = '';
+ $customText = '';
+ $customMessage = $wfMessage( 'tp-custom-' . $this->id )->inContentLanguage();
+ if( $customMessage->exists() ) {
+ $customText = $customMessage->plain();
}

- return wfMsgNoTrans( 'translate-tag-page-desc', $title, $target ) . $customText;
+ return wfMessage( 'translate-tag-page-desc', $title, $target )->plain() . $customText;
}
}



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs