Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -5,7 +5,8 @@ |
6 | 6 | * |
7 | 7 | * @file |
8 | 8 | * @author Niklas Laxström |
9 | | - * @copyright Copyright © 2008-2012, Niklas Laxström |
| 9 | + * @author Siebrand Mazeland |
| 10 | + * @copyright Copyright © 2008-2012, Niklas Laxström, Siebrand Mazeland |
10 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 12 | */ |
12 | 13 | |
— | — | @@ -892,7 +893,16 @@ |
893 | 894 | public function getDescription() { |
894 | 895 | $title = $this->title; |
895 | 896 | $target = SpecialPage::getTitleFor( 'MyLanguage', $title )->getPrefixedText(); |
896 | | - return wfMsgNoTrans( 'translate-tag-page-desc', $title, $target ); |
| 897 | + |
| 898 | + // Allow for adding a custom group description by using |
| 899 | + // "MediaWiki:Tp-custom-<group ID>". |
| 900 | + if( wfMessage( 'tp-custom-' . $this->id )->inContentLanguage()->exists() ) { |
| 901 | + $customText = ' ' . wfMessage( 'tp-custom-' . $this->id )->getText(); |
| 902 | + } else { |
| 903 | + $customText = ''; |
| 904 | + } |
| 905 | + |
| 906 | + return wfMsgNoTrans( 'translate-tag-page-desc', $title, $target ) . $customText; |
897 | 907 | } |
898 | 908 | } |
899 | 909 | |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | /** |
17 | 17 | * Version number used in extension credits and in other placed where needed. |
18 | 18 | */ |
19 | | -define( 'TRANSLATE_VERSION', '2012-02-12' ); |
| 19 | +define( 'TRANSLATE_VERSION', '2012-02-19' ); |
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Extension credits properties. |
Index: trunk/extensions/Translate/README |
— | — | @@ -32,6 +32,8 @@ |
33 | 33 | == Change log == |
34 | 34 | * 2012-02-19 |
35 | 35 | - MediaWiki 1.18 or later is now required. |
| 36 | +- Group description of translatable pages can be extended by adding content to |
| 37 | + [[MediaWiki:Tp-custom-<group id>]]. |
36 | 38 | * 2012-02-13 |
37 | 39 | - Updated some deprecated function calls |
38 | 40 | - New translation memory called TTMServer comes with the extension and is enabled |