Plugin Directory

Changeset 1842956


Ignore:
Timestamp:
03/19/2018 05:06:59 PM (8 years ago)
Author:
webtimal
Message:

Translation fixes

Location:
multiple-cropped-images/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • multiple-cropped-images/trunk/dist/MCI_Meta.php

    r1842882 r1842956  
    5050        public function meta_box()
    5151        {
    52             add_meta_box('mci-meta', __('MCI', 'mci'), [
     52            add_meta_box('mci-meta', __('MCI', MCI_LOC_DOMAIN), [
    5353                $this,
    5454                'cb_meta_box'
     
    7373            echo '</div>';
    7474
    75             echo '<span class="button mci-add">' . __('Add', 'mci') . '</span>';
     75            echo '<span class="button mci-add">' . __('Add', MCI_LOC_DOMAIN) . '</span>';
    7676        }
    7777
  • multiple-cropped-images/trunk/dist/MCI_Options.php

    r1842882 r1842956  
    9898        public function add_admin_menu()
    9999        {
    100             add_menu_page($this->page_title, __('MCI', 'mci'), 'manage_options', $this->menu_slug, [
     100            add_menu_page($this->page_title, __('MCI', MCI_LOC_DOMAIN), 'manage_options', $this->menu_slug, [
    101101                $this,
    102102                'create_options_page'
     
    170170        public function cb_status_description()
    171171        {
    172             echo '<p class="description">' . __('Activate the plugin for specific post types.', 'mci') . '</p>';
     172            echo '<p class="description">' . __('Activate the plugin for specific post types.', MCI_LOC_DOMAIN) . '</p>';
    173173        }
    174174
    175175        public function cb_post_types_description()
    176176        {
    177             echo '<p class="description">' . __('Set custom sizes for each post type.', 'mci') . '</p>';
    178             echo '<p class="description">' . __('All sizes are to be given in pixels.', 'mci') . '</p>';
     177            echo '<p class="description">' . __('Set custom sizes for each post type.', MCI_LOC_DOMAIN) . '</p>';
     178            echo '<p class="description">' . __('All sizes are to be given in pixels.', MCI_LOC_DOMAIN) . '</p>';
    179179        }
    180180
     
    216216            $id = isset($sizes[$post_type->name]) ? count($sizes[$post_type->name]) : 0;
    217217
    218             echo '<span class="add button-secondary">' . __('Add', 'mci') . '</span>';
     218            echo '<span class="add button-secondary">' . __('Add', MCI_LOC_DOMAIN) . '</span>';
    219219            echo '<span class="id">' . $id . '</span>';
    220220            echo '<span class="post_type">' . $post_type->name . '</span>';
  • multiple-cropped-images/trunk/dist/config/constants.php

    r1842922 r1842956  
    2525    /* ---------- SIZES ----------*/
    2626    define('MCI_SIZE_ICON', 98);
     27
     28
     29    /* ---------- LOCALIZATION ----------*/
     30    define('MCI_LOC_DOMAIN', 'multiple-cropped-images');
  • multiple-cropped-images/trunk/dist/config/settings.php

    r1842882 r1842956  
    55    return [
    66        'mci-tab-general' => [
    7             'title'    => __('General', 'mci'),
     7            'title'    => __('General', MCI_LOC_DOMAIN),
    88            'sections' => [
    99                'mci-section-status' => [
    10                     'title'    => __('Status', 'mci'),
     10                    'title'    => __('Status', MCI_LOC_DOMAIN),
    1111                    'callback' => 'cb_status_description',
    1212                    'fields'   => array_map(function($post_type)
     
    2525        ],
    2626        'mci-tab-sizes'   => [
    27             'title'    => __('Sizes', 'mci'),
     27            'title'    => __('Sizes', MCI_LOC_DOMAIN),
    2828            'sections' => [
    2929                'mci-section-post-types' => [
    30                     'title'    => __('Post Types', 'mci'),
     30                    'title'    => __('Post Types', MCI_LOC_DOMAIN),
    3131                    'callback' => 'cb_post_types_description',
    3232                    'fields'   => array_map(function($post_type)
  • multiple-cropped-images/trunk/mci.php

    r1842950 r1842956  
    2929    add_action('plugins_loaded', function()
    3030    {
    31         load_plugin_textdomain('multiple-cropped-images');
     31        load_plugin_textdomain(MCI_LOC_DOMAIN);
    3232    });
    3333
Note: See TracChangeset for help on using the changeset viewer.