Revert "* [Cc]an't -> [Cc]annot"

This reverts commit 0ab17f382b.
This commit is contained in:
Brion Vibber
2009-11-08 23:28:51 +01:00
parent ec6a38a627
commit fc5002015b
59 changed files with 7679 additions and 4811 deletions

View File

@@ -90,7 +90,7 @@ function readline_emulation($prompt)
if ($retval == 0) {
return $line;
} elseif ($retval == 127) {
// Could not execute bash even though we thought we saw it.
// Couldn't execute bash even though we thought we saw it.
// Shell probably spit out an error message, sorry :(
// Fall through to fgets()...
} else {

View File

@@ -85,7 +85,7 @@ function newSub($i)
$from = User::staticGet('nickname', $fromnick);
if (empty($from)) {
throw new Exception("Cannot find user '$fromnick'.");
throw new Exception("Can't find user '$fromnick'.");
}
$t = rand(0, $i - 1);
@@ -102,7 +102,7 @@ function newSub($i)
$to = User::staticGet('nickname', $tunic);
if (empty($to)) {
throw new Exception("Cannot find user '$tunic'.");
throw new Exception("Can't find user '$tunic'.");
}
subs_subscribe_to($from, $to);

View File

@@ -39,14 +39,14 @@ if (have_option('i', 'id')) {
$id = get_option_value('i', 'id');
$user = User::staticGet('id', $id);
if (empty($user)) {
print "Cannot find user with ID $id\n";
print "Can't find user with ID $id\n";
exit(1);
}
} else if (have_option('n', 'nickname')) {
$nickname = get_option_value('n', 'nickname');
$user = User::staticGet('nickname', $nickname);
if (empty($user)) {
print "Cannot find user with nickname '$nickname'\n";
print "Can't find user with nickname '$nickname'\n";
exit(1);
}
} else {

View File

@@ -76,7 +76,7 @@ class UTF8FixerUpper
$succ = mysqli_set_charset($conn, $charset);
if (!$succ) {
echo "ERROR: Could not set charset\n";
echo "ERROR: couldn't set charset\n";
$db->disconnect();
return NULL;
}

View File

@@ -67,7 +67,7 @@ try {
$member->created = common_sql_now();
if (!$member->insert()) {
throw new Exception("Cannot add '$nickname' to '$groupname'.");
throw new Exception("Can't add '$nickname' to '$groupname'.");
}
}
@@ -80,7 +80,7 @@ try {
$member->is_admin = 1;
if (!$member->update($orig)) {
throw new Exception("Cannot make '$nickname' admin of '$groupname'.");
throw new Exception("Can't make '$nickname' admin of '$groupname'.");
}
} catch (Exception $e) {

View File

@@ -60,7 +60,7 @@ try {
'fullname' => $fullname));
if (empty($user)) {
throw new Exception("Cannot register user '$nickname' with password '$password' and fullname '$fullname'.");
throw new Exception("Can't register user '$nickname' with password '$password' and fullname '$fullname'.");
}
if (!empty($email)) {
@@ -71,7 +71,7 @@ try {
if (!$user->updateKeys($orig)) {
print "Failed!\n";
throw new Exception("Cannot update email address.");
throw new Exception("Can't update email address.");
}
}

View File

@@ -58,7 +58,7 @@ print "Checking key '$k'...\n";
$c = common_memcache();
if (empty($c)) {
die("Cannot initialize cache object!\n");
die("Can't initialize cache object!\n");
}
$obj = $c->get($k);

View File

@@ -377,11 +377,11 @@ function write_file($path, $data)
}
if (($fh_out = fopen($path,'w')) === false) {
error("Could not open $path for writing.");
error("couldn't open $path for writing.");
}
if (fwrite($fh_out, $data) === false) {
error("Could not write to $path.");
error("couldn't write to $path.");
}
}

View File

@@ -98,7 +98,7 @@ foreach ($languages as $language) {
$new_file = curl_get_file($file_url);
if ($new_file === FALSE) {
echo "Could not retrieve .po file for $code: $file_url\n";
echo "Couldn't retrieve .po file for $code: $file_url\n";
continue;
}