Plugin Directory

Changeset 1169854


Ignore:
Timestamp:
05/29/2015 05:21:27 AM (11 years ago)
Author:
pangol
Message:

add load_textdomain

Location:
sewol-count/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sewol-count/trunk/readme.txt

    r1167586 r1169854  
    44Requires at least: 3.0.1
    55Tested up to: 4.2.2
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • sewol-count/trunk/sewol-count.php

    r1167586 r1169854  
    44Plugin URI: http://parkyong.com
    55Description: count day after Sewol Ferry Disaster
    6 Version: 1.0.2
     6Version: 1.0.3
    77Author: Park Yong
    88Author URI: http://parkyong.com
     
    2929
    3030add_action( 'widgets_init', 'sewol_register_widgets' );
     31add_action('plugins_loaded', 'sewol_load_textdomain');
     32
     33function sewol_load_textdomain() {
     34    load_plugin_textdomain( 'sewol-count', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
     35}
    3136
    3237function sewol_register_widgets() {
     
    3843    function sewol_widget () {
    3944        $widget_ops = array( 'classname' => 'sewol_widget',
    40             'description' => __( 'Count day after Sewol Ferry Disaster', 'sewol-plugin' ));
    41         $this->WP_Widget( 'sewol_widget', __('Sewol Count Widget', 'sewol-plugin'), $widget_ops );
     45            'description' => __( 'Count day after Sewol Ferry Disaster', 'sewol-count' ));
     46        $this->WP_Widget( 'sewol_widget', __('Sewol Count Widget', 'sewol-count'), $widget_ops );
    4247    }
    4348
    4449    function form ( $instance ) {
    45         $defaults = array( 'title' => __('Sewol', 'sewol-plugin'));
     50        $defaults = array( 'title' => __('Sewol', 'sewol-count'));
    4651
    4752        $instance = wp_parse_args( (array)$instance, $defaults );
Note: See TracChangeset for help on using the changeset viewer.