Index: trunk/extensions/Lingo/LingoBasicBackend.php |
— | — | @@ -22,13 +22,16 @@ |
23 | 23 | |
24 | 24 | public function __construct( LingoMessageLog &$messages = null ) { |
25 | 25 | |
| 26 | + global $wgexLingoPage; |
| 27 | + |
| 28 | + $page = $wgexLingoPage ? $wgexLingoPage : wfMsg( 'lingo-terminologypagename' ); |
| 29 | + |
26 | 30 | parent::__construct( $messages ); |
27 | 31 | |
28 | 32 | // Get Terminology page |
29 | | - $rev = Revision::newFromTitle( Title::makeTitle( null, 'Terminology' ) ); |
30 | | - |
| 33 | + $rev = Revision::newFromTitle( Title::makeTitle( null, $page ) ); |
31 | 34 | if ( !$rev ) { |
32 | | - $this->getMessageLog()->addWarning( '[[Terminology]] does not exist.' ); |
| 35 | + $this->getMessageLog()->addWarning( wfMsgReal( 'lingo-noterminologypage', array($page) ) ); |
33 | 36 | return false; |
34 | 37 | } |
35 | 38 | |
Index: trunk/extensions/Lingo/Lingo.i18n.php |
— | — | @@ -10,11 +10,13 @@ |
11 | 11 | |
12 | 12 | $messages['en'] = array( |
13 | 13 | 'lingo-desc' => 'Provides hover-over tool tips on pages from words defined on the [[$1]] page', |
14 | | - 'lingo-terminologypage' => 'Terminology' |
| 14 | + 'lingo-terminologypagename' => 'Terminology', |
| 15 | + 'lingo-noterminologypage' => '[[$1]] does not exist.', |
| 16 | + |
15 | 17 | ); |
16 | 18 | |
17 | 19 | $messages['qqq'] = array( |
18 | 20 | 'lingo-desc' => '{{desc}}', |
19 | | - 'lingo-terminologypage' => 'Name of the page where the terms and definitions of the glossary are stored' |
| 21 | + 'lingo-terminologypagename' => 'Name of the page where the terms and definitions of the glossary are stored' |
20 | 22 | ); |
21 | 23 | |
Index: trunk/extensions/Lingo/Lingo.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | 'name' => 'Lingo', |
89 | 89 | 'author' => array( 'Barry Coughlan', '[http://www.mediawiki.org/wiki/User:F.trott Stephan Gambke]' ), |
90 | 90 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Lingo', |
91 | | - 'descriptionmsg' => array('lingo-desc', $wgexLingoPage?$wgexLingoPage:wfMsg('lingo-terminologypage')), |
| 91 | + 'descriptionmsg' => array('lingo-desc', $wgexLingoPage?$wgexLingoPage: wfMsg( 'lingo-terminologypagename' )), |
92 | 92 | 'version' => LINGO_VERSION, |
93 | 93 | ); |
94 | 94 | |