Changeset 116


Ignore:
Timestamp:
03/29/2009 12:11:04 AM (3 years ago)
Author:
amir
Message:

Fix for ticket #26. A not editable language should not be automaticlly translated.

File:
1 edited

Legend:

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

    r110 r116  
    499499                return; 
    500500        } 
    501  
     501         
     502        $lang = $wp_query->query_vars[LANG_PARAM]; 
     503        $editable_langs = get_option(EDITABLE_LANGS); 
     504         
     505        if(strpos($editable_langs, $lang) === FALSE) 
     506        { 
     507                //not an editable language - no need for any js.         
     508                return; 
     509        } 
     510         
    502511        $is_edit_param_enabled = $wp_query->query_vars[EDIT_PARAM]; 
    503  
     512         
    504513        if (!$is_edit_param_enabled && ! $enable_auto_translate) 
    505514        { 
Note: See TracChangeset for help on using the changeset viewer.