Commit 70aae83c authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

#58166, fixes for typos, patch by Uwe Herrmann

parent 4b874170
......@@ -284,7 +284,7 @@ function cache_get($key) {
$cache->data = db_decode_blob($cache->data);
}
// If enforcing a minimum cache lifetime, validate that the data is
// currenly valid for this user before we return it by making sure the
// currently valid for this user before we return it by making sure the
// cache entry was created before the timestamp in the current session's
// cache timer. The cache variable is loaded into the $user object by
// sess_read() in session.inc.
......@@ -735,7 +735,7 @@ function _drupal_bootstrap($phase) {
/**
* Enables use of the theme system without requiring database access. Since
* there is not database access no theme will be enabled and the default
* themable fuctions will be called. Some themable functions can not be used
* themeable functions will be called. Some themeable functions can not be used
* without the full Drupal API loaded. For example, theme_page() is
* unavailable and theme_maintenance_page() must be used in its place.
*/
......
......@@ -266,7 +266,7 @@ function drupal_not_found() {
$return = menu_execute_active_handler();
}
else {
// Redirect to a non-existant menu item to make possible tabs disappear.
// Redirect to a non-existent menu item to make possible tabs disappear.
menu_set_active_item('');
}
......@@ -294,7 +294,7 @@ function drupal_access_denied() {
$return = menu_execute_active_handler();
}
else {
// Redirect to a non-existant menu item to make possible tabs disappear.
// Redirect to a non-existent menu item to make possible tabs disappear.
menu_set_active_item('');
}
......
......@@ -336,7 +336,7 @@ function db_lock_table($table) {
/**
* Unlock all locked tables.
* This function automatically commits a transation.
* This function automatically commits a transaction.
*/
function db_unlock_tables() {
db_query('COMMIT');
......
......@@ -79,7 +79,7 @@ function file_create_path($dest = 0) {
* if it does not exist or made writable if it is read-only.
* @param $form_item An optional string containing the name of a form item that
* any errors will be attached to. This is useful for settings forms that
* require the user to specify a writeable directory. If it can't be made to
* require the user to specify a writable directory. If it can't be made to
* work, a form error will be set preventing them from saving the settings.
* @return False when directory not found, or true when directory exists.
*/
......@@ -120,7 +120,7 @@ function file_check_directory(&$directory, $mode = 0, $form_item = NULL) {
*
* @param $path A string containing a file path. This will be set to the
* directory's path.
* @return If the directory is not in a Drupal writeable directory, FALSE is
* @return If the directory is not in a Drupal writable directory, FALSE is
* returned. Otherwise, the base name of the path is returned.
*/
function file_check_path(&$path) {
......@@ -481,7 +481,7 @@ function file_save_upload($source, $dest = false, $replace = FILE_EXISTS_RENAME)
if ($file = file_check_upload($source)) {
// This should be refactored, file_check_upload has already
// moved the file to the temprary folder.
// moved the file to the temporary folder.
if (!$dest) {
$dest = file_directory_temp();
$temporary = 1;
......@@ -578,7 +578,7 @@ function file_download() {
$args = func_get_args();
$filepath = implode('/', $args);
// Maintain compatability with old ?file=paths saved in node bodies.
// Maintain compatibility with old ?file=paths saved in node bodies.
if (isset($_GET['file'])) {
$filepath = $_GET['file'];
}
......
......@@ -573,7 +573,7 @@ function form_select_options($element, $choices = NULL) {
if (!isset($choices)) {
$choices = $element['#options'];
}
// array_key_exists() accomodates the rare event where $element['#value'] is NULL.
// array_key_exists() accommodates the rare event where $element['#value'] is NULL.
// isset() fails in this situation.
$value_valid = isset($element['#value']) || array_key_exists('#value', $element);
$value_is_array = is_array($element['#value']);
......@@ -937,7 +937,7 @@ function theme_textfield($element) {
* A themed HTML string representing the form.
*/
function theme_form($element) {
// Anonymous div to satisfy XHTML compliancy.
// Anonymous div to satisfy XHTML compliance.
$action = $element['#action'] ? 'action="' . check_url($element['#action']) . '" ' : '';
return '<form '. $action . ' method="'. $element['#method'] .'" '. 'id="'. $element['#id'] .'"'. drupal_attributes($element['#attributes']) .">\n<div>". $element['#children'] ."\n</div></form>\n";
}
......
......@@ -18,7 +18,7 @@
/**
* Returns an array of availiable schema versions for a module.
* Returns an array of available schema versions for a module.
*
* @param $module
* A module name.
......
......@@ -56,7 +56,7 @@ function sess_write($key, $value) {
// Only save session data when when the browser sends a cookie. This keeps
// crawlers out of session table. This improves speed up queries, reduces
// memory, and gives more useful statistics. We can't eliminate anonymous
// session table rows without breaking throttle modulee and "Who's Online"
// session table rows without breaking throttle module and "Who's Online"
// block.
if ($user->uid || $value || count($_COOKIE)) {
db_query("INSERT INTO {sessions} (sid, uid, cache, hostname, session, timestamp) VALUES ('%s', %d, %d, '%s', '%s', %d)", $key, $user->uid, $user->cache, $_SERVER["REMOTE_ADDR"], $value, time());
......
......@@ -365,7 +365,7 @@ function theme_get_styles() {
*/
/**
* Format a dynamic text string for emphasised display in a placeholder.
* Format a dynamic text string for emphasized display in a placeholder.
*
* E.g. t('Added term %term', array('%term' => theme('placeholder', $term)))
*
......
......@@ -257,7 +257,7 @@ function xmlrpc_message_tag_close($parser, $tag) {
}
}
else {
// Just add as a paramater
// Just add as a parameter
$xmlrpc_message->params[] = $value;
}
}
......
......@@ -231,7 +231,7 @@ function xmlrpc_server_call($xmlrpc_server, $methodname, $args) {
// Perform the callback and send the response
/*
if (count($args) == 1) {
// If only one paramater just send that instead of the whole array
// If only one parameter just send that instead of the whole array
$args = $args[0];
}
*/
......
......@@ -14,7 +14,7 @@ function uploadAutoAttach() {
for (i = 0; input = inputs[i]; i++) {
if (input && hasClass(input, 'upload')) {
var uri = input.value;
// Extract the button ID based on a subtring of the input name: edit[foo][bar] -> foo-bar
// Extract the button ID based on a substring of the input name: edit[foo][bar] -> foo-bar
var button = input.name.substr(5, input.name.length - 6).replace('][', '-');
var wrapper = button + '-wrapper';
var hide = button + '-hide';
......
......@@ -12,7 +12,7 @@
function blogapi_help($section) {
switch ($section) {
case 'admin/help#blogapi':
$output = '<p>'. t('The blog API module enables a post to be posted to a site via external GUI applications. Many users perfer to use external tools to improve their ability to read and post responses in a customized way. The blog api provides users the freedom to use the blogging tools they want but still have the blogging server of choice.') .'</p>';
$output = '<p>'. t('The blog API module enables a post to be posted to a site via external GUI applications. Many users prefer to use external tools to improve their ability to read and post responses in a customized way. The blog api provides users the freedom to use the blogging tools they want but still have the blogging server of choice.') .'</p>';
$output .= '<p>'. t('When this module is enabled and configured you can use programs like <a href="%external-http-ecto-kung-foo-tv">Ecto</a> to create and publish posts from your desktop. Blog API module supports several XML-RPC based blogging APIs such as the <a href="%-">Blogger API</a>, <a href="%external-http-www-xmlrpc-com-metaWeblogApi">MetaWeblog API</a>, and most of the <a href="%external-http-www-movabletype-org-docs-mtmanual_programmatic-html">Movable Type API</a>. Any desktop blogging tools or other services (e.g. <a href="%external-http-www-flickr-com">Flickr\'s</a> "post to blog") that support these APIs should work with this site.', array('%external-http-ecto-kung-foo-tv' => 'http://ecto.kung-foo.tv/', '%-' => url('http://www.blogger.com/developers/api/1_docs/'), '%external-http-www-xmlrpc-com-metaWeblogApi' => 'http://www.xmlrpc.com/metaWeblogApi', '%external-http-www-movabletype-org-docs-mtmanual_programmatic-html' => 'http://www.movabletype.org/docs/mtmanual_programmatic.html', '%external-http-www-flickr-com' => 'http://www.flickr.com')) .'</p>';
$output .= '<p>'. t('This module also allows site administrators to configure which content types can be posted via the external applications. So, for instance, users can post forum topics as well as blog posts. Where supported, the external applications will display each content type as a separate "blog".<!--break-->') .'</p>';
$output .= t('<p>You can</p>
......
......@@ -12,7 +12,7 @@
function blogapi_help($section) {
switch ($section) {
case 'admin/help#blogapi':
$output = '<p>'. t('The blog API module enables a post to be posted to a site via external GUI applications. Many users perfer to use external tools to improve their ability to read and post responses in a customized way. The blog api provides users the freedom to use the blogging tools they want but still have the blogging server of choice.') .'</p>';
$output = '<p>'. t('The blog API module enables a post to be posted to a site via external GUI applications. Many users prefer to use external tools to improve their ability to read and post responses in a customized way. The blog api provides users the freedom to use the blogging tools they want but still have the blogging server of choice.') .'</p>';
$output .= '<p>'. t('When this module is enabled and configured you can use programs like <a href="%external-http-ecto-kung-foo-tv">Ecto</a> to create and publish posts from your desktop. Blog API module supports several XML-RPC based blogging APIs such as the <a href="%-">Blogger API</a>, <a href="%external-http-www-xmlrpc-com-metaWeblogApi">MetaWeblog API</a>, and most of the <a href="%external-http-www-movabletype-org-docs-mtmanual_programmatic-html">Movable Type API</a>. Any desktop blogging tools or other services (e.g. <a href="%external-http-www-flickr-com">Flickr\'s</a> "post to blog") that support these APIs should work with this site.', array('%external-http-ecto-kung-foo-tv' => 'http://ecto.kung-foo.tv/', '%-' => url('http://www.blogger.com/developers/api/1_docs/'), '%external-http-www-xmlrpc-com-metaWeblogApi' => 'http://www.xmlrpc.com/metaWeblogApi', '%external-http-www-movabletype-org-docs-mtmanual_programmatic-html' => 'http://www.movabletype.org/docs/mtmanual_programmatic.html', '%external-http-www-flickr-com' => 'http://www.flickr.com')) .'</p>';
$output .= '<p>'. t('This module also allows site administrators to configure which content types can be posted via the external applications. So, for instance, users can post forum topics as well as blog posts. Where supported, the external applications will display each content type as a separate "blog".<!--break-->') .'</p>';
$output .= t('<p>You can</p>
......
......@@ -70,7 +70,7 @@
function comment_help($section) {
switch ($section) {
case 'admin/help#comment':
$output = '<p>'. t('The comment module creates a discussion board for each post. Users can post comments to discuss a forum topic, weblog post, story, collaborative book page, etc. The ability to comment is an important part of involving members in a communtiy dialogue.') .'</p>';
$output = '<p>'. t('The comment module creates a discussion board for each post. Users can post comments to discuss a forum topic, weblog post, story, collaborative book page, etc. The ability to comment is an important part of involving members in a community dialogue.') .'</p>';
$output .= '<p>'. t('An administrator can give comment permissions to user groups, and users can (optionally) edit their last comment, assuming no others have been posted since. Attached to each comment board is a control panel for customizing the way that comments are displayed. Users can control the chronological ordering of posts (newest or oldest first) and the number of posts to display on each page. Comments behave like other user submissions. Filters, smileys and HTML that work in nodes will also work with comments. The comment module provides specific features to inform site members when new comments have been posted.') .'</p>';
$output .= t('<p>You can</p>
<ul>
......
......@@ -70,7 +70,7 @@
function comment_help($section) {
switch ($section) {
case 'admin/help#comment':
$output = '<p>'. t('The comment module creates a discussion board for each post. Users can post comments to discuss a forum topic, weblog post, story, collaborative book page, etc. The ability to comment is an important part of involving members in a communtiy dialogue.') .'</p>';
$output = '<p>'. t('The comment module creates a discussion board for each post. Users can post comments to discuss a forum topic, weblog post, story, collaborative book page, etc. The ability to comment is an important part of involving members in a community dialogue.') .'</p>';
$output .= '<p>'. t('An administrator can give comment permissions to user groups, and users can (optionally) edit their last comment, assuming no others have been posted since. Attached to each comment board is a control panel for customizing the way that comments are displayed. Users can control the chronological ordering of posts (newest or oldest first) and the number of posts to display on each page. Comments behave like other user submissions. Filters, smileys and HTML that work in nodes will also work with comments. The comment module provides specific features to inform site members when new comments have been posted.') .'</p>';
$output .= t('<p>You can</p>
<ul>
......
......@@ -1062,7 +1062,7 @@ function node_filter_form_submit() {
if (isset($form_values['filter'])) {
$filter = $form_values['filter'];
// Flatten the options array to accomodate hierarchical/nested options.
// Flatten the options array to accommodate hierarchical/nested options.
$flat_options = form_options_flatten($filters[$filter]['options']);
if (isset($flat_options[$form_values[$filter]])) {
......
......@@ -1062,7 +1062,7 @@ function node_filter_form_submit() {
if (isset($form_values['filter'])) {
$filter = $form_values['filter'];
// Flatten the options array to accomodate hierarchical/nested options.
// Flatten the options array to accommodate hierarchical/nested options.
$flat_options = form_options_flatten($filters[$filter]['options']);
if (isset($flat_options[$form_values[$filter]])) {
......
......@@ -13,7 +13,7 @@
function poll_help($section) {
switch ($section) {
case 'admin/help#poll':
$output = '<p>'. t('The poll module can be used to create simple polls for site users. A poll is a simple multiple choice questionnaire which displays the cummulative results of the answers to the poll. Having polls on the site is a good way to get instant feedback from community members.') .'</p>';
$output = '<p>'. t('The poll module can be used to create simple polls for site users. A poll is a simple multiple choice questionnaire which displays the cumulative results of the answers to the poll. Having polls on the site is a good way to get instant feedback from community members.') .'</p>';
$output .= '<p>'. t('Users can create a poll. The title of the poll should be the question, then enter the answers and the "base" vote counts. You can also choose the time period over which the vote will run.The <a href="%poll">poll</a> item in the navigation menu will take you to a page where you can see all the current polls, vote on them (if you haven\'t already) and view the results.', array('%poll' => url('poll'))) .'</p>';
$output .= t('<p>You can</p>
<ul>
......
......@@ -13,7 +13,7 @@
function poll_help($section) {
switch ($section) {
case 'admin/help#poll':
$output = '<p>'. t('The poll module can be used to create simple polls for site users. A poll is a simple multiple choice questionnaire which displays the cummulative results of the answers to the poll. Having polls on the site is a good way to get instant feedback from community members.') .'</p>';
$output = '<p>'. t('The poll module can be used to create simple polls for site users. A poll is a simple multiple choice questionnaire which displays the cumulative results of the answers to the poll. Having polls on the site is a good way to get instant feedback from community members.') .'</p>';
$output .= '<p>'. t('Users can create a poll. The title of the poll should be the question, then enter the answers and the "base" vote counts. You can also choose the time period over which the vote will run.The <a href="%poll">poll</a> item in the navigation menu will take you to a page where you can see all the current polls, vote on them (if you haven\'t already) and view the results.', array('%poll' => url('poll'))) .'</p>';
$output .= t('<p>You can</p>
<ul>
......
......@@ -1243,7 +1243,7 @@ function theme_search_item($item, $type) {
*
* Modules may implement hook_search_page() in order to override this default
* function to display search results. In that case it is expected they provide
* their own themable functions.
* their own themeable functions.
*
* @param $results
* All search result as returned by hook_search().
......
......@@ -1243,7 +1243,7 @@ function theme_search_item($item, $type) {
*
* Modules may implement hook_search_page() in order to override this default
* function to display search results. In that case it is expected they provide
* their own themable functions.
* their own themeable functions.
*
* @param $results
* All search result as returned by hook_search().
......
......@@ -33,7 +33,7 @@ function statistics_help($section) {
');
$output .= t('<p>You can</p>
<ul>
<li>administer statistics <a href="%admin-settings-statistics">administer &gt;&gt; setttings &gt;&gt; statistics</a>.</li>
<li>administer statistics <a href="%admin-settings-statistics">administer &gt;&gt; settings &gt;&gt; statistics</a>.</li>
<li>access statistics logs <a href="%admin-logs">administer &gt;&gt; logs</a>.</li>
<li>view recent hits <a href="%admin-logs-hits">administer &gt;&gt; logs &gt;&gt; recent hits</a>.</li>
<li>enable \'popular content\' block in block administration <a href="%admin-block">administer &gt;&gt; blocks </a> but only after you have enabled \'Count content views\' in settings.</li>
......
......@@ -33,7 +33,7 @@ function statistics_help($section) {
');
$output .= t('<p>You can</p>
<ul>
<li>administer statistics <a href="%admin-settings-statistics">administer &gt;&gt; setttings &gt;&gt; statistics</a>.</li>
<li>administer statistics <a href="%admin-settings-statistics">administer &gt;&gt; settings &gt;&gt; statistics</a>.</li>
<li>access statistics logs <a href="%admin-logs">administer &gt;&gt; logs</a>.</li>
<li>view recent hits <a href="%admin-logs-hits">administer &gt;&gt; logs &gt;&gt; recent hits</a>.</li>
<li>enable \'popular content\' block in block administration <a href="%admin-block">administer &gt;&gt; blocks </a> but only after you have enabled \'Count content views\' in settings.</li>
......
......@@ -257,7 +257,7 @@ function _upload_validate(&$node) {
if (is_array($node->files)) {
// Update existing files with form data.
foreach($node->files as $fid => $file) {
// Convert file to object for compatability
// Convert file to object for compatibility
$file = (object)$file;
// Validate new uploads.
......@@ -449,7 +449,7 @@ function upload_save($node) {
}
foreach ($node->files as $fid => $file) {
// Convert file to object for compatability
// Convert file to object for compatibility
$file = (object)$file;
// Remove file. Process removals first since no further processing
......
......@@ -257,7 +257,7 @@ function _upload_validate(&$node) {
if (is_array($node->files)) {
// Update existing files with form data.
foreach($node->files as $fid => $file) {
// Convert file to object for compatability
// Convert file to object for compatibility
$file = (object)$file;
// Validate new uploads.
......@@ -449,7 +449,7 @@ function upload_save($node) {
}
foreach ($node->files as $fid => $file) {
// Convert file to object for compatability
// Convert file to object for compatibility
$file = (object)$file;
// Remove file. Process removals first since no further processing
......
......@@ -458,7 +458,7 @@ function update_progress_page_nojs() {
// Error handling: if PHP dies, it will output whatever is in the output
// buffer, followed by the error message.
ob_start();
$fallback = '<p class="error">An unrecoverable error has occured. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the <a href="update.php?op=error">update summary</a>.</p><p class="error">';
$fallback = '<p class="error">An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the <a href="update.php?op=error">update summary</a>.</p><p class="error">';
print theme('maintenance_page', $fallback, FALSE, TRUE);
list($percentage, $message) = update_do_updates();
......@@ -466,7 +466,7 @@ function update_progress_page_nojs() {
$new_op = 'finished';
}
// Updates succesful; remove fallback
// Updates successful; remove fallback
ob_end_clean();
}
else {
......@@ -609,7 +609,7 @@ function update_fix_access_table() {
/**
* Convert a single MySQL table to UTF-8.
*
* We change all text columns to their correspending binary type,
* We change all text columns to their corresponding binary type,
* then back to text, but with a UTF-8 character set.
* See: http://dev.mysql.com/doc/refman/4.1/en/charset-conversion.html
*/
......@@ -654,7 +654,7 @@ function update_convert_table_utf8($table) {
}
// Some unavoidable errors happen because the database is not yet up-to-date.
// Our custom error handler is not yet installed, so we just surpress them.
// Our custom error handler is not yet installed, so we just suppress them.
ini_set('display_errors', FALSE);
include_once './includes/bootstrap.inc';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment