Commit 7bdcba17 authored by Dries's avatar Dries

- Patch #19739 by Uwe: corrected many typo's in the documentation and code comments

parent be142035
...@@ -10,7 +10,7 @@ Drupal x.x.x, xxxx-xx-xx ...@@ -10,7 +10,7 @@ Drupal x.x.x, xxxx-xx-xx
* added search block. * added search block.
- syndication: - syndication:
* made the ping module ping pingomatic.com which, in turn, will ping all the major ping services. * made the ping module ping pingomatic.com which, in turn, will ping all the major ping services.
* made Drupal generete RSS 2.0 feeds. * made Drupal generate RSS 2.0 feeds.
* made RSS feeds extensible. * made RSS feeds extensible.
* added categories to RSS feeds. * added categories to RSS feeds.
* added enclosures to RSS feeds. * added enclosures to RSS feeds.
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* remaining will ignored. If no configuration file is found, * remaining will ignored. If no configuration file is found,
* return a default value '$confdir/default'. * return a default value '$confdir/default'.
* *
* Example for a ficticious site installed at * Example for a fictitious site installed at
* http://www.drupal.org/mysite/test/ the 'settings.php' is * http://www.drupal.org/mysite/test/ the 'settings.php' is
* searched in the following directories: * searched in the following directories:
* *
......
...@@ -491,7 +491,7 @@ function file_download() { ...@@ -491,7 +491,7 @@ function file_download() {
* @param $min_depth * @param $min_depth
* Minimum depth of directories to return files from. * Minimum depth of directories to return files from.
* @param $depth * @param $depth
* Current depth of recursion. This parameter is only used interally and should not be passed. * Current depth of recursion. This parameter is only used internally and should not be passed.
* *
* @return * @return
* An associative array (keyed on the provided key) of objects with * An associative array (keyed on the provided key) of objects with
......
...@@ -1006,7 +1006,7 @@ function _locale_string_seek_query() { ...@@ -1006,7 +1006,7 @@ function _locale_string_seek_query() {
* Perform a string search and display results in a table * Perform a string search and display results in a table
*/ */
function _locale_string_seek() { function _locale_string_seek() {
// We have at least one criterium to match // We have at least one criterion to match
if ($query = _locale_string_seek_query()) { if ($query = _locale_string_seek_query()) {
$join = "SELECT s.source, s.location, s.lid, t.translation, t.locale FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid "; $join = "SELECT s.source, s.location, s.lid, t.translation, t.locale FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid ";
......
...@@ -876,7 +876,7 @@ function theme_blocks($region) { ...@@ -876,7 +876,7 @@ function theme_blocks($region) {
* his/her mind. * his/her mind.
* *
* You should use $_POST['edit'][$name] (where $name is usually 'confirm') to * You should use $_POST['edit'][$name] (where $name is usually 'confirm') to
* check if the confirmation was succesful. * check if the confirmation was successful.
* *
* @param $question * @param $question
* The question to ask the user (e.g. "Are you sure you want to delete the * The question to ask the user (e.g. "Are you sure you want to delete the
......
...@@ -911,7 +911,7 @@ function getval() { ...@@ -911,7 +911,7 @@ function getval() {
list($a,$b)=each($this->me); list($a,$b)=each($this->me);
// contributed by I Sofer, 2001-03-24 // contributed by I Sofer, 2001-03-24
// add support for nested arrays to scalarval // add support for nested arrays to scalarval
// i've created a new method here, so as to // I've created a new method here, so as to
// preserve back compatibility // preserve back compatibility
if (is_array($b)) { if (is_array($b)) {
......
...@@ -413,7 +413,7 @@ function aggregator_refresh($feed) { ...@@ -413,7 +413,7 @@ function aggregator_refresh($feed) {
* Parse the W3C date/time format, a subset of ISO 8601. PHP date parsing * Parse the W3C date/time format, a subset of ISO 8601. PHP date parsing
* functions do not handle this format. * functions do not handle this format.
* See http://www.w3.org/TR/NOTE-datetime for more information. * See http://www.w3.org/TR/NOTE-datetime for more information.
* Origionally from MagpieRSS (http://magpierss.sourceforge.net/). * Originally from MagpieRSS (http://magpierss.sourceforge.net/).
* *
* @param $date_str A string with a potentially W3C DTF date. * @param $date_str A string with a potentially W3C DTF date.
* @return A timestamp if parsed successfully or -1 if not. * @return A timestamp if parsed successfully or -1 if not.
......
...@@ -413,7 +413,7 @@ function aggregator_refresh($feed) { ...@@ -413,7 +413,7 @@ function aggregator_refresh($feed) {
* Parse the W3C date/time format, a subset of ISO 8601. PHP date parsing * Parse the W3C date/time format, a subset of ISO 8601. PHP date parsing
* functions do not handle this format. * functions do not handle this format.
* See http://www.w3.org/TR/NOTE-datetime for more information. * See http://www.w3.org/TR/NOTE-datetime for more information.
* Origionally from MagpieRSS (http://magpierss.sourceforge.net/). * Originally from MagpieRSS (http://magpierss.sourceforge.net/).
* *
* @param $date_str A string with a potentially W3C DTF date. * @param $date_str A string with a potentially W3C DTF date.
* @return A timestamp if parsed successfully or -1 if not. * @return A timestamp if parsed successfully or -1 if not.
......
...@@ -56,7 +56,7 @@ function forum_perm() { ...@@ -56,7 +56,7 @@ function forum_perm() {
} }
/** /**
* Admiinstration page which allows maintaining forums * Administration page which allows maintaining forums
*/ */
function forum_admin() { function forum_admin() {
$op = $_POST['op']; $op = $_POST['op'];
...@@ -219,7 +219,7 @@ function _forum_parent_select($tid, $title, $name) { ...@@ -219,7 +219,7 @@ function _forum_parent_select($tid, $title, $name) {
} }
/** /**
* Returns an overview list of existing forums and contianers * Returns an overview list of existing forums and containers
*/ */
function forum_overview() { function forum_overview() {
$header = array(t('Name'), t('Operations')); $header = array(t('Name'), t('Operations'));
......
...@@ -56,7 +56,7 @@ function forum_perm() { ...@@ -56,7 +56,7 @@ function forum_perm() {
} }
/** /**
* Admiinstration page which allows maintaining forums * Administration page which allows maintaining forums
*/ */
function forum_admin() { function forum_admin() {
$op = $_POST['op']; $op = $_POST['op'];
...@@ -219,7 +219,7 @@ function _forum_parent_select($tid, $title, $name) { ...@@ -219,7 +219,7 @@ function _forum_parent_select($tid, $title, $name) {
} }
/** /**
* Returns an overview list of existing forums and contianers * Returns an overview list of existing forums and containers
*/ */
function forum_overview() { function forum_overview() {
$header = array(t('Name'), t('Operations')); $header = array(t('Name'), t('Operations'));
......
...@@ -1204,7 +1204,7 @@ function node_validate($node) { ...@@ -1204,7 +1204,7 @@ function node_validate($node) {
} }
} }
// Make sure the body has the minimim number of words. // Make sure the body has the minimum number of words.
// todo use a better word counting algorithm that will work in other languages // todo use a better word counting algorithm that will work in other languages
if (isset($node->body) && count(explode(' ', $node->body)) < variable_get('minimum_'. $node->type .'_size', 0)) { if (isset($node->body) && count(explode(' ', $node->body)) < variable_get('minimum_'. $node->type .'_size', 0)) {
form_set_error('body', t('The body of your %type is too short. You need at least %words words.', array('%words' => variable_get('minimum_'. $node->type .'_size', 0), '%type' => node_invoke($node->type, 'node_name')))); form_set_error('body', t('The body of your %type is too short. You need at least %words words.', array('%words' => variable_get('minimum_'. $node->type .'_size', 0), '%type' => node_invoke($node->type, 'node_name'))));
......
...@@ -1204,7 +1204,7 @@ function node_validate($node) { ...@@ -1204,7 +1204,7 @@ function node_validate($node) {
} }
} }
// Make sure the body has the minimim number of words. // Make sure the body has the minimum number of words.
// todo use a better word counting algorithm that will work in other languages // todo use a better word counting algorithm that will work in other languages
if (isset($node->body) && count(explode(' ', $node->body)) < variable_get('minimum_'. $node->type .'_size', 0)) { if (isset($node->body) && count(explode(' ', $node->body)) < variable_get('minimum_'. $node->type .'_size', 0)) {
form_set_error('body', t('The body of your %type is too short. You need at least %words words.', array('%words' => variable_get('minimum_'. $node->type .'_size', 0), '%type' => node_invoke($node->type, 'node_name')))); form_set_error('body', t('The body of your %type is too short. You need at least %words words.', array('%words' => variable_get('minimum_'. $node->type .'_size', 0), '%type' => node_invoke($node->type, 'node_name'))));
......
...@@ -563,7 +563,7 @@ function search_view() { ...@@ -563,7 +563,7 @@ function search_view() {
} }
else if ($type == '') { else if ($type == '') {
// Note: search/node can not be a default tab because it would take on the // Note: search/node can not be a default tab because it would take on the
// path of its parent (search). It would prevent remembing keywords when // path of its parent (search). It would prevent remembering keywords when
// switching tabs. This is why we drupal_goto to it from the parent instead. // switching tabs. This is why we drupal_goto to it from the parent instead.
drupal_goto('search/node'); drupal_goto('search/node');
} }
...@@ -719,7 +719,7 @@ function search_excerpt($keys, $text) { ...@@ -719,7 +719,7 @@ function search_excerpt($keys, $text) {
// Extract a fragment per keyword for at most 4 keywords. // Extract a fragment per keyword for at most 4 keywords.
// First we collect ranges of text around each keyword, starting/ending // First we collect ranges of text around each keyword, starting/ending
// at spaces. // at spaces.
// If the sum of all fragments is too short, we look for second occurences. // If the sum of all fragments is too short, we look for second occurrences.
$ranges = array(); $ranges = array();
$included = array(); $included = array();
$length = 0; $length = 0;
...@@ -732,7 +732,7 @@ function search_excerpt($keys, $text) { ...@@ -732,7 +732,7 @@ function search_excerpt($keys, $text) {
if ($length >= 256) { if ($length >= 256) {
break; break;
} }
// Remember occurence of key so we can skip over it if more occurences // Remember occurrence of key so we can skip over it if more occurrences
// are desired. // are desired.
if (!isset($included[$key])) { if (!isset($included[$key])) {
$included[$key] = 0; $included[$key] = 0;
......
...@@ -563,7 +563,7 @@ function search_view() { ...@@ -563,7 +563,7 @@ function search_view() {
} }
else if ($type == '') { else if ($type == '') {
// Note: search/node can not be a default tab because it would take on the // Note: search/node can not be a default tab because it would take on the
// path of its parent (search). It would prevent remembing keywords when // path of its parent (search). It would prevent remembering keywords when
// switching tabs. This is why we drupal_goto to it from the parent instead. // switching tabs. This is why we drupal_goto to it from the parent instead.
drupal_goto('search/node'); drupal_goto('search/node');
} }
...@@ -719,7 +719,7 @@ function search_excerpt($keys, $text) { ...@@ -719,7 +719,7 @@ function search_excerpt($keys, $text) {
// Extract a fragment per keyword for at most 4 keywords. // Extract a fragment per keyword for at most 4 keywords.
// First we collect ranges of text around each keyword, starting/ending // First we collect ranges of text around each keyword, starting/ending
// at spaces. // at spaces.
// If the sum of all fragments is too short, we look for second occurences. // If the sum of all fragments is too short, we look for second occurrences.
$ranges = array(); $ranges = array();
$included = array(); $included = array();
$length = 0; $length = 0;
...@@ -732,7 +732,7 @@ function search_excerpt($keys, $text) { ...@@ -732,7 +732,7 @@ function search_excerpt($keys, $text) {
if ($length >= 256) { if ($length >= 256) {
break; break;
} }
// Remember occurence of key so we can skip over it if more occurences // Remember occurrence of key so we can skip over it if more occurrences
// are desired. // are desired.
if (!isset($included[$key])) { if (!isset($included[$key])) {
$included[$key] = 0; $included[$key] = 0;
......
...@@ -51,14 +51,14 @@ while (<>) { ...@@ -51,14 +51,14 @@ while (<>) {
$program = 0; $program = 0;
} }
# enfoce "bar". foo() ."bar" syntax # enforce "bar". foo() ."bar" syntax
if (/^("[^"]*"|[^"])*("[^"]*")\.[^ ]/ && $program) { if (/^("[^"]*"|[^"])*("[^"]*")\.[^ ]/ && $program) {
$msg = "'\".' -> '\". '"; $msg = "'\".' -> '\". '";
} }
elsif (/^("[^"]*"|[^"])*("[^"]*")\s+\./ && $program) { elsif (/^("[^"]*"|[^"])*("[^"]*")\s+\./ && $program) {
$msg = "'\" .' -> '\".'"; $msg = "'\" .' -> '\".'";
} }
# enfoce "bar". foo() ."bar" syntax # enforce "bar". foo() ."bar" syntax
elsif (/^("[^"]*"|[^"])*[^ "]\.("[^"]*")/ && $program) { elsif (/^("[^"]*"|[^"])*[^ "]\.("[^"]*")/ && $program) {
$msg = "'.\"' -> '.\"'"; $msg = "'.\"' -> '.\"'";
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* others will be ignored. If no other configuration file is found * others will be ignored. If no other configuration file is found
* then the default configuration file at 'sites/default' will be used. * then the default configuration file at 'sites/default' will be used.
* *
* For example, for a ficticious site installed at * For example, for a fictitious site installed at
* http://www.drupal.org/mysite/test/, the 'settings.php' * http://www.drupal.org/mysite/test/, the 'settings.php'
* is searched in the following directories: * is searched in the following directories:
* *
......
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