Index: trunk/extensions/Lingo/LingoBasicBackend.php |
— | — | @@ -24,20 +24,20 @@ |
25 | 25 | |
26 | 26 | global $wgexLingoPage; |
27 | 27 | |
28 | | - $page = $wgexLingoPage ? $wgexLingoPage : wfMsg( 'lingo-terminologypagename' ); |
| 28 | + $page = $wgexLingoPage ? $wgexLingoPage : wfMsgForContent( 'lingo-terminologypagename' ); |
29 | 29 | |
30 | 30 | parent::__construct( $messages ); |
31 | 31 | |
32 | 32 | // Get Terminology page |
33 | 33 | $title = Title::newFromText( $page ); |
34 | 34 | if ( $title->getInterwiki() ) { |
35 | | - $this->getMessageLog()->addError( wfMsgReal( 'lingo-terminologypagenotlocal', array($page) ) ); |
| 35 | + $this->getMessageLog()->addError( wfMsgReplaceArgs( wfMsgForContent( 'lingo-terminologypagenotlocal' ), array($page) ) ); |
36 | 36 | return false; |
37 | 37 | } |
38 | 38 | |
39 | 39 | $rev = Revision::newFromTitle( $title ); |
40 | 40 | if ( !$rev ) { |
41 | | - $this->getMessageLog()->addWarning( wfMsgReal( 'lingo-noterminologypage', array($page) ) ); |
| 41 | + $this->getMessageLog()->addWarning( wfMsgReplaceArgs( wfMsgForContent( 'lingo-noterminologypage' ), array($page) ) ); |
42 | 42 | return false; |
43 | 43 | } |
44 | 44 | |
Index: trunk/extensions/Lingo/Lingo.i18n.php |
— | — | @@ -11,8 +11,8 @@ |
12 | 12 | $messages['en'] = array( |
13 | 13 | 'lingo-desc' => 'Provides hover-over tool tips on pages from words defined on the [[$1]] page', |
14 | 14 | 'lingo-terminologypagename' => 'Terminology', |
15 | | - 'lingo-noterminologypage' => '[[$1]] does not exist.', |
16 | | - 'lingo-terminologypagenotlocal' => '[[$1]] is not a local page.', |
| 15 | + 'lingo-noterminologypage' => 'Page "$1" does not exist.', |
| 16 | + 'lingo-terminologypagenotlocal' => 'Page "$1" is not a local page.', |
17 | 17 | |
18 | 18 | ); |
19 | 19 | |
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-terminologypagename' )), |
| 91 | + 'descriptionmsg' => array('lingo-desc', $wgexLingoPage ? $wgexLingoPage : wfMsgForContent( 'lingo-terminologypagename' )), |
92 | 92 | 'version' => LINGO_VERSION, |
93 | 93 | ); |
94 | 94 | |