Changed 'Can not' into 'Cannot'
authorAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jan 2015 18:22:47 +0000 (19:22 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jan 2015 18:22:47 +0000 (19:22 +0100)
wcfsetup/install.php
wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php
wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php

index f38adc04235bce138b659a818cd05f480be1c8d8..f7f0809db203fe727b2d875a47ebfa9b2260f001 100644 (file)
@@ -868,7 +868,7 @@ if (!file_exists(TMP_DIR . 'install/files/lib/system/WCFSetup.class.php')) {
        $tar = new Tar(SETUP_FILE);
        $contentList = $tar->getContentList();
        if (empty($contentList)) {
-               throw new SystemException("Can not unpack 'WCFSetup.tar.gz'. File is probably broken.");
+               throw new SystemException("Cannot unpack 'WCFSetup.tar.gz'. File is probably broken.");
        }
        
        foreach ($contentList as $file) {
@@ -896,7 +896,7 @@ if (!file_exists(TMP_DIR . 'install/files/lib/system/WCFSetup.class.php')) {
 }
 
 if (!class_exists('wcf\system\WCFSetup')) {
-       throw new SystemException("Can not find class 'WCFSetup'");
+       throw new SystemException("Cannot find class 'WCFSetup'");
 }
 
 // start setup
index ffbc86b336fe0adc5fa535935bc0112ec715fd6d..f1d54594bd0b77353bd0defed0943bef85b7831e 100644 (file)
@@ -259,7 +259,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if (in_array($tableName, $this->existingTables)) {
                                if (isset($this->knownTables[$tableName]) && $this->knownTables[$tableName] != $this->package->packageID) {
-                                       throw new SystemException("Can not recreate table '".$tableName."'. A package can only overwrite own tables.");
+                                       throw new SystemException("Cannot recreate table '".$tableName."'. A package can only overwrite own tables.");
                                }
                                else {
                                        if (!isset($this->conflicts['CREATE TABLE'])) $this->conflicts['CREATE TABLE'] = array();
@@ -282,7 +282,7 @@ class PackageInstallationSQLParser extends SQLParser {
        protected function executeAddColumnStatement($tableName, $columnName, $columnData) {
                if ($this->test) {
                        if (!isset($this->knownTables[$tableName])) {
-                               throw new SystemException("Can not add column '".$columnName."' to table '".$tableName."'.");
+                               throw new SystemException("Cannot add column '".$columnName."' to table '".$tableName."'.");
                        }
                }
                else {
@@ -301,7 +301,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if ($ownerPackageID = $this->getColumnOwnerID($tableName, $oldColumnName)) {
                                if ($ownerPackageID != $this->package->packageID) {
-                                       throw new SystemException("Can not alter column '".$oldColumnName."'. A package can only change own columns.");
+                                       throw new SystemException("Cannot alter column '".$oldColumnName."'. A package can only change own columns.");
                                }
                        }
                }
@@ -350,7 +350,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if ($ownerPackageID = $this->getColumnOwnerID($tableName, $columnName)) {
                                if ($ownerPackageID != $this->package->packageID) {
-                                       throw new SystemException("Can not drop column '".$columnName."'. A package can only drop own columns.");
+                                       throw new SystemException("Cannot drop column '".$columnName."'. A package can only drop own columns.");
                                }
                        }
                }
@@ -370,7 +370,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if ($ownerPackageID = $this->getIndexOwnerID($tableName, $indexName)) {
                                if ($ownerPackageID != $this->package->packageID) {
-                                       throw new SystemException("Can not drop index '".$indexName."'. A package can only drop own indices.");
+                                       throw new SystemException("Cannot drop index '".$indexName."'. A package can only drop own indices.");
                                }
                        }
                }
@@ -390,7 +390,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if ($ownerPackageID = $this->getIndexOwnerID($tableName, $indexName)) {
                                if ($ownerPackageID != $this->package->packageID) {
-                                       throw new SystemException("Can not drop index '".$indexName."'. A package can only drop own indices.");
+                                       throw new SystemException("Cannot drop index '".$indexName."'. A package can only drop own indices.");
                                }
                        }
                }
@@ -411,7 +411,7 @@ class PackageInstallationSQLParser extends SQLParser {
                        if (in_array($tableName, $this->existingTables)) {
                                if (isset($this->knownTables[$tableName])) {
                                        if ($this->knownTables[$tableName] != $this->package->packageID) {
-                                               throw new SystemException("Can not drop table '".$tableName."'. A package can only drop own tables.");
+                                               throw new SystemException("Cannot drop table '".$tableName."'. A package can only drop own tables.");
                                        }
                                }
                                else {
index 3e4b580572d12399b8f5b47a0876fe47c0ab16bb..fa8d26dd21432d962be596bb4883a5311e80c873 100644 (file)
@@ -660,7 +660,7 @@ class PackageUpdateDispatcher extends SingletonFactory {
                }
                
                if (empty($versions)) {
-                       throw new SystemException("Can not find package '".$package."' in version '".$version."'");
+                       throw new SystemException("Cannot find package '".$package."' in version '".$version."'");
                }
                
                return $versions;
index 43b0314191e481888db8eded866940684a6f659d..42a8f91ee36d1dabfa74be0e26cc4673ae3197db 100644 (file)
@@ -46,7 +46,7 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl
                                                $languageFiles[$match[1]] = $file['filename'];
                                        }
                                        else {
-                                               throw new SystemException("Can not determine language code of language file '".$file['filename']."'");
+                                               throw new SystemException("Cannot determine language code of language file '".$file['filename']."'");
                                        }
                                }
                        }
@@ -62,7 +62,7 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl
                                $languageCode = $match[1];
                        }
                        else {
-                               throw new SystemException("Can not determine language code of language file '".$filename."'");
+                               throw new SystemException("Cannot determine language code of language file '".$filename."'");
                        }
                        
                        $languageFiles[$languageCode] = $filename;
index c19f637de682fd0365f2328e1e2102b41f2acff6..d942ebbe566a1a60e7ea7a8cb9413345b7073df0 100644 (file)
@@ -34,7 +34,7 @@ class ScriptPackageInstallationPlugin extends AbstractPackageInstallationPlugin
                if (empty($path)) {
                        $dirConstant = strtoupper($abbreviation) . '_DIR';
                        if (!defined($dirConstant)) {
-                               throw new SystemException("Can not execute script-PIP, abbreviation '".$abbreviation."' is unknown");
+                               throw new SystemException("Cannot execute script-PIP, abbreviation '".$abbreviation."' is unknown");
                        }
                        
                        $path = constant($dirConstant);