Changeset 80 for trunk/WordPress/plugin/transposh/transposh.php
- Timestamp:
- 03/19/2009 10:39:48 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/transposh.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/transposh.php
r79 r80 336 336 $url = $home_url . '/index.php'; 337 337 338 //Use base64 encoding to make that when the page is translated (i.e. update_translation) we339 //get back exactlly the same string without having the client decode/encode it in anyway.340 $token = base64_encode($original);341 342 338 //For use in javascript, make the following changes: 343 339 //1. Add slashes to escape the inner text … … 356 352 } 357 353 358 $img = "<img src=\"$plugin_url/translate$add_img.png\" token=\"$token\"alt=\"translate\" id=\"" . IMG_PREFIX . "$segment_id\"354 $img = "<img src=\"$plugin_url/translate$add_img.png\" alt=\"translate\" id=\"" . IMG_PREFIX . "$segment_id\" 359 355 onclick=\"translate_dialog('$original','$translation','$segment_id'); return false;\" 360 356 onmouseover=\"hint('$original'); return true;\" … … 406 402 407 403 $table_name = $wpdb->prefix . TRANSLATIONS_TABLE; 408 $enable_auto_translate = get_option(ENABLE_AUTO_TRANSLATE,1) ;404 $enable_auto_translate = get_option(ENABLE_AUTO_TRANSLATE,1) && is_translator(); 409 405 } 410 406
Note: See TracChangeset
for help on using the changeset viewer.
