Index: trunk/phase3/includes/api/ApiQueryLinks.php |
— | — | @@ -99,7 +99,7 @@ |
100 | 100 | foreach ( $params[$this->titlesParam] as $t ) { |
101 | 101 | $title = Title::newFromText( $t ); |
102 | 102 | if ( !$title ) { |
103 | | - $this->setWarning( "``$t'' is not a valid title" ); |
| 103 | + $this->setWarning( "\"$t\" is not a valid title" ); |
104 | 104 | } else { |
105 | 105 | $lb->addObj( $title ); |
106 | 106 | } |
Index: trunk/phase3/includes/api/ApiDisabled.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | } |
43 | 43 | |
44 | 44 | public function execute() { |
45 | | - $this->dieUsage( "The ``{$this->getModuleName()}'' module has been disabled.", 'moduledisabled' ); |
| 45 | + $this->dieUsage( "The \"{$this->getModuleName()}\" module has been disabled.", 'moduledisabled' ); |
46 | 46 | } |
47 | 47 | |
48 | 48 | public function isReadMode() { |
Index: trunk/phase3/includes/api/ApiLogin.php |
— | — | @@ -200,7 +200,7 @@ |
201 | 201 | array( 'code' => 'NotExists', 'info' => ' The username you provided doesn\'t exist' ), |
202 | 202 | array( 'code' => 'EmptyPass', 'info' => ' You didn\'t set the lgpassword parameter or you left it empty' ), |
203 | 203 | array( 'code' => 'WrongPass', 'info' => ' The password you provided is incorrect' ), |
204 | | - array( 'code' => 'WrongPluginPass', 'info' => 'Same as `WrongPass", returned when an authentication plugin rather than MediaWiki itself rejected the password' ), |
| 204 | + array( 'code' => 'WrongPluginPass', 'info' => 'Same as "WrongPass", returned when an authentication plugin rather than MediaWiki itself rejected the password' ), |
205 | 205 | array( 'code' => 'CreateBlocked', 'info' => 'The wiki tried to automatically create a new account for you, but your IP address has been blocked from account creation' ), |
206 | 206 | array( 'code' => 'Throttled', 'info' => 'You\'ve logged in too many times in a short time' ), |
207 | 207 | array( 'code' => 'Blocked', 'info' => 'User is blocked' ), |
Index: trunk/phase3/includes/api/ApiQueryDisabled.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | } |
43 | 43 | |
44 | 44 | public function execute() { |
45 | | - $this->setWarning( "The ``{$this->getModuleName()}'' module has been disabled." ); |
| 45 | + $this->setWarning( "The \"{$this->getModuleName()}\" module has been disabled." ); |
46 | 46 | } |
47 | 47 | |
48 | 48 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -1090,17 +1090,17 @@ |
1091 | 1091 | */ |
1092 | 1092 | public static $messageMap = array( |
1093 | 1093 | // This one MUST be present, or dieUsageMsg() will recurse infinitely |
1094 | | - 'unknownerror' => array( 'code' => 'unknownerror', 'info' => "Unknown error: ``\$1''" ), |
| 1094 | + 'unknownerror' => array( 'code' => 'unknownerror', 'info' => "Unknown error: \"\$1\"" ), |
1095 | 1095 | 'unknownerror-nocode' => array( 'code' => 'unknownerror', 'info' => 'Unknown error' ), |
1096 | 1096 | |
1097 | 1097 | // Messages from Title::getUserPermissionsErrors() |
1098 | 1098 | 'ns-specialprotected' => array( 'code' => 'unsupportednamespace', 'info' => "Pages in the Special namespace can't be edited" ), |
1099 | 1099 | 'protectedinterface' => array( 'code' => 'protectednamespace-interface', 'info' => "You're not allowed to edit interface messages" ), |
1100 | | - 'namespaceprotected' => array( 'code' => 'protectednamespace', 'info' => "You're not allowed to edit pages in the ``\$1'' namespace" ), |
| 1100 | + 'namespaceprotected' => array( 'code' => 'protectednamespace', 'info' => "You're not allowed to edit pages in the \"\$1\" namespace" ), |
1101 | 1101 | 'customcssprotected' => array( 'code' => 'customcssprotected', 'info' => "You're not allowed to edit custom CSS pages" ), |
1102 | 1102 | 'customjsprotected' => array( 'code' => 'customjsprotected', 'info' => "You're not allowed to edit custom JavaScript pages" ), |
1103 | 1103 | 'cascadeprotected' => array( 'code' => 'cascadeprotected', 'info' => "The page you're trying to edit is protected because it's included in a cascade-protected page" ), |
1104 | | - 'protectedpagetext' => array( 'code' => 'protectedpage', 'info' => "The ``\$1'' right is required to edit this page" ), |
| 1104 | + 'protectedpagetext' => array( 'code' => 'protectedpage', 'info' => "The \"\$1'' right is required to edit this page" ), |
1105 | 1105 | 'protect-cantedit' => array( 'code' => 'cantedit', 'info' => "You can't protect this page because you can't edit it" ), |
1106 | 1106 | 'badaccess-group0' => array( 'code' => 'permissiondenied', 'info' => "Permission denied" ), // Generic permission denied message |
1107 | 1107 | 'badaccess-groups' => array( 'code' => 'permissiondenied', 'info' => "Permission denied" ), |
— | — | @@ -1119,7 +1119,7 @@ |
1120 | 1120 | 'cantrollback' => array( 'code' => 'onlyauthor', 'info' => "The page you tried to rollback only has one author" ), |
1121 | 1121 | 'readonlytext' => array( 'code' => 'readonly', 'info' => "The wiki is currently in read-only mode" ), |
1122 | 1122 | 'sessionfailure' => array( 'code' => 'badtoken', 'info' => "Invalid token" ), |
1123 | | - 'cannotdelete' => array( 'code' => 'cantdelete', 'info' => "Couldn't delete ``\$1''. Maybe it was deleted already by someone else" ), |
| 1123 | + 'cannotdelete' => array( 'code' => 'cantdelete', 'info' => "Couldn't delete \"\$1\". Maybe it was deleted already by someone else" ), |
1124 | 1124 | 'notanarticle' => array( 'code' => 'missingtitle', 'info' => "The page you requested doesn't exist" ), |
1125 | 1125 | 'selfmove' => array( 'code' => 'selfmove', 'info' => "Can't move a page to itself" ), |
1126 | 1126 | 'immobile_namespace' => array( 'code' => 'immobilenamespace', 'info' => "You tried to move pages from or to a namespace that is protected from moving" ), |
— | — | @@ -1137,7 +1137,7 @@ |
1138 | 1138 | 'badipaddress' => array( 'code' => 'invalidip', 'info' => "Invalid IP address specified" ), |
1139 | 1139 | 'ipb_expiry_invalid' => array( 'code' => 'invalidexpiry', 'info' => "Invalid expiry time" ), |
1140 | 1140 | 'ipb_already_blocked' => array( 'code' => 'alreadyblocked', 'info' => "The user you tried to block was already blocked" ), |
1141 | | - 'ipb_blocked_as_range' => array( 'code' => 'blockedasrange', 'info' => "IP address ``\$1'' was blocked as part of range ``\$2''. You can't unblock the IP invidually, but you can unblock the range as a whole." ), |
| 1141 | + 'ipb_blocked_as_range' => array( 'code' => 'blockedasrange', 'info' => "IP address \"\$1\" was blocked as part of range \"\$2\". You can't unblock the IP invidually, but you can unblock the range as a whole." ), |
1142 | 1142 | 'ipb_cant_unblock' => array( 'code' => 'cantunblock', 'info' => "The block you specified was not found. It may have been unblocked already" ), |
1143 | 1143 | 'mailnologin' => array( 'code' => 'cantsend', 'info' => "You are not logged in, you do not have a confirmed e-mail address, or you are not allowed to send e-mail to other users, so you cannot send e-mail" ), |
1144 | 1144 | 'ipbblocked' => array( 'code' => 'ipbblocked', 'info' => 'You cannot block or unblock users while you are yourself blocked' ), |
— | — | @@ -1151,9 +1151,9 @@ |
1152 | 1152 | 'delete-toobig' => array( 'code' => 'bigdelete', 'info' => "You can't delete this page because it has more than \$1 revisions" ), |
1153 | 1153 | 'movenotallowedfile' => array( 'code' => 'cantmovefile', 'info' => "You don't have permission to move files" ), |
1154 | 1154 | 'userrights-no-interwiki' => array( 'code' => 'nointerwikiuserrights', 'info' => "You don't have permission to change user rights on other wikis" ), |
1155 | | - 'userrights-nodatabase' => array( 'code' => 'nosuchdatabase', 'info' => "Database ``\$1'' does not exist or is not local" ), |
1156 | | - 'nouserspecified' => array( 'code' => 'invaliduser', 'info' => "Invalid username ``\$1''" ), |
1157 | | - 'noname' => array( 'code' => 'invaliduser', 'info' => "Invalid username ``\$1''" ), |
| 1155 | + 'userrights-nodatabase' => array( 'code' => 'nosuchdatabase', 'info' => "Database \"\$1\" does not exist or is not local" ), |
| 1156 | + 'nouserspecified' => array( 'code' => 'invaliduser', 'info' => "Invalid username \"\$1\"" ), |
| 1157 | + 'noname' => array( 'code' => 'invaliduser', 'info' => "Invalid username \"\$1\"" ), |
1158 | 1158 | 'summaryrequired' => array( 'code' => 'summaryrequired', 'info' => 'Summary required' ), |
1159 | 1159 | |
1160 | 1160 | // API-specific messages |
— | — | @@ -1161,13 +1161,13 @@ |
1162 | 1162 | 'writedisabled' => array( 'code' => 'noapiwrite', 'info' => "Editing of this wiki through the API is disabled. Make sure the \$wgEnableWriteAPI=true; statement is included in the wiki's LocalSettings.php file" ), |
1163 | 1163 | 'writerequired' => array( 'code' => 'writeapidenied', 'info' => "You're not allowed to edit this wiki through the API" ), |
1164 | 1164 | 'missingparam' => array( 'code' => 'no$1', 'info' => "The \$1 parameter must be set" ), |
1165 | | - 'invalidtitle' => array( 'code' => 'invalidtitle', 'info' => "Bad title ``\$1''" ), |
| 1165 | + 'invalidtitle' => array( 'code' => 'invalidtitle', 'info' => "Bad title \"\$1\"" ), |
1166 | 1166 | 'nosuchpageid' => array( 'code' => 'nosuchpageid', 'info' => "There is no page with ID \$1" ), |
1167 | 1167 | 'nosuchrevid' => array( 'code' => 'nosuchrevid', 'info' => "There is no revision with ID \$1" ), |
1168 | | - 'nosuchuser' => array( 'code' => 'nosuchuser', 'info' => "User ``\$1'' doesn't exist" ), |
1169 | | - 'invaliduser' => array( 'code' => 'invaliduser', 'info' => "Invalid username ``\$1''" ), |
1170 | | - 'invalidexpiry' => array( 'code' => 'invalidexpiry', 'info' => "Invalid expiry time ``\$1''" ), |
1171 | | - 'pastexpiry' => array( 'code' => 'pastexpiry', 'info' => "Expiry time ``\$1'' is in the past" ), |
| 1168 | + 'nosuchuser' => array( 'code' => 'nosuchuser', 'info' => "User \"\$1\" doesn't exist" ), |
| 1169 | + 'invaliduser' => array( 'code' => 'invaliduser', 'info' => "Invalid username \"\$1\"" ), |
| 1170 | + 'invalidexpiry' => array( 'code' => 'invalidexpiry', 'info' => "Invalid expiry time \"\$1\"" ), |
| 1171 | + 'pastexpiry' => array( 'code' => 'pastexpiry', 'info' => "Expiry time \"\$1\" is in the past" ), |
1172 | 1172 | 'create-titleexists' => array( 'code' => 'create-titleexists', 'info' => "Existing titles can't be protected with 'create'" ), |
1173 | 1173 | 'missingtitle-createonly' => array( 'code' => 'missingtitle-createonly', 'info' => "Missing titles can only be protected with 'create'" ), |
1174 | 1174 | 'cantblock' => array( 'code' => 'cantblock', 'info' => "You don't have permission to block users" ), |
— | — | @@ -1180,9 +1180,9 @@ |
1181 | 1181 | 'permdenied-undelete' => array( 'code' => 'permissiondenied', 'info' => "You don't have permission to restore deleted revisions" ), |
1182 | 1182 | 'createonly-exists' => array( 'code' => 'articleexists', 'info' => "The article you tried to create has been created already" ), |
1183 | 1183 | 'nocreate-missing' => array( 'code' => 'missingtitle', 'info' => "The article you tried to edit doesn't exist" ), |
1184 | | - 'nosuchrcid' => array( 'code' => 'nosuchrcid', 'info' => "There is no change with rcid ``\$1''" ), |
1185 | | - 'protect-invalidaction' => array( 'code' => 'protect-invalidaction', 'info' => "Invalid protection type ``\$1''" ), |
1186 | | - 'protect-invalidlevel' => array( 'code' => 'protect-invalidlevel', 'info' => "Invalid protection level ``\$1''" ), |
| 1184 | + 'nosuchrcid' => array( 'code' => 'nosuchrcid', 'info' => "There is no change with rcid \"\$1\"" ), |
| 1185 | + 'protect-invalidaction' => array( 'code' => 'protect-invalidaction', 'info' => "Invalid protection type \"\$1\"" ), |
| 1186 | + 'protect-invalidlevel' => array( 'code' => 'protect-invalidlevel', 'info' => "Invalid protection level \"\$1\"" ), |
1187 | 1187 | 'toofewexpiries' => array( 'code' => 'toofewexpiries', 'info' => "\$1 expiry timestamps were provided where \$2 were needed" ), |
1188 | 1188 | 'cantimport' => array( 'code' => 'cantimport', 'info' => "You don't have permission to import pages" ), |
1189 | 1189 | 'cantimport-upload' => array( 'code' => 'cantimport-upload', 'info' => "You don't have permission to import uploaded pages" ), |
— | — | @@ -1194,7 +1194,7 @@ |
1195 | 1195 | 'importcantopen' => array( 'code' => 'cantopenfile', 'info' => "Couldn't open the uploaded file" ), |
1196 | 1196 | 'import-noarticle' => array( 'code' => 'badinterwiki', 'info' => 'Invalid interwiki title specified' ), |
1197 | 1197 | 'importbadinterwiki' => array( 'code' => 'badinterwiki', 'info' => 'Invalid interwiki title specified' ), |
1198 | | - 'import-unknownerror' => array( 'code' => 'import-unknownerror', 'info' => "Unknown error on import: ``\$1''" ), |
| 1198 | + 'import-unknownerror' => array( 'code' => 'import-unknownerror', 'info' => "Unknown error on import: \"\$1\"" ), |
1199 | 1199 | 'cantoverwrite-sharedfile' => array( 'code' => 'cantoverwrite-sharedfile', 'info' => 'The target file exists on a shared repository and you do not have permission to override it' ), |
1200 | 1200 | 'sharedfile-exists' => array( 'code' => 'fileexists-sharedrepo-perm', 'info' => 'The target file exists on a shared repository. Use the ignorewarnings parameter to override it.' ), |
1201 | 1201 | 'mustbeposted' => array( 'code' => 'mustbeposted', 'info' => "The \$1 module requires a POST request" ), |
— | — | @@ -1206,7 +1206,7 @@ |
1207 | 1207 | // ApiEditPage messages |
1208 | 1208 | 'noimageredirect-anon' => array( 'code' => 'noimageredirect-anon', 'info' => "Anonymous users can't create image redirects" ), |
1209 | 1209 | 'noimageredirect-logged' => array( 'code' => 'noimageredirect', 'info' => "You don't have permission to create image redirects" ), |
1210 | | - 'spamdetected' => array( 'code' => 'spamdetected', 'info' => "Your edit was refused because it contained a spam fragment: ``\$1''" ), |
| 1210 | + 'spamdetected' => array( 'code' => 'spamdetected', 'info' => "Your edit was refused because it contained a spam fragment: \"\$1\"" ), |
1211 | 1211 | 'filtered' => array( 'code' => 'filtered', 'info' => "The filter callback function refused your edit" ), |
1212 | 1212 | 'contenttoobig' => array( 'code' => 'contenttoobig', 'info' => "The content you supplied exceeds the article size limit of \$1 kilobytes" ), |
1213 | 1213 | 'noedit-anon' => array( 'code' => 'noedit-anon', 'info' => "Anonymous users can't edit pages" ), |
— | — | @@ -1217,7 +1217,7 @@ |
1218 | 1218 | 'hashcheckfailed' => array( 'code' => 'badmd5', 'info' => "The supplied MD5 hash was incorrect" ), |
1219 | 1219 | 'missingtext' => array( 'code' => 'notext', 'info' => "One of the text, appendtext, prependtext and undo parameters must be set" ), |
1220 | 1220 | 'emptynewsection' => array( 'code' => 'emptynewsection', 'info' => 'Creating empty new sections is not possible.' ), |
1221 | | - 'revwrongpage' => array( 'code' => 'revwrongpage', 'info' => "r\$1 is not a revision of ``\$2''" ), |
| 1221 | + 'revwrongpage' => array( 'code' => 'revwrongpage', 'info' => "r\$1 is not a revision of \"\$2\"" ), |
1222 | 1222 | 'undo-failure' => array( 'code' => 'undofailure', 'info' => 'Undo failed due to conflicting intermediate edits' ), |
1223 | 1223 | |
1224 | 1224 | // Messages from WikiPage::doEit() |
Index: trunk/phase3/includes/api/ApiQueryCategories.php |
— | — | @@ -75,7 +75,7 @@ |
76 | 76 | foreach ( $params['categories'] as $cat ) { |
77 | 77 | $title = Title::newFromText( $cat ); |
78 | 78 | if ( !$title || $title->getNamespace() != NS_CATEGORY ) { |
79 | | - $this->setWarning( "``$cat'' is not a category" ); |
| 79 | + $this->setWarning( "\"$cat\" is not a category" ); |
80 | 80 | } else { |
81 | 81 | $cats[] = $title->getDBkey(); |
82 | 82 | } |
Index: trunk/phase3/includes/api/ApiQueryImages.php |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | foreach ( $params['images'] as $img ) { |
93 | 93 | $title = Title::newFromText( $img ); |
94 | 94 | if ( !$title || $title->getNamespace() != NS_FILE ) { |
95 | | - $this->setWarning( "``$img'' is not a file" ); |
| 95 | + $this->setWarning( "\"$img\" is not a file" ); |
96 | 96 | } else { |
97 | 97 | $images[] = $title->getDBkey(); |
98 | 98 | } |