Make WordPress Core


Ignore:
Timestamp:
03/22/2022 04:23:32 PM (3 years ago)
Author:
audrasjb
Message:

Administration: Replace contracted verb forms for better consistency.

This changeset replaces contracted verb forms like doesn't, can't, or isn't with non-contracted forms like does not, cannot, or is not, for better consistency across the WordPress administration. It also updates some corresponding unit tests strings.

Props Presskopp, socalchristina, aandrewdixon, francina, SergeyBiryukov, JeffPaul, audrasjb, hellofromTonya.
Fixes #38913.
See #39176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-ftp.php

    r47902 r52978  
    335335        $this->_ready=true;
    336336        $syst=$this->systype();
    337         if(!$syst) $this->SendMSG("Can't detect remote OS");
     337        if(!$syst) $this->SendMSG("Cannot detect remote OS");
    338338        else {
    339339            if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows;
     
    343343            $this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]);
    344344        }
    345         if(!$this->features()) $this->SendMSG("Can't get features list. All supported - disabled");
     345        if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled");
    346346        else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features)));
    347347        return TRUE;
     
    372372        $this->SendMSG("Authentication succeeded");
    373373        if(empty($this->_features)) {
    374             if(!$this->features()) $this->SendMSG("Can't get features list. All supported - disabled");
     374            if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled");
    375375            else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features)));
    376376        }
     
    481481        }
    482482        if($this->_curtype!=FTP_BINARY) {
    483             $this->PushError("restore", "can't restore in ASCII mode");
     483            $this->PushError("restore", "cannot restore in ASCII mode");
    484484            return FALSE;
    485485        }
     
    554554        $fp = @fopen($localfile, "w");
    555555        if (!$fp) {
    556             $this->PushError("get","can't open local file", "Cannot create \"".$localfile."\"");
     556            $this->PushError("get","cannot open local file", "Cannot create \"".$localfile."\"");
    557557            return FALSE;
    558558        }
     
    611611        if(is_null($remotefile)) $remotefile=$localfile;
    612612        if (!file_exists($localfile)) {
    613             $this->PushError("put","can't open local file", "No such file or directory \"".$localfile."\"");
     613            $this->PushError("put","cannot open local file", "No such file or directory \"".$localfile."\"");
    614614            return FALSE;
    615615        }
     
    617617
    618618        if (!$fp) {
    619             $this->PushError("put","can't open local file", "Cannot read file \"".$localfile."\"");
     619            $this->PushError("put","cannot open local file", "Cannot read file \"".$localfile."\"");
    620620            return FALSE;
    621621        }
     
    650650        $local=realpath($local);
    651651        if(!@file_exists($local)) {
    652             $this->PushError("mput","can't open local folder", "Cannot stat folder \"".$local."\"");
     652            $this->PushError("mput","cannot open local folder", "Cannot stat folder \"".$local."\"");
    653653            return FALSE;
    654654        }
     
    663663            closedir($handle);
    664664        } else {
    665             $this->PushError("mput","can't open local folder", "Cannot read folder \"".$local."\"");
     665            $this->PushError("mput","cannot open local folder", "Cannot read folder \"".$local."\"");
    666666            return FALSE;
    667667        }
     
    683683        $list=$this->rawlist($remote, "-lA");
    684684        if($list===false) {
    685             $this->PushError("mget","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents");
     685            $this->PushError("mget","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
    686686            return FALSE;
    687687        }
     
    689689        if(!@file_exists($local)) {
    690690            if(!@mkdir($local)) {
    691                 $this->PushError("mget","can't create local folder", "Cannot create folder \"".$local."\"");
     691                $this->PushError("mget","cannot create local folder", "Cannot create folder \"".$local."\"");
    692692                return FALSE;
    693693            }
     
    701701            if($el["type"]=="d") {
    702702                if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) {
    703                     $this->PushError("mget", "can't copy folder", "Can't copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
     703                    $this->PushError("mget", "cannot copy folder", "Cannot copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
    704704                    $ret=false;
    705705                    if(!$continious) break;
     
    707707            } else {
    708708                if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) {
    709                     $this->PushError("mget", "can't copy file", "Can't copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
     709                    $this->PushError("mget", "cannot copy file", "Cannot copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");
    710710                    $ret=false;
    711711                    if(!$continious) break;
     
    722722        $list=$this->rawlist($remote, "-la");
    723723        if($list===false) {
    724             $this->PushError("mdel","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents");
     724            $this->PushError("mdel","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
    725725            return false;
    726726        }
     
    743743            } else {
    744744                if (!$this->delete($remote."/".$el["name"])) {
    745                     $this->PushError("mdel", "can't delete file", "Can't delete remote file \"".$remote."/".$el["name"]."\"");
     745                    $this->PushError("mdel", "cannot delete file", "Cannot delete remote file \"".$remote."/".$el["name"]."\"");
    746746                    $ret=false;
    747747                    if(!$continious) break;
     
    751751
    752752        if(!$this->rmdir($remote)) {
    753             $this->PushError("mdel", "can't delete folder", "Can't delete remote folder \"".$remote."/".$el["name"]."\"");
     753            $this->PushError("mdel", "cannot delete folder", "Cannot delete remote folder \"".$remote."/".$el["name"]."\"");
    754754            $ret=false;
    755755        }
     
    827827        $list=$this->rawlist($remote, "-la");
    828828        if($list===false) {
    829             $this->PushError("dirlist","can't read remote folder list", "Can't read remote folder \"".$remote."\" contents");
     829            $this->PushError("dirlist","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents");
    830830            return false;
    831831        }
Note: See TracChangeset for help on using the changeset viewer.