r40879 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40878‎ | r40879 | r40880 >
Date:20:28, 15 September 2008
Author:siebrand
Status:old
Tags:
Comment:
* Fix common spelling error (seperate -> separate)
* Fix two more spelling errors in Translate extension messages
Modified paths:
  • /trunk/extensions/Babel/Babel.class.php (modified) (history)
  • /trunk/extensions/Cite/Cite_body.php (modified) (history)
  • /trunk/extensions/ConfigureWMF/ConfigureWMF.i18n.php (modified) (history)
  • /trunk/extensions/EmailPage/phpMailer_v2.1.0beta2/class.smtp.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/svggraph/svgGraph.php (modified) (history)
  • /trunk/extensions/LdapAuthentication/LdapAuthentication.php (modified) (history)
  • /trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php (modified) (history)
  • /trunk/extensions/MetavidWiki/maintenance/maintenance_util.inc.php (modified) (history)
  • /trunk/extensions/MetavidWiki/skins/mv_embed/example_usage/sample_page.php (modified) (history)
  • /trunk/extensions/MetavidWiki/skins/mv_embed/example_usage/sample_playlists.php (modified) (history)
  • /trunk/extensions/RightFunctions/RightFunctions.i18n.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php (modified) (history)
  • /trunk/extensions/SmoothGallery/SmoothGalleryParser.php (modified) (history)
  • /trunk/extensions/SubPageList3/SubPageList3.php (modified) (history)
  • /trunk/extensions/Translate/Translate.i18n.php (modified) (history)
  • /trunk/extensions/gis/GeoParam.php (modified) (history)

Diff [purge]

