Changeset 164
- Timestamp:
- 04/26/2009 05:10:41 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/core/parser.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/core/parser.php
r160 r164 400 400 { 401 401 //will break translation unit when one of the following characters is reached: ., 402 if(($end_of_entity = is_html_entity($pos, $is_breaker))) 402 $end_of_entity = is_html_entity($pos, $is_breaker); 403 if($end_of_entity) 403 404 { 404 405 //Check if should break - value has been set by the is_html_entity function … … 418 419 $start = $pos; 419 420 } 420 else if( $end_of_number =is_number($pos))421 else if(is_number($pos)) 421 422 { 422 423 //numbers will break translations segements and will not be included in the translation 423 424 translate_text($start); 424 $pos = $start = $end_of_number;425 $pos = $start = is_number($pos); 425 426 } 426 427 else … … 465 466 $start = $pos; 466 467 } 467 else if( $end_of_number =is_number($pos))468 else if(is_number($pos)) 468 469 { 469 470 //numbers will break translations segements and will not be included in the translation 470 471 translate_text($start); 471 $pos = $start = $end_of_number;472 $pos = $start = is_number($pos); 472 473 } 473 474 else … … 675 676 * param forward - indicate direction going either backward of forward. 676 677 */ 677 function skip_white_space(&$index , $forward=TRUE)678 function skip_white_space(&$index = NULL, $forward=TRUE) 678 679 { 679 680 global $page, $pos; … … 700 701 * Return TRUE if the word matches otherwise FALSE 701 702 */ 702 function is_word($word, $index1 )703 function is_word($word, $index1 = NULL) 703 704 { 704 705 global $page, $pos;
Note: See TracChangeset
for help on using the changeset viewer.
