Index: trunk/extensions/Call/Call.i18n.php |
— | — | @@ -11,15 +11,15 @@ |
12 | 12 | 'call' => 'Call', |
13 | 13 | 'call-desc' => 'Create a hyperlink to a template (or to a normal wiki page) with parameter passing. |
14 | 14 | Can be used at the browser’s command line or within wiki text', |
15 | | - 'call-text' => 'The Call extension expects a wiki page and optional parameters for that page as an argument. |
| 15 | + 'call-text' => 'The Call extension expects a wiki page and optional parameters for that page as an argument.<br /><br /> |
16 | 16 | |
17 | 17 | Example 1: <tt>[[Special:Call/My Template,parm1=value1]]</tt><br /> |
18 | 18 | Example 2: <tt>[[Special:Call/Talk:My Discussion,parm1=value1]]</tt><br /> |
19 | 19 | Example 3: <tt>[[Special:Call/:My Page,parm1=value1,parm2=value2]]</tt><br /> |
20 | | -Example 4 (Browser URL): <tt>http://mydomain/mywiki/index.php?Special:Call/:My Page,parm1=value1</tt> |
| 20 | +Example 4 (Browser URL): <tt>http://mydomain/mywiki/index.php?Special:Call/:My Page,parm1=value1</tt><br /><br /> |
21 | 21 | |
22 | 22 | The <i>Call extension</i> will call the given page and pass the parameters.<br /> |
23 | | -You will see the contents of the called page and its title but its \'type\' will be that of a special page, i.e. such a page cannot be edited.<br />The contents you see may vary depending on the value of the parameters you passed. |
| 23 | +You will see the contents of the called page and its title but its \'type\' will be that of a special page, i.e. such a page cannot be edited.<br />The contents you see may vary depending on the value of the parameters you passed.<br /><br /> |
24 | 24 | |
25 | 25 | The <i>Call extension</i> is useful to build interactive applications with MediaWiki.<br /> |
26 | 26 | For an example see <a href=\'http://semeb.com/dpldemo/Template:Catlist\'>the DPL GUI</a> ..<br /> |
Index: trunk/extensions/Call/Call_body.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | { |
34 | 34 | function Call() { |
35 | 35 | SpecialPage::SpecialPage("Call"); |
36 | | - self::loadMessages(); |
| 36 | + wfLoadExtensionMessages('Call'); |
37 | 37 | } |
38 | 38 | |
39 | 39 | |
— | — | @@ -138,22 +138,12 @@ |
139 | 139 | |
140 | 140 | if ($wikitext=='' || $wikitext=='Special:Call' ) { |
141 | 141 | // Called without parameters: dump explanation |
142 | | - $wgOut->addHTML("The Call extension expects a wiki page and optional parameters for that page as an argument.<br>\n<br>\n" |
143 | | - ."Example 1: <tt>[[Special:Call/My Template,parm1=value1]]</tt><br/>\n" |
144 | | - ."Example 2: <tt>[[Special:Call/Talk:My Discussion,parm1=value1]]</tt><br/>\n" |
145 | | - ."Example 3: <tt>[[Special:Call/:My Page,parm1=value1,parm2=value2]]</tt><br/>\n<br/>\n" |
146 | | - ."Example 4 (Browser URL): <tt>http://mydomain/mywiki/index.php?Special:Call/:My Page,parm1=value1</tt><br/>\n<br/>" |
147 | | - ."The <i>Call extension</i> will call the given page and pass the parameters.<br>\n" |
148 | | - ."You will see the contents of the called page and its title but its 'type' will be that of a special page,<br>" |
149 | | - ."i.e. such a page cannot be edited.<br>The contents you see may vary depending on the value of the parameters you passed.<br>\n<br>" |
150 | | - ."The <i>Call extension</i> is useful to build interactive applications with MediaWiki.<br>\n" |
151 | | - ."For an example see <a href='http://semeb.com/dpldemo/Template:Catlist'>the DPL GUI</a> ..<br/>\n" |
152 | | - ."In case of problems you can try <b>Special:Call/DebuG</b>\n"); |
| 142 | + $wgOut->addHTML(wfMsg('call-text')); |
153 | 143 | } |
154 | 144 | else if ($debug) { |
155 | 145 | // Called with DebuG target: dump parameter list |
156 | 146 | $wgOut->addHTML("<pre>\n{{".$wikitext."}}\n</pre>"); |
157 | | - if ($saveAsPage!='') $wgOut->addHTML("The output of this call would be saved to a page called ''$saveAsPageLink''."); |
| 147 | + if ($saveAsPage!='') $wgOut->addHTML( wfMsg('call-save',$saveAsPageLink) ); |
158 | 148 | } |
159 | 149 | else { |
160 | 150 | $parm=array(); |
— | — | @@ -175,11 +165,10 @@ |
176 | 166 | if (!($saveAsTitle->exists())) { |
177 | 167 | $article = new Article($saveAsTitle); |
178 | 168 | $article->doEdit( $rawText, $saveAsPage, EDIT_NEW | EDIT_FORCE_BOT ); |
179 | | - $wgOut->addHTML($wgOut->parse("The following text has been saved to page <big>[[$saveAsPageLink]]</big>.")); |
| 169 | + $wgOut->addHTML($wgOut->parse(wfMsg('call-save-success' ,$saveAsPageLink) ) ); |
180 | 170 | } |
181 | 171 | else { |
182 | | - $wgOut->addHTML($wgOut->parse("The following text has NOT been saved to page <big>[[$saveAsPageLink]]</big> ". |
183 | | - "because that page already exists.")); |
| 172 | + $wgOut->addHTML($wgOut->parse(wfMsg('call-save-failed',$saveAsPageLink) ) ); |
184 | 173 | } |
185 | 174 | // output the text we produced as a note to the user |
186 | 175 | if ($link1!='') $wgOut->addHTML($wgOut->parse("[[Special:Call/$link1|$label1]]")); |