Ignore:
Timestamp:
03/04/2010 02:12:58 AM (2 years ago)
Author:
ofer
Message:

Mass translation support for #80

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/wp/transposh_ajax.php

    r371 r386  
    8181    } 
    8282} 
     83// Start full translation 
     84elseif (isset($_GET['translate_all'])) { 
     85    // get all ids in need of translation 
     86    $page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_type='page' OR post_type='post' ORDER BY ID DESC"); 
     87    // only high capabilities users can... 
     88    if (!current_user_can('edit_post',$page_ids[0])) return; 
     89    echo json_encode($page_ids); 
     90} 
     91// Start backup on demand 
     92/*elseif (isset($_GET['backup'])) { 
     93    $my_transposh_backup = new transposh_backup($my_transposh_plugin); 
     94    $my_transposh_backup->do_backup(); 
     95}*/ 
     96 
    8397?> 
Note: See TracChangeset for help on using the changeset viewer.