Plugin Directory

Changeset 1647899


Ignore:
Timestamp:
04/29/2017 07:48:01 AM (9 years ago)
Author:
riselab
Message:

Add text domain loading function (v1.0.1)

Location:
import-vk/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • import-vk/trunk/import-vk.php

    r1647636 r1647899  
    2020    public static function Init()
    2121    {
     22        // Loading plugin's text domain
     23        add_action('plugins_loaded', Array(get_called_class(), 'LoadTextDomain'));
     24       
    2225        // Adding settings page to the administration panel menu
    2326        if (defined('ABSPATH') && is_admin()){
     
    8891        $result = wp_remote_retrieve_body($response);
    8992        return $result;
     93    }
     94
     95    // Load plugin's text domain function
     96    public static function LoadTextDomain()
     97    {
     98        load_plugin_textdomain('import-vk');
    9099    }
    91100
  • import-vk/trunk/readme.txt

    r1647636 r1647899  
    2727== Changelog ==
    2828
     29= 1.0.1 =
     30* Added localization support
     31
    2932= 1.0 =
    3033* Initial release
Note: See TracChangeset for help on using the changeset viewer.