diff --git a/build/data.json b/build/data.json index 09a5c7d0e..742a09d6a 100644 --- a/build/data.json +++ b/build/data.json @@ -44,7 +44,7 @@ "first_name": "Cedric", "last_name": "Kelly", "age": "22", - "position": "Senior Javascript Developer", + "position": "Senior JavaScript Developer", "salary": "433060", "start_date": "2012-03-29", "extn": "6224", @@ -109,7 +109,7 @@ "first_name": "Colleen", "last_name": "Hurst", "age": "39", - "position": "Javascript Developer", + "position": "JavaScript Developer", "salary": "205500", "start_date": "2009-09-15", "extn": "2360", @@ -642,7 +642,7 @@ "first_name": "Jennifer", "last_name": "Acosta", "age": "43", - "position": "Junior Javascript Developer", + "position": "Junior JavaScript Developer", "salary": "75650", "start_date": "2013-02-01", "extn": "3431", @@ -720,7 +720,7 @@ "first_name": "Michael", "last_name": "Bruce", "age": "29", - "position": "Javascript Developer", + "position": "JavaScript Developer", "salary": "183000", "start_date": "2011-06-27", "extn": "5384", diff --git a/build/examples-format.sh b/build/examples-format.sh index 0555b0350..c5e2a0db3 100755 --- a/build/examples-format.sh +++ b/build/examples-format.sh @@ -2,7 +2,7 @@ # # Can be used on both examples directories and docs. Each has -# slightly different processing - the docs is more aggrasive +# slightly different processing - the docs is more aggressive # in updating code style. # # Call with the path to the directory with the xml files you diff --git a/build/examples.php b/build/examples.php index ba0f06fb8..8a0a89f02 100644 --- a/build/examples.php +++ b/build/examples.php @@ -336,7 +336,7 @@ function multiple ( $value, $fn ) { if ( is_array( $value ) ) { - for ( $i=0, $ien=count($value) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($value) ; $i<$iLen ; $i++ ) { $fn( $value[$i] ); } } @@ -660,7 +660,7 @@ function sql_files ( $out_dir ) ); $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $out[] = "( ". $json[$i]['id'].", ". "'".$json[$i]['first_name']."', ". @@ -771,7 +771,7 @@ function sql_files ( $out_dir ) VALUES EOD; $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $out[] = "( ". $json[$i]['id'].", ". "'".$json[$i]['first_name']."', ". @@ -823,7 +823,7 @@ function sql_files ( $out_dir ) VALUES EOD; $insert = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $insert[] = "\t\t( ". $json[$i]['id'].", ". "'".$json[$i]['first_name']."', ". @@ -882,7 +882,7 @@ function sql_files ( $out_dir ) EOD; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $str .= "INSERT INTO \"datatables_demo\" ". "( \"first_name\", \"last_name\", \"age\", \"position\", \"salary\", \"start_date\", \"extn\", \"email\", \"office\", \"seq\" ) ". "VALUES "; @@ -926,7 +926,7 @@ function sql_files ( $out_dir ) EOD; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $str .= "INSERT INTO \"datatables_demo\" ". "( \"first_name\", \"last_name\", \"age\", \"position\", \"salary\", \"start_date\", \"extn\", \"email\", \"office\", \"seq\" ) ". "VALUES "; @@ -971,7 +971,7 @@ function json_files ( $out_dir ) // Plain arrays $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $out[] = [ $json[$i]['first_name'].' '.$json[$i]['last_name'], $json[$i]['position'], @@ -995,7 +995,7 @@ function json_files ( $out_dir ) // Arrays with sub objects $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $out[] = [ $json[$i]['first_name'].' '.$json[$i]['last_name'], 'hr' => [ @@ -1017,7 +1017,7 @@ function json_files ( $out_dir ) // Simple object base case $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $out[] = [ 'id' => $json[$i]['id'], 'name' => $json[$i]['first_name'] .' '. $json[$i]['last_name'], @@ -1042,7 +1042,7 @@ function json_files ( $out_dir ) // Objects with sub objects and arrays $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $out[] = [ 'name' => $json[$i]['first_name'].' '.$json[$i]['last_name'], 'hr' => [ @@ -1064,7 +1064,7 @@ function json_files ( $out_dir ) // Salary without formatting $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $country = $json[$i]['office']; if ( $country === 'Singapore' ) { $country = 'Argentina'; @@ -1086,7 +1086,7 @@ function json_files ( $out_dir ) // Objects with sub objects $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $out[] = [ 'name' => [ $json[$i]['last_name'], $json[$i]['first_name'] ], 'hr' => [ @@ -1106,7 +1106,7 @@ function json_files ( $out_dir ) // Orthogonal date data $out = []; - for ( $i=0, $ien=count($json) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($json) ; $i<$iLen ; $i++ ) { $t = strtotime( $json[$i]['start_date'] ); $out[] = [ 'name' => $json[$i]['first_name'] .' '. $json[$i]['last_name'], @@ -1240,7 +1240,7 @@ function tidy_structure ( &$examples, $order ) function dump_structure( &$examples, $pre="" ) { - for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) { $example = $examples[$i]; if ( $example['type'] === 'dir' ) { @@ -1256,7 +1256,7 @@ function dump_structure( &$examples, $pre="" ) function process_structure ( &$examples, $toc='', $cat='' ) { - for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) { $example = $examples[$i]; if ( $example['type'] === 'dir' ) { @@ -1305,7 +1305,7 @@ function build_toc ( $examples, $example, $category ) // Use all examples $out = ''; - for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) { if ( $examples[$i]['type'] === 'dir' && $examples[$i]['name'] !== 'private' ) { $out .= build_toc_category( $examples[$i], $example ); } @@ -1321,7 +1321,7 @@ function build_toc_category ( $category, $current=null ) $inCategory = false; $out = ''; - for ( $i=0, $ien=count($category['files']) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($category['files']) ; $i<$iLen ; $i++ ) { $example = $category['files'][$i]; if ( $example['name'] !== 'index' ) { @@ -1360,7 +1360,7 @@ function build_toc_category ( $category, $current=null ) function has_files ( $files ) { - for ( $i=0, $ien=count($files) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($files) ; $i<$iLen ; $i++ ) { if ( $files[$i]['type'] === 'file' ) { return true; } @@ -1376,7 +1376,7 @@ function has_files ( $files ) function toc_structure ( &$examples ) { - for ( $i=0, $ien=count($examples) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($examples) ; $i<$iLen ; $i++ ) { $group = &$examples[$i]; if ( $group['type'] === 'dir' ) { diff --git a/build/include.sh b/build/include.sh index 77ffafa2d..6a9ffc957 100644 --- a/build/include.sh +++ b/build/include.sh @@ -62,7 +62,7 @@ function css_compress { echo_msg "CSS compressing $FILE.css" $SASS --no-charset --stop-on-error --style compressed $DIR/$FILE.css > $DIR/$FILE.min.css - # compressed style will add a UTF8 BOM which messes with concatination - remove it. + # compressed style will add a UTF8 BOM which messes with concatenation - remove it. sed -i '1s/^\xEF\xBB\xBF//' $DIR/$FILE.min.css echo_msg " File size: $(ls -l $DIR/$FILE.min.css | awk -F" " '{ print $5 }')" diff --git a/build/lib/DT_Example.php b/build/lib/DT_Example.php index b3f752a19..d2c56f44c 100644 --- a/build/lib/DT_Example.php +++ b/build/lib/DT_Example.php @@ -394,7 +394,7 @@ public function build_table ( $type, $idIn=null ) $a = explode('|', $type); $t = ''; - for ( $i=0, $ien=count($a) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($a) ; $i<$iLen ; $i++ ) { $t .= $this->build_table( $a[$i] ); } @@ -453,7 +453,7 @@ public function build_table ( $type, $idIn=null ) } else { $cells = ''; - for ( $i=0, $ien=count($columns) ; $i<$ien ; $i++ ) { + for ( $i=0, $iLen=count($columns) ; $i<$iLen ; $i++ ) { $cells .= '
tags and unhashify HTML blocks # - foreach ($grafs as $key => $value) { + foreach ($paragraphs as $key => $value) { if (!preg_match('/^B\x1A[0-9]+B$/', $value)) { # Is a paragraph. $value = $this->runSpanGamut($value); $value = preg_replace('/^([ ]*)/', "
", $value); $value .= "
"; - $grafs[$key] = $this->unhash($value); + $paragraphs[$key] = $this->unhash($value); } else { # Is a block. - # Modify elements of @grafs in-place... + # Modify elements of @paragraphs in-place... $graf = $value; $block = $this->html_hashes[$graf]; $graf = $block; @@ -1406,11 +1406,11 @@ function formParagraphs($text) { // // $graf = $div_open . "\n" . $div_content . "\n" . $div_close; // } - $grafs[$key] = $graf; + $paragraphs[$key] = $graf; } } - return implode("\n\n", $grafs); + return implode("\n\n", $paragraphs); } @@ -1622,7 +1622,7 @@ function detab($text) { # # Replace tabs with the appropriate amount of space. # - # For each line we separate the line in blocks delemited by + # For each line we separate the line in blocks delimited by # tab characters. Then we reconstruct every line by adding the # appropriate number of space between each blocks. @@ -1730,7 +1730,7 @@ function __construct() { # Extra variables used during extra transformations. var $footnotes = array(); var $footnotes_ordered = array(); - var $abbr_desciptions = array(); + var $abbr_descriptions = array(); var $abbr_word_re = ''; # Give the current footnote number. @@ -1745,7 +1745,7 @@ function setup() { $this->footnotes = array(); $this->footnotes_ordered = array(); - $this->abbr_desciptions = array(); + $this->abbr_descriptions = array(); $this->abbr_word_re = ''; $this->footnote_counter = 1; @@ -1753,7 +1753,7 @@ function setup() { if ($this->abbr_word_re) $this->abbr_word_re .= '|'; $this->abbr_word_re .= preg_quote($abbr_word); - $this->abbr_desciptions[$abbr_word] = trim($abbr_desc); + $this->abbr_descriptions[$abbr_word] = trim($abbr_desc); } } @@ -1763,7 +1763,7 @@ function teardown() { # $this->footnotes = array(); $this->footnotes_ordered = array(); - $this->abbr_desciptions = array(); + $this->abbr_descriptions = array(); $this->abbr_word_re = ''; parent::teardown(); @@ -2120,7 +2120,7 @@ function _hashHTMLBlocks_inHTML($text, $hash_method, $md_attr) { if (count($parts) < 3) { # - # End of $text reached with unbalenced tag(s). + # End of $text reached with unbalanced tag(s). # In that case, we return original text unchanged and pass the # first character as filtered to prevent an infinite loop in the # parent function. @@ -2240,7 +2240,7 @@ function doHeaders($text) { $text = preg_replace_callback( '{ (^.+?) # $1: Header text - (?:[ ]+\{\#([-_:a-zA-Z0-9]+)\})? # $2: Id attribute + (?:[ ]+\{\#([-_:a-zA-Z0-9]+)\})? # $2: ID attribute [ ]*\n(=+|-+)[ ]*\n+ # $3: Header footer }mx', array(&$this, '_doHeaders_callback_setext'), $text); @@ -2618,12 +2618,12 @@ function formParagraphs($text) { # Strip leading and trailing lines: $text = preg_replace('/\A\n+|\n+\z/', '', $text); - $grafs = preg_split('/\n{2,}/', $text, -1, PREG_SPLIT_NO_EMPTY); + $paragraphs = preg_split('/\n{2,}/', $text, -1, PREG_SPLIT_NO_EMPTY); # # Wraptags and unhashify HTML blocks # - foreach ($grafs as $key => $value) { + foreach ($paragraphs as $key => $value) { $value = trim($this->runSpanGamut($value)); # Check if this should be enclosed in a paragraph. @@ -2633,11 +2633,11 @@ function formParagraphs($text) { if ($is_p) { $value = "
$value
"; } - $grafs[$key] = $value; + $paragraphs[$key] = $value; } - # Join grafs in one text, then unhash HTML tags. - $text = implode("\n\n", $grafs); + # Join paragraphs in one text, then unhash HTML tags. + $text = implode("\n\n", $paragraphs); # Finish by removing any tag hashes still present in $text. $text = $this->unhash($text); @@ -2810,7 +2810,7 @@ function _stripAbbreviations_callback($matches) { if ($this->abbr_word_re) $this->abbr_word_re .= '|'; $this->abbr_word_re .= preg_quote($abbr_word); - $this->abbr_desciptions[$abbr_word] = trim($abbr_desc); + $this->abbr_descriptions[$abbr_word] = trim($abbr_desc); return ''; # String that will replace the block } @@ -2833,8 +2833,8 @@ function doAbbreviations($text) { } function _doAbbreviations_callback($matches) { $abbr = $matches[0]; - if (isset($this->abbr_desciptions[$abbr])) { - $desc = $this->abbr_desciptions[$abbr]; + if (isset($this->abbr_descriptions[$abbr])) { + $desc = $this->abbr_descriptions[$abbr]; if (empty($desc)) { return $this->hashPart("$abbr"); } else { diff --git a/build/lib/markdown_extended.php b/build/lib/markdown_extended.php index 93356d666..3380abbc7 100644 --- a/build/lib/markdown_extended.php +++ b/build/lib/markdown_extended.php @@ -2,8 +2,8 @@ require_once('markdown.php'); define( 'MARKDOWNEXTRAEXTENDED_VERSION', "0.3" ); -function MarkdownExtended($text, $default_claases = array()){ - $parser = new MarkdownExtraExtended_Parser($default_claases); +function MarkdownExtended($text, $default_classes = array()){ + $parser = new MarkdownExtraExtended_Parser($default_classes); return $parser->transform($text); } @@ -145,7 +145,7 @@ function _doFencedFigures_callback($matches) { $figure = preg_replace('/^/m', " ", $figure); # These leading spaces cause problem withcontent, - # so we need to fix that - reuse blockqoute code to handle this: + # so we need to fix that - reuse blockquote code to handle this: $figure = preg_replace_callback('{(\s*.+?)}sx', array(&$this, '_doBlockQuotes_callback2'), $figure); diff --git a/build/make.sh b/build/make.sh index a9850677d..f73af9ad9 100755 --- a/build/make.sh +++ b/build/make.sh @@ -343,7 +343,7 @@ function usage { - SearchPanes - StateRestore - js - Create the DataTables Javascript file + js - Create the DataTables JavaScript file serve - Run an HTTP server to allow the built examples to load diff --git a/build/templates/example.html b/build/templates/example.html index 9a657250b..0821155d6 100644 --- a/build/templates/example.html +++ b/build/templates/example.html @@ -38,7 +38,7 @@{software} example {title}
The Javascript shown below is used to initialise the table shown in this example:
+The JavaScript shown below is used to initialise the table shown in this example:
{js-esc}
{js-vanilla-esc}
In addition to the above code, the following Javascript library files are loaded for use in this example:
+In addition to the above code, the following JavaScript library files are loaded for use in this example:
⎖
) or a dash (`-`) are often used to show the decimal place in a displayed number.
- When reading such numbers, Javascript won't automatically recognise them as numbers, however, DataTables' type detection and sorting methods can be instructed through the `dt-init language.decimal` option which character is used as the decimal place in your numbers. This will be used to correctly adjust DataTables' type detection and sorting algorithms to sort numbers in your table.
+ When reading such numbers, JavaScript won't automatically recognise them as numbers, however, DataTables' type detection and sorting methods can be instructed through the `dt-init language.decimal` option which character is used as the decimal place in your numbers. This will be used to correctly adjust DataTables' type detection and sorting algorithms to sort numbers in your table.
This option is a little unusual as DataTables will never display a formatted, floating point number (it has no need to!) so this option only effects how it parses the read data (none of the other language options have this ability).
diff --git a/docs/option/language.loadingRecords.xml b/docs/option/language.loadingRecords.xml
index 4c9734cf5..b7051131b 100644
--- a/docs/option/language.loadingRecords.xml
+++ b/docs/option/language.loadingRecords.xml
@@ -8,7 +8,7 @@
⎖
) or a dash (`-`) are often used to show the decimal place in a displayed number.
-When reading such numbers, Javascript won't automatically recognise them as numbers, however, DataTables' type detection and sorting methods can be instructed through the `dt-init language.decimal` option which character is used as the decimal place in your numbers. This will be used to correctly adjust DataTables' type detection and sorting algorithms to sort numbers in your table.
+When reading such numbers, JavaScript won't automatically recognise them as numbers, however, DataTables' type detection and sorting methods can be instructed through the `dt-init language.decimal` option which character is used as the decimal place in your numbers. This will be used to correctly adjust DataTables' type detection and sorting algorithms to sort numbers in your table.
Any character can be passed in using the `dt-init language.decimal` option, although the decimal place character used in a single table must be consistent (i.e. numbers with a dot decimal place and comma decimal place cannot both appear in the same table). Different tables on the same page can use different decimal characters if required.
diff --git a/examples/i18n/datetime.xml b/examples/i18n/datetime.xml
index 38340a5d1..d08827b97 100644
--- a/examples/i18n/datetime.xml
+++ b/examples/i18n/datetime.xml
@@ -31,7 +31,7 @@ new DataTable('#example', {