Changeset 630


Ignore:
Timestamp:
05/29/2011 01:37:56 AM (12 months ago)
Author:
ofer
Message:

Add support for the mylang shortcode (for image translations)

File:
1 edited

Legend:

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

    r628 r630  
    11211121        } 
    11221122 
     1123        if (isset($atts['mylang'])) { 
     1124            if (isset($atts['lang']) && stripos($atts['lang'], $this->target_language) === false) { 
     1125                return; 
     1126            } 
     1127            return $this->target_language; 
     1128        } 
     1129 
    11231130        if (isset($atts['lang'])) { 
    11241131            $lang = ' lang="' . $atts['lang'] . '"'; 
Note: See TracChangeset for help on using the changeset viewer.