Plugin Directory

Changeset 128147


Ignore:
Timestamp:
06/21/2009 04:39:57 PM (17 years ago)
Author:
getincss
Message:

Russian lang works now

Location:
target-visitors
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • target-visitors/tags/1.2.3/readme.txt

    r128046 r128147  
    55Requires at least: 2.3.2
    66Tested up to: 2.8
    7 Version: 1.2.2
     7Version: 1.2.3
    88Last Updated: 2009-06-21
    9 Stable tag: 1.2.2
     9Stable tag: 1.2.3
    1010
    1111Plugin shows a special message for users coming from search engines like Google, Yandex, MSN, Yahoo, etc.
     
    2525Плагин показывает специальное сообщение (которые вы введете) для пользователей пришедших с поисковых систем Google, Yandex, Mail, Yahoo, Liveinternet, Rambler, Altavista, Msn. Найденные слова подствечиваются (см. скриншоты)
    2626
    27 [Скачать русскую версию][]
    28 
    2927[Домашняя страница плагина][]
    3028
    31 [Скачать русскую версию]:http://downloads.wordpress.org/plugin/target-visitors.1.2.2_ru.zip
    3229[Домашняя страница плагина]:http://www.getincss.ru/2008/07/13/wp-target-visitors/
    3330
     
    6764== Changelog ==
    6865
    69 = 1.2.2_ru =
     66= 1.2.3 =
    7067* Fixed russian lang.
    7168
  • target-visitors/tags/1.2.3/wp-target-visitors.php

    r128046 r128147  
    55Description: Plugin shows a special message for visitors coming from search engines: Google, Yandex, Mail, Yahoo, Liveinternet, Rambler, Altavista, Msn.
    66Author: Abanova Olga
    7 Version: 1.2.2
     7Version: 1.2.3
    88Author URI: http://www.getincss.ru
    99*/
     
    4747                add_option("text_code", $text_code);
    4848                add_option("autoset", $autoset);
    49         endif;     
     49        endif; 
     50       
     51        $currentLocale = get_locale();
     52
     53        if(!empty($currentLocale) && $currentLocale="ru_RU") {
     54            $currentLocale="RU";
     55
     56            $moFile = dirname(__FILE__) . "/lang/target-visitors_" . $currentLocale . ".mo";
     57
     58            if(@file_exists($moFile) && is_readable($moFile)) load_textdomain('sitemap', $moFile);
     59
     60        }   
    5061           
    5162        add_action('wp_head','target_visitors_head');
  • target-visitors/trunk/readme.txt

    r128046 r128147  
    55Requires at least: 2.3.2
    66Tested up to: 2.8
    7 Version: 1.2.2
     7Version: 1.2.3
    88Last Updated: 2009-06-21
    9 Stable tag: 1.2.2
     9Stable tag: 1.2.3
    1010
    1111Plugin shows a special message for users coming from search engines like Google, Yandex, MSN, Yahoo, etc.
     
    2525Плагин показывает специальное сообщение (которые вы введете) для пользователей пришедших с поисковых систем Google, Yandex, Mail, Yahoo, Liveinternet, Rambler, Altavista, Msn. Найденные слова подствечиваются (см. скриншоты)
    2626
    27 [Скачать русскую версию][]
    28 
    2927[Домашняя страница плагина][]
    3028
    31 [Скачать русскую версию]:http://downloads.wordpress.org/plugin/target-visitors.1.2.2_ru.zip
    3229[Домашняя страница плагина]:http://www.getincss.ru/2008/07/13/wp-target-visitors/
    3330
     
    6764== Changelog ==
    6865
    69 = 1.2.2_ru =
     66= 1.2.3 =
    7067* Fixed russian lang.
    7168
  • target-visitors/trunk/wp-target-visitors.php

    r128046 r128147  
    55Description: Plugin shows a special message for visitors coming from search engines: Google, Yandex, Mail, Yahoo, Liveinternet, Rambler, Altavista, Msn.
    66Author: Abanova Olga
    7 Version: 1.2.2
     7Version: 1.2.3
    88Author URI: http://www.getincss.ru
    99*/
     
    4747                add_option("text_code", $text_code);
    4848                add_option("autoset", $autoset);
    49         endif;     
     49        endif; 
     50       
     51        $currentLocale = get_locale();
     52
     53        if(!empty($currentLocale) && $currentLocale="ru_RU") {
     54            $currentLocale="RU";
     55
     56            $moFile = dirname(__FILE__) . "/lang/target-visitors_" . $currentLocale . ".mo";
     57
     58            if(@file_exists($moFile) && is_readable($moFile)) load_textdomain('sitemap', $moFile);
     59
     60        }   
    5061           
    5162        add_action('wp_head','target_visitors_head');
Note: See TracChangeset for help on using the changeset viewer.