WordPress.org

Plugin Directory

Changeset 614927


Ignore:
Timestamp:
10/20/12 14:04:11 (18 months ago)
Author:
Chouby
Message:

add icl_get_home_url function

Location:
polylang/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • polylang/trunk/include/api.php

    r609733 r614927  
    5050} 
    5151 
    52 // compatibility with WPML string translation API 
    53 if (!function_exists('icl_register_string') && !function_exists('icl_t')) { 
     52// compatibility with WPML API 
     53if (!function_exists('icl_get_home_url')) { 
     54    function icl_get_home_url() { 
     55        return pll_home_url(); 
     56    } 
     57} 
     58 
     59if (!function_exists('icl_register_string')) { 
    5460    function icl_register_string($context, $name, $string) { 
    5561        pll_register_string($name, $string); 
    5662    } 
     63} 
    5764 
     65if (!function_exists('icl_t')) { 
    5866    function icl_t($context, $name, $string) { 
    5967        return pll__($string); 
    6068    } 
    6169} 
     70 
    6271?> 
  • polylang/trunk/polylang.php

    r614707 r614927  
    33Plugin Name: Polylang 
    44Plugin URI: http://wordpress.org/extend/plugins/polylang/ 
    5 Version: 0.9.3.7 
     5Version: 0.9.3.8 
    66Author: F. Demarle 
    77Description: Adds multilingual capability to Wordpress 
     
    2525*/ 
    2626 
    27 define('POLYLANG_VERSION', '0.9.3.7'); 
     27define('POLYLANG_VERSION', '0.9.3.8'); 
    2828define('PLL_MIN_WP_VERSION', '3.1'); 
    2929 
  • polylang/trunk/readme.txt

    r614707 r614927  
    9797* Add Belarusian translation contributed by [Alexander Markevitch](http://fourfeathers.by/) 
    9898* Add Belarusian (be_BY) to predefined languages list (automatic download and update of language files won't work) 
    99 * Add the possibility to translate the date format and time format  
     99* Add the possibility to translate the date format and time format 
     100* Add compatibility with the 'icl_get_home_url' function from the WPML API 
    100101* Bug correction: still some issues with string translations 
    101102* Bug correction: search is not filtered by the (default) language when the language is set by content and the language code is hidden for the default language 
Note: See TracChangeset for help on using the changeset viewer.