From 3a4862d348fc893141c9dca891fa3ad881cd1d01 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Jan 2015 19:22:47 +0100 Subject: [PATCH] Changed 'Can not' into 'Cannot' --- wcfsetup/install.php | 4 ++-- .../package/PackageInstallationSQLParser.class.php | 14 +++++++------- .../package/PackageUpdateDispatcher.class.php | 2 +- .../LanguagePackageInstallationPlugin.class.php | 4 ++-- .../ScriptPackageInstallationPlugin.class.php | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wcfsetup/install.php b/wcfsetup/install.php index f38adc0423..f7f0809db2 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -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 diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php index ffbc86b336..f1d54594bd 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php @@ -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 { diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index 3e4b580572..fa8d26dd21 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -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; diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 43b0314191..42a8f91ee3 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -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; diff --git a/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php index c19f637de6..d942ebbe56 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php @@ -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); -- 2.20.1