Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -29,17 +29,8 @@ |
30 | 30 | $vars['sfgBadNumberErrorStr'] = wfMsg( 'sf_bad_number_error' ); |
31 | 31 | $vars['sfgBadIntegerErrorStr'] = wfMsg( 'sf_bad_integer_error' ); |
32 | 32 | $vars['sfgBadDateErrorStr'] = wfMsg( 'sf_bad_date_error' ); |
| 33 | + $vars['sfgAnonEditWarning'] = wfMsg( 'sf_autoedit_anoneditwarning' ); |
33 | 34 | |
34 | | - // $wgParser might not be initialized, e.g. on Special pages |
35 | | - if ( $wgParser->mOptions == null ) { |
36 | | - $parser = new Parser(); |
37 | | - $msg = $parser -> parse (wfMsg( 'anoneditwarning' ), new Title(), ParserOptions::newFromUser( $wgUser ) ) -> getText(); |
38 | | - } else { |
39 | | - $msg = $wgParser->recursiveTagParse( wfMsg( 'anoneditwarning' ) ); |
40 | | - } |
41 | | - |
42 | | - $vars['sfgAnonEditWarning'] = StringUtils::delimiterReplace( '<', '>', '', $msg ); |
43 | | - |
44 | 35 | return true; |
45 | 36 | } |
46 | 37 | |
Index: trunk/extensions/SemanticForms/languages/SF_Messages.php |
— | — | @@ -137,7 +137,8 @@ |
138 | 138 | 'sf_formedit_saveandcontinueediting' => 'Save and Continue', |
139 | 139 | 'sf_formedit_tooltip_saveandcontinueediting' => 'Save data and continue editing', |
140 | 140 | 'sf_formedit_accesskey_saveandcontinueediting' => 'a', |
141 | | - 'sf_autoedit_success' => 'Successfully modified [[$1]] using form $2.', |
| 141 | + 'sf_autoedit_anoneditwarning' => 'Warning: You are not logged in. Your IP address will be recorded in this page\'s edit history.', |
| 142 | + 'sf_autoedit_success' => 'Successfully modified [[$1]] using form $2.', |
142 | 143 | 'runquery' => 'Run query', |
143 | 144 | 'sf_runquery_badurl' => 'You must specify a form name in the URL; |
144 | 145 | the URL should look like \'Special:RunQuery/<form name>\'.', |
— | — | @@ -208,6 +209,7 @@ |
209 | 210 | 'sf_form_freetextlabel' => '{{Identical|Free text}}', |
210 | 211 | 'right-viewedittab' => '{{doc-right|viewedittab}}', |
211 | 212 | 'right-editrestrictedfields' => '{{doc-right|editrestrictedfields}}', |
| 213 | + 'sf_autoedit_anoneditwarning' => 'This is a copy of the general MediaWiki "anoneditwarning" message, but without any markup.', |
212 | 214 | ); |
213 | 215 | |
214 | 216 | /** Niuean (ko e vagahau Niuē) |