BUG 8529 Change "exists" to "exist" in many phrases SOLVED

- Remember these grammar rules
- Changed grammar rules as suggested.
This commit is contained in:
Hector Cortez
2012-07-25 16:51:09 -04:00
parent bf4172a770
commit f353ae77c2
26 changed files with 33 additions and 33 deletions

View File

@@ -469,7 +469,7 @@ class dynaFormHandler
$xpath = new DOMXPath($this->dom);
$nodeList = @$xpath->query("/dynaForm/$name");
if( ! $nodeList ){
throw new Exception("Error trying get the field dynaform $name, maybe it doesn't exists in {$this->xmlfile}");
throw new Exception("Error trying get the field dynaform $name, maybe it doesn't exist in {$this->xmlfile}");
}
if( $nodeList->length == 0 ) {

View File

@@ -43,7 +43,7 @@ class AuthenticationSource extends BaseAuthenticationSource {
return $aFields;
}
else {
throw(new Exception('This row doesn\'t exists!'));
throw(new Exception('This row doesn\'t exist!'));
}
}
catch (Exception $oError) {
@@ -109,7 +109,7 @@ class AuthenticationSource extends BaseAuthenticationSource {
}
}
else {
throw(new Exception('This row doesn\'t exists!'));
throw(new Exception('This row doesn\'t exist!'));
}
}
catch (Exception $oError) {
@@ -133,7 +133,7 @@ class AuthenticationSource extends BaseAuthenticationSource {
return $iResult;
}
else {
throw(new Exception('This row doesn\'t exists!'));
throw(new Exception('This row doesn\'t exist!'));
}
}
catch (Exception $oError) {

View File

@@ -125,7 +125,7 @@ class Installer
'password'=>((trim($this->options['admin']['password'])=='')?false:true)
)
);
$result['name']['message'] = ($result['isset'])?'Workspace already exists':$result['name']['message'];
$result['name']['message'] = ($result['isset'])?'Workspace already exist':$result['name']['message'];
$result['name']['status'] = ($result['isset'])?false:$result['name']['status'];
//print_r($result);
return Array(

View File

@@ -83,7 +83,7 @@ class archive
$pwd = getcwd();
chdir($this->options['basedir']);
if ($this->options['overwrite'] == 0 && file_exists($this->options['name'] . ($this->options['type'] == "gzip" || $this->options['type'] == "bzip" ? ".tmp" : ""))){
$this->error[] = "File {$this->options['name']} already exists.";
$this->error[] = "File {$this->options['name']} already exist.";
chdir($pwd);
return 0;
}
@@ -465,7 +465,7 @@ class tar_file extends archive
mkdir($file['name'], 0775);
}
else if ($this->options['overwrite'] == 0 && file_exists($file['name'])){
$this->error[] = "{$file['name']} already exists.";
$this->error[] = "{$file['name']} already exist.";
continue;
}
else if ($file['type'] == 2){

View File

@@ -63,7 +63,7 @@ class replacementLogo {
$infoupload = "Return Code: " . $errorfile . "<br />";
} else {
if (file_exists ( $dirUpload . $namefile )) {
$infoupload = $namefile . " already exists. ";
$infoupload = $namefile . " already exist. ";
} else {
move_uploaded_file ( $tpnfile, $dirUpload . $namefile );
$infoupload = "Stored in: " . $dirUpload . $namefile;

View File

@@ -1011,9 +1011,9 @@ class workspaceTools {
$workspace = new workspaceTools($workspaceName);
if ($workspace->workspaceExists())
if ($overwrite)
CLI::logging(CLI::warning("> Workspace $workspaceName already exists, overwriting!") . "\n");
CLI::logging(CLI::warning("> Workspace $workspaceName already exist, overwriting!") . "\n");
else
throw new Exception("Destination workspace already exists (use -o to overwrite)");
throw new Exception("Destination workspace already exist (use -o to overwrite)");
if (file_exists($workspace->path))
G::rm_dir($workspace->path);

View File

@@ -1042,7 +1042,7 @@ class AppCacheView extends BaseAppCacheView
$filenameSql = $this->pathToAppCacheFiles . 'app_cache_view_insert.sql';
if (!file_exists($filenameSql)) {
throw (new Exception("file app_cache_view_insert.sql doesn't exists "));
throw (new Exception("file app_cache_view_insert.sql does not exist "));
}
$sql = explode(';', file_get_contents($filenameSql));
@@ -1095,7 +1095,7 @@ class AppCacheView extends BaseAppCacheView
$filenameSql = $this->pathToAppCacheFiles . 'triggerAppDelegationInsert.sql';
if (!file_exists($filenameSql)) {
throw (new Exception("file triggerAppDelegationInsert.sql doesn't exists "));
throw (new Exception("file triggerAppDelegationInsert.sql does not exist "));
}
$sql = file_get_contents($filenameSql);
@@ -1142,7 +1142,7 @@ class AppCacheView extends BaseAppCacheView
$filenameSql = $this->pathToAppCacheFiles . '/triggerAppDelegationUpdate.sql';
if (!file_exists($filenameSql)) {
throw (new Exception("file triggerAppDelegationUpdate.sql doesn't exists "));
throw (new Exception("file triggerAppDelegationUpdate.sql does not exist "));
}
$sql = file_get_contents($filenameSql);

View File

@@ -42,7 +42,7 @@ class AppFolder extends BaseAppFolder {
$oDataset->next ();
if ($aRow = $oDataset->getRow ()) {//Folder exist, then return the ID
$response['success']=false;
$response['message']=$response['error']="Can't create folder <br /> A folder with same name already exists. <br /> $folderName";
$response['message']=$response['error']="Can't create folder <br /> A folder with same name already exist. <br /> $folderName";
$response['folderUID']=$aRow ['FOLDER_UID'];
//return ($aRow ['FOLDER_UID']);
return ($response);

View File

@@ -95,7 +95,7 @@ class DashletInstance extends BaseDashletInstance {
return $result;
}
else {
throw new Exception('Error trying to delete: The row "' . $dasInsUid. '" not exists.');
throw new Exception('Error trying to delete: The row "' . $dasInsUid. '" does not exist.');
}
}
catch (Exception $error) {

View File

@@ -110,7 +110,7 @@ class Gateway extends BaseGateway {
return true;
}
else {
throw(new Exception('This row doesn\'t exists!'));
throw(new Exception('This row does not exist!'));
}
}
catch (Exception $oError) {

View File

@@ -96,7 +96,7 @@ class TaskUser extends BaseTaskUser {
return $iResult;
}
else {
throw(new Exception('This row doesn\'t exists!'));
throw(new Exception('This row does not exist!'));
}
}
catch (Exception $oError) {

View File

@@ -281,7 +281,7 @@ function getDWSFolderItems($sharepointServer, $auth,$dwsname, $strFolderUrl) {
if(isset($result))
return $result;
else
return "Folder does not exists";
return "Folder does not exist";
}
/**

View File

@@ -192,7 +192,7 @@ function createZimbraFolder($ServerUrl, $username, $preAuthKey, $folderName, $co
if ($sXmlArray) {
return "Folder Created succesfully";
} else {
return "A folder with name " . $folderName . " already exists.";
return "A folder with name " . $folderName . " already exist.";
}
}

View File

@@ -183,7 +183,7 @@ class Dashboard extends Controller {
$result->additionalFields = PMDashlet::getAdditionalFields($dashletFields['DAS_CLASS']);
}
else {
throw new Exception('Dashlet "' . $data->DAS_UID . '" not exists.');
throw new Exception('Dashlet "' . $data->DAS_UID . '" does not exist.');
}
}
catch (Exception $error) {

View File

@@ -8,7 +8,7 @@ if (! isset ($_REQUEST ['action'])) {
}
if (! function_exists ($_REQUEST ['action'])) {
$res ['success'] = false;
$res ['message'] = 'The requested action doesn\'t exists';
$res ['message'] = 'The requested action does not exist';
print G::json_encode ($res);
die ();
}

View File

@@ -38,7 +38,7 @@ try{
else{
$result = array();
$result['status_code'] = $idProcess;
$result['message'] = "the process don't exists";
$result['message'] = "the process does not exist";
$result['timestamp'] = date('Y-m-d H:i:s');
echo G::json_encode($result);
die;

View File

@@ -7,7 +7,7 @@ if (!isset($_REQUEST ['action'])) {
}
if (!function_exists($_REQUEST ['action'])) {
$res ['success'] = 'failure';
$res ['message'] = 'The requested action doesn\'t exists';
$res ['message'] = 'The requested action does not exist';
header("Content-Type: application/json");
print G::json_encode($res);
die ();

View File

@@ -8,7 +8,7 @@ if (! isset ( $_REQUEST ['action'] )) {
}
if (! function_exists ( $_REQUEST ['action'] )) {
$res ['success'] = 'failure';
$res ['message'] = 'The requested action doesn\'t exists';
$res ['message'] = 'The requested action does not exist';
print G::json_encode ( $res );
die ();
}

View File

@@ -9,7 +9,7 @@ if (!isset($_REQUEST ['action'])) {
}
if (!function_exists($_REQUEST ['action'])) {
$res ['success'] = false;
$res ['error']=$res ['message'] = 'The requested action doesn\'t exists';
$res ['error']=$res ['message'] = 'The requested action does not exist';
print G::json_encode($res);
die ();
@@ -17,7 +17,7 @@ if (!function_exists($_REQUEST ['action'])) {
$restrictedFunctions=array('copy_skin_folder','addTarFolder');
if (in_array($_REQUEST ['action'],$restrictedFunctions)) {
$res ['success'] = false;
$res ['error']=$res ['message'] = 'The requested action doesn\'t exists *';
$res ['error']=$res ['message'] = 'The requested action does not exist *';
print G::json_encode($res);
die ();
}

View File

@@ -172,7 +172,7 @@ function processSchemaFile( ) {
$oDataBase = new database($DB_ADAPTER, $DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);
if ( !$oDataBase->isConnected() ) {
$oDataBase->logQuery ('Not exists an available connection!');
$oDataBase->logQuery ('Does not exist an available connection!');
return NULL;
}

View File

@@ -14,7 +14,7 @@
</FILENAME>
<OVERWRITE type="checkbox">
<en>Overwrite if exists</en>
<en>Overwrite if exist</en>
</OVERWRITE>
<SAVE type="button" onclick="verifyFile(this.form);">

View File

@@ -19,7 +19,7 @@
<en>Report Database:</en>
</AO_DB_RP>
<AO_DB_DROP type="checkbox">
<en>Drop database if exists</en>
<en>Drop database if exist</en>
</AO_DB_DROP>
<WS type="subtitle">
<en>Workspace Administrator</en>

View File

@@ -19,7 +19,7 @@
<en>Report Database:</en>
</AO_DB_RP>
<AO_DB_DROP type="checkbox">
<en>Drop database if exists</en>
<en>Drop database if exist</en>
</AO_DB_DROP>
<WS type="subtitle">
<en>Workspace Administrator</en>

View File

@@ -7,7 +7,7 @@
</title>
<TITLE1 type="subtitle">
<en>The process you are trying to import already exists. Please select one of the following options to continue:</en>
<en>The process you are trying to import already exist. Please select one of the following options to continue:</en>
</TITLE1>

View File

@@ -7,7 +7,7 @@
</title>
<TITLE1 type="subtitle">
<en>The process you are trying to import already exists. Please select one of the following options to continue:</en>
<en>The process you are trying to import already exist. Please select one of the following options to continue:</en>
</TITLE1>

View File

@@ -7,7 +7,7 @@
</title>
<TITLE1 type="subtitle">
<en>Some of the groups that are you trying to import, already exists. Please select one of the following options to continue:</en>
<en>Some of the groups that are you trying to import, already exist. Please select one of the following options to continue:</en>
</TITLE1>
<IMPORT_OPTION type="hidden">