Plugin Directory

Changeset 1688346


Ignore:
Timestamp:
06/30/2017 02:44:59 PM (9 years ago)
Author:
silverice
Message:

Add u18n support

Location:
nicechat/trunk
Files:
4 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • nicechat/trunk/admin/class-nice-chat-to-wp-admin.php

    r1686045 r1688346  
    7171                $nice_chat_partner_id = $_POST['nice_chat_partner_id'];
    7272                update_option('nice_chat_partner_id', $nice_chat_partner_id);
    73                 echo ('<div class="updated"><p>'.__('Settings updated', 'textdomain').'</p></div>');
     73                echo ('<div class="updated"><p>'.__('Settings updated', 'nice-chat-to-wp').'</p></div>');
    7474            } else {
    75                 echo ('<div class="error"><p>'.__('Wrong Partner ID', 'textdomain').'</p></div>');
     75                echo ('<div class="error"><p>'.__('Wrong Partner ID', 'nice-chat-to-wp').'</p></div>');
    7676            }
    7777        }
     
    8181        ?>
    8282        <div class="wrap">
    83             <h2><?php echo (__('Setup NiceChat Widget', 'textdomain')) ?></h2>
     83            <h2><?php echo (__('Setup NiceChat Widget', 'nice-chat-to-wp')) ?></h2>
    8484            <form method="post">
    8585            <fieldset class="options">
    8686                <p>
    87                     <legend><?php echo (__('Partner ID (optional)', 'textdomain')) ?>:</legend>
     87                    <legend><?php echo (__('Partner ID (optional)', 'nice-chat-to-wp')) ?>:</legend>
    8888                    <input type="text" name="nice_chat_partner_id" value="<?php echo($nice_chat_partner_id)?>"/>
    8989                </p>
    9090                <p>
    91                     <input type="submit" value="<?php echo (__('Send', 'textdomain')) ?>" />
     91                    <input type="submit" value="<?php echo (__('Send', 'nice-chat-to-wp')) ?>" />
    9292                </p>
    9393            </fieldset>
  • nicechat/trunk/includes/class-nice-chat-to-wp-i18n.php

    r1686045 r1688346  
    2020 * so that it is ready for translation.
    2121 *
    22  * @since      1.0.0
     22 * @since      1.0.1
    2323 * @package    NiceChat_to_WP
    2424 * @subpackage NiceChat_to_WP/includes
     
    3131     * Load the plugin text domain for translation.
    3232     *
    33      * @since    1.0.0
     33     * @since    1.0.1
    3434     */
    3535    public function load_plugin_textdomain() {
    3636
    37         load_plugin_textdomain(
     37        print load_plugin_textdomain(
    3838            'nice-chat-to-wp',
    3939            false,
    40             dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
     40            plugin_basename(NICE_CHAT_TO_WP_PLUGIN_PATH.'languages/')
    4141        );
    42 
    4342    }
    4443
    45 
    46 
    4744}
  • nicechat/trunk/nice-chat-to-wp.php

    r1686045 r1688346  
    2020    die;
    2121}
     22
     23define( 'NICE_CHAT_TO_WP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
    2224
    2325/**
Note: See TracChangeset for help on using the changeset viewer.