Changeset 500 for trunk/WordPress/plugin/transposh/core/parser.php
- Timestamp:
- 08/09/2010 01:40:36 PM (22 months ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/core/parser.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/core/parser.php
r488 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13 … … 484 478 // Use base64 encoding to make that when the page is translated (i.e. update_translation) we 485 479 // get back exactlly the same string without having the client decode/encode it in anyway. 486 $span = '<span class ="' . SPAN_PREFIX . '" id="' . SPAN_PREFIX . $this->segment_id . '" data-token="' . transposh_utils::base64_url_encode($original_text) . '" data-source="' .$source.'"';480 $span = '<span class ="' . SPAN_PREFIX . '" id="' . SPAN_PREFIX . $this->segment_id . '" data-token="' . transposh_utils::base64_url_encode($original_text) . '" data-source="' . $source . '"'; 487 481 // those are needed for on the fly image creation / hidden elements translations 488 482 if ($this->is_edit_mode || $for_hidden_element) { 489 $span .= ' data-orig="' .$original_text.'"';483 $span .= ' data-orig="' . $original_text . '"'; 490 484 if ($for_hidden_element) { 491 485 $span.= ' data-hidden="y"'; 492 486 // hidden elements currently have issues figuring what they translated in the JS 493 487 if ($translated_text != null) { 494 $span.= ' data-trans="' .$translated_text.'"';488 $span.= ' data-trans="' . $translated_text . '"'; 495 489 } 496 490 }
Note: See TracChangeset
for help on using the changeset viewer.