Index: trunk/extensions/gis/GeoParam.php
@@ -132,7 +132,7 @@
133133 */
134134 function get_coor() {
135135 if ($i = strpos($this->pieces[0],';')) {
136 - /* two values seperated by a semicolon */
 136+ /* two values separated by a semicolon */
137137 $this->coor = array(
138138 'latdeg' => substr($this->pieces[0],0,$i),
139139 'londeg' => substr($this->pieces[0],$i+1),
Index: trunk/extensions/SmoothGallery/SmoothGalleryParser.php
@@ -87,7 +87,7 @@
8888 #$this->galleriesArray["gallery_set_name"] = "MediaWikiSGallerySet" . mt_rand();
8989 $this->galleriesArray["gallery_set_name"] = "MediaWikiSGallerySet";
9090
91 - //parse set into seperate galleries
 91+ //parse set into separate galleries
9292 preg_match_all( "/<sgallery([\w]+)?[^>]*>(.*)<\/sgallery>/smU", $input, $galleries, PREG_SET_ORDER );
9393
9494 //iterate through galleries, call renderGallery on each, and
Index: trunk/extensions/RightFunctions/RightFunctions.i18n.php
@@ -14,7 +14,7 @@
1515 'rightfunctions-rest1' => '$1 $2', # do not translate this message
1616 'rightfunctions-rest2' => '$1 $2$5 $3 $4', # do not translate this message
1717 'rightfunctions-rest3' => '$1 $2$7 $3 $4$7 $5 $6', # do not translate this message
18 - 'rightfunctions-sep' => ',', # the seperator used in the above two messages, $5 and $7 respectively
 18+ 'rightfunctions-sep' => ',', # the separator used in the above two messages, $5 and $7 respectively
1919 'rightfunctions-casc' => '(from cascading sources)',
2020 'rightfunctions-local' => '(from local page)',
2121 'rightfunctions-ns' => '(from namespace protection)',
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php
@@ -2009,7 +2009,7 @@
20102010 foreach ($description->getDescriptions() as $subdesc) {
20112011 /// TODO: this is not optimal -- we drop more table aliases than needed, but its hard to find out what is feasible in recursive calls ...
20122012 $nexttables = array();
2013 - // pull in page to prevent every child description pulling it seperately!
 2013+ // pull in page to prevent every child description pulling it separately!
20142014 if ( array_key_exists('PAGE', $curtables) ) {
20152015 $nexttables['PAGE'] = $curtables['PAGE'];
20162016 }
Index: trunk/extensions/Babel/Babel.class.php
@@ -332,7 +332,7 @@
333333 */
334334 private function _parseParameter( $parameter ) {
335335
336 - // Break up the parameter on - (which seperates it's two parts).
 336+ // Break up the parameter on - (which separates it's two parts).
337337 $chunks = explode( '-', $parameter );
338338
339339 // Initialise the return array.
Index: trunk/extensions/SubPageList3/SubPageList3.php
@@ -232,7 +232,7 @@
233233
234234 /**
235235 * returns all errors as a string
236 - * @return string all errors seperated by a newline
 236+ * @return string all errors separated by a newline
237237 * @private
238238 */
239239 function geterrors() {
Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php
@@ -163,7 +163,7 @@
164164 $serverpre = "ldap://";
165165 }
166166
167 - //Make a space seperated list of server strings with the ldap:// or ldaps://
 167+ //Make a space separated list of server strings with the ldap:// or ldaps://
168168 //string added.
169169 $servers = "";
170170 $tmpservers = $wgLDAPServerNames[$_SESSION['wsDomain']];
Index: trunk/extensions/EmailPage/phpMailer_v2.1.0beta2/class.smtp.php
@@ -266,7 +266,7 @@
267267 * finializing the mail transaction. $msg_data is the message
268268 * that is to be send with the headers. Each header needs to be
269269 * on a single line followed by a <CRLF> with the message headers
270 - * and the message body being seperated by and additional <CRLF>.
 270+ * and the message body being separated by and additional <CRLF>.
271271 *
272272 * Implements rfc 821: DATA <CRLF>
273273 *
Index: trunk/extensions/Cite/Cite_body.php
@@ -64,7 +64,7 @@
6565 var $mGroupCnt = array();
6666
6767 /**
68 - * Internal counter for anonymous references, seperate from
 68+ * Internal counter for anonymous references, separate from
6969 * $mOutCnt because anonymous references won't increment it,
7070 * but will incremement $mOutCnt
7171 *
@@ -539,7 +539,7 @@
540540 * This does approximately the same thing as
541541 * Language::listToText() but due to this being used for a
542542 * slightly different purpose (people might not want , as the
543 - * first seperator and not 'and' as the second, and this has to
 543+ * first separator and not 'and' as the second, and this has to
544544 * use messages from the content language) I'm rolling my own.
545545 *
546546 * @static
@@ -619,7 +619,7 @@
620620 /**
621621 * Generate the labels to pass to the
622622 * 'cite_references_link_many_format' message, the format is an
623 - * arbitary number of tokens seperated by [\t\n ]
 623+ * arbitary number of tokens separated by [\t\n ]
624624 */
625625 function genBacklinkLabels() {
626626 wfProfileIn( __METHOD__ );
Index: trunk/extensions/MetavidWiki/maintenance/maintenance_util.inc.php
@@ -122,7 +122,7 @@
123123 print "remove article";
124124 $wgArticle->doDeleteArticle( 'bad title' );
125125 }
126 - //some how mvdIndex and mvd pages got out of sync do a seperate check for the mvd:
 126+ //some how mvdIndex and mvd pages got out of sync do a separate check for the mvd:
127127 if(MV_Index::getMVDbyTitle($wgArticle->mTitle->getDBkey())!=null){
128128 print ', rm mvd';
129129 MV_Index::remove_by_wiki_title($wgArticle->mTitle->getDBkey());
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php
@@ -267,7 +267,7 @@
268268 //use the cache by default:
269269 //$usepCache = (isset($mvd_page->usePcache))?$mvd_page->usePcache:true;
270270
271 - /*try to pull from cache: seperate out cache for internal links vs external links cache*/
 271+ /*try to pull from cache: separate out cache for internal links vs external links cache*/
272272 $MvParserCache = & MV_ParserCache::singleton();
273273 $add_opt = ($absolute_links)?'a':'';
274274 //add the dbKey since I don't know how to easy purge the cache and we are getting cache missmatch
Index: trunk/extensions/MetavidWiki/skins/mv_embed/example_usage/sample_page.php
@@ -118,7 +118,7 @@
119119 <pre> <?= htmlentities($aval['tag'])?></pre>
120120 </td>
121121 </tr>
122 - <? //oput a seperator between video and playlist
 122+ <? //oput a separator between video and playlist
123123 if ($key==5){
124124 echo '<tr><td colspan="2"><b>Sample Playlists:</b></td></tr>';
125125 }
Index: trunk/extensions/MetavidWiki/skins/mv_embed/example_usage/sample_playlists.php
@@ -88,7 +88,7 @@
8989 <pre> <?= htmlentities($aval['tag'])?></pre>
9090 </td>
9191 </tr>
92 - <? //oput a seperator between video and playlist
 92+ <? //oput a separator between video and playlist
9393 if ($key==5){
9494 echo '<tr><td colspan="2"><b>Sample Playlists:</b></td></tr>';
9595 }
Index: trunk/extensions/FlaggedRevs/svggraph/svgGraph.php
@@ -369,8 +369,8 @@
370370 function svgGraph() {
371371 if( !defined("DECIMAL_POINT") )
372372 define("DECIMAL_POINT", ".");
373 - if( !defined("THOUSANDS_SEPERATOR") )
374 - define("THOUSANDS_SEPERATOR", ",");
 373+ if( !defined("THOUSANDS_SEPARATOR") )
 374+ define("THOUSANDS_SEPARATOR", ",");
375375 }
376376
377377 /**
@@ -416,7 +416,7 @@
417417 //$factorTagsY = $this->dataMaxY / ($this->dataMaxY - $this->dataMinY);
418418 for ($i=0; $i<$this->numGridlinesY; $i++) {
419419 $text = $this->dataMinY + $deltaTagsY * ($i + $this->offsetGridlinesY);
420 - $this->tagsY[$i] = number_format($text, $this->decimalPlacesY, DECIMAL_POINT, THOUSANDS_SEPERATOR);
 420+ $this->tagsY[$i] = number_format($text, $this->decimalPlacesY, DECIMAL_POINT, THOUSANDS_SEPARATOR);
421421 }
422422 $this->tagsY = array_reverse($this->tagsY);
423423 if (empty($this->tagsY)) {
Index: trunk/extensions/ConfigureWMF/ConfigureWMF.i18n.php
@@ -76,7 +76,7 @@
7777 * If you want to enable import from English Wikibooks on Polish Wikibooks, you have to add "en" to the list
7878 * If you want to enable import from English Wikipedia on Polish Wikibooks, you have to add "w:en" to the list
7979 * If you want to enable import from Incubator on Polish Wikibooks, you have to add "incubator" to the list
80 -Each import source should be placed on a seperate line.',
 80+Each import source should be placed on a separate line.',
8181 'configurewmf-help-enotif' => 'Here you can enable or disable email notification. Note that it may serioursly affect performance
8282 and therefore must not be enabled on large wikis.',
8383 'configurewmf-help-blockcfg' => 'Here you can enable or disable user talk editing for blocked users.',
Index: trunk/extensions/Translate/Translate.i18n.php
@@ -77,7 +77,7 @@
7878 'translate-magic-help' => 'You can translate special pages aliases, magic words, skin names and namespace names.
7979
8080 Special page aliases and magic words can have multiple translations.
81 -Translations are seperated by a comma (,).
 81+Translations are separated by a comma (,).
8282 Skin names and namespaces can have only one translation.
8383
8484 In namespace translations <tt>$1 talk</tt> is special. <tt>$1</tt> is replaced with sitename (for example <tt>{{SITENAME}} talk</tt>).
@@ -146,8 +146,8 @@
147147 'translate-statsf-count' => 'Measure',
148148 'translate-statsf-count-edits' => 'Number of edits',
149149 'translate-statsf-count-users' => 'Active translators',
150 - 'translate-statsf-language' => 'Comma seperated list of language codes',
151 - 'translate-statsf-group' => 'Comma separated list of group codes',
 150+ 'translate-statsf-language' => 'Comma-separated list of language codes',
 151+ 'translate-statsf-group' => 'Comma-separated list of group codes',
152152 'translate-statsf-submit' => 'Preview',
153153
154154 'translate-tag-category' => 'Translatable pages',

Status & tagging log