Changeset 74 for trunk/WordPress/plugin/transposh/parser.php
- Timestamp:
- 03/19/2009 09:48:45 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/parser.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/parser.php
r68 r74 724 724 { 725 725 logger("Enter " . __METHOD__ . " : $start", 4); 726 global $page, $pos , $is_edit_mode;726 global $page, $pos; 727 727 728 728 //trim white space from the start position going forward … … 769 769 $is_translated = FALSE; 770 770 771 if(! $is_edit_mode|| !in_array('body', $tags_list))771 if(!($is_edit_mode || get_option(ENABLE_AUTO_TRANSLATE,1)) || !in_array('body', $tags_list)) 772 772 { 773 773 if($translated_text != NULL) … … 798 798 799 799 800 //Insert image to allow editing this segment 801 $img = get_img_tag($original_text, $translated_text, $source, $segment_id, $is_translated); 802 update_translated_page($end + 1, - 1, $img); 803 800 //Insert image to allow editing this segment (only in explicit edit) 801 if($is_edit_mode) { 802 $img = get_img_tag($original_text, $translated_text, $source, $segment_id, $is_translated); 803 update_translated_page($end + 1, - 1, $img); 804 } 804 805 //Increment only after both text and image are generated so they 805 806 //will be the same for each translated segement
Note: See TracChangeset
for help on using the changeset viewer.
